<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}
global $wp_registered_sidebars;
if (!woocommerce_products_will_display()) return;
$woocommerce_customize = g5plusRubyBuild()->options()->get_woocommerce_customize();
?>
<div data-table-cell="true" class="gsf-catalog-filter gf-table-cell">
    <div class="gf-table-cell-left">
    <?php if(isset($woocommerce_customize['left'])): ?>
        <ul class="gf-inline">
            <?php foreach ($woocommerce_customize['left'] as $key => $value): ?>
                <li class="gsf-catalog-filter-<?php echo esc_attr($key)?>">
                    <?php g5plusRubyBuild()->helper()->getTemplate("woocommerce/loop/catalog-item/{$key}"); ?>
                </li>
            <?php endforeach; ?>
        </ul>
    <?php endif; ?>
    </div>
    <div class="gf-table-cell-right">
    <?php if(isset($woocommerce_customize['right'])): ?>
        <ul class="gf-inline">
            <?php foreach ($woocommerce_customize['right'] as $key => $value): ?>
                <li class="gsf-catalog-filter-<?php echo esc_attr($key)?>">
                    <?php g5plusRubyBuild()->helper()->getTemplate("woocommerce/loop/catalog-item/{$key}"); ?>
                </li>
            <?php endforeach; ?>
        </ul>
    <?php endif; ?>
    </div>
</div>
