| @@ -1,0 +1,31 @@ | ||
| 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__dtext__picker" class="is-hidden"> | |
| 6 | + <div id="acym__dtext__picker__modal" class="padding-1"> | |
| 7 | + <i class="acymicon-close" id="acym__dtext__picker__modal__close"></i> | |
| 8 | + <div class="grid-x grid-margin-x align-center"> | |
| 9 | + <input type="text" id="acym__dtext__picker__modal__code" class="cell small-8 medium-4" readonly="readonly" /> | |
| 10 | + <button type="button" id="acym__dtext__picker__modal__insert" class="cell small-4 medium-shrink button button-primary"> | |
| 11 | + <?php echo esc_html(acym_translation('ACYM_INSERT')); ?> | |
| 12 | + </button> | |
| 13 | + </div> | |
| 14 | + <?php | |
| 15 | + foreach ($data['plugins'] as $onePlugin) { | |
| 16 | + if (!empty($data['options']['context']) && empty($onePlugin->{$data['options']['context']})) { | |
| 17 | + continue; | |
| 18 | + } | |
| 19 | + | |
| 20 | + if (is_object($onePlugin) && property_exists($onePlugin, 'name')) { | |
| 21 | + $data['tabHelper']->startTab($onePlugin->name); | |
| 22 | + $defaultValues = new \stdClass(); | |
| 23 | + acym_trigger('textPopup', [$defaultValues], $onePlugin->plugin); | |
| 24 | + $data['tabHelper']->endTab(); | |
| 25 | + } | |
| 26 | + } | |
| 27 | + | |
| 28 | + $data['tabHelper']->display('dtext_picker'); | |
| 29 | + ?> | |
| 30 | + </div> | |
| 31 | +</div> | |