| @@ -1,32 +1,0 @@ | ||
| 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 | -<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm" enctype="multipart/form-data"> | |
| 6 | - <input type="hidden" id="acym_create_template_type_editor" name="type_editor"> | |
| 7 | - <input type="hidden" id="acym_create_template_type_tmpl" name="type" value="<?php echo esc_attr($data['mailClass']::TYPE_TEMPLATE); ?>"> | |
| 8 | - <?php | |
| 9 | - $isEmpty = empty($data['allMails']) && empty($data['search']) && empty($data['tag']) && empty($data['status']); | |
| 10 | - if (!$isEmpty) { | |
| 11 | - $data['toolbar']->displayToolbar($data); | |
| 12 | - } | |
| 13 | - ?> | |
| 14 | - <div id="acym__templates" class="acym__content"> | |
| 15 | - <?php if ($isEmpty) { ?> | |
| 16 | - <div class="grid-x text-center"> | |
| 17 | - <h1 class="acym__listing__empty__title cell"><?php echo esc_html(acym_translation('ACYM_YOU_DONT_HAVE_ANY_TEMPLATE')); ?></h1> | |
| 18 | - <h1 class="acym__listing__empty__subtitle cell"><?php echo esc_html(acym_translation('ACYM_CREATE_AN_AMAZING_TEMPLATE_WITH_OUR_AMAZING_EDITOR')); ?></h1> | |
| 19 | - <div class="medium-3"></div> | |
| 20 | - <div class="medium-6 small-12 cell"> | |
| 21 | - <?php include acym_getView('mails', 'listing_empty'); ?> | |
| 22 | - </div> | |
| 23 | - <div class="medium-3"></div> | |
| 24 | - </div> | |
| 25 | - <?php } else { ?> | |
| 26 | - <div class="grid-x grid-margin-x"> | |
| 27 | - <?php include acym_getView('mails', 'listing_listing'); ?> | |
| 28 | - </div> | |
| 29 | - <?php } ?> | |
| 30 | - </div> | |
| 31 | - <?php acym_formOptions(); ?> | |
| 32 | -</form> | |