Brian
Forum Replies Created
Viewing 1 replies (of 1 total)
-
I would like to add to this that if you disable locations in advanced search you will have an empty Location Options div. The code below is from form-advanced.php the categories and tags have a check for if they are enabled, but Countries does not
<section class="em-search-advanced-sections input"> <section class="em-search-section-location em-search-advanced-section"> <header>Location Options</header> <div class="em-search-section-content"> <?php em_locate_template('templates/search/location.php', true, array('args'=>$args)); if( !empty($args['search_geo_units']) ) em_locate_template('templates/search/geo-units.php',true, array('args'=>$args)); if( !empty($args['search_eventful']) ) em_locate_template('templates/search/eventful-locations.php',true,array('args'=>$args)); ?> </div> </section> <?php if( get_option('dbem_categories_enabled') && !empty($args['search_categories']) ): ?> <section class="em-search-section-categories em-search-advanced-section"> <header><?php echo esc_html($args['category_label']); ?></header> <div class="em-search-section-content"> <?php em_locate_template('templates/search/categories.php',true,array('args'=>$args)); ?> </div> </section> <?php endif; ?> <?php if( get_option('dbem_tags_enabled') && !empty($args['search_tags']) ): ?> <section class="em-search-section-tags em-search-advanced-section"> <header><?php echo esc_html($args['tag_label']); ?></header> <div class="em-search-section-content"> <?php em_locate_template('templates/search/tags.php',true,array('args'=>$args)); ?> </div> </section> <?php endif; ?> </section>
Viewing 1 replies (of 1 total)