Ver código fonte

cache gallery

cedric 3 anos atrás
pai
commit
7919780fc2

+ 3 - 1
views/templates/front/archive.tpl

@@ -35,8 +35,10 @@
                                             {/if}
                                             {include file="module:chcreateur/views/templates/front/post-gallery.tpl" gallery_lists=$chselection.gallery_lists imagesize="gallery_default" class=$class arrow="1"}
                                         {else}
-                                            <img class="img-responsive" src="{$chselection.post_img.post_default}"
+                                            <div class="post_gallery_img item">
+                                                <img class="img-responsive" src="{$chselection.post_img.post_default}"
                                                 alt="{$chselection.post_title}">
+                                            </div>
                                         {/if}
 
                                     </div>

+ 3 - 1
views/templates/front/single.tpl

@@ -48,7 +48,9 @@
 									{/if}
 									{include file="module:chcreateur/views/templates/front/post-gallery.tpl" gallery_lists=$chpost.gallery_lists imagesize="gallery_default" class=$class arrow="1"}
 								{else}
-									<img class="chselection_img img-responsive" src="{$chpost.post_img.post_default}" alt="{$chpost.post_title}">
+									<div class="post_gallery_img item">
+										<img class="chselection_img img-responsive" src="{$chpost.post_img.post_default}" alt="{$chpost.post_title}">
+									</div>
 								{/if}
 								
 							</div>