PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.3
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.3
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 / front / FrontViews / Archive / tmpl / view.php

view.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.3, at front/FrontViews/Archive/tmpl/view.php

36 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
3 defined('ABSPATH') || die('Restricted Access');
4 ?>
5 <div id="archive_view">
6 <?php
7 if (empty($data['receiver']->id)) {
8 echo '<p class="acym_front_message_warning">'.esc_html(acym_translation('ACYM_FRONT_ARCHIVE_NOT_CONNECTED')).'</p>';
9 }
10 ?>
11 <h1 class="contentheading"><?php echo esc_html($data['mail']->subject); ?></h1>
12
13 <input type="hidden" id="archive_view__content" value="<?php echo esc_attr($data['mail']->body); ?>" />
14 <div style="min-width:80%" id="archive_view__preview"><?php echo $data['mail']->body; ?></div>
15
16 <?php
17 $attachments = json_decode(!empty($data['mail']->attachments) ? $data['mail']->attachments : '[]', true);
18
19 if (!empty($attachments)) {
20 ?>
21 <fieldset class="newsletter_attachments">
22 <legend><?php echo esc_html(acym_translation('ACYM_ATTACHMENTS')); ?></legend>
23 <table>
24 <?php
25 foreach ($attachments as $attachment) {
26 $onlyFilename = explode('/', $attachment['filename']);
27 $onlyFilename = end($onlyFilename);
28
29 echo '<tr><td><a href="'.esc_url(acym_rootURI().$attachment['filename']).'" target="_blank">'.esc_html($onlyFilename).'</a></td></tr>';
30 }
31 ?>
32 </table>
33 </fieldset>
34 <?php } ?>
35 </div>
36