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