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
|
{def $sShowPictures = 'nopicture'
$oPicturesGroup=fetch_alias( 'children', hash( 'parent_node_id', $node.main_node_id,
'limit', 1,
'class_filter_type', 'include',
'class_filter_array', array('gestion_photos_page_type') ) )}
{if $oPicturesGroup|count}
{def $oPictures=fetch_alias( 'children', hash( 'parent_node_id', $oPicturesGroup.0.main_node_id,
'limit', 5,
'sort_by', array( 'priority', true() ),
'class_filter_type', 'include',
'class_filter_array', array('photo_page_type') ) )}
{if $oPictures|count}
{set $sShowPictures = 'pictures'}
{/if}
{/if}
<div class="chapeau {$sShowPictures}">
{if $oPictures|count}
<div id="pictures_slide">
<ul id="pictures_img" class="pictures_img">
{foreach $oPictures as $child}
<li><a href="{$child.data_map.grande_photo.content[photo_page_type_diapo_large].full_path|ezroot(no)}" class="smoothbox" target="_blank" title="{$child.name}" rel="pictures_slide">{attribute_view_gui image_class=photo_page_type_diapo_small attribute=$child.data_map.petite_photo alt_text=$child.name }</a></li>
{/foreach}
</ul>
</div>
{/if}
<div class="chapo">
{$node.data_map.chapeau.content.output.output_text}
</div>
</div>
{undef $sShowPictures $iPicturesGroupCount} |
Partager