git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@7 c22fe52d-42d7-ba4f-95f7-33effcf65713
212 lines
9.6 KiB
PHP
212 lines
9.6 KiB
PHP
<?php
|
|
/**
|
|
* @package WordPress
|
|
* @subpackage Progressio
|
|
*/
|
|
?><!DOCTYPE html>
|
|
<!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
|
|
<!--[if IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
|
|
<!--[if IE 8 ]> <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
|
|
<!--[if IE 9 ]> <html <?php language_attributes(); ?> class="no-js ie9"> <![endif]-->
|
|
<!--[if (gt IE 9)|!(IE)]><!--> <html <?php language_attributes(); ?> class="no-ie no-js"> <!--<![endif]-->
|
|
|
|
<head>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
|
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
|
|
|
|
<title><?php
|
|
/*
|
|
* Print the <title> tag based on what is being viewed.
|
|
*/
|
|
global $page, $paged, $post;
|
|
|
|
wp_title( '|', true, 'right' );
|
|
|
|
// Add the blog name.
|
|
bloginfo( 'name' );
|
|
|
|
// Add the blog description for the home/front page.
|
|
$site_description = get_bloginfo( 'description', 'display' );
|
|
if ( $site_description && ( is_home() || is_front_page() ) )
|
|
echo " | $site_description";
|
|
|
|
// Add a page number if necessary:
|
|
if ( $paged >= 2 || $page >= 2 )
|
|
echo ' | ' . sprintf( __( 'Page %s', 'wpv' ), max( $paged, $page ) );
|
|
|
|
?></title>
|
|
|
|
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
|
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
|
<link rel="shortcut icon" type="image/x-icon" href="<?php wpvge('favicon_url')?>"/>
|
|
|
|
<script>
|
|
WPV_THEME_URI = '<?php echo WPV_THEME_URI ?>';
|
|
</script>
|
|
|
|
<?php wp_head(); ?>
|
|
<?php
|
|
if(is_object($post) && get_post_meta($post->ID, 'use-global-options', true) === 'false') {
|
|
$bgcolor = get_post_meta($post->ID, 'background_color', true);
|
|
$bgimage = get_post_meta($post->ID, 'background_image', true);
|
|
$bgrepeat = get_post_meta($post->ID, 'background_repeat', true);
|
|
$bgposition = get_post_meta($post->ID, 'background_position', true);
|
|
|
|
$page_style = '';
|
|
if(!empty($bgcolor)) {
|
|
$page_style .= "background-color:$bgcolor;";
|
|
}
|
|
if(!empty($bgimage)) {
|
|
$page_style .= "background-image:url('$bgimage');";
|
|
}
|
|
if(!empty($bgrepeat)) {
|
|
$page_style .= "background-repeat:$bgrepeat;";
|
|
}
|
|
if(!empty($bgposition)) {
|
|
$page_style .= "background-position:$bgposition;";
|
|
}
|
|
|
|
if(!empty($page_style) && (is_single() || is_page())) {
|
|
echo "<style>#main{ $page_style }</style>";
|
|
}
|
|
}
|
|
?>
|
|
</head>
|
|
<?php
|
|
global $post, $wpv_has_header_sidebars;
|
|
|
|
$has_header_slider = is_singular(array('page', 'post', 'portfolio')) && isset($post) && wpv_post_default('show_header_slider', 'has-header-slider');
|
|
$wpv_has_header_sidebars = is_singular(array('page', 'post', 'portfolio')) && isset($post) && wpv_post_default('show_header_sidebars', 'has-header-sidebars');
|
|
$has_page_header = is_singular(array('abogado', 'post', 'portfolio')) || (is_page() && wpv_post_default('show_page_header', 'has-page-header') );
|
|
|
|
$body_class = array();
|
|
|
|
$body_class_conditions = array(
|
|
'no-page-header' => !$has_page_header,
|
|
'has-page-header' => $has_page_header,
|
|
'cbox-share-twitter' => wpv_get_option('share-lightbox-twitter'),
|
|
'cbox-share-facebook' => wpv_get_option('share-lightbox-facebook'),
|
|
'boxed' => wpv_get_option('enable_box_layout'),
|
|
'narrow-slider' => ! wpv_get_option('has-fullwidth-slider'),
|
|
'fixed-header' => wpv_get_option('fixed-header'),
|
|
'has-header-slider' => $has_header_slider,
|
|
'has-header-sidebars' => $wpv_has_header_sidebars,
|
|
'no-header-slider' => !$has_header_slider,
|
|
'no-header-sidebars' => !$wpv_has_header_sidebars,
|
|
'no-footer-sidebars' => !wpv_get_option('has-footer-sidebars'),
|
|
'menu-top' => has_nav_menu('menu-top'),
|
|
'no-menu-top' => !has_nav_menu('menu-top'),
|
|
);
|
|
|
|
foreach($body_class_conditions as $class=>$cond) {
|
|
if($cond) {
|
|
$body_class[] = $class;
|
|
}
|
|
}
|
|
|
|
?>
|
|
<body <?php body_class(implode(' ', $body_class)); ?>>
|
|
<div id="container" class="main-container">
|
|
|
|
<div class="boxed-layout">
|
|
<div class="fixed-header-box">
|
|
<?php if (has_nav_menu('menu-top')) {?>
|
|
<div class="top-nav-box <?php echo wpv_get_option('header-helper-style')?> <?php if(wpv_get_option('header-helper-classic')) echo 'classic'?>">
|
|
<div class="container_16">
|
|
<div class="grid_16">
|
|
<nav class="top-nav">
|
|
<?php wp_nav_menu(array('fallback_cb' => '', 'theme_location' => 'menu-top' )); ?>
|
|
</nav>
|
|
<?php if(wpv_get_option('show-phone-top')): ?>
|
|
<span id="phone-num"><?php echo do_shortcode(wpv_get_option('phone-num-top'))?></span>
|
|
<?php endif ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<header class="main-header header-helper <?php echo wpv_get_option('header-helper-style')?> <?php if(wpv_get_option('header-helper-classic')) echo 'classic'?>">
|
|
<div class="container_16">
|
|
<div class="grid_5">
|
|
<?php $logo = wpv_get_option('custom-header-logo') ?>
|
|
<a href="<?php echo home_url() ?>/" title="<?php bloginfo( 'name' ) ?>" class="logo a-reset"><?php
|
|
if($logo):
|
|
?>
|
|
<img src="<?php echo $logo;?>" alt="<?php bloginfo('name')?>"/>
|
|
<?php
|
|
else:
|
|
bloginfo( 'name' );
|
|
endif;
|
|
?></a>
|
|
</div><!-- / .grid_5 -->
|
|
|
|
<div class="grid_11">
|
|
<?php if(wpv_get_option('show_linkedin')): ?>
|
|
<div class="icons-top2">
|
|
<a href="<?php wpvge('linkedin-link')?>" id="ilinkedin" target="_blank"></a>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<nav class="top-nav">
|
|
<?php language_selector_flags(); ?>
|
|
<?php /*wp_nav_menu(array('fallback_cb' => 'wp_page_menu', 'theme_location' => 'menu-top' ));*/ ?>
|
|
</nav>
|
|
<nav class="main-nav">
|
|
<?php wp_nav_menu(array('fallback_cb' => 'wp_page_menu', 'theme_location' => 'menu-header' )); ?>
|
|
</nav>
|
|
</div><!-- / .grid_11 -->
|
|
|
|
</div><!-- / .container_16 -->
|
|
</header>
|
|
<div class="clearfix"></div>
|
|
</div><!-- / .fixed-header-box -->
|
|
</div>
|
|
|
|
<?php
|
|
/*
|
|
* some pages may not have a slider enabled, check for that
|
|
*/
|
|
|
|
if( 0 ) : /*$has_header_slider ):*/
|
|
$slider_effect = wpv_post_default('slider-effect', 'header-slider-effect');
|
|
$slider_style = get_slider_design($slider_effect);
|
|
|
|
$visiblegrid = wpv_get_option('header-slider-visiblegrid') ? ' visiblegrid' : '';
|
|
$halfwidth = intval( wpv_post_default('slider-fullwidth', 'has-fullwidth-slider') == 'true' ) ? ' fullwidth' : ' halfwidth';
|
|
?>
|
|
<div class="dgrid <?php echo $halfwidth.$visiblegrid?>">
|
|
<div class="header-slider-wrapper style-<?php echo $slider_style ?> animation-<?php echo $slider_effect?> <?php echo $halfwidth.$visiblegrid?> slider-helper <?php echo wpv_get_option('slider-helper-style')?> <?php if(wpv_get_option('slider-helper-classic')) echo 'classic'?>">
|
|
<?php get_template_part('slider', 'header') ?>
|
|
</div>
|
|
</div>
|
|
<?php endif ?>
|
|
|
|
<div class="boxed-layout">
|
|
<?php if ( is_page_template('template-russian-desk.php') ) { ?>
|
|
<!-- Russian desk menu -->
|
|
<div class="fixed-header-box">
|
|
<?php if (has_nav_menu('russian-desk-menu')) { ?>
|
|
<div class="section-header section-helper light">
|
|
<div class="container_16">
|
|
<div class="grid_5"> </div><!-- / .grid_5 -->
|
|
<div class="grid_11">
|
|
<nav class="section-nav">
|
|
<?php wp_nav_menu(array('fallback_cb' => 'wp_page_menu', 'depth' => 0, 'theme_location' => 'russian-desk-menu' )); ?>
|
|
</nav>
|
|
</div><!-- / .grid_11 -->
|
|
</div><!-- / .container_16 -->
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<?php } ?>
|
|
<div class="clearboth"></div>
|
|
<?php } ?>
|
|
<div class="slider-helper <?php echo wpv_get_option('slider-helper-style')?> <?php if(wpv_get_option('slider-helper-classic')) echo 'classic'?>">
|
|
<div class="slider-shadow"></div>
|
|
</div>
|
|
|
|
<?php if (1) /* !is_front_page() )*/ {?>
|
|
<!-- #main (do not remove this comment) -->
|
|
<div id="main" role="main" class="body-helper <?php echo wpv_get_option('body-helper-style')?> <?php if(wpv_get_option('body-helper-classic')) echo 'classic'?>">
|
|
|
|
<div class="container_16">
|
|
<div class="page-wrapper">
|
|
<?php } ?>
|