|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
albertbol Smarty n00b
Joined: 15 May 2014 Posts: 1
|
Posted: Thu May 15, 2014 4:52 pm Post subject: is it possible to scale the gallery pictures trough smarty |
|
|
I have a question about a addon from presta shop that uses smarty.
to generate a pdf of the product from product page.
the picture gallery on the pdf shows little pictures in 1 row like to have them in list and bigger.
you can look what happens on my site product page. and click on the download exposé pdf button.
http://www.real-estate-gran-canaria.nl/nl/maspalomas/85-vakantie-bungalow-met-1-slaapkamer.html
{if $settings->display_gallery && !empty($product.gallery)}
<span nobr="true">
{if $settings->display_paragraph_gallery}
<h1{if $settings->display_paragraph_underline} style="border-bottom: solid 1px {$settings->body_color|escape:'UTF-8'};"{/if}>
<b>{l s='Gallery' mod='product_pdf'}</b>
</h1><h1></h1>
{/if}
{if !$settings->display_paragraph_gallery && $settings->display_paragraph_underline}
<h1{if $settings->display_paragraph_underline} style="border-bottom: solid 1px {$settings->body_color|escape:'UTF-8'};"{/if}></h1><h1></h1>
{/if}
<table border = "0" cellspacing="0" cellpadding="0">
<tr>
{section name=ii loop=$product.gallery}
{if $smarty.section.ii.index < $settings->gallery_items}
<td>
<img src="{$smarty.const._PS_IMG_DIR_|escape:'UTF-8'}p/{$product.gallery[ii]|escape:'UTF-8'}-home_default.jpg" />
</td>
{/if}
{/section}
</tr>
</table>
</span><br /> |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|