Пример #1
0
 * @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;
Пример #2
0
            <?php 
    foreach ($g1_rows as $g1_row) {
        ?>
            <div class="g1-grid">
                <?php 
        $g1_columns = strlen($g1_row) ? explode('+', $g1_row) : array();
        ?>
                <?php 
        foreach ($g1_columns as $g1_column) {
            ?>
                <div class="g1-column <?php 
            echo $g1_mapping[$g1_column];
            ?>
">
                    <?php 
            g1_sidebar_render('prefooter-' . $g1_index++);
            ?>
                </div>
                <?php 
        }
        ?>
            </div>
            <?php 
    }
    ?>
        </div>
        <!-- END #g1-prefooter-widget-area -->
        <?php 
}
?>
Пример #3
0
                <?php 
    foreach ($g1_rows as $g1_row) {
        ?>
                <div class="g1-grid">
                    <?php 
        $g1_columns = strlen($g1_row) ? explode('+', $g1_row) : array();
        ?>
                    <?php 
        foreach ($g1_columns as $g1_column) {
            ?>
                        <div class="g1-column <?php 
            echo $g1_mapping[$g1_column];
            ?>
">
                            <?php 
            g1_sidebar_render('preheader-' . $g1_index++);
            ?>
                        </div>
                    <?php 
        }
        ?>
                </div>
                <?php 
    }
    ?>
            </div>
            <!-- END #g1-preheader-widget-area -->
            <?php 
}
?>
Пример #4
0
if (!defined('ABSPATH')) {
    die('No direct script access allowed');
}
// Custom hook
do_action('g1_sidebar_1_before');
if (apply_filters('g1_sidebar_1', true)) {
    ?>
<!-- BEGIN: #secondary -->
<div id="secondary" class="g1-sidebar widget-area" role="complementary">
	<div class="g1-inner">
		<?php 
    // Custom hook
    do_action('g1_sidebar_1_begin');
    $g1_sidebar = G1_Elements()->get('sidebar-1');
    // Apply custom filter
    $g1_sidebar = apply_filters('g1_sidebar_1_id', $g1_sidebar);
    $g1_sidebar = empty($g1_sidebar) || true === $g1_sidebar ? 'primary' : $g1_sidebar;
    g1_sidebar_render($g1_sidebar);
    // Custom hook
    do_action('g1_sidebar_1_end');
    ?>
	</div>
	<div class="g1-background">
        <div></div>
	</div>	
</div>
<!-- END: #secondary -->
<?php 
}
// Custom hook
do_action('g1_sidebar_1_after');
Пример #5
0
 * For the full license information, please view the Licensing folder
 * that was distributed with this source code.
 *
 * @package G1_Framework
 * @subpackage G1_Theme03
 * @since G1_Theme03 1.0.0
 */
// Prevent direct script access
if (!defined('ABSPATH')) {
    die('No direct script access allowed');
}
if (apply_filters('g1_sidebar_bbpress', true)) {
    ?>
    <!-- BEGIN: #secondary -->
    <div id="secondary" class="g1-sidebar widget-area" role="complementary">
        <div class="g1-inner">
            <?php 
    // Custom hook
    do_action('g1_sidebar_bbpress_begin');
    g1_sidebar_render('bbpress');
    // Custom hook
    do_action('g1_sidebar_bbpress_end');
    ?>
        </div>
        <div class="g1-background">
            <div></div>
        </div>
    </div>
    <!-- END: #secondary -->
<?php 
}