Ejemplo n.º 1
0
<?php

/**
 * Custom page template
 *
 * Template Name: Fullwidth page
 *
 * @package    Auberge
 * @copyright  2015 WebMan - Oliver Juhas
 * @version    1.0
 */
get_header();
wmhook_entry_before();
if (have_posts()) {
    the_post();
    get_template_part('content', 'page');
    wp_reset_query();
}
wmhook_entry_after();
get_footer();
Ejemplo n.º 2
0
 function wm_wc_wrapper_top()
 {
     //Helper variables
     global $wc_page_id;
     $wc_page_id = is_shop() ? wc_get_page_id('shop') : null;
     $atts = apply_filters('wmhook_wm_wc_wrapper_sidebar_atts', array('page_id' => $wc_page_id), $wc_page_id);
     $sidebar = wm_sidebar_setup(false, $atts);
     $class = 'woocommerce-content';
     if ($sidebar['output']) {
         $class .= ' shop-columns-3';
     } else {
         $class .= ' shop-columns-4';
     }
     $class = apply_filters('wmhook_wm_wc_wrapper_class', $class);
     //Output
     echo "\r\n\r\n" . '<div class="wrap-inner">' . "\r\n\t" . '<div class="content-area site-content' . $sidebar['class_main'] . '">' . "\r\n\r\n";
     wmhook_entry_before();
     echo '<section class="' . $class . '">';
 }