Skip to content

Commit

Permalink
Remove tags search
Browse files Browse the repository at this point in the history
Remove tags in search template
  • Loading branch information
lithrel committed May 13, 2022
1 parent 9bd771d commit 2c0fe60
Showing 1 changed file with 0 additions and 59 deletions.
59 changes: 0 additions & 59 deletions templates/search.twig
Original file line number Diff line number Diff line change
Expand Up @@ -165,37 +165,6 @@
{% endif %}
</div>
</div>
<div class="col-md-6">
{% if ( tags|length > 0 ) %}
<div class="filteritem">
<a data-bs-toggle="collapse" href="#item-modal-campaign" aria-expanded="true">
{{ __( 'Campaign', 'planet4-master-theme' ) }} <span></span>
</a>
<div id="item-modal-campaign" class="collapse show" role="tabpanel">
<ul class="list-unstyled">
{% for tag in tags %}
{% if ( tag.results > 0 ) %}
<li>
<label class="custom-control">
<input
type="checkbox"
name="f[tag][{{ tag.name }}]"
value="{{ tag.term_id }}"
class="p4-custom-control-input modal-checkbox"
data-ga-category="Search Page"
data-ga-action="Tag Filter"
data-ga-label="{{ tag.name|e('wp_kses_post')|raw }}"
{{ tag.checked }} {{ tag.results > 0 ? '' : 'disabled' }} />
<span class="custom-control-description">{{ tag.name|e('wp_kses_post')|raw }} ({{ tag.results }})</span>
</label>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>
</div>
<div class="btnact">
<button type="button" class="btn btn-action btn-small cancelbtn" data-bs-dismiss="modal">{{ __( 'Cancel', 'planet4-master-theme' ) }}</button>
Expand Down Expand Up @@ -251,34 +220,6 @@
</div>
</div>
{% endif %}
{% if ( tags|length > 0 ) %}
<div class="filteritem">
<a data-bs-toggle="collapse" href="#item-campaign" class="{{ collapsed }}" aria-expanded="{{ expanded }}">
{{ __( 'Campaign', 'planet4-master-theme' ) }} <span></span>
</a>
<div id="item-campaign" class="collapse {{ show }}" role="tabpanel">
<ul class="list-unstyled">
{% for tag in tags %}
{% if ( tag.results > 0 ) %}
<li>
<label class="custom-control">
<input
type="checkbox"
name="f[tag][{{ tag.name }}]"
value="{{ tag.term_id }}"
class="p4-custom-control-input" {{ tag.checked }} {{ tag.results > 0 ? '' : 'disabled' }}
data-ga-category="Search Page"
data-ga-action="Tag Filter"
data-ga-label="{{ tag.name|e('wp_kses_post')|raw }}" />
<span class="custom-control-description">{{ tag.name|e('wp_kses_post')|raw }} ({{ tag.results }})</span>
</label>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% endif %}
{% if ( post_types|length > 0 ) %}
<div class="filteritem">
<a data-bs-toggle="collapse" href="#item-category" class="{{ collapsed }}" aria-expanded="{{ expanded }}">
Expand Down

0 comments on commit 2c0fe60

Please sign in to comment.