|
{if (isset($links) || isset($theme.itemLinks))}
{if !isset($links)}{assign var="links" value=$theme.itemLinks}{/if}
{foreach from=$links item=itemLink}
{if $itemLink.moduleId == "cart"}
|
{elseif $itemLink.moduleId == "comment"}
{if $itemLink.params.view == "comment.AddComment" }
|
{elseif $itemLink.params.view == "comment.ShowAllComments"}
|
{/if}
{elseif $itemLink.moduleId == "slideshow"}
|
{/if}
{/foreach}
{/if}
{if !empty($theme.navigator)}
{* {g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true} *}
{g->theme include="navigator.tpl"}
{/if}
{if !empty($theme.item.title)}
{$theme.item.title|markup}
{/if}
{if !empty($theme.item.description)}
{$theme.item.description|markup}
{/if}
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showSize=true
showOwner=$theme.params.showAlbumOwner
class="giInfo"}
{* Show the album blocks chosen for this theme *}
{foreach from=$theme.params.albumUpperBlocks item=block}
{g->block type=$block.0 params=$block.1}
{/foreach}
|
{if !count($theme.children)}
{else}
{assign var="childrenInColumnCount" value=0}
{foreach from=$theme.children item=child}
{* Move to a new row *}
{if ($childrenInColumnCount == $theme.params.columns)}
{assign var="childrenInColumnCount" value=0}
{/if}
{assign var=childrenInColumnCount value="`$childrenInColumnCount+1`"}
{if ($child.canContainChildren || $child.entityType == 'GalleryLinkItem')}
{assign var=frameType value="albumFrame"}
{capture assign=linkUrl}{g->url arg1="view=core.ShowItem"
arg2="itemId=`$child.id`"}{/capture}
{else}
{assign var=frameType value="itemFrame"}
{capture assign=linkUrl}{strip}
{if $theme.params.dynamicLinks == 'jump'}
{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}
{else}
{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}
{/if}
{/strip}{/capture}
{/if}
{g->block type="core.ItemLinks" item=$child links=$child.itemLinks}
{if !empty($child.title)}
{if $child.canContainChildren}
|
{$child.title|markup}
|
{else}
{$child.title|markup}
{/if}
{/if}
{if !empty($child.summary)}
{$child.summary|markup|entitytruncate:256}
{/if}
{if !$theme.params.itemDetails}
{g->block type="core.ItemInfo"
item=$child
showSummaries=true
class="giInfo"}
{else}
{if ($child.canContainChildren && $theme.params.showAlbumOwner) ||
(!$child.canContainChildren && $theme.params.showImageOwner)}
{assign var="showOwner" value=true}
{else}
{assign var="showOwner" value=false}
{/if}
{g->block type="core.ItemInfo"
item=$child
showDate=true
showOwner=$showOwner
showSize=true
showViewCount=true
showSummaries=true
class="giInfo"}
{/if}
|
{/foreach}
{* flush the rest of the row with empty cells *}
{section name="flush" start=$childrenInColumnCount loop=$theme.params.columns}
|
{/section}
{/if}
|
{if !empty($theme.navigator)}
{* {g->block type="core.Navigator" navigator=$theme.navigator reverseOrder=true} *}
{g->theme include="navigator.tpl"}
{/if}
{* Our emergency edit link, if the user removes all blocks containing edit links *}
{g->block type="core.EmergencyEditItemLink" class="gbBlock"
checkBlocks="sidebar,album,albumUpper"}
{* Show any other album blocks (comments, etc) *}
{foreach from=$theme.params.albumBlocks item=block}
{g->block type=$block.0 params=$block.1}
{/foreach}