| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; // Exit if accessed directly |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Template Item |
| 9 |
*/ |
| 10 |
?> |
| 11 |
|
| 12 |
<div class="elementor-template-library-template-body"> |
| 13 |
<div class="elementor-template-library-template-screenshot"> |
| 14 |
<div class="elementor-template-library-template-preview"> |
| 15 |
<i class="fa fa-search-plus"></i> |
| 16 |
</div> |
| 17 |
<img src="{{ thumbnail }}" alt="{{ title }}" class="ma-el-template-image" loading="lazy" onload="this.classList.add('is-loaded');this.closest('.elementor-template-library-template-screenshot').classList.add('is-loaded');" onerror="this.src='<?php echo esc_url( JLTMA_IMAGE_DIR . 'placeholder.png' ); ?>';this.classList.add('is-loaded');this.closest('.elementor-template-library-template-screenshot').classList.add('is-loaded');"> |
| 18 |
<div class="elementor-template-library-template-name">{{{ title }}}</div> |
| 19 |
</div> |
| 20 |
</div> |
| 21 |
<div class="elementor-template-library-template-controls"> |
| 22 |
<# if ( 'valid'===window.MasterAddonsData.license.status || ! pro ) { #> |
| 23 |
<button class="elementor-template-library-template-action ma-el-template-insert elementor-button elementor-button-success"> |
| 24 |
<i class="eicon-file-download"></i> |
| 25 |
<span class="elementor-button-title"><?php echo esc_html__('Insert', 'master-addons' ); ?></span> |
| 26 |
</button> |
| 27 |
<# } else if ( pro ) { #> |
| 28 |
<a class="template-library-activate-license" href="{{{ window.MasterAddonsData.license.activateLink }}}" target="_blank"> |
| 29 |
<i class="fa fa-external-link" aria-hidden="true"></i> |
| 30 |
{{{ window.MasterAddonsData.license.proMessage }}} |
| 31 |
</a> |
| 32 |
<# } #> |
| 33 |
</div> |
| 34 |
|
| 35 |
<!--<div class="elementor-template-library-template-name">{{{ title }}}</div>--> |
| 36 |
|