A creuser mais peut-être pas besoin de TemplateSwitcher et de CustomSwitchTemplate, et qu'il suffirait de rajouter juste du Smarty dans layout.tpl et index.html
19 lines
726 B
HTML
19 lines
726 B
HTML
{config_load file='variables.conf'}
|
|
|
|
<p>conf = {#id_contenu_contact#}</p>
|
|
|
|
{loop type="payment" name="payments" force_return="true"}
|
|
{assign "paymentModuleId" $ID}
|
|
<li class="list-group-item text-left">
|
|
<label for="payment_{$paymentModuleId}">
|
|
<input type="radio" name="{$name}" id="payment_{$paymentModuleId}" value="{$paymentModuleId}" {if $LOOP_TOTAL ==1 && $LOOP_COUNT == 1}checked{/if}>
|
|
|
|
{loop type="image" name="paymentspicture" source="module" source_id=$ID force_return="true" width="100" height="72"}
|
|
<img src="{$IMAGE_URL}" alt="{intl l="Pay with %module_title" module_title={$TITLE}}">
|
|
{/loop}
|
|
|
|
{$TITLE}
|
|
</label>
|
|
</li>
|
|
{/loop}
|