| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Finder; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly |
| 7 |
} |
| 8 |
|
| 9 |
?> |
| 10 |
<script type="text/template" id="tmpl-elementor-finder"> |
| 11 |
<div id="elementor-finder__search"> |
| 12 |
<i class="eicon-search"></i> |
| 13 |
<input id="elementor-finder__search__input" placeholder="<?php echo esc_html__( 'Type to find anything in Elementor', 'elementor' ); ?>" autocomplete="off"> |
| 14 |
</div> |
| 15 |
<div id="elementor-finder__content"></div> |
| 16 |
</script> |
| 17 |
|
| 18 |
<script type="text/template" id="tmpl-elementor-finder-results-container"> |
| 19 |
<div id="elementor-finder__no-results"><?php echo esc_html__( 'No Results Found', 'elementor' ); ?></div> |
| 20 |
<div id="elementor-finder__results"></div> |
| 21 |
</script> |
| 22 |
|
| 23 |
<script type="text/template" id="tmpl-elementor-finder__results__category"> |
| 24 |
<div class="elementor-finder__results__category__title">{{{ title }}}</div> |
| 25 |
<div class="elementor-finder__results__category__items"></div> |
| 26 |
</script> |
| 27 |
|
| 28 |
<script type="text/template" id="tmpl-elementor-finder__results__item"> |
| 29 |
<a href="{{ url }}" class="elementor-finder__results__item__link"> |
| 30 |
<div class="elementor-finder__results__item__icon"> |
| 31 |
<i class="eicon-{{{ icon }}}"></i> |
| 32 |
</div> |
| 33 |
<div class="elementor-finder__results__item__title">{{{ title }}}</div> |
| 34 |
<# if ( description ) { #> |
| 35 |
<div class="elementor-finder__results__item__description">- {{{ description }}}</div> |
| 36 |
<# } #> |
| 37 |
</a> |
| 38 |
<# if ( actions.length ) { #> |
| 39 |
<div class="elementor-finder__results__item__actions"> |
| 40 |
<# jQuery.each( actions, function() { #> |
| 41 |
<a class="elementor-finder__results__item__action elementor-finder__results__item__action--{{ this.name }}" href="{{ this.url }}" target="_blank"> |
| 42 |
<i class="eicon-{{{ this.icon }}}"></i> |
| 43 |
</a> |
| 44 |
<# } ); #> |
| 45 |
</div> |
| 46 |
<# } #> |
| 47 |
</script> |
| 48 |
|