| 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 |
<div id="acym__upload__modal__joomla-image"> |
| 6 |
<div id="acym__upload__modal__joomla-image__bg" class="acym__upload__modal__joomla-image--close"></div> |
| 7 |
<div id="acym__upload__modal__joomla-image__ui" class="float-center cell"> |
| 8 |
<?php |
| 9 |
$mediaUrl = 'index.php?option=com_media&asset=com_acym&author=acymailing&tmpl=component'; |
| 10 |
$mediaUrlImage = $mediaUrl; |
| 11 |
if (!ACYM_J40) { |
| 12 |
$mediaUrlImage .= '&view=images'; |
| 13 |
} elseif (!acym_isAdmin()) { |
| 14 |
$mediaUrlImage .= '&view=media'; |
| 15 |
} |
| 16 |
?> |
| 17 |
<iframe |
| 18 |
id="acym__upload__modal__joomla-image__ui__iframe" |
| 19 |
data-acym-src="<?php echo esc_url($mediaUrl); ?>" |
| 20 |
data-acym-src-image="<?php echo esc_url($mediaUrlImage); ?>" |
| 21 |
data-acym-is-j4="<?php echo ACYM_J40 ? '1' : '0'; ?>" |
| 22 |
src="about:blank" |
| 23 |
frameborder="0"> |
| 24 |
</iframe> |
| 25 |
<div id="acym__upload__modal__joomla-image__ui__actions" class="cell grid-x grid-margin-x align-right" style="display: none"> |
| 26 |
<button id="acym__upload__modal__joomla-image__ui__actions__cancel" type="button" class="button button-secondary cell shrink margin-bottom-0"> |
| 27 |
<?php echo esc_html(acym_translation('ACYM_CANCEL')); ?> |
| 28 |
</button> |
| 29 |
<button id="acym__upload__modal__joomla-image__ui__actions__select" type="button" class="button button-secondary cell shrink margin-bottom-0"> |
| 30 |
<?php echo esc_html(acym_translation('ACYM_SELECT')); ?> |
| 31 |
</button> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
|