PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 10.1.4
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v10.1.4
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Partial / editor / attachments.php

attachments.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 10.1.4, at back/Partial/editor/attachments.php

42 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!empty($data['mailInformation'])) $data['mail'] = $data['mailInformation'];
3 ?>
4 <div class="cell grid-x" id="acym__campaigns__edit_email__attachments">
5 <label class="cell"><?php echo acym_translation('ACYM_ATTACHMENTS'); ?></label>
6 <?php if (!empty($data['mail']->attachments)) { ?>
7 <?php
8 foreach ($data['mail']->attachments as $i => $oneAttach) {
9 $onlyFilename = explode("/", $oneAttach->filename);
10
11 $onlyFilename = end($onlyFilename);
12
13 echo '<div class="acym__listing__row cell grid-x" id="acym__campaigns__attach__del'.$i.'">';
14
15 echo acym_tooltip(
16 [
17 'hoveredText' => '<span class="cell acym__campaigns__attachments__already">'.$onlyFilename.' ('.(round($oneAttach->size / 1000, 1)).' Ko)</span>',
18 'textShownInTooltip' => $oneAttach->filename,
19 'classContainer' => 'medium-11 cell',
20 ]
21 );
22 $mailId = !empty($data['mail']->mail_id) ? $data['mail']->mail_id : $data['mail']->id;
23 echo '<div class="cell medium-1 text-center"><a data-id="'.$i.'" data-mail="'.$mailId.'" class="acym__campaigns__attach__delete"><i class="acymicon-delete acym__color__red"></i></a></div>';
24 echo '</div>';
25 }
26 }
27
28 $uploadfileType = $data['uploadFileType'];
29 for ($i = 0 ; $i < 10 ; $i++) {
30 $result = '<div '.($i >= 1 ? 'style="display:none"' : '').' class="cell grid-x grid-margin-x acym__campaigns__attach__elements" id="acym__campaigns__attach__'.$i.'">';
31 $result .= $uploadfileType->display('attachments', $i);
32 $result .= '<div class="cell medium-auto"></div><div class="cell medium-1 text-center "><i style="display: none;" id="attachments'.$i.'suppr" data-id="'.$i.'" class="acymicon-delete acym__color__red acym__campaigns__attach__remove"></i></div>';
33 $result .= '</div>';
34 echo $result;
35 }
36 ?>
37 </div>
38 <div class="cell">
39 <a href="javascript:void(0);" id="acym__campaigns__attach__add"><?php echo acym_translation('ACYM_ADD_ATTACHMENT'); ?></a>
40 <?php echo acym_translationSprintf('ACYM_MAX_UPLOAD', $data['maxupload']); ?>
41 </div>
42