| 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__wysid__context__text" style="display: none" class="grid-x padding-1"> |
| 6 |
<p class="cell acym__wysid__right__toolbar__p__open acym__wysid__right__toolbar__p acym__title"> |
| 7 |
<?php echo esc_html(acym_translation('ACYM_DYNAMIC_TEXT_TYPE')); |
| 8 |
acym_info(['textShownInTooltip' => 'ACYM_DYNAMIC_TEXT_TYPE_DESC']); ?> |
| 9 |
<i class="acymicon-keyboard-arrow-up"></i> |
| 10 |
</p> |
| 11 |
<div class="grid-x cell acym__wysid__context__modal__container grid-margin-x margin-y"> |
| 12 |
<?php |
| 13 |
foreach ($data['plugins'] as $onePlugin) { |
| 14 |
if (empty($onePlugin)) continue; |
| 15 |
|
| 16 |
echo '<button type="button" |
| 17 |
class="cell medium-6 button button-secondary" |
| 18 |
acym-button-switch-type="'.esc_attr($onePlugin->plugin).'">'.esc_html($onePlugin->name).'</button>'; |
| 19 |
|
| 20 |
$data['tabHelper']->startTab($onePlugin->plugin); |
| 21 |
$defaultValues = new \stdClass(); |
| 22 |
acym_trigger('textPopup', [$defaultValues], $onePlugin->plugin); |
| 23 |
$data['tabHelper']->endTab(); |
| 24 |
} |
| 25 |
?> |
| 26 |
</div> |
| 27 |
<p class="cell acym__wysid__right__toolbar__p__open acym__wysid__right__toolbar__p acym__title"> |
| 28 |
<?php echo esc_html(acym_translation('ACYM_CONTENT_TO_INSERT')); |
| 29 |
acym_info(['textShownInTooltip' => 'ACYM_CONTENT_TO_INSERT_DESC']); ?> |
| 30 |
<i class="acymicon-keyboard-arrow-up"></i> |
| 31 |
</p> |
| 32 |
<div class="grid-x cell acym__wysid__context__modal__container grid-margin-x margin-y"> |
| 33 |
<?php $data['tabHelper']->display('dtext_options'); ?> |
| 34 |
</div> |
| 35 |
<div id="acym__dynamic__texts__insert__zone" class="cell grid-x"> |
| 36 |
<input title="<?php echo esc_attr(acym_translation('ACYM_DYNAMIC_TEXT')); ?>" |
| 37 |
type="text" |
| 38 |
class="cell large-auto margin-right-1" |
| 39 |
id="dtextcode" |
| 40 |
name="dtextcode" |
| 41 |
value=""> |
| 42 |
<div class="cell large-shrink"> |
| 43 |
<button type="button" class="button" id="insertButton"><?php echo esc_html(acym_translation('ACYM_INSERT_DYNAMIC_TEXT')); ?></button> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
</div> |
| 47 |
|