| @@ -1,13 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | -$beforeSave = ''; | |
| 3 | -if (!empty($data['translation_languages'])) { | |
| 4 | - $beforeSave = 'acym-data-before="acym_helperSelectionMultilingual.changeLanguage_field(acym_helperSelectionMultilingual.mainLanguage)"'; | |
| 5 | -} | |
| 2 | +defined('ABSPATH') || die('Restricted Access'); | |
| 6 | 3 | ?> |
| 7 | -<form id="acym_form" action="<?php echo acym_completeLink(acym_getVar('cmd', 'ctrl')); ?>" method="post" name="acyForm" data-abide novalidate> | |
| 4 | +<form id="acym_form" action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" method="post" name="acyForm" data-abide novalidate> | |
| 8 | 5 | <input type="hidden" name="fieldId" value="<?php echo empty($data['field']->id) ? '' : intval($data['field']->id); ?>"> |
| 9 | - <input type="hidden" name="field[namekey]" value="<?php echo empty($data['field']->namekey) ? '' : acym_escape($data['field']->namekey); ?>"> | |
| 6 | + <input type="hidden" name="field[namekey]" value="<?php echo empty($data['field']->namekey) ? '' : esc_attr($data['field']->namekey); ?>"> | |
| 10 | 7 | <div id="acym__fields__edit" class="acym__content grid-x cell"> |
| 11 | 8 | <?php include acym_getView('fields', 'edit_actions'); ?> |
| 12 | 9 | |
| 13 | 10 | <div class="cell grid-x grid-margin-x"> |
| @@ -15,13 +12,9 @@ | ||
| 15 | 12 | <?php include acym_getView('fields', 'edit_information'); ?> |
| 16 | 13 | <?php include acym_getView('fields', 'edit_display'); ?> |
| 17 | 14 | </div> |
| 18 | 15 | |
| 19 | - <?php | |
| 20 | - $classes = 'cell xlarge-8 grid-x grid-margin-x margin-y margin-bottom-1'; | |
| 21 | - $classes .= ' acym__content acym__fields__edit__properties acym_center_baseline'; | |
| 22 | - ?> | |
| 23 | - <div class="<?php echo $classes; ?>"> | |
| 16 | + <div class="cell xlarge-8 grid-x grid-margin-x margin-y margin-bottom-1 acym__content acym__fields__edit__properties acym_center_baseline"> | |
| 24 | 17 | <?php include acym_getView('fields', 'edit_content'); ?> |
| 25 | 18 | <?php include acym_getView('fields', 'edit_style'); ?> |
| 26 | 19 | <?php include acym_getView('fields', 'edit_values'); ?> |
| 27 | 20 | </div> |