Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if function( 'is_page_template', 'templates/sexdate-search.php' ) %}
- {% if countries %}
- <div class="search-criteria search-criteria-countries{{ has_sidebar }}">
- <div class="search-criteria-header">
- {{ __( 'Country', 'sexdates' ) }}
- </div>
- <div class="xscroll-select">
- {% for country in countries %}
- <div class="input_option">
- <label for="{{ country.label }}" class="screen-reader-text">{{ country.label }}</label>
- <input type="checkbox" name="country[]" id="{{ country.label }}" class="{{ country.value }}" value="{{ country.value }}"/>{{ country.label }}
- </div>
- {% endfor %}
- </div>
- </div>
- {% endif %}
- {% endif %}
- <div class="search-criteria search-criteria-states{{ has_sidebar }}">
- <div class="search-criteria-header">
- {{ __( 'State', 'sexdates' ) }}
- <small><span>({{ __( 'scroll for more', 'sexdates' ) }})</span></small>
- </div>
- {% if states_nl or states_be %}
- <div class="scroll-select">
- <div class="input_option select_note{% if function( 'is_page_template', 'templates/sexdate-search.php' ) == false %} hidden{% endif %}">
- <small>{{ __( 'Select a country', 'sexdates' ) }}</small>
- </div>
- {% if country_code == 'NL' or function( 'is_page_template', 'templates/sexdate-search.php' ) %}
- {% for state in states_nl %}
- <div class="input_option{% if post.post_name in ['search','zoeken','suchen'] %} hidden{% endif %} nl">
- <label for="{{ state.label }}" class="screen-reader-text">{{ state.label }}</label>
- <input type="checkbox" name="state[]" id="{{ state.label }}" class="{{ state.value }}" value="{{ state.value }}"{% if state.value == state_search_value %} checked="checked"{% endif %}/>{{ state.label }}
- </div>
- {% endfor %}
- {% endif %}
- {% if country_code == 'BE' or function( 'is_page_template', 'templates/sexdate-search.php' ) %}
- {% for state in states_be %}
- <div class="input_option{% if post.post_name in ['search','zoeken','suchen'] %} hidden{% endif %} be">
- <label for="{{ state.label }}" class="screen-reader-text">{{ state.label }}</label>
- <input type="checkbox" name="state[]" id="{{ state.label }}" class="{{ state.value }}" value="{{ state.value }}"{% if state.value == state_search_value %} checked="checked"{% endif %}/>{{ state.label }}
- </div>
- {% endfor %}
- {% endif %}
- <div class="input_option hidden lu">
- {{ __( 'There are no states in Luxembourg', 'sexdates' ) }}
- </div>
- </div>
- {% endif %}
- </div>
- <div class="search-criteria search-criteria-cities{{ has_sidebar }}">
- <div class="search-criteria-header">
- {{ __( 'City', 'sexdates' ) }}
- <small><span>({{ __( 'scroll for more', 'sexdates' ) }})</span></small>
- </div>
- {% if cities_nl or cities_be %}
- <div class="scroll-select">
- <div class="input_option select_note hidden">
- {#<small>{{ __( 'Select a country', 'sexdates' ) }}</small>#}
- </div>
- {% for city in cities_nl %}
- <div class="input_option {{ city.state }} hidden">
- <label for="{{ city.label }}" class="screen-reader-text">{{ city.label }}</label>
- <input type="checkbox" name="city[]" class="{{ city.state }}" id="{{ city.label }}" value="{{ city.value }}"{% if city.value == city_search_value %} checked="checked"{% endif %}/>{{ city.label }}
- </div>
- {% endfor %}
- {% if country_code != 'NL' %}
- {% for city in cities_be %}
- <div class="input_option {{ city.state }} hidden">
- <label for="{{ city.label }}" class="screen-reader-text">{{ city.label }}</label>
- <input type="checkbox" name="city[]" class="{{ city.state }}" id="{{ city.label }}" value="{{ city.value }}"{% if city.value == city_search_value %} checked="checked"{% endif %}/>{{ city.label }}
- </div>
- {% endfor %}
- {% endif %}
- </div>
- {% endif %}
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement