Пример #1
0
    if ($v->field == 'taxonomy') {
        ?>
                <li>
                    <h5 class="booking-filters-title"><?php 
        echo esc_html($v->title);
        ?>
</h5>
                    <?php 
        $all_attribute = get_terms($v->taxonomy);
        foreach ($all_attribute as $k_2 => $v_2) {
            if (!empty($_REQUEST['filter_taxonomy'][$v_2->taxonomy][$v_2->slug]) and $_REQUEST['filter_taxonomy'][$v_2->taxonomy][$v_2->slug] == $v_2->term_id) {
                $checked = 'checked="checked"';
                $link = TravelHelper::build_url_muti_array('filter_taxonomy', $v_2->taxonomy, $v_2->slug, '');
            } else {
                $checked = "";
                $link = TravelHelper::build_url_muti_array('filter_taxonomy', $v_2->taxonomy, $v_2->slug, $v_2->term_id);
            }
            ?>
                    <div class="checkbox">
                        <label>
                            <input <?php 
            echo esc_attr($checked);
            ?>
 class="i-check" type="checkbox" data-url="<?php 
            echo esc_url($link);
            ?>
" />
                            <?php 
            echo esc_html($v_2->name);
            ?>
                           <!-- ( <?php