function vntd_navbar_style($type = NULL)
{
    global $smof_data, $post;
    $navbar_style = $navbar_color = '';
    if (array_key_exists('vntd_navbar_style', $smof_data)) {
        $navbar_style = $smof_data['vntd_navbar_style'];
    }
    if (get_post_meta(vntd_get_id(), 'navbar_style', TRUE) && get_post_meta(vntd_get_id(), 'navbar_style', TRUE) != 'default') {
        $navbar_style = get_post_meta(vntd_get_id(), 'navbar_style', TRUE);
    }
    if (array_key_exists('vntd_navbar_color', $smof_data)) {
        $navbar_color = $smof_data['vntd_navbar_color'];
    }
    if (get_post_meta(vntd_get_id(), 'navbar_color', TRUE) && get_post_meta(vntd_get_id(), 'navbar_color', TRUE) != 'default') {
        $navbar_color = get_post_meta(vntd_get_id(), 'navbar_color', TRUE);
    }
    $navfirst_class = $navtop_class = '';
    $navcolor_class = 'white-nav b-shadow';
    $navbar_style1 = true;
    if (is_single() && get_post_type() == 'team' || is_single() && get_post_type() == 'testimonials' || is_single() && get_post_type() == 'services') {
        $navbar_style = 'style1';
        //echo $navbar_style;
    }
    if (!is_search() && !is_archive() && !is_404()) {
        if ($navbar_style == 'style2' || $navbar_style == 'style3') {
            $navfirst_class = ' first-nav';
        }
        if ($navbar_color == 'dark') {
            $navcolor_class = 'dark-nav';
        }
        if ($navbar_style == 'style3') {
            $navtop_class = ' nav-from-top';
        }
        if ($navbar_style == 'style2' || $navbar_style == 'style3') {
            $navbar_style1 = false;
        }
    }
    if ($type == 'id') {
        if ($navbar_style1 == true) {
            return '-sticky';
        }
    } elseif ($type == 'style') {
        return $navbar_style;
    } else {
        return $navcolor_class . $navtop_class . $navfirst_class . ' navbar-' . $navbar_style;
    }
}
Example #2
0
    }
    ?>
	

			</div>
			<div class="nav-menu nav-menu-mobile clearfix semibold">
							 
				<?php 
    if (has_nav_menu('primary')) {
        wp_nav_menu(array('theme_location' => 'primary', 'container' => false, 'menu_class' => 'nav uppercase font-primary', 'walker' => new Vntd_Custom_Menu_Class()));
    } else {
        echo '<span class="vntd-no-nav">No custom menu created!</span>';
    }
    if (class_exists('Woocommerce') && $smof_data['vntd_topbar_woocommerce']) {
        vntd_woo_nav_cart();
    }
    ?>
	

			</div>
		</div>
	</nav>
	
	<?php 
}
if (!is_front_page() && $smof_data['vntd_header_title'] != 0 && get_post_meta(vntd_get_id(), 'page_header', true) != 'no-header' && !is_404() && !is_page_template('template-onepager.php')) {
    vntd_print_page_title();
}
?>
	
	<div id="page-content">
Example #3
0
<?php

$post = $wp_query->post;
get_header();
$layout = get_post_meta(vntd_get_id(), 'page_layout', true);
$page_width = get_post_meta(vntd_get_id(), 'page_width', true);
if (!$page_width) {
    $page_width = 'content';
}
$page_links = '';
?>

<div class="page-holder page-layout-<?php 
echo $layout;
?>
">
		
	<?php 
if ($page_width != 'fullwidth') {
    echo '<div class="inner clearfix">';
}
if ($layout != "fullwidth") {
    echo '<div class="page_inner">';
}
if (have_posts()) {
    while (have_posts()) {
        the_post();
        the_content();
    }
}
if ($layout != "fullwidth") {
Example #4
0
    $footer_color = get_post_meta(vntd_get_id(), 'footer_color', TRUE);
}
if ($footer_color == 'dark' || get_post_meta(vntd_get_id(), 'footer_color', TRUE) == 'default' && $smof_data['vntd_footer_skin'] == 'dark') {
    $footer_color_class = 'dark-footer';
}
if (array_key_exists('vntd_footer_style', $smof_data)) {
    if ($smof_data["vntd_footer_style"] == 'classic') {
        $footer_style = 'footer-classic';
    }
}
?>

	</div>

	<?php 
if ($smof_data['vntd_footer_widgets'] == 'enabled' && is_active_sidebar('footer1') || get_post_meta(vntd_get_id(), 'footer_widgets', TRUE) == 'enabled' && is_active_sidebar('footer1')) {
    if ($smof_data["vntd_footer_widgets_skin"] == "dark" || $smof_data["vntd_footer_widgets_skin"] == "white") {
        $footer_widgets_class = 'footer-widgets-' . $smof_data["vntd_footer_widgets_skin"];
    } elseif ($footer_color_class == 'dark-footer') {
        $footer_widgets_class = 'footer-widgets-dark';
    }
    ?>
	<div id="footer-widgets" class="<?php 
    echo $footer_widgets_class;
    ?>
">
		<div class="container">
			<div class="inner">
				<?php 
    for ($i = 1; $i <= vntd_get_footer_cols(); $i++) {
        if ($i == $footer_cols) {
 function vntd_header_style()
 {
     global $post;
     $style = 'style-default';
     $style = vntd_option('navbar_style');
     if (!is_search() && !is_archive() && !is_tag()) {
         if (get_post_meta(vntd_get_id(), 'navbar_style', TRUE) && get_post_meta(vntd_get_id(), 'navbar_style', TRUE) != $style && get_post_meta(vntd_get_id(), 'navbar_style', TRUE) != 'default') {
             $style = get_post_meta(vntd_get_id(), 'navbar_style', TRUE);
         }
     }
     return $style;
 }