function tesseract_header_right_content($content)
{
    switch ($content) {
        // Step 1 -> nothing
        default:
            break;
            // Step 2 -> logo
        // Step 2 -> logo
        case 'buttons':
            $code = get_theme_mod('tesseract_header_content_if_button');
            if (get_theme_mod('tesseract_header_right_content') == 'buttons' && (!$code || !isset($code))) {
                echo '<div id="header-button-container"><div id="header-button-container-inner"><a href="/" class="button primary-button">Primary Button</a><a href="/" class="button secondary-button">Secondary Button</a></div></div>';
            } else {
                echo '<div id="header-button-container"><div id="header-button-container-inner">' . do_shortcode($code) . '</div></div>';
            }
            break;
            // Step 3 -> social
        // Step 3 -> social
        case 'social':
            ?>
			
            <div class="social-wrapper cf">	
				<ul class="hr-social">
                	<?php 
            $sn = array('fb' => __('Facebook', 'tesseract'), 'tw' => __('Twitter', 'tesseract'), 'gplus' => __('Google Plus', 'tesseract'), 'li' => __('LinkedIn', 'tesseract'), 'yt' => __('YouTube', 'tesseract'), 'vim' => __('Vimeo', 'tesseract'), 'tumb' => __('Tumblr', 'tesseract'), 'fr' => __('FlickR', 'tesseract'), 'pin' => __('Pinterest', 'tesseract'), 'dr' => __('Dribbble', 'tesseract'));
            foreach ($sn as $sn_short => $sn_full) {
                $sn_img = get_theme_mod('tesseract_' . $sn_short . '_image');
                $sn_url = get_theme_mod('tesseract_' . $sn_short . '_url');
                if ($sn_img && $sn_url) {
                    echo '<li><a title="' . __('Follow Us on ', 'tesseract') . $sn_full . '" href="' . $sn_url . '" target="_blank"><img src="' . $sn_img . '" width="24" height="24" alt="' . $sn_full . ' icon" /></a></li>';
                }
            }
            ?>

				</ul>
			</div>
            
		<?php 
            break;
            // Step 5 -> search
        // Step 5 -> search
        case 'search':
            get_search_form();
            break;
            // Step 6 -> menu
        // Step 6 -> menu
        case 'menu':
            ?>
		
          	<nav id="header-right-menu" role="navigation">
				<?php 
            tesseract_output_menu(FALSE, FALSE, 'primary_right', 0);
            ?>
			</nav>						
		
	<?php 
    }
}
function tesseract_header_right_content($content)
{
    switch ($content) {
        // Step 1 -> nothing
        default:
            break;
            // Step 2 -> logo
        // Step 2 -> logo
        case 'buttons':
            $code = get_theme_mod('tesseract_header_content_if_button');
            if (get_theme_mod('tesseract_header_right_content') == 'buttons' && (!$code || !isset($code))) {
                echo '<div id="header-button-container"><div id="header-button-container-inner"><a href="/" class="button primary-button">Primary Button</a><a href="/" class="button secondary-button">Secondary Button</a></div></div>';
            } else {
                echo '<div id="header-button-container"><div id="header-button-container-inner">' . do_shortcode($code) . '</div></div>';
            }
            break;
            // Step 3 -> social
        // Step 3 -> social
        case 'social':
            ?>

            <div class="social-wrapper cf">
				<ul class="hr-social">
					<?php 
            tesseract_display_social_network_list_items();
            ?>
				</ul>
			</div>

		<?php 
            break;
            // Step 5 -> search
        // Step 5 -> search
        case 'search':
            get_search_form();
            break;
            // Step 6 -> menu
        // Step 6 -> menu
        case 'menu':
            ?>

          	<nav id="header-right-menu" role="navigation">
				<?php 
            tesseract_output_menu(FALSE, FALSE, 'primary_right', 0);
            ?>
			</nav>

	<?php 
    }
}
Ejemplo n.º 3
0
?>

                        <?php 
$menuSelected = get_theme_mod('tesseract_header_menu_select');
if ($menuSelected !== 'none') {
    ?>

                                <nav id="site-navigation" class="<?php 
    echo $mmdClass;
    ?>
 main-navigation top-navigation <?php 
    echo $hmenusize_class;
    ?>
" role="navigation">
                                    <?php 
    tesseract_output_menu(FALSE, FALSE, 'primary', 0);
    ?>
                                </nav><!-- #site-navigation -->

                      	<?php 
}
?>

            		</div>
            	</div>

                <?php 
get_template_part('content', 'header-rightcontent');
?>

            </div>
Ejemplo n.º 4
0
}
//EOF left menu - IS before content
?>


                <?php 
$menuSelected = get_theme_mod('tesseract_footer_menu_select');
if ($menuSelected !== 'none') {
    ?>


					<section id="footer-horizontal-menu" class="cf <?php 
    echo $footerNav_class;
    ?>
"><?php 
    tesseract_output_menu(FALSE, FALSE, 'secondary', 1);
    ?>
</section>
              	<?php 
}
?>


            </div><!-- EOF horizontal-menu-wrap -->

            <?php 
tesseract_footer_branding();
?>


      	</div><!-- EOF footer-banner -->