Exemplo n.º 1
0
 function waxom_body_class()
 {
     global $post;
     $return = '';
     if (!is_front_page() && waxom_option('header_title') != 0 && get_post_meta(get_the_ID(), 'page_header', true) != 'no-header' && !is_page_template('template-onepager.php') || is_search() && waxom_option('header_title') != 0) {
         $return .= ' page-with-title';
     }
     $header_style = 'style-default';
     if (waxom_header_style()) {
         $header_style = waxom_header_style();
     }
     if (waxom_option('topbar') && $header_style != 'style-boxed' && $header_style != 'style-transparent' && $header_style != 'style-minimal1') {
         $return .= ' page-with-topbar';
     }
     if (waxom_vc_active()) {
         $return .= ' page-with-vc';
     } else {
         $return .= ' page-without-vc';
     }
     return 'header-' . waxom_header_style() . $return;
     return null;
 }
Exemplo n.º 2
0
	<?php 
$header_style = 'style-default';
$header_style = waxom_header_style();
if (waxom_header_style('style') != 'disable') {
    $header_skin = 'light';
    if (waxom_option('header_skin')) {
        $header_skin = waxom_option('header_skin');
    }
    $dropdown_class = 'dropdown-dark';
    if (waxom_option('navbar_dropdown_color') == 'white' || get_post_meta(get_the_ID(), 'dropdown_color', true) == 'white') {
        $dropdown_class = 'dropdown-white';
    }
    ?>
	
	<nav id="site-navigation" class="<?php 
    echo waxom_header_style() . ' header-skin-' . $header_skin . ' ' . $dropdown_class;
    ?>
 sticky-navigation">
	
	<?php 
    if (waxom_option('topbar') && $header_style != 'style-boxed' && $header_style != 'style-transparent' && $header_style != 'style-minimal1') {
        waxom_print_topbar();
    }
    global $waxom_options;
    ?>
	
	<nav id="navigation">
	
		<div class="nav-inner">
			<div class="logo">
				<!-- Navigation Logo Link -->