| @@ -1,32 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -namespace AcyMailing\Types; | |
| 4 | - | |
| 5 | -use AcyMailing\Core\AcymObject; | |
| 6 | - | |
| 7 | -class UploadFileType extends AcymObject | |
| 8 | -{ | |
| 9 | - public function display(string $map, int $num): void | |
| 10 | - { | |
| 11 | - echo '<input type="hidden" name="'.esc_attr($map).'[]" id="'.esc_attr($map.$num).'" />'; | |
| 12 | - | |
| 13 | - $ctrlFile = acym_isAdmin() ? 'file' : 'frontfile'; | |
| 14 | - acym_modal( | |
| 15 | - acym_translation('ACYM_SELECT'), | |
| 16 | - '', | |
| 17 | - 'acym__campaign__email__'.$map.$num, | |
| 18 | - [ | |
| 19 | - 'width' => '800', | |
| 20 | - 'style' => 'width:800px;', | |
| 21 | - 'data-reveal-larger' => true, | |
| 22 | - ], | |
| 23 | - [ | |
| 24 | - 'class' => 'button-secondary button acym__campaign__attach__button margin-top-0 margin-bottom-0 cell medium-shrink', | |
| 25 | - 'data-iframe' => acym_completeLink($ctrlFile.'&task=select&id='.$map.$num, true), | |
| 26 | - 'data-ajax' => 'false', | |
| 27 | - ] | |
| 28 | - ); | |
| 29 | - | |
| 30 | - echo '<span id="'.esc_attr($map.$num).'selection" class="acy_selected_attachment cell medium-shrink"></span>'; | |
| 31 | - } | |
| 32 | -} | |