| 10 | | <li class="a-controls-item edit"> |
| 11 | | <?php echo jq_link_to_function(isset($label) ? __($label, null, 'apostrophe') : __("edit", null, 'apostrophe'), "", |
| 12 | | array( |
| 13 | | 'id' => "a-slot-edit-$pageid-$name-$permid", |
| 14 | | 'class' => isset($class) ? $class : 'a-btn icon a-edit', |
| 15 | | 'title' => isset($title) ? $title : __('Edit', null, 'apostrophe'), |
| 16 | | )) ?> |
| | 10 | <li class="a-controls-item edit"> |
| | 11 | <?php echo jq_link_to_function(isset($label) ? __($label, null, 'apostrophe') : __("edit", null, 'apostrophe'), "", |
| | 12 | array( |
| | 13 | 'id' => "a-slot-edit-$pageid-$name-$permid", |
| | 14 | 'class' => isset($class) ? $class : 'a-btn icon a-edit', |
| | 15 | 'title' => isset($title) ? $title : __('Edit', null, 'apostrophe'), |
| | 16 | )) ?> |
| | 17 | |
| 22 | | $(this).parent().addClass('editing-now'); |
| 23 | | $(this).parents('.a-area').addClass('editing-now'); |
| 24 | | $(editSlot).children('.a-slot-content').children('.a-slot-content-container').hide(); // Hide content |
| 25 | | $(editSlot).children('.a-slot-content').children('.a-slot-content-container').hide(); // Hide content |
| 26 | | $(editSlot).children('.a-slot-content').children('.a-slot-form').fadeIn(); // Show form |
| 27 | | $(editSlot).children('.a-controls-item variant').hide(); |
| 28 | | aUI($(this).parents('.a-slot').attr('id')); |
| | 24 | editBtn.parents('.a-slot, .a-area').addClass('editing-now'); <?php // Apply a class to the Area and Slot Being Edited ?> |
| | 25 | editSlot.children('.a-slot-content').children('.a-slot-content-container').hide(); <?php // Hide the Content Container ?> |
| | 26 | editSlot.children('.a-slot-content').children('.a-slot-form').fadeIn(); <?php // Fade In the Edit Form ?> |
| | 27 | editSlot.children('.a-controls-item variant').hide(); <?php // Hide the Variant Options ?> |
| | 28 | aUI(editBtn.parents('.a-slot').attr('id')); <?php // Refresh the UI scoped to this Slot ?> |