| 1 |
<div class="acym_front_page <?php echo $data['paramsCMS']['suffix']; ?>"> |
| 2 |
<?php |
| 3 |
if (!empty($data['paramsCMS']['show_page_heading'])) { |
| 4 |
echo '<h1 class="contentheading '.$data['paramsCMS']['suffix'].'"> '.$data['paramsCMS']['page_heading'].'</h1>'; |
| 5 |
} |
| 6 |
?> |
| 7 |
<div class="acym__front__archive"> |
| 8 |
<form method="post" action="<?php |
| 9 |
echo $data['actionUrl']; ?>" id="acym_form" class="acym__archive__form"> |
| 10 |
<h1 class="acym__front__archive__title"><?php echo acym_translation('ACYM_NEWSLETTERS'); ?></h1> |
| 11 |
<div id="acym__front__archive__search" class="grid-x"> |
| 12 |
<?php |
| 13 |
if (!empty($data['paramsCMS']['widget_id'])) { |
| 14 |
echo '<input type="text" name="acym_search['.$data['paramsCMS']['widget_id'].']" value="'.acym_escape($data['search']).'">'; |
| 15 |
} else { |
| 16 |
?> |
| 17 |
<input type="text" name="acym_search" value="<?php echo acym_escape($data['search']); ?>"> |
| 18 |
<?php } |
| 19 |
$disableSearch = ''; |
| 20 |
if (isset($data['disableButtons']) && $data['disableButtons']) { |
| 21 |
$disableSearch = 'disabled'; |
| 22 |
} |
| 23 |
?> |
| 24 |
<button class="button btn btn-primary subbutton" <?php echo $disableSearch; ?>><?php echo acym_translation('ACYM_SEARCH'); ?></button> |
| 25 |
</div> |
| 26 |
|
| 27 |
<?php |
| 28 |
if (empty($data['newsletters'])) { |
| 29 |
echo acym_escape(acym_translation('ACYM_NOTHING_FOR_SEARCH')); |
| 30 |
} else { |
| 31 |
foreach ($data['newsletters'] as $oneNewsletter) { |
| 32 |
$archiveURL = acym_frontendLink('archive&task=view&id='.$oneNewsletter->id.'&'.acym_noTemplate()); |
| 33 |
|
| 34 |
if ($data['popup']) { |
| 35 |
$iframeClass = 'acym__modal__iframe'; |
| 36 |
if (empty($data['userId'])) $iframeClass .= ' acym__front__not_connected_user'; |
| 37 |
echo acym_frontModal($archiveURL, $oneNewsletter->subject, false, $oneNewsletter->id, $iframeClass); |
| 38 |
} else { |
| 39 |
echo '<p class="acym__front__archive__raw"><a href="'.$archiveURL.'" target="_blank">'.$oneNewsletter->subject.'</a></p>'; |
| 40 |
} |
| 41 |
echo '<p class="acym__front__archive__newsletter_sending-date">'; |
| 42 |
echo acym_translation('ACYM_SENDING_DATE').' : '.acym_date($oneNewsletter->sending_date, 'd M Y'); |
| 43 |
echo '</p>'; |
| 44 |
} |
| 45 |
|
| 46 |
echo $data['pagination']->display('archive', '', true); |
| 47 |
} |
| 48 |
|
| 49 |
acym_formOptions(true, 'listing', '', '', false); |
| 50 |
?> |
| 51 |
|
| 52 |
<input type="hidden" name="acym_front_page" id="acym__front__archive__next-page" value="1"> |
| 53 |
</form> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
|