Ejemplo n.º 1
0
    echo apply_filters('the_content', $content);
    ?>
                    </div>
                </div>
            </div>
        <?php 
}
?>

        <div class="row">

            <div class="col-md-12">

                <div class="row">
                    <?php 
$brands = compare_get_organized('product-brand');
$counter = 0;
if (!empty($brands)) {
    foreach ($brands as $brand) {
        if ($counter == 6) {
            $counter = 0;
            echo '</div><div class="row">';
        }
        $counter++;
        ?>
                            <div class="col-sm-2">
                                <div class="white-block">
                                    <div class="store-name">
                                        <a href="<?php 
        echo esc_url(add_query_arg(array($compare_slugs['product-brand'] => $brand->slug), $COMPARE_SEARCH_URL));
        ?>
Ejemplo n.º 2
0
<?php

/*
    Template Name: All Categories
*/
get_header();
the_post();
$product_cats = compare_get_organized('product-cat');
global $COMPARE_SEARCH_URL;
global $compare_slugs;
?>

<section class="contact-page">
    <div class="container">

        <?php 
$content = get_the_content();
if (!empty($content)) {
    ?>
            <div class="white-block">
                <div class="white-block-content">
                    <div class="page-content clearfix">
                        <?php 
    echo apply_filters('the_content', $content);
    ?>
                    </div>
                </div>
            </div>
        <?php 
}
?>