-
Notifications
You must be signed in to change notification settings - Fork 24
/
bloglist.tpl
92 lines (91 loc) · 4.12 KB
/
bloglist.tpl
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{*
* Copyright (c) 2004-2013 OIC Group, Inc.
*
* This file is part of Exponent
*
* Exponent is free software; you can redistribute
* it and/or modify it under the terms of the GNU
* General Public License as published by the Free
* Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* GPL: http://www.gnu.org/licenses/gpl.txt
*
*}
{$myloc=serialize($__loc)}
{pagelinks paginate=$page top=1}
{foreach from=$page->records item=item}
<div class="item">
{if $config.datetag}
<p class="post-date">
<span class="month">{$item->publish_date|format_date:"%b"}</span>
<span class="day">{$item->publish_date|format_date:"%e"}</span>
<span class="year">{$item->publish_date|format_date:"%Y"}</span>
</p>
{/if}
<h2>
<a href="{link action=show title=$item->sef_url}" title="{$item->body|summarize:"html":"para"}">
{$item->title}
</a>
</h2>
<div class="post-info">
<span class="attribution">
{if $item->private}<strong>({'Draft'|gettext})</strong>{/if}
{if $item->publish_date > $smarty.now}
<strong>{'Will be'|gettext} 
{/if}
{$prepend = ''}
{if !$config.displayauthor}
<span class="label posted">{'Posted by'|gettext}</span>
<a href="{link action=showall_by_author author=$item->poster|username}" title='{"View all posts by"|gettext} {attribution user_id=$record->poster}'>{attribution user_id=$item->poster}</a>
{$prepend = '  |  '}
{/if}
{if $config.usecategories}
{'in'|gettext} <a href="{link action=showall src=$item->src cat=$item->expCat[0]->id}" title='{"View all posts filed under"|gettext} {$item->expCat[0]->title}'>{if $item->expCat[0]->title!= ""}{$item->expCat[0]->title}{elseif $config.uncat!=''}{$config.uncat}{else}{'Uncategorized'|gettext}{/if}</a>
{/if}
{if !$config.datetag}
{'on'|gettext} <span class="date">{$item->publish_date|format_date}</span>
{/if}
{if $item->publish_date > $smarty.now}
</strong> 
{/if}
</span>
{comments_count record=$item prepend=$prepend}
{tags_assigned record=$item prepend='  |  '}
</div>
{permissions}
<div class="item-actions">
{if $permissions.edit == 1}
{if $myloc != $item->location_data}
{if $permissions.manage == 1}
{icon action=merge id=$item->id title="Merge Aggregated Content"|gettext}
{else}
{icon img='arrow_merge.png' title="Merged Content"|gettext}
{/if}
{/if}
{icon action=edit record=$item}
{/if}
{if $permissions.delete == 1}
{icon action=delete record=$item}
{/if}
</div>
{/permissions}
<div class="bodycopy">
{if $config.ffloat != "Below"}
{filedisplayer view="`$config.filedisplay`" files=$item->expFile record=$item is_listing=1}
{/if}
{if $config.usebody==1}
<p>{$item->body|summarize:"html":"paralinks"}</p>
{elseif $config.usebody==2}
{else}
{$item->body}
{/if}
{if $config.ffloat == "Below"}
{filedisplayer view="`$config.filedisplay`" files=$item->expFile record=$item is_listing=1}
{/if}
</div>
{clear}
</div>
{/foreach}
{pagelinks paginate=$page bottom=1}
{clear}