@@ 74-79 (lines=6) @@ | ||
71 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
72 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
73 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
74 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
75 | $attachment_array = $attachmentObj->toArray(); |
|
76 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
77 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
78 | $letterTpl->append('attachments', $attachment_array); |
|
79 | } |
|
80 | // extra data |
|
81 | $letterTpl->assign('date', time()); // new from v1.3 |
|
82 | $letterTpl->assign('unsubscribe_url', '#'); |
@@ 535-540 (lines=6) @@ | ||
532 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
533 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
534 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
535 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
536 | $attachment_array = $attachmentObj->toArray(); |
|
537 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
538 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
539 | $letterTpl->append('attachments', $attachment_array); |
|
540 | } |
|
541 | // extra data |
|
542 | $letterTpl->assign('date', time()); // new from v1.3 |
|
543 | $letterTpl->assign('xoops_url', XOOPS_URL); // new from v1.3 |
@@ 147-152 (lines=6) @@ | ||
144 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
145 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
146 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
147 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
148 | $attachment_array = $attachmentObj->toArray(); |
|
149 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
150 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
151 | $xoopsTpl->append('attachments', $attachment_array); |
|
152 | } |
|
153 | // extra data |
|
154 | $xoopsTpl->assign('date', time()); // new from v1.3 |
|
155 | $xoopsTpl->assign('unsubscribe_url', XOOPS_URL . '/modules/xnewsletter/'); |
@@ 250-255 (lines=6) @@ | ||
247 | $attachmentAslinkCriteria->setSort('attachment_id'); |
|
248 | $attachmentAslinkCriteria->setOrder('ASC'); |
|
249 | $attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAslinkCriteria, true); |
|
250 | foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
|
251 | $attachment_array = $attachmentObj->toArray(); |
|
252 | $attachment_array['attachment_url'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
253 | $attachment_array['attachment_link'] = XNEWSLETTER_URL . "/attachment.php?attachment_id={$attachment_id}"; |
|
254 | $letterTpl->append('attachments', $attachment_array); |
|
255 | } |
|
256 | // extra data |
|
257 | $letterTpl->assign('date', time()); // new from v1.3 |
|
258 | $letterTpl->assign('xoops_url', XOOPS_URL); // new from v1.3 |