blob: e4a6fd070dc12c351e291cdb16a515c5cff9515f (
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
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
|
{strip}
{assign var=sid value=$subtree[ix].structure_id}
{if $gBitSystem->getConfig('pigeonholes_list_style') == "dynamic" && !$no_details}
<h3 class="highlight"><a href="{$smarty.const.PIGEONHOLES_PKG_URL}{
if $gBitSystem->isFeatureActive('pretty_urls')
}{
elseif $gBitSystem->isFeatureActive('pretty_urls_extended')
}view/{
else
}view.php?content_id={
/if}{$subtree[ix].content_id}">{$subtree[ix].title|escape}</a></h3>
{if $pigeonList.$sid.members}
{if $gBitSystem->isFeatureActive('pigeonholes_display_description')}
{$pigeonList.$sid.parsed_data}
{/if}
<ul style="display:{if $gContent->mStructureId eq $subtree[ix].structure_id || $smarty.request.expand_all}block{else}none{/if}; padding:2em;" class="data">
{foreach from=$pigeonList.$sid.members item=pigeonMember}
{assign var=ctg1 value=$pigeonMember.content_type_guid}
{* close off the content type <ul> *}
{if $ctg1 ne $ctg2 && $ctg2}
</ul>
</li>
{/if}
{* open the content type <ul> *}
{if $ctg1 ne $ctg2}
<li>{$gLibertySystem->getContentTypeName($ctg1)}
<ul>
{/if}
<li>
<a href="{$smarty.const.BIT_ROOT_URL}index.php?content_id={$pigeonMember.content_id}">{$pigeonMember.title|escape}</a>
{if $gBitUser->hasPermission( 'p_pigeonholes_insert_member' )}
{smartlink ititle="Remove From Category" biticon="user-trash" expand_all=$smarty.request.expand_all action=dismember structure_id=$sid parent_id=$pigeonMember.parent_id pigeonhole_content_id=$pigeonMember.content_id}
{/if}
</li>
{assign var=ctg2 value=$pigeonMember.content_type_guid}
{/foreach}
</ul>
</li>
</ul>
{/if}
{if $gContent->mInfo.structure_id eq $subtree[ix].structure_id}
{formfeedback hash=$memberFeedback}
{/if}
{else}
{* ======= very basic display of the pigoenhole structure ======= *}
{if !$no_edit && $gBitUser->hasPermission( 'p_pigeonholes_update' )}
<div class="floaticon">
{smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" biticon="view-list-text" structure_id=$subtree[ix].structure_id action=create}
{smartlink ititle="Edit Category" biticon="edit" ifile="edit_pigeonholes.php" structure_id=$subtree[ix].structure_id action=edit}
{smartlink ititle="Remove Category" biticon="user-trash" ifile="edit_pigeonholes.php" structure_id=$subtree[ix].structure_id action=remove}
</div>
{/if}
{if $subtree[ix].content_id == $smarty.request.content_id || $subtree[ix].structure_id == $smarty.request.structure_id}
{assign var=current value=1}
{else}
{assign var=current value=0}
{/if}
{if $current}<strong>{/if}
<a href="{$smarty.const.PIGEONHOLES_PKG_URL}{
if $gBitSystem->isFeatureActive('pretty_urls')
}{
elseif $gBitSystem->isFeatureActive('pretty_urls_extended')
}view/{
else
}view.php?content_id={
/if}{$subtree[ix].content_id}#members">{$subtree[ix].title|escape}</a>
{if $current}</strong>{/if}{if $pigeonList.$sid.members_count}<small> ({$pigeonList.$sid.members_count}) </small>{/if}
{if !$no_details}
<br />{$pigeonList.$sid.parsed_data}
{/if}
{/if}
{/strip}
|