/**
 * Shows Header Part Content
 *
 * Shows the site logo, title, description, searchbar, social icons etc.
 */
function cleanretina_headerdetails()
{
    ?>
	<?php 
    global $cleanretina_theme_options_settings;
    $options = $cleanretina_theme_options_settings;
    $elements = array();
    $elements = array($options['social_facebook'], $options['social_twitter'], $options['social_googleplus'], $options['social_linkedin'], $options['social_pinterest'], $options['social_youtube'], $options['social_vimeo'], $options['social_flickr'], $options['social_tumblr'], $options['social_myspace'], $options['social_rss']);
    $flag = 0;
    if (!empty($elements)) {
        foreach ($elements as $option) {
            if (!empty($option)) {
                $flag = 1;
            } else {
                $flag = 0;
            }
            if (1 == $flag) {
                break;
            }
        }
    }
    ?>

	<div class="wrapper clearfix">
		<div class="hgroup-wrap clearfix">
			<?php 
    if (0 == $options['hide_header_searchform'] || 1 == $flag) {
        ?>
					<section class="hgroup-right">
						<?php 
        cleanretina_socialnetworks($flag);
        ?>
						<?php 
        if (0 == $options['hide_header_searchform']) {
            get_search_form();
        }
        ?>
					</section><!-- .hgroup-right -->	
			<?php 
    }
    ?>
	

			<hgroup id="site-logo" class="clearfix">
				<?php 
    if (is_home() || is_archive() || is_search() || is_page_template('page-template-corporate.php')) {
        ?>
				<h1 id="site-title"><a href="<?php 
        echo esc_url(home_url('/'));
        ?>
" title="<?php 
        echo esc_attr(get_bloginfo('name', 'display'));
        ?>
" rel="home"><?php 
        bloginfo('name');
        ?>
</a></h1>
				<h2 id="site-description"><?php 
        bloginfo('description');
        ?>
</h2>
				<?php 
    } else {
        ?>
				<h3 id="site-title"><a href="<?php 
        echo esc_url(home_url('/'));
        ?>
" title="<?php 
        echo esc_attr(get_bloginfo('name', 'display'));
        ?>
" rel="home"><?php 
        bloginfo('name');
        ?>
</a></h3>
				<h4 id="site-description"><?php 
        bloginfo('description');
        ?>
</h4>
				<?php 
    }
    ?>
			</hgroup><!-- #site-logo -->

			<?php 
    $header_image = get_header_image();
    if (!empty($header_image)) {
        ?>
					<a href="<?php 
        echo esc_url(home_url('/'));
        ?>
" title="<?php 
        echo esc_attr(get_bloginfo('name', 'display'));
        ?>
"><img src="<?php 
        echo $header_image;
        ?>
" class="header-image" width="<?php 
        echo get_custom_header()->width;
        ?>
" height="<?php 
        echo get_custom_header()->height;
        ?>
" alt="<?php 
        echo esc_attr(get_bloginfo('name', 'display'));
        ?>
"></a>
			<?php 
    }
    ?>
			
		</div><!-- .hgroup-wrap -->		
		<?php 
    if (has_nav_menu('primary')) {
        $args = array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '<ul class="root">%3$s</ul>');
        echo '<nav id="access" class="clearfix">';
        wp_nav_menu($args);
        echo '</nav><!-- #access -->';
    } else {
        echo '<nav id="access" class="clearfix">';
        wp_page_menu(array('menu_class' => 'root'));
        echo '</nav><!-- #access -->';
    }
    ?>
 		
 		<?php 
    if ('above-slider' == $options['slogan_position'] && (is_home() || is_front_page())) {
        if (function_exists('cleanretina_home_slogan')) {
            cleanretina_home_slogan();
        }
    }
    ?>
   	<?php 
    if (is_home() || is_front_page()) {
        if ("0" == $options['disable_slider']) {
            if (function_exists('cleanretina_pass_cycle_parameters')) {
                cleanretina_pass_cycle_parameters();
            }
            if (function_exists('cleanretina_featured_post_slider')) {
                cleanretina_featured_post_slider();
            }
        }
    } else {
        if (function_exists('cleanretina_breadcrumb')) {
            cleanretina_breadcrumb();
        }
    }
    ?>
 		<?php 
    if ('below-slider' == $options['slogan_position'] && (is_home() || is_front_page())) {
        if (function_exists('cleanretina_home_slogan')) {
            cleanretina_home_slogan();
        }
    }
    ?>
	</div><!-- .wrapper -->

<?php 
}
Ejemplo n.º 2
0
/**
 * Shows Header Part Content
 *
 * Shows the site logo, title, description, searchbar, social icons etc.
 */
function cleanretina_headerdetails()
{
    ?>
	<?php 
    global $cleanretina_theme_options_settings;
    $options = $cleanretina_theme_options_settings;
    $elements = array();
    $elements = array($options['social_facebook'], $options['social_twitter'], $options['social_googleplus'], $options['social_linkedin'], $options['social_pinterest'], $options['social_youtube'], $options['social_vimeo'], $options['social_flickr'], $options['social_tumblr'], $options['social_myspace'], $options['social_rss']);
    $flag = 0;
    if (!empty($elements)) {
        foreach ($elements as $option) {
            if (!empty($option)) {
                $flag = 1;
            } else {
                $flag = 0;
            }
            if (1 == $flag) {
                break;
            }
        }
    }
    ?>

	<div class="wrapper clearfix">
		<div class="hgroup-wrap">
			<?php 
    if (0 == $options['hide_header_searchform'] || 1 == $flag) {
        ?>
					<section class="hgroup-right">
						<?php 
        cleanretina_socialnetworks($flag);
        ?>
						<?php 
        if (0 == $options['hide_header_searchform']) {
            get_search_form();
        }
        ?>
					</section><!-- .hgroup-right -->	
			<?php 
    }
    ?>
	

			<hgroup id="site-logo" class="clearfix">
			
				<a href="<?php 
    echo get_option('home');
    ?>
"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Logo2.png" border="0" title="MULTIEMPAC - El bueno para sus desechables"></a>
			
			</hgroup><!-- #site-logo -->

			<?php 
    $header_image = get_header_image();
    if (!empty($header_image)) {
        ?>
					<a href="<?php 
        echo esc_url(home_url('/'));
        ?>
" title="<?php 
        echo esc_attr(get_bloginfo('name', 'display'));
        ?>
"><img src="<?php 
        echo $header_image;
        ?>
" class="header-image" width="<?php 
        echo get_custom_header()->width;
        ?>
" height="<?php 
        echo get_custom_header()->height;
        ?>
" alt="<?php 
        echo esc_attr(get_bloginfo('name', 'display'));
        ?>
"></a>
			<?php 
    }
    ?>
			
		</div><!-- .hgroup-wrap -->		
		<?php 
    if (has_nav_menu('primary')) {
        $args = array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '<ul class="root">%3$s</ul>');
        echo '<nav id="access" class="clearfix">';
        wp_nav_menu($args);
        echo '</nav><!-- #access -->';
    } else {
        echo '<nav id="access" class="clearfix">';
        wp_page_menu(array('menu_class' => 'root'));
        echo '</nav><!-- #access -->';
    }
    ?>
 		
 		<?php 
    if ('above-slider' == $options['slogan_position'] && (is_home() || is_front_page())) {
        if (function_exists('cleanretina_home_slogan')) {
            cleanretina_home_slogan();
        }
    }
    ?>
   	<?php 
    if (is_home() || is_front_page()) {
        if ("0" == $options['disable_slider']) {
            if (function_exists('cleanretina_pass_cycle_parameters')) {
                cleanretina_pass_cycle_parameters();
            }
            if (function_exists('cleanretina_featured_post_slider')) {
                cleanretina_featured_post_slider();
            }
        }
    } else {
        if (function_exists('cleanretina_breadcrumb')) {
            cleanretina_breadcrumb();
        }
    }
    ?>
 		<?php 
    if ('below-slider' == $options['slogan_position'] && (is_home() || is_front_page())) {
        if (function_exists('cleanretina_home_slogan')) {
            cleanretina_home_slogan();
        }
    }
    ?>
 		
 		<ul id="MenuMultiempac">
    
		    <li>
		    	<a href="?page_id=20" class="ID_inicio">INICIO</a>
		    </li>
		
		    <li><a href="?page_id=5" class="drop ID_productos">PRODUCTOS</a>
		    
		        <div class="dropdown_5columns">
		           
		            <div class="col_3">
		            
		            	<div class="Producto">
		                	<a href="http://multiempac.com/productos/"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto3.png" title="Vasos" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Vasos</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Platos"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto2.png" title="Platos y charolas" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Platos y<br>Charolas</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Contenedores"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto5.png" title="Contenedores" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Contenedores</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Envases"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto4.png" title="Envases" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Envases</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Domos"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto6.png" title="Domos, bisagras" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Domos,<br>Bisagras</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Popotes"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto7.png" title="Popotes" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Popotes</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Cubiertos"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto1.png" title="Cubiertos" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Cubiertos</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Papel"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto8.png" title="Papel institucional" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Papel<br>institucional</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Botellas"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto9.png" title="Botellas" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Botellas</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Farmaceuticos"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto10.png" title="Farmacéuticos" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Farmacéuticos</a>
		                </div>
		                
		                <div class="Producto">
		                	<a href="http://multiempac.com/productos/#_Bolsas"><img src="<?php 
    bloginfo('template_directory');
    ?>
/images/Producto11.png" title="Bolsas" width="68" height="62" class="img_left imgshadow" border="0" /></a>
		                	<br>
		                	<a href="">Bolsas</a>
		                </div>
		            
		            <!-- end col_3 -->    
		            </div>
		        
		        <!-- end dropdown_5columns -->
		        </div>
		    
		    </li>
		    
		    <li>
		    	<a href="?page_id=211" class="ID_marcas">MARCAS</a>
		    </li>
		    
		    <li>
		    	<a href="?page_id=7" class="ID_sucursales">SUCURSALES</a>
		    </li>
		    
		    <li>
		    	<a href="?page_id=9" class="ID_empresa">EMPRESA</a>
		    </li>
		    
		    <li>
		    	<a href="?page_id=11" class="ID_contacto">CONTACTO</a>
		    </li>
		
		<!-- end MenuMultiempac -->
		</ul>
		
		<button class="nav-button">Toggle Navigation</button>

		<ul class="primary-nav">
		
			<li><a href="?page_id=20">Inicio</a></li>
			<li><a href="?page_id=5">Productos</a></li>
			<li><a href="?page_id=211">Marcas</a></li>
			<li><a href="?page_id=7">Sucursales</a></li>
			<li><a href="?page_id=9">Empresa</a></li>
			<li><a href="?page_id=11">Contacto</a></li>
		
		</ul>
 		
 	<!-- wrapper -->
	</div>

<?php 
}