Commits

Franck Bret committed fb72370

remove width and height definition from popup photo

Comments (0)

Files changed (1)

cmsplugin_photologue/templates/plugins/cmsplugin_photologue/photologue_popup_photo.html

 </a>
 <div class="modal-popup" id="popup{{ photo.pk }}">
         {% ifequal popup_display_mode '0' %}    
-            <img src="{{ popup.get_desktop_big_normal_url }}" alt="{{ popup.title }}" width="{{ photo.get_desktop_big_normal_size.0 }}" height="{{ photo.get_desktop_big_normal_size.1 }}" />
+            <img src="{{ popup.get_desktop_big_normal_url }}" alt="{{ popup.title }}" />
         {% endifequal %}
         {% ifequal popup_display_mode '1' %}    
-            <img src="{{ popup.get_desktop_big_wide_url }}" alt="{{ popup.title }}" width="{{ photo.get_desktop_big_wide_size.0 }}" height="{{ photo.get_desktop_big_wide_size.1 }}" />
+            <img src="{{ popup.get_desktop_big_wide_url }}" alt="{{ popup.title }}" />
         {% endifequal %}
         {% ifequal popup_display_mode '2' %}    
-            <img src="{{ popup.get_desktop_big_square_url }}" alt="{{ popup.title }}" width="{{ photo.get_desktop_big_square_size.0 }}" height="{{ photo.get_desktop_big_square_size.1 }}" />
+            <img src="{{ popup.get_desktop_big_square_url }}" alt="{{ popup.title }}" />
         {% endifequal %}
         {% ifequal popup_display_mode '3' %}    
-            <img src="{{ popup.get_desktop_display_normal_url }}" alt="{{ popup.title }}" width="{{ photo.get_desktop_display_normal_size.0 }}" height="{{ photo.get_desktop_display_normal_size.1 }}" />
+            <img src="{{ popup.get_desktop_display_normal_url }}" alt="{{ popup.title }}" />
         {% endifequal %}
         {% ifequal popup_display_mode '4' %}    
-            <img src="{{ popup.get_desktop_display_wide_url }}" alt="{{ popup.title }}" width="{{ photo.get_desktop_display_wide_size.0 }}" height="{{ photo.get_desktop_display_wide_size.1 }}" />
+            <img src="{{ popup.get_desktop_display_wide_url }}" alt="{{ popup.title }}" />
         {% endifequal %}
         {% ifequal popup_display_mode '5' %}    
-            <img src="{{ popup.get_desktop_display_square_url }}" alt="{{ popup.title }}" width="{{ photo.get_desktop_display_square_size.0 }}" height="{{ photo.get_desktop_display_square_size.1 }}" />
+            <img src="{{ popup.get_desktop_display_square_url }}" alt="{{ popup.title }}" />
         {% endifequal %}
         {% ifequal popup_display_mode '6' %}    
-            <img src="{{ popup.get_desktop_display_thumb_url }}" alt="{{ popup.title }}" width="{{ photo.get_desktop_thumb_size.0 }}" height="{{ photo.get_desktop_thumb_size.1 }}" />
+            <img src="{{ popup.get_desktop_display_thumb_url }}" alt="{{ popup.title }}" />
         {% endifequal %}
 </div>
 {% addtoblock "sekizaijs" %}