public function get_settings() { return $this->settings; } public function render_wrapper_start() { echo '<div id="primary">'; echo '<div id="content" role="main">'; } public function render_wrapper_end() { echo '</div>'; echo '</div>'; } public function setup_sidebars($sidebars) { $sidebars[] = $this->get_setting('sidebar_name'); return $sidebars; } } function G1_WooCommerce_Module() { static $instance; if (!isset($instance)) { $instance = new G1_WooCommerce_Module(); } return $instance; } // Fire in the hole :) G1_WooCommerce_Module();
* @since G1_Theme03 1.0.0 */ // Prevent direct script access if (!defined('ABSPATH')) { die('No direct script access allowed'); } // Custom hook do_action('g1_sidebar_shop_before'); if (apply_filters('g1_sidebar_shop', true)) { ?> <!-- BEGIN: #secondary --> <div id="secondary" class="g1-sidebar widget-area" role="complementary"> <div class="g1-inner"> <?php // Custom hook do_action('g1_sidebar_shop_begin'); g1_sidebar_render(G1_WooCommerce_Module()->get_setting('sidebar_name')); // Custom hook do_action('g1_sidebar_shop_end'); ?> </div> <div class="g1-background"> <div></div> </div> </div> <!-- END: #secondary --> <?php } // Custom hook do_action('g1_sidebar_shop_after'); global $wp_widget_factory;