<?php $sidebar_id = "default_sidebar"; $sidebar_id = get_post_meta(waxom_get_id(), 'page_sidebar', true); if (is_archive() || is_search()) { $sidebar_id = 'archives'; } if (!$sidebar_id || !is_active_sidebar($sidebar_id)) { $sidebar_id = 'default_sidebar'; } if (class_exists('Woocommerce')) { if (is_shop() || is_product_category() || is_product_tag()) { $sidebar_id = "woocommerce_shop"; } } $widget_style = 'default'; if (waxom_option('widget_style')) { $widget_style = waxom_option('widget_style'); } ?> <div id="sidebar" class="page_sidebar sidebar-style-<?php echo esc_attr($widget_style); ?> "> <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar($sidebar_id)) { } ?> </div>
function waxom_header_style() { global $post; $style = 'style-default'; $style = waxom_option('header_style'); if (!is_search() && !is_archive() && !is_tag()) { if (get_post_meta(waxom_get_id(), 'navbar_style', TRUE) && get_post_meta(waxom_get_id(), 'navbar_style', TRUE) != $style && get_post_meta(waxom_get_id(), 'navbar_style', TRUE) != 'default') { $style = esc_attr(get_post_meta(waxom_get_id(), 'navbar_style', TRUE)); } } return $style; }
} if ($footer_color == 'dark' || get_post_meta(waxom_get_id(), 'footer_color', TRUE) == 'default' && waxom_option('footer_skin') == 'dark') { $footer_color_class = 'dark-footer'; } if (waxom_option("footer_style") == 'centered') { $footer_style = 'footer-centered'; } if (get_post_meta(waxom_get_id(), 'footer_style', TRUE) && get_post_meta(waxom_get_id(), 'footer_style', TRUE) != 'default') { $footer_style = get_post_meta(waxom_get_id(), 'footer_style', TRUE); } ?> </div> <?php if (waxom_option('footer_widgets') == true && is_active_sidebar('footer1') && get_post_meta(waxom_get_id(), 'footer_widgets', TRUE) != 'disabled' || get_post_meta(waxom_get_id(), 'footer_widgets', TRUE) == 'enabled' && is_active_sidebar('footer1')) { if (waxom_option("footer_widgets_skin") == "dark" || waxom_option("footer_widgets_skin") == "white") { $footer_widgets_class = 'footer-widgets-' . waxom_option("footer_widgets_skin"); } elseif ($footer_color == 'dark') { $footer_widgets_class = 'footer-widgets-dark'; } else { $footer_widgets_class = 'footer-widgets-light'; } ?> <div id="footer-widgets" class="<?php echo 'footer-' . esc_attr($footer_color) . ' ' . esc_attr($footer_widgets_class); ?> "> <div class="container"> <div class="inner"> <?php
<?php $post = $wp_query->post; get_header(); $layout = 'fullwidth'; if (get_post_meta(waxom_get_id(), 'page_layout', true)) { $layout = get_post_meta(waxom_get_id(), 'page_layout', true); } $page_width = get_post_meta(waxom_get_id(), 'page_width', true); if (!$page_width) { $page_width = 'content'; } $page_links = ''; ?> <div class="page-holder page-layout-<?php echo esc_attr($layout); ?> "> <?php // If Visual Composer is not enabled for the page if (!waxom_vc_active() || $layout == 'sidebar_right' || $layout == 'sidebar_left') { echo '<div class="inner">'; } if ($layout != "fullwidth" || $layout == 'fullwidth' && !waxom_vc_active()) { echo '<div class="page_inner">'; } if (have_posts()) { while (have_posts()) { the_post();