?> </select> </div> <div class="filtr-select"> <div class="filtr-title"><?php _e('Район', 'wp_panda'); ?> </div> <select name="district" data-placeholder="Выберите район"> <?php echo '<option></option>'; if (!empty($city_district)) { $n = 1; foreach ($city_district as $one => $key) { echo '<option value="' . $n . '">' . upFirstLetter($key) . '</option>'; $n++; } } else { echo '<option>' . __('Районы не введены', 'wp_panda') . '</option>'; } ?> </select> </div> <div class="filtr-radio"> <div class="filtr-title"><?php _e('Место занятий', 'wp_panda'); ?> </div> <div class="radio"><input id="r1" type="radio" name="location" value="all"><label for="r1"><?php
foreach ($categories as $cat) { if ($cat->parent != 0) { echo '<option value="' . $cat->term_id . '">' . upFirstLetter($cat->name) . '</option>'; } } } ?> </select> </div> <div class="filtr-select"> <div class="filtr-title">Район</div> <select name="district"> <?php if (!empty($city_district)) { foreach ($city_district as $one) { echo '<option value="' . $one . '">' . upFirstLetter($one) . '</option>'; } } else { echo '<option>' . __('Районы не введены', 'wp_panda') . '</option>'; } ?> </select> </div> <div class="filtr-radio"> <div class="filtr-title">Место занятий</div> <div class="radio"><input id="r1" type="radio" name="location_lesson" value="all"><label for="r1">Не важно</label></div> <div class="radio"><input id="r2" type="radio" name="location_lesson" value="road"><label for="r2">У ученика</label></div> <div class="radio"><input id="r3" type="radio" name="location_lesson" value="home"><label for="r3">У репетитора</label></div> <!--div class="radio"><input id="r4" type="radio" name="mesto" ><label for="r4">Online (Skype)</label></div--> </div>
<select id="resal"> <?php $args = array('hide_empty' => false, 'order' => 'DESC'); $categories = get_terms(array('category'), $args); if ($categories) { foreach ($categories as $cat) { print_r($cat); if ($cat->parent == 0) { continue; } if (!empty($_GET['id']) && $_GET['id'] == $cat->term_id) { $cge = ' selected="selected"'; } else { $cge = ''; } echo '<option value="' . $cat->term_id . '"' . $cge . '>' . upFirstLetter($cat->name) . '</option>'; } } ?> </select> </div> <?php if (!empty($_GET['id'])) { echo '<div id="flag" data-flag="' . $_GET['id'] . '"></div>'; } ?> <div class="review-title">Отзывы о репетиторах "Садись, 5!"</div> <div class="clearfix"></div> <div class="rev-container">