| @@ -1,52 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | -defined('ABSPATH') || die('Restricted Access'); | |
| 3 | -?> | |
| 4 | -<h2 class="cell acym__title acym__title__secondary margin-top-2"><?php echo esc_html(acym_translation('ACYM_DISPLAY')); ?></h2> | |
| 5 | - | |
| 6 | -<div class="cell grid-x large-12 margin-top-1"> | |
| 7 | - <?php acym_switch([ | |
| 8 | - 'name' => 'field[backend_edition]', | |
| 9 | - 'value' => $data['field']->backend_edition, | |
| 10 | - 'label' => acym_translationSprintf('ACYM_BACKEND_X', acym_translation('ACYM_EDITION')), | |
| 11 | - 'labelClass' => 'auto', | |
| 12 | - 'switchContainerClass' => 'shrink', | |
| 13 | - 'switchClass' => 'margin-0', | |
| 14 | - ]); ?> | |
| 15 | -</div> | |
| 16 | -<?php if (empty($data['field']->core) || $data['field']->type === 'language') { ?> | |
| 17 | - <div class="cell grid-x large-12 margin-top-1"> | |
| 18 | - <?php acym_switch([ | |
| 19 | - 'name' => 'field[backend_listing]', | |
| 20 | - 'value' => $data['field']->backend_listing, | |
| 21 | - 'label' => acym_translationSprintf('ACYM_BACKEND_X', acym_translation('ACYM_LISTING')), | |
| 22 | - 'labelClass' => 'auto', | |
| 23 | - 'switchContainerClass' => 'shrink', | |
| 24 | - 'switchClass' => 'margin-0', | |
| 25 | - ]); ?> | |
| 26 | - </div> | |
| 27 | -<?php } else { | |
| 28 | - echo '<input type="hidden" name="field[backend_listing]" value="1">'; | |
| 29 | -} ?> | |
| 30 | - | |
| 31 | -<?php if ('joomla' === ACYM_CMS) { ?> | |
| 32 | - <div class="cell grid-x large-12 margin-top-1"> | |
| 33 | - <?php acym_switch([ | |
| 34 | - 'name' => 'field[frontend_edition]', | |
| 35 | - 'value' => $data['field']->frontend_edition, | |
| 36 | - 'label' => acym_translationSprintf('ACYM_FRONTEND_X', acym_translation('ACYM_EDITION')), | |
| 37 | - 'labelClass' => 'auto', | |
| 38 | - 'switchContainerClass' => 'shrink', | |
| 39 | - 'switchClass' => 'margin-0', | |
| 40 | - ]); ?> | |
| 41 | - </div> | |
| 42 | - <div class="cell grid-x large-12 margin-top-1"> | |
| 43 | - <?php acym_switch([ | |
| 44 | - 'name' => 'field[frontend_listing]', | |
| 45 | - 'value' => $data['field']->frontend_listing, | |
| 46 | - 'label' => acym_translationSprintf('ACYM_FRONTEND_X', acym_translation('ACYM_LISTING')), | |
| 47 | - 'labelClass' => 'auto', | |
| 48 | - 'switchContainerClass' => 'shrink', | |
| 49 | - 'switchClass' => 'margin-0', | |
| 50 | - ]); ?> | |
| 51 | - </div> | |
| 52 | -<?php } ?> | |