# acymailing/10.0.1/front/FrontViews/Archive/tmpl/view.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 10.0.1. 33 lines.

- Page: https://pluginprobe.com/plugins/acymailing/10.0.1/code/front/FrontViews/Archive/tmpl/view.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.0.1/raw/front/FrontViews/Archive/tmpl/view.php
- Modified: 2025-01-27T11:09:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/10.0.1/code/front/FrontViews/Archive/tmpl/view.php#L10-L20`.

```php
<div id="archive_view">
    <?php
    if (empty($data['receiver']->id)) {
        echo '<p class="acym_front_message_warning">'.acym_translation('ACYM_FRONT_ARCHIVE_NOT_CONNECTED').'</p>';
    }
    ?>
	<h1 class="contentheading"><?php echo $data['mail']->subject; ?></h1>

	<input type="hidden" id="archive_view__content" value="<?php echo acym_escape($data['mail']->body); ?>" />
	<div style="min-width:80%" id="archive_view__preview"><?php echo $data['mail']->body; ?></div>

    <?php
    $attachments = json_decode(!empty($data['mail']->attachments) ? $data['mail']->attachments : '[]');

    if (!empty($attachments)) {
        ?>
		<fieldset class="newsletter_attachments">
			<legend><?php echo acym_translation('ACYM_ATTACHMENTS'); ?></legend>
			<table>
                <?php
                foreach ($attachments as $attachment) {
                    $onlyFilename = explode("/", $attachment->filename);

                    $onlyFilename = end($onlyFilename);

                    echo '<tr><td><a href="'.acym_rootURI().$attachment->filename.'" target="_blank">'.$onlyFilename.'</a></td></tr>';
                }
                ?>
			</table>
		</fieldset>
    <?php } ?>
</div>

```
