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
|
{def $gallerys = fetch( 'content', 'tree', hash( 'parent_node_id', 2,
'class_filter_type', 'include',
'class_filter_array', array( 'gallery' )
))}
<div class="content-view-horizontallylistedsubitems">
{foreach $gallerys as $gallery}
{def $images = fetch( 'content', 'list', hash( 'parent_node_id', $gallery.node_id,
'class_filter_type', 'include',
'class_filter_array', array( 'image' ),
'sort_by', array('name',false())
))}
{if $images.data_map.image}
<div class="class-image">
<div class="content-image">
{attribute_view_gui attribute=$images.data_map.image image_class=imagehome href=$images.url_alias|ezurl()}
</div>
<div class="caption">
<p><a href={$gallery.url_alias|ezurl()}>{$gallery.name|wash}</a></p>
</div>
</div>
{break}
{/if}
{/foreach}
</div> |
Partager