| @@ -1,0 +1,21 @@ | ||
| 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"> | |
| 6 | + <?php | |
| 7 | + $isEmpty = empty($data['allForms']) && empty($data['search']) && empty($data['active']); | |
| 8 | + if (!$isEmpty) { | |
| 9 | + $data['toolbar']->displayToolbar($data); | |
| 10 | + } | |
| 11 | + | |
| 12 | + ?> | |
| 13 | + <div id="acym__forms" class="acym__content cell"> | |
| 14 | + <?php if ($isEmpty) { | |
| 15 | + include acym_getView('forms', 'listing_empty'); | |
| 16 | + } else { | |
| 17 | + include acym_getView('forms', 'listing_listing'); | |
| 18 | + } ?> | |
| 19 | + </div> | |
| 20 | + <?php acym_formOptions(); ?> | |
| 21 | +</form> | |