-
Notifications
You must be signed in to change notification settings - Fork 24
/
showall_toggle.tpl
111 lines (106 loc) · 4.69 KB
/
showall_toggle.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{*
* 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
*
*}
{css unique="portfolio" link="`$asset_path`css/portfolio.css"}
{/css}
{if $config.usecategories}
{css unique="categories" corecss="categories"}
{/css}
{/if}
<div class="module portfolio showall">
{if $moduletitle && !($config.hidemoduletitle xor $smarty.const.INVERT_HIDE_TITLE)}<h1>{$moduletitle}</h1>{/if}
{permissions}
<div class="module-actions">
{if $permissions.create == 1}
{icon class=add action=edit rank=1 title="Add to the top"|gettext text="Add a Portfolio Piece"|gettext}
{/if}
{if $permissions.manage == 1}
{if !$config.disabletags}
{icon controller=expTag class="manage" action=manage_module model='portfolio' text="Manage Tags"|gettext}
{/if}
{if $config.usecategories}
{icon controller=expCat action=manage model='portfolio' text="Manage Categories"|gettext}
{/if}
{/if}
{*{if $permissions.manage == 1 && $rank == 1}*}
{if $permissions.manage == 1 && $config.order == 'rank'}
{ddrerank items=$page->records model="portfolio" label="Portfolio Pieces"|gettext}
{/if}
</div>
{/permissions}
{if $config.moduledescription != ""}
{$config.moduledescription}
{/if}
{$myloc=serialize($__loc)}
{pagelinks paginate=$page top=1}
{$cat="bad"}
{foreach from=$page->records item=record}
{if $cat !== $record->expCat[0]->id && $config.usecategories}
<h2 class="category">{if $record->expCat[0]->title!= ""}{$record->expCat[0]->title}{elseif $config.uncat!=''}{$config.uncat}{else}{'Uncategorized'|gettext}{/if}</h2>
{/if}
<div class="item">
{permissions}
<div class="item-actions">
{if $permissions.edit == 1}
{if $myloc != $record->location_data}
{if $permissions.manage == 1}
{icon action=merge id=$record->id title="Merge Aggregated Content"|gettext}
{else}
{icon img='arrow_merge.png' title="Merged Content"|gettext}
{/if}
{/if}
{icon action=edit record=$record title="Edit `$record->title`"}
{/if}
{if $permissions.delete == 1}
{icon action=delete record=$record title="Delete `$record->title`"}
{/if}
</div>
{/permissions}
{tags_assigned record=$record}
{if $config.show_summary}
{$summary = $record->body|summarize:"html":"parahtml"}
{else}
{$summary = ''}
{/if}
{toggle unique="portfolio`$record->id`" title=$record->title|default:'Click to Hide/View'|gettext collapsed=$config.show_collapsed summary=$config.summary_height summary=$summary}
{*<h3{if $config.usecategories} class="{$cat->color}"{/if}><a href="{link action=show title=$record->sef_url}" title="{$record->body|summarize:"html":"para"}">{$record->title}</a></h3>*}
<div class="bodycopy">
{if $config.ffloat != "Below"}
{filedisplayer view="`$config.filedisplay`" files=$record->expFile record=$record is_listing=1}
{/if}
{if $config.usebody==1}
<p>{$record->body|summarize:"html":"paralinks"}</p>
{elseif $config.usebody==2}
{else}
{$record->body}
{/if}
{if $config.ffloat == "Below"}
{filedisplayer view="`$config.filedisplay`" files=$record->expFile record=$record is_listing=1}
{/if}
</div>
{clear}
{/toggle}
{permissions}
{if $permissions.create == 1}
<div class="module-actions">
{icon class="add" action=edit rank=$record->rank+1 title="Add another here"|gettext text="Add a portfolio piece here"|gettext}
</div>
{/if}
{/permissions}
</div>
{$cat=$record->expCat[0]->id}
{/foreach}
{clear}
{pagelinks paginate=$page bottom=1}
</div>