| @@ -1,0 +1,66 @@ | ||
| 1 | +<?php | |
| 2 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. | |
| 3 | +defined('ABSPATH') || die('Restricted Access'); | |
| 4 | + | |
| 5 | +use AcyMailing\Helpers\SecurityHelper; | |
| 6 | + | |
| 7 | +if (!empty($data['status_toolbar'])) { | |
| 8 | + echo '<input type="hidden" id="acym__toolbar__statuses-value" value="'.esc_attr(json_encode($data['status_toolbar'])).'">'; | |
| 9 | +} | |
| 10 | +?> | |
| 11 | +<div class="grid-x acym__toolbar acym__content align-justify"> | |
| 12 | + <div class="cell"> | |
| 13 | + <div class="grid-x grid-margin-x margin-y"> | |
| 14 | + <?php if (!empty($data['searchBarInformation'])) { ?> | |
| 15 | + <div class="large-3 medium-6 small-12 cell"> | |
| 16 | + <?php $data['toolbarHelper']->displaySearchBar(); ?> | |
| 17 | + </div> | |
| 18 | + <?php if (!empty($data['filteringOptions'])) { ?> | |
| 19 | + <button id="acym__toolbar__button-more-filters" type="button" class="medium-6 button button-secondary cell large-shrink"> | |
| 20 | + <i class="acymicon-filter"></i> | |
| 21 | + <?php echo esc_html(acym_translation('ACYM_SHOW_FILTERS')); ?> | |
| 22 | + </button> | |
| 23 | + <?php } ?> | |
| 24 | + <?php } ?> | |
| 25 | + <div class="cell large-3 xlarge-auto show-for-large"></div> | |
| 26 | + <?php $data['toolbarHelper']->displayActionButtons(); ?> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | +</div> | |
| 30 | +<div class="grid-x acym__toolbar__more-filters acym__content" style="display: none;"> | |
| 31 | + <div class="cell"> | |
| 32 | + <div class="grid-x grid-margin-x grid-margin-y margin-bottom-1"> | |
| 33 | + <?php foreach ($data['filteringOptions'] as $filterOption) { ?> | |
| 34 | + <div class="cell medium-3 margin-left-1"> | |
| 35 | + <div class="cell grid-x shrink acym__toolbar__filters__select"> | |
| 36 | + <label class="cell"> | |
| 37 | + <?php echo esc_html($filterOption['title']); ?> | |
| 38 | + </label> | |
| 39 | + <?php | |
| 40 | + echo wp_kses( | |
| 41 | + $filterOption['select'], | |
| 42 | + SecurityHelper::ALLOWED_HTML_SELECT | |
| 43 | + ); | |
| 44 | + ?> | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | + <?php } ?> | |
| 48 | + </div> | |
| 49 | + </div> | |
| 50 | + <div class="cell"> | |
| 51 | + <div class="grid-x grid-margin-x grid-margin-y align-right"> | |
| 52 | + <?php if (!empty($data['cleartask'])) { ?> | |
| 53 | + <input type="hidden" name="cleartask" value="<?php echo esc_attr($data['cleartask']); ?>" /> | |
| 54 | + <?php } ?> | |
| 55 | + <button data-task="clearFilters" | |
| 56 | + type="button" | |
| 57 | + class="cell medium-shrink acy_button_submit button button-secondary"> | |
| 58 | + <?php echo esc_html(acym_translation('ACYM_CLEAR_FILTERS')); ?> | |
| 59 | + </button> | |
| 60 | + <button id="acym__toolbar__more-filters-apply" type="button" class="cell medium-shrink button"> | |
| 61 | + <?php echo esc_html(acym_translation('ACYM_APPLY_FILTERS')); ?> | |
| 62 | + </button> | |
| 63 | + </div> | |
| 64 | + </div> | |
| 65 | +</div> | |
| 66 | + | |