summaryrefslogtreecommitdiff
path: root/templates/view_newsletter.tpl
blob: 7bc508bd21de7b907d8ef053008acd3fe63ed6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<div class="display newsletters">
	<div class="floaticon">
		{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon'}

		{if $gContent->isOwner() || $gBitUser->hasPermission( 'p_newsletters_admin' )}
			<a href="{$smarty.const.NEWSLETTERS_PKG_URL}newsletters.php?nl_id={$gContent->mNewsletterId}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="edit"}</a>
			<a href="{$smarty.const.NEWSLETTERS_PKG_URL}newsletters.php?nl_id={$gContent->mNewsletterId}&amp;remove=1">{biticon ipackage="icons" iname="edit-delete" iexplain="delete"}</a>
		{/if}

		{if $gBitUser->hasPermission( 'p_liberty_print' )}
			<a href="{$smarty.const.NEWSLETTERS_PKG_URL}print_blog_post.php?post_id={$post_id}">{biticon ipackage="icons" iname="document-print" iexplain="print"}</a>
		{/if}
		<a href="{$smarty.const.NEWSLETTERS_PKG_URL}send_newsletter.php?post_id={$post_id}">{biticon ipackage="icons" iname="mail-forward" iexplain="email this post"}</a>
	</div>

	<div class="header">
		<h1>{$gContent->getTitle()}</h1>
		{if $gContent->getField('description')}
			<p>{$gContent->getField('description')}</p>
		{/if}
	</div>

	{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='nav'}

	<div class="body">
		<div class="content">
			{$gContent->parseData()}

			{include file="bitpackage:newsletters/list_editions_inc.tpl" editionList=$gContent->getEditions()}
		</div> <!-- end .content -->
	</div> <!-- end .body -->
</div> <!-- end .newsletters -->