mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
43 lines
1.7 KiB
Twig
43 lines
1.7 KiB
Twig
<div id="PREVIEWCURRENTCONT" class="PNB10">
|
|
<ul>
|
|
{% for child in record.get_container().get_content() %}
|
|
|
|
{% set thumbnail = child.get_record().get_thumbnail() %}
|
|
{% if thumbnail.is_paysage() %}
|
|
{% set style = 'width:65px;top:' %}
|
|
{% set top = ((66 - (65 / (thumbnail.get_width() / thumbnail.get_height()))) / 2)|round %}
|
|
{% set style = style ~ top %}
|
|
{% set style = style ~ 'px;' %}
|
|
{% else %}
|
|
{% set style = 'height:65px;top:0;' %}
|
|
{% endif %}
|
|
|
|
{% set tooltip = '' %}
|
|
{% if registry.get('GV_rollover_reg_preview') %}
|
|
{% set tooltip = 'tooltipsrc="/prod/tooltip/preview/' ~ child.get_record().get_sbas_id() ~ '/' ~ child.get_record().get_record_id() ~ '/"'%}
|
|
{% endif %}
|
|
|
|
{% set class = '' %}
|
|
{% if record.get_number() == child.get_ord() %}
|
|
{% set class = ' selected' %}
|
|
{% endif %}
|
|
|
|
<li class="{{class}} prevTrainCurrent">
|
|
<img {{tooltip|raw}} jsargs="FEED|{{child.get_ord()}}|{{record.get_container().get_id()}}"
|
|
class="openPreview prevRegToolTip" return(false);" src="{{thumbnail.get_url()}}"
|
|
style="{{style}}margin:7px;position:relative;"/></li>
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
</div>
|
|
<div class="cont_infos">
|
|
<div>
|
|
<img src="/skins/icons/light_left.gif" style="margin-right:10px;" onclick="getPrevious();"/>
|
|
<img src="/skins/icons/light_right.gif" style="margin-left:10px;" onclick="getNext();"/><br/>
|
|
<span onclick="startSlide()" id="start_slide">{% trans 'preview:: demarrer le diaporama' %}</span>
|
|
<span onclick="stopSlide()" id="stop_slide">{% trans 'preview:: arreter le diaporama' %}</span>
|
|
</div>
|
|
</div>
|
|
<div id="PREVIEWTOOL">
|
|
{% include 'prod/preview/tools.html.twig' %}
|
|
</div> |