replace smarty variable identifier by $

This commit is contained in:
Manuel Raynaud
2013-09-10 16:54:13 +02:00
parent 0f46e9d23a
commit 5ab3d4fb88
19 changed files with 185 additions and 185 deletions

View File

@@ -56,7 +56,7 @@
<input type="hidden" name="{$name}" value="{$edit_language_locale}" /> <input type="hidden" name="{$name}" value="{$edit_language_locale}" />
{/form_field} {/form_field}
{if #form_error}<div class="alert alert-danger">#form_error_message</div>{/if} {if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
{form_field form=$form field='name'} {form_field form=$form field='name'}
<div class="form-group {if $error}has-error{/if}"> <div class="form-group {if $error}has-error{/if}">

View File

@@ -39,23 +39,23 @@
<meta itemprop="condition" content="new"> <!-- List of condition : new, used, refurbished --> <meta itemprop="condition" content="new"> <!-- List of condition : new, used, refurbished -->
<meta itemprop="identifier" content="mpn:925872"> <!-- List of identifier : asin, isbn, mpn, upc, sku --> <meta itemprop="identifier" content="mpn:925872"> <!-- List of identifier : asin, isbn, mpn, upc, sku -->
<a href="#URL" itemprop="url" tabindex="-1" class="product-image"> <a href="{$URL}" itemprop="url" tabindex="-1" class="product-image">
{ifloop rel="image_product_new" } {ifloop rel="image_product_new" }
<img itemprop="image" <img itemprop="image"
{loop name="image_product_new" type="image" limit="1" product="{#ID}"} {loop name="image_product_new" type="image" limit="1" product="{$ID}"}
src="{#IMAGE_URL}" src="{$IMAGE_URL}"
{/loop} {/loop}
alt="Product #{#LOOP_COUNT}" > alt="Product #{$LOOP_COUNT}" >
{/ifloop} {/ifloop}
{elseloop rel="image_product_new"} {elseloop rel="image_product_new"}
{images file='assets/img/280x196.png'}<img itemprop="image" src="{$asset_url}" alt="Product #{#LOOP_COUNT}">{/images} {images file='assets/img/280x196.png'}<img itemprop="image" src="{$asset_url}" alt="Product #{$LOOP_COUNT}">{/images}
{/elseloop} {/elseloop}
<span class="mask"></span> <span class="mask"></span>
</a> </a>
<a href="{#URL}" class="product-info"> <a href="{$URL}" class="product-info">
<h3 class="name"><span itemprop="name">{#TITLE}</span></h3> <h3 class="name"><span itemprop="name">{$TITLE}</span></h3>
<div class="short-description" itemprop="description">{#CHAPO}</div> <div class="short-description" itemprop="description">{$CHAPO}</div>
<div class="product-price"> <div class="product-price">
<div class="price-container" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <div class="price-container" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
@@ -68,7 +68,7 @@
preorder : http://schema.org/PreOrder preorder : http://schema.org/PreOrder
online_only : http://schema.org/OnlineOnly online_only : http://schema.org/OnlineOnly
--> -->
<span class="regular-price"><span itemprop="price" class="price">{currency attr="symbol"} {format_number number="{#BEST_TAXED_PRICE}"} <span class="regular-price"><span itemprop="price" class="price">{currency attr="symbol"} {format_number number="{$BEST_TAXED_PRICE}"}
</span></span> </span></span>
</div> </div>
</div> </div>
@@ -97,22 +97,22 @@
<meta itemprop="condition" content="new"> <!-- List of condition : new, used, refurbished --> <meta itemprop="condition" content="new"> <!-- List of condition : new, used, refurbished -->
<meta itemprop="identifier" content="mpn:925872"> <!-- List of identifier : asin, isbn, mpn, upc, sku --> <meta itemprop="identifier" content="mpn:925872"> <!-- List of identifier : asin, isbn, mpn, upc, sku -->
<a href="{#URL}" itemprop="url" tabindex="-1" class="product-image"> <a href="{$URL}" itemprop="url" tabindex="-1" class="product-image">
{ifloop rel="image_product_promo" } {ifloop rel="image_product_promo" }
<img itemprop="image" <img itemprop="image"
{loop name="image_product_promo" type="image" limit="1" product="{#ID}"} {loop name="image_product_promo" type="image" limit="1" product="{$ID}"}
src="{#IMAGE_URL}" src="{$IMAGE_URL}"
{/loop} {/loop}
alt="Product #{#LOOP_COUNT}" > alt="Product #{$LOOP_COUNT}" >
{/ifloop} {/ifloop}
{elseloop rel="image_product_promo"} {elseloop rel="image_product_promo"}
{images file='assets/img/218x146.png'}<img itemprop="image" src="{$asset_url}" alt="Promotion #{#LOOP_COUNT}">{/images} {images file='assets/img/218x146.png'}<img itemprop="image" src="{$asset_url}" alt="Promotion #{$LOOP_COUNT}">{/images}
{/elseloop} {/elseloop}
<span class="mask"></span> <span class="mask"></span>
</a> </a>
<div class="product-info"> <div class="product-info">
<h3 class="name"><a href="{#URL}"><span itemprop="name">{#CHAPO}</span></a></h3> <h3 class="name"><a href="{$URL}"><span itemprop="name">{$CHAPO}</span></a></h3>
</div> </div>
<div class="product-price"> <div class="product-price">
@@ -126,9 +126,9 @@
preorder : http://schema.org/PreOrder preorder : http://schema.org/PreOrder
online_only : http://schema.org/OnlineOnly online_only : http://schema.org/OnlineOnly
--> -->
{loop name="productSaleElements_promo" type="product_sale_elements" product="{#ID}" limit="1"} {loop name="productSaleElements_promo" type="product_sale_elements" product="{$ID}" limit="1"}
<span class="special-price"><span itemprop="price" class="price-label">{intl l="Special Price:"} </span><span class="price">{format_number number="{#TAXED_PROMO_PRICE}"} {currency attr="symbol"}</span></span> <span class="special-price"><span itemprop="price" class="price-label">{intl l="Special Price:"} </span><span class="price">{format_number number="{$TAXED_PROMO_PRICE}"} {currency attr="symbol"}</span></span>
<span class="old-price"><span class="price-label">{intl l="Regular Price:"} </span><span class="price">{format_number number="{#TAXED_PRICE}"} {currency attr="symbol"}</span></span> <span class="old-price"><span class="price-label">{intl l="Regular Price:"} </span><span class="price">{format_number number="{$TAXED_PRICE}"} {currency attr="symbol"}</span></span>
{/loop} {/loop}
</div> </div>
</div> </div>

View File

@@ -80,7 +80,7 @@ URL: http://www.thelia.net
</ul> </ul>
</li> </li>
{loop type="category" name="category.navigation" parent="0" limit="3"} {loop type="category" name="category.navigation" parent="0" limit="3"}
<li><a href="{#URL}">{#TITLE}</a></li> <li><a href="{$URL}">{$TITLE}</a></li>
{/loop} {/loop}
</ul> </ul>
<ul class="nav navbar-nav navbar-cart navbar-right"> <ul class="nav navbar-nav navbar-cart navbar-right">
@@ -124,7 +124,7 @@ URL: http://www.thelia.net
<a class="current dropdown-toggle" data-toggle="dropdown" href="language.html">{lang attr="title"}</a> <a class="current dropdown-toggle" data-toggle="dropdown" href="language.html">{lang attr="title"}</a>
<ul class="select dropdown-menu"> <ul class="select dropdown-menu">
{loop type="lang" name="lang_available" exclude="{lang attr="id"}"} {loop type="lang" name="lang_available" exclude="{lang attr="id"}"}
<li><a href="?lang={#CODE}">{#TITLE}</a></li> <li><a href="?lang={$CODE}">{$TITLE}</a></li>
{/loop} {/loop}
</ul> </ul>
</div> </div>
@@ -134,7 +134,7 @@ URL: http://www.thelia.net
<a class="current dropdown-toggle" data-toggle="dropdown" href="currency.html">{currency attr="code"}</a> <a class="current dropdown-toggle" data-toggle="dropdown" href="currency.html">{currency attr="code"}</a>
<ul class="select dropdown-menu"> <ul class="select dropdown-menu">
{loop type="currency" name="currency_available" exclude="{currency attr="id"}" } {loop type="currency" name="currency_available" exclude="{currency attr="id"}" }
<li><a href="?currency={#ISOCODE}">{#SYMBOL} - {#NAME}</a></li> <li><a href="?currency={$ISOCODE}">{$SYMBOL} - {$NAME}</a></li>
{/loop} {/loop}
</ul> </ul>
</div> </div>

View File

@@ -18,7 +18,7 @@
<h1 id="main-label" class="page-header">{intl l="Login"}</h1> <h1 id="main-label" class="page-header">{intl l="Login"}</h1>
{form name="thelia.customer.login"} {form name="thelia.customer.login"}
<form id="form-login" action="{url path="/customer/login"}" method="post" role="form" {form_enctype form=$form}> <form id="form-login" action="{url path="/customer/login"}" method="post" role="form" {form_enctype form=$form}>
{if #form_error}<div class="alert alert-danger">#form_error_message</div>{/if} {if $form_error}<div class="alert alert-danger">{$form_error_message}</div>{/if}
{form_field form=$form field='success_url'} {form_field form=$form field='success_url'}
<input type="hidden" name="{$name}" value="{navigate to="return_to"}" /> {* the url the user is redirected to on login success *} <input type="hidden" name="{$name}" value="{navigate to="return_to"}" /> {* the url the user is redirected to on login success *}
{/form_field} {/form_field}

View File

@@ -26,7 +26,7 @@
<label> <span>{intl l="{$label}"} : </span></label> <label> <span>{intl l="{$label}"} : </span></label>
<select name="{$name}"> <select name="{$name}">
{loop type="title" name="title1"} {loop type="title" name="title1"}
<option value="#ID">#LONG</option> <option value="{$ID}">{$LONG}</option>
{/loop} {/loop}
</select> </select>
@@ -78,7 +78,7 @@
<label> <span>{intl l="{$label}"} : </span></label> <label> <span>{intl l="{$label}"} : </span></label>
<select name="{$name}"> <select name="{$name}">
{loop type="country" name="country1"} {loop type="country" name="country1"}
<option value="#ID">#TITLE</option> <option value="{$ID}">{$TITLE}</option>
{/loop} {/loop}
</select> </select>

View File

@@ -27,7 +27,7 @@
<label> <span>{intl l="{$label}"} : </span></label> <label> <span>{intl l="{$label}"} : </span></label>
<select name="{$name}"> <select name="{$name}">
{loop type="title" name="title1"} {loop type="title" name="title1"}
<option value="#ID">#LONG</option> <option value="{$ID}">{$LONG}</option>
{/loop} {/loop}
</select> </select>
@@ -79,7 +79,7 @@
<label> <span>{intl l="{$label}"} : </span></label> <label> <span>{intl l="{$label}"} : </span></label>
<select name="{$name}"> <select name="{$name}">
{loop type="country" name="country1"} {loop type="country" name="country1"}
<option value="#ID">#TITLE</option> <option value="{$ID}">{$TITLE}</option>
{/loop} {/loop}
</select> </select>

View File

@@ -4,7 +4,7 @@
<ul> <ul>
{loop type="address" name="customer_list" customer="current"} {loop type="address" name="customer_list" customer="current"}
<li>{#LABEL} - {#FIRSTNAME} {#LASTNAME} - <a href="{url path="/address/edit/{#ID}"}">edit</a></li> <li>{$LABEL} - {$FIRSTNAME} {$LASTNAME} - <a href="{url path="/address/edit/{$ID}"}">edit</a></li>
{/loop} {/loop}
</ul> </ul>

View File

@@ -3,7 +3,7 @@
<h1>{intl l='cart'}</h1> <h1>{intl l='cart'}</h1>
<ul> <ul>
{loop name="cart" type="cart"} {loop name="cart" type="cart"}
<li>Item {$LOOP_COUNT}/{$LOOP_TOTAL} : #ITEM_ID #TITLE - quantity : #QUANTITY</li> <li>Item {$LOOP_COUNT}/{$LOOP_TOTAL} : {$ITEM_ID} {$TITLE} - quantity : {$QUANTITY}</li>
{/loop} {/loop}
</ul> </ul>
@@ -16,7 +16,7 @@
and passed back to the form plugin through the ParserContext. and passed back to the form plugin through the ParserContext.
*} *}
{if #form_error}<div class="alert alert-error">#form_error_message</div>{/if} {if $form_error}<div class="alert alert-error">{$form_error_message}</div>{/if}
{form_hidden_fields form=$form} {form_hidden_fields form=$form}

View File

@@ -12,13 +12,13 @@
{loop name="category0" type="category" parent="0" order="manual"} {loop name="category0" type="category" parent="0" order="manual"}
<div style="border: solid 4px blue; padding: 20px; margin: 10px;"> <div style="border: solid 4px blue; padding: 20px; margin: 10px;">
<h2>CATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h2> <h2>CATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h2>
{ifloop rel="prod_ass_cont"} {ifloop rel="prod_ass_cont"}
<h5>Associated Content</h5> <h5>Associated Content</h5>
<ul> <ul>
{loop name="prod_ass_cont" type="associated_content" category="#ID" order="associated_content"} {loop name="prod_ass_cont" type="associated_content" category="$ID" order="associated_content"}
<li>#TITLE</li> <li>{$TITLE}</li>
{/loop} {/loop}
</ul> </ul>
{/ifloop} {/ifloop}
@@ -26,23 +26,23 @@
<h5>No associated content</h5> <h5>No associated content</h5>
{/elseloop} {/elseloop}
{loop name="product" type="product" category="#ID"} {loop name="product" type="product" category="$ID"}
<div style="border: dashed 2px red; padding: 20px; margin: 10px;"> <div style="border: dashed 2px red; padding: 20px; margin: 10px;">
<h3><a href="#URL">PRODUCT #ID : #REF (#LOOP_COUNT / #LOOP_TOTAL)</a></h3> <h3><a href="{$URL}">PRODUCT {$ID} : {$REF} ({$LOOP_COUNT} / {$LOOP_TOTA}L)</a></h3>
<h4>#TITLE</h4> <h4>{$TITLE}</h4>
<p>#DESCRIPTION</p> <p>{$DESCRIPTION}</p>
<p>Starting by #BEST_PRICE € HT (TAX : #BEST_PRICE_TAX ; #BEST_TAXED_PRICE € TTC)</p> <p>Starting by {$BEST_PRICE} HT (TAX : {$BEST_PRICE_TAX} ; {$BEST_TAXED_PRICE} TTC)</p>
{ifloop rel="ft"} {ifloop rel="ft"}
<h5>Features</h5> <h5>Features</h5>
<ul> <ul>
{assign var=current_product value=#ID} {assign var=current_product value=$ID}
{loop name="ft" type="feature" order="manual" product="#ID"} {loop name="ft" type="feature" order="manual" product="$ID"}
<li> <li>
<strong>#TITLE</strong> : <strong>{$TITLE}</strong> :
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"} {loop name="ft_v" type="feature_value" product="{$current_product}" feature="{$ID}"}
#TITLE / #PERSONAL_VALUE {$TITLE} / {$PERSONAL_VALUE}
{/loop} {/loop}
</li> </li>
{/loop} {/loop}
@@ -53,15 +53,15 @@
{/elseloop} {/elseloop}
</div> </div>
{/loop} {/loop}
{loop name="catgory1" type="category" parent="#ID"} {loop name="catgory1" type="category" parent="$ID"}
<div style="border: double 4px lightseagreen; padding: 20px; margin: 10px;"> <div style="border: double 4px lightseagreen; padding: 20px; margin: 10px;">
<h3>SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3> <h3>SUBCATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
{ifloop rel="prod_ass_cont"} {ifloop rel="prod_ass_cont"}
<h5>Associated Content</h5> <h5>Associated Content</h5>
<ul> <ul>
{loop name="prod_ass_cont" type="associated_content" category="#ID" order="associated_content"} {loop name="prod_ass_cont" type="associated_content" category="$ID" order="associated_content"}
<li>#TITLE</li> <li>{$TITLE}</li>
{/loop} {/loop}
</ul> </ul>
{/ifloop} {/ifloop}
@@ -69,22 +69,22 @@
<h5>No associated content</h5> <h5>No associated content</h5>
{/elseloop} {/elseloop}
{loop name="product" type="product" category="#ID"} {loop name="product" type="product" category="$ID"}
<div style="border: solid 1px green; padding: 20px; margin: 10px;"> <div style="border: solid 1px green; padding: 20px; margin: 10px;">
<h3><a href="#URL">PRODUCT #ID : #REF (#LOOP_COUNT / #LOOP_TOTAL)</a></h3> <h3><a href="{$URL}">PRODUCT {$ID} : {$REF} ({$LOOP_COUNT} / {$LOOP_TOTAL})</a></h3>
<h4>#TITLE</h4> <h4>{$TITLE}</h4>
<p>#DESCRIPTION</p> <p>{$DESCRIPTION}</p>
{ifloop rel="ft"} {ifloop rel="ft"}
<h5>Features</h5> <h5>Features</h5>
<ul> <ul>
{assign var=current_product value=#ID} {assign var=current_product value=$ID}
{loop name="ft" type="feature" order="manual" product="#ID"} {loop name="ft" type="feature" order="manual" product="$ID"}
<li> <li>
<strong>#TITLE</strong> : <strong>{$TITLE}</strong> :
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"} {loop name="ft_v" type="feature_value" product="{$current_product}" feature="$ID"}
#TITLE / #PERSONAL_VALUE {$TITLE} / {$PERSONAL_VALUE}
{/loop} {/loop}
</li> </li>
{/loop} {/loop}
@@ -109,10 +109,10 @@
<ul> <ul>
{loop name="ft" type="feature" order="manual"} {loop name="ft" type="feature" order="manual"}
<li> <li>
#TITLE {$TITLE}
<ul> <ul>
{loop name="ftav" type="feature_availability" order="manual" feature="#ID"} {loop name="ftav" type="feature_availability" order="manual" feature="$ID"}
<li>#TITLE</li> <li>{$TITLE}</li>
{/loop} {/loop}
</ul> </ul>
</li> </li>
@@ -126,10 +126,10 @@
<ul> <ul>
{loop name="attr" type="attribute" order="manual"} {loop name="attr" type="attribute" order="manual"}
<li> <li>
#TITLE {$TITLE}
<ul> <ul>
{loop name="attrav" type="attribute_availability" order="manual" attribute="#ID"} {loop name="attrav" type="attribute_availability" order="manual" attribute="$ID"}
<li>#TITLE</li> <li>{$TITLE}</li>
{/loop} {/loop}
</ul> </ul>
</li> </li>
@@ -143,7 +143,7 @@
<ul> <ul>
{loop name="cur" type="currency"} {loop name="cur" type="currency"}
<li> <li>
#NAME (#SYMBOL) {$NAME} ({$SYMBOL})
</li> </li>
{/loop} {/loop}
</ul> </ul>

View File

@@ -27,7 +27,7 @@
and passed back to the form plugin through the ParserContext. and passed back to the form plugin through the ParserContext.
*} *}
{if #form_error}<div class="alert alert-error">#form_error_message</div>{/if} {if $form_error}<div class="alert alert-error">{$form_error_message}</div>{/if}
{form_hidden_fields form=$form} {form_hidden_fields form=$form}
@@ -132,28 +132,28 @@
{form_field form=$form field="email"} {form_field form=$form field="email"}
{form_error form=$form field="email"} {form_error form=$form field="email"}
{#message} {$message}
{/form_error} {/form_error}
<label><span>{intl l="{$label}"}</span></label><input type="email" name="{$name}" value="{$value}" {$attr} ><br /> <label><span>{intl l="{$label}"}</span></label><input type="email" name="{$name}" value="{$value}" {$attr} ><br />
{/form_field} {/form_field}
{form_field form=$form field="email_confirm"} {form_field form=$form field="email_confirm"}
{form_error form=$form field="email_confirm"} {form_error form=$form field="email_confirm"}
{#message} {$message}
{/form_error} {/form_error}
<label><span>{intl l="{$label}"}</span></label><input type="email" name="{$name}" {$attr} ><br /> <label><span>{intl l="{$label}"}</span></label><input type="email" name="{$name}" {$attr} ><br />
{/form_field} {/form_field}
{form_field form=$form field="password"} {form_field form=$form field="password"}
{form_error form=$form field="password"} {form_error form=$form field="password"}
{#message} {$message}
{/form_error} {/form_error}
<label><span>{intl l="{$label}"}</span></label><input type="password" name="{$name}" {$attr} ><br /> <label><span>{intl l="{$label}"}</span></label><input type="password" name="{$name}" {$attr} ><br />
{/form_field} {/form_field}
{form_field form=$form field="password_confirm"} {form_field form=$form field="password_confirm"}
{form_error form=$form field="password_confirm"} {form_error form=$form field="password_confirm"}
{#message} {$message}
{/form_error} {/form_error}
<label><span>{intl l="{$label}"}</span></label><input type="password" name="{$name}" {$attr} ><br /> <label><span>{intl l="{$label}"}</span></label><input type="password" name="{$name}" {$attr} ><br />
{/form_field} {/form_field}

View File

@@ -7,43 +7,43 @@
<table border="1" cellspacing="0" cellpadding="5"> <table border="1" cellspacing="0" cellpadding="5">
<tr> <tr>
<td>ID</td> <td>ID</td>
<td>#ID</td> <td>{$ID}</td>
</tr> </tr>
<tr> <tr>
<td>Réference</td> <td>Réference</td>
<td>#REF</td> <td>{$REF}</td>
</tr> </tr>
<tr> <tr>
<td>Title</td> <td>Title</td>
<td> <td>
{loop name="title" type="title" id="#TITLE"} {loop name="title" type="title" id="$TITLE"}
#LONG (#SHORT) {$LONG} ({$SHORT})
{/loop} {/loop}
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Firstname</td> <td>Firstname</td>
<td>#FIRSTNAME</td> <td>{$FIRSTNAME}</td>
</tr> </tr>
<tr> <tr>
<td>Lastname</td> <td>Lastname</td>
<td>#LASTNAME</td> <td>{$LASTNAME}</td>
</tr> </tr>
<tr> <tr>
<td>Email</td> <td>Email</td>
<td>#EMAIL</td> <td>{$EMAIL}</td>
</tr> </tr>
<tr> <tr>
<td>Is reseller</td> <td>Is reseller</td>
<td>#RESELLER</td> <td>{$RESELLER}</td>
</tr> </tr>
<tr> <tr>
<td>Sponsor</td> <td>Sponsor</td>
<td>#SPONSOR</td> <td>{$SPONSOR}</td>
</tr> </tr>
<tr> <tr>
<td>Discount</td> <td>Discount</td>
<td>#DISCOUNT %</td> <td>{$DISCOUNT} %</td>
</tr> </tr>
</table> </table>
@@ -56,20 +56,20 @@
<table border="1" cellspacing="0" cellpadding="5"> <table border="1" cellspacing="0" cellpadding="5">
<tr> <tr>
<td>ID</td> <td>ID</td>
<td>#ID</td> <td>{$ID}</td>
</tr> </tr>
<tr> <tr>
<td>Name</td> <td>Name</td>
<td>#NAME</td> <td>{$NAME}</td>
</tr> </tr>
<tr> <tr>
<td>Title</td> <td>Title</td>
<td> <td>
<ul> <ul>
{assign var=current_title value=#TITLE} {assign var=current_title value=$TITLE}
{loop name="title" type="title"} {loop name="title" type="title"}
<li {if $current_title==#ID}style="background-color: yellow"{/if}> <li {if $current_title==$ID}style="background-color: yellow"{/if}>
#LONG (#SHORT) {$LONG} ({$SHORT})
</li> </li>
{/loop} {/loop}
</ul> </ul>
@@ -77,36 +77,36 @@
</tr> </tr>
<tr> <tr>
<td>Company</td> <td>Company</td>
<td>#COMPANY</td> <td>{$COMPANY}</td>
</tr> </tr>
<tr> <tr>
<td>Firstname</td> <td>Firstname</td>
<td>#FIRSTNAME</td> <td>{$FIRSTNAME}</td>
</tr> </tr>
<tr> <tr>
<td>Lastname</td> <td>Lastname</td>
<td>#LASTNAME</td> <td>{$LASTNAME}</td>
</tr> </tr>
<tr> <tr>
<td>Address</td> <td>Address</td>
<td>#ADDRESS1<br/>#ADDRESS2<br/>#ADDRESS3</td> <td>{$ADDRESS1}<br/>{$ADDRESS2}<br/>{$ADDRESS3}</td>
</tr> </tr>
<tr> <tr>
<td>Zipcode</td> <td>Zipcode</td>
<td>#ZIPCODE</td> <td>{$ZIPCODE}</td>
</tr> </tr>
<tr> <tr>
<td>City</td> <td>City</td>
<td>#CITY</td> <td>{$CITY}</td>
</tr> </tr>
<tr> <tr>
<td>Country</td> <td>Country</td>
<td> <td>
<select> <select>
{assign var=current_country value=#COUNTRY} {assign var=current_country value=$COUNTRY}
{loop name="country" type="country"} {loop name="country" type="country"}
<option {if $current_country==#ID}selected="selected"{/if}> <option {if $current_country==$ID}selected="selected"{/if}>
#TITLE (#ID - #ISOCODE - #ISOALPHA2 - #ISOALPHA3) {$TITLE} ({$ID} - {$ISOCODE} - {$ISOALPHA2} - {$ISOALPHA3})
</option> </option>
{/loop} {/loop}
</select> </select>
@@ -114,11 +114,11 @@
</tr> </tr>
<tr> <tr>
<td>Phone</td> <td>Phone</td>
<td>#PHONE</td> <td>{$PHONE}</td>
</tr> </tr>
<tr> <tr>
<td>Cellphone</td> <td>Cellphone</td>
<td>#CELLPHONE</td> <td>{$CELLPHONE}</td>
</tr> </tr>
</table> </table>

View File

@@ -4,9 +4,9 @@
{loop type="delivery" name="delivery.list"} {loop type="delivery" name="delivery.list"}
<li> <li>
<ul> <ul>
<li>id : {#ID}</li> <li>id : {$ID}</li>
<li>prix : {#PRICE}</li> <li>prix : {$PRICE}</li>
<li>Choisir : <a href="{url path="/delivery/choose/{#ID}"}">Choisir</a></li> <li>Choisir : <a href="{url path="/delivery/choose/{$ID}"}">Choisir</a></li>
</ul> </ul>
</li> </li>
{/loop} {/loop}

View File

@@ -1,13 +1,13 @@
{loop name="folder0" type="folder" parent="0" order="alpha_reverse"} {loop name="folder0" type="folder" parent="0" order="alpha_reverse"}
<div style="border: solid 4px blue; padding: 20px; margin: 10px;"> <div style="border: solid 4px blue; padding: 20px; margin: 10px;">
<h2>FOLDER : #TITLE</h2> <h2>FOLDER : {$TITLE}</h2>
{loop name="folder1" type="folder" parent="#ID"} {loop name="folder1" type="folder" parent="$ID"}
<div style="border: double 4px lightseagreen; padding: 20px; margin: 10px;"> <div style="border: double 4px lightseagreen; padding: 20px; margin: 10px;">
<h3>SUBFOLDER : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3> <h3>SUBFOLDER : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
{loop name="content" type="content" folder="#ID"} {loop name="content" type="content" folder="$ID"}
<div style="border: solid 1px green; padding: 20px; margin: 10px;"> <div style="border: solid 1px green; padding: 20px; margin: 10px;">
<h3>CONTENT : #TITLE</h3> <h3>CONTENT : {$TITLE}</h3>
<p>#DESCRIPTION</p> <p>{$DESCRIPTION}</p>
</div> </div>
{/loop} {/loop}
</div> </div>

View File

@@ -5,22 +5,22 @@
<h2>Category Images</h2> <h2>Category Images</h2>
<ul> <ul>
{loop type="category" name="jsvdfk"} {loop type="category" name="jsvdfk"}
<li><p>Category id #ID: #TITLE</p> <li><p>Category id {$ID}: {$TITLE}</p>
<ul> <ul>
<li> <li>
{loop type="image" name="image_test" category="#ID" width="200" height="100" resize_mode="borders"} {loop type="image" name="image_test" category="$ID" width="200" height="100" resize_mode="borders"}
<p>Processed file URL: #IMAGE_URL</p> <p>Processed file URL: {$IMAGE_URL}</p>
<p>Original file URL: #ORIGINAL_IMAGE_URL</p> <p>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
{loop type="image" name="image_test" category="#ID"} {loop type="image" name="image_test" category="$ID"}
<p>Full size file URL: #IMAGE_URL</p> <p>Full size file URL: {$IMAGE_URL}</p>
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
{loop type="image" name="image_test" source="category" source_id="#ID"} {loop type="image" name="image_test" source="category" source_id="$ID"}
<p>source="category" source_id="x" argument style: Processed file URL: #IMAGE_URL</p> <p>source="category" source_id="x" argument style: Processed file URL: {$IMAGE_URL}</p>
{/loop} {/loop}
</li> </li>
</ul> </ul>
@@ -34,27 +34,27 @@
<h2>Product Images</h2> <h2>Product Images</h2>
<ul> <ul>
{loop type="product" name="jsvdfk"} {loop type="product" name="jsvdfk"}
<li><p>Product id #ID: #TITLE</p> <li><p>Product id {$ID}: {$TITLE}</p>
<ul> <ul>
<li> <li>
{loop type="image" name="image_test" product="#ID" width="200" height="100" resize_mode="borders" effects="gamma:0.7" background_color="#cc8000"} {loop type="image" name="image_test" product="$ID" width="200" height="100" resize_mode="borders" effects="gamma:0.7" background_color="#cc8000"}
<p>Processed file URL: #IMAGE_URL</p> <p>Processed file URL: {$IMAGE_URL}</p>
<p>Original file URL: #ORIGINAL_IMAGE_URL</p> <p>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
<p>Images:</p> <p>Images:</p>
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
{loop type="image" name="image_test" product="#ID" width="200" height="100" resize_mode="crop"} {loop type="image" name="image_test" product="$ID" width="200" height="100" resize_mode="crop"}
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
{loop type="image" name="image_test" product="#ID" width="100" height="200" resize_mode="borders" background_color="#cc8000"} {loop type="image" name="image_test" product="$ID" width="100" height="200" resize_mode="borders" background_color="#cc8000"}
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
{loop type="image" name="image_test" product="#ID" width="100" rotation="-20" background_color="#facabe"} {loop type="image" name="image_test" product="$ID" width="100" rotation="-20" background_color="#facabe"}
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
{loop type="image" name="image_test" product="#ID" width="200" height="100" resize_mode="borders" background_color="#facabe" effects="negative"} {loop type="image" name="image_test" product="$ID" width="200" height="100" resize_mode="borders" background_color="#facabe" effects="negative"}
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
</p> </p>
</li> </li>
@@ -67,13 +67,13 @@
<h2>Folder Images</h2> <h2>Folder Images</h2>
<ul> <ul>
{loop type="folder" name="jsvdfk"} {loop type="folder" name="jsvdfk"}
<li><p>Folder id #ID: #TITLE</p> <li><p>Folder id {$ID}: {$TITLE}</p>
<ul> <ul>
<li> <li>
{loop type="image" name="image_test" folder="#ID" width="200" height="100" resize_mode="borders"} {loop type="image" name="image_test" folder="$ID" width="200" height="100" resize_mode="borders"}
<p>Processed file URL: #IMAGE_URL</p> <p>Processed file URL: {$IMAGE_URL}</p>
<p>Original file URL: #ORIGINAL_IMAGE_URL</p> <p>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
</li> </li>
</ul> </ul>
@@ -86,13 +86,13 @@
<h2>Content Images</h2> <h2>Content Images</h2>
<ul> <ul>
{loop type="content" name="jsvdfk"} {loop type="content" name="jsvdfk"}
<li><p>Content id #ID: #TITLE</p> <li><p>Content id {$ID}: {$TITLE}</p>
<ul> <ul>
<li> <li>
{loop type="image" name="image_test" content="#ID" width="200" height="100" resize_mode="borders"} {loop type="image" name="image_test" content="$ID" width="200" height="100" resize_mode="borders"}
<p>Processed file URL: #IMAGE_URL</p> <p>Processed file URL: {$IMAGE_URL}</p>
<p>Original file URL: #ORIGINAL_IMAGE_URL</p> <p>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
<img src="#IMAGE_URL" /> <img src="{$IMAGE_URL}" />
{/loop} {/loop}
</li> </li>
</ul> </ul>

View File

@@ -1,12 +1,12 @@
{loop name="included0" type="category" parent="0"} {loop name="included0" type="category" parent="0"}
<h2>Out before - CATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h2> <h2>Out before - CATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h2>
{loop name="category1" type="category" parent="#ID"} {loop name="category1" type="category" parent="$ID"}
<h3>Inner - SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3> <h3>Inner - SUBCATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
{/loop} {/loop}
{loop name="category2" type="category" parent="#ID"} {loop name="category2" type="category" parent="$ID"}
<h3>Inner 2 - SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3> <h3>Inner 2 - SUBCATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
{/loop} {/loop}
<h2>Out after - CATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h2> <h2>Out after - CATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h2>
<hr /> <hr />
{/loop} {/loop}

View File

@@ -25,12 +25,12 @@
and passed back to the form plugin through the ParserContext. and passed back to the form plugin through the ParserContext.
*} *}
{if #form_error}<div class="alert alert-error">#form_error_message</div>{/if} {if $0form_error}<div class="alert alert-error">{$form_error_message}</div>{/if}
{form_hidden_fields form=$form} {form_hidden_fields form=$form}
{form_field form=$form field="email"} {form_field form=$form field="email"}
{if #error}{#message}{/if} {if $error}{$message}{/if}
<label>{intl l="Your e-mail address"}: </label><input type="email" name="{$name}" {$attr} value="{$value}"><br /> <label>{intl l="Your e-mail address"}: </label><input type="email" name="{$name}" {$attr} value="{$value}"><br />
{/form_field} {/form_field}

View File

@@ -7,7 +7,7 @@
<div style="border: solid 1px; padding: 20px;"> <div style="border: solid 1px; padding: 20px;">
{loop name="cat" type="category" page="{$category_current_page}" limit="2"} {loop name="cat" type="category" page="{$category_current_page}" limit="2"}
<h2>#LOOP_COUNT - #TITLE</h2> <h2>{$LOOP_COUNT} - {$TITLE}</h2>
<h3>Products :</h3> <h3>Products :</h3>
<div style="border: solid 1px; padding: 20px;"> <div style="border: solid 1px; padding: 20px;">
@@ -17,23 +17,23 @@
{assign var=product_current_page value={$smarty.get.$this_product_getter|default:1}} {assign var=product_current_page value={$smarty.get.$this_product_getter|default:1}}
<ul> <ul>
{loop name="prod" type="product" category="#ID" page="{$product_current_page}" limit="2"} {loop name="prod" type="product" category="$ID" page="{$product_current_page}" limit="2"}
<li> <li>
#ID:#REF {$ID}:{$REF}
</li> </li>
{/loop} {/loop}
</ul> </ul>
</div> </div>
<p>#TITLE page choice</p> <p>{$TITLE} page choice</p>
{pageloop rel="prod"} {pageloop rel="prod"}
{if ${PAGE} != {$product_current_page}} {if $PAGE != $product_current_page}
<a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}=#PAGE">#PAGE</a> <a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}={$PAGE}">{$PAGE}</a>
{else} {else}
{ #PAGE } {$PAGE}
{/if} {/if}
{if {$PAGE} != {$LAST}} {if $PAGE != $LAST}
- -
{/if} {/if}
{/pageloop} {/pageloop}
@@ -44,12 +44,12 @@
<p>categories page choice</p> <p>categories page choice</p>
{pageloop rel="cat"} {pageloop rel="cat"}
{if ${PAGE} != {$category_current_page}} {if $PAGE != $category_current_page}
<a href="index_dev.php?view=pagination&category_page=#PAGE">#PAGE</a> <a href="index_dev.php?view=pagination&category_page={$PAGE}">{$PAGE}</a>
{else} {else}
{ #PAGE } {$PAGE}
{/if} {/if}
{if {$PAGE} != {$LAST}} {if $PAGE != $LAST}
- -
{/if} {/if}
{/pageloop} {/pageloop}
@@ -62,18 +62,18 @@ Pagination before loop
{capture name="prod2"} {capture name="prod2"}
{loop name="prod2" type="product" page="{$product_current_page}" limit="2"} {loop name="prod2" type="product" page="{$product_current_page}" limit="2"}
<li> <li>
#ID:#REF {$ID}:{$REF}
</li> </li>
{/loop} {/loop}
{/capture} {/capture}
{pageloop rel="prod2"} {pageloop rel="prod2"}
{if ${PAGE} != {$product_current_page}} {if ${PAGE} != {$product_current_page}}
<a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}=#PAGE">#PAGE</a> <a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}={$PAGE}">{$PAGE}</a>
{else} {else}
{ #PAGE } {$PAGE}
{/if} {/if}
{if {$PAGE} != {$LAST}} {if $PAGE != $LAST}
- -
{/if} {/if}
{/pageloop} {/pageloop}
@@ -82,11 +82,11 @@ Pagination before loop
{pageloop rel="prod2"} {pageloop rel="prod2"}
{if ${PAGE} != {$product_current_page}} {if ${PAGE} != {$product_current_page}}
<a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}=#PAGE">#PAGE</a> <a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}={$PAGE}">{$PAGE}</a>
{else} {else}
{ #PAGE } {$PAGE}
{/if} {/if}
{if {$PAGE} != {$LAST}} {if $PAGE != $LAST}
- -
{/if} {/if}
{/pageloop} {/pageloop}

View File

@@ -9,17 +9,17 @@ Index : {navigate to="index"}<br />
{loop type="product" name="product" current="true"} {loop type="product" name="product" current="true"}
<div style="border: dashed 2px red; padding: 20px; margin: 10px;"> <div style="border: dashed 2px red; padding: 20px; margin: 10px;">
<h2>PRODUCT (#ID) : #REF</h2> <h2>PRODUCT ({$ID}) : {$REF}</h2>
<h3>#TITLE</h3> <h3>{$TITLE}</h3>
<p>#DESCRIPTION</p> <p>{$DESCRIPTION}</p>
<p>Starting by #BEST_PRICE € HT (TAX : #BEST_PRICE_TAX ; #BEST_TAXED_PRICE € TTC)</p> <p>Starting by {$BEST_PRICE} HT (TAX : {$BEST_PRICE_TAX} ; {$BEST_TAXED_PRICE} TTC)</p>
{ifloop rel="acc"} {ifloop rel="acc"}
<h4>Accessories</h4> <h4>Accessories</h4>
<ul> <ul>
{loop name="acc" type="accessory" product="#ID" order="accessory"} {loop name="acc" type="accessory" product="$ID" order="accessory"}
<li><a href="#URL">#REF</a></li> <li><a href="{$URL}">{$REF}</a></li>
{/loop} {/loop}
</ul> </ul>
{/ifloop} {/ifloop}
@@ -30,8 +30,8 @@ Index : {navigate to="index"}<br />
{ifloop rel="prod_ass_cont"} {ifloop rel="prod_ass_cont"}
<h4>Associated Content</h4> <h4>Associated Content</h4>
<ul> <ul>
{loop name="prod_ass_cont" type="associated_content" product="#ID" order="associated_content"} {loop name="prod_ass_cont" type="associated_content" product="$ID" order="associated_content"}
<li>#TITLE</li> <li>{$TITLE}</li>
{/loop} {/loop}
</ul> </ul>
{/ifloop} {/ifloop}
@@ -42,12 +42,12 @@ Index : {navigate to="index"}<br />
{ifloop rel="ft"} {ifloop rel="ft"}
<h4>Features</h4> <h4>Features</h4>
<ul> <ul>
{assign var=current_product value=#ID} {assign var=current_product value=$ID}
{loop name="ft" type="feature" order="manual" product="#ID"} {loop name="ft" type="feature" order="manual" product="$ID"}
<li> <li>
<strong>#TITLE</strong> : <strong>{$TITLE}</strong> :
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"} {loop name="ft_v" type="feature_value" product="{$current_product}" feature="$ID"}
#TITLE / #PERSONAL_VALUE {$TITLE} / {$PERSONAL_VALUE}
{/loop} {/loop}
</li> </li>
{/loop} {/loop}
@@ -59,18 +59,18 @@ Index : {navigate to="index"}<br />
<h4>Product sale elements</h4> <h4>Product sale elements</h4>
{assign var=current_product value=#ID} {assign var=current_product value=$ID}
{loop name="pse" type="product_sale_elements" product="#ID"} {loop name="pse" type="product_sale_elements" product="$ID"}
<div style="border: solid 2px darkorange; padding: 5px; margin: 5px;"> <div style="border: solid 2px darkorange; padding: 5px; margin: 5px;">
{loop name="combi" type="attribute_combination" product_sale_elements="#ID"} {loop name="combi" type="attribute_combination" product_sale_elements="$ID"}
#ATTRIBUTE_TITLE = #ATTRIBUTE_AVAILABILITY_TITLE<br /> {$ATTRIBUTE_TITLE} = {$ATTRIBUTE_AVAILABILITY_TITLE}<br />
{/loop} {/loop}
<br />#WEIGHT g <br />{$WEIGHT} g
<br /><strong>{if #IS_PROMO == 1} #PROMO_PRICE € HT // TAX : #PROMO_PRICE_TAX ; #TAXED_PROMO_PRICE € TTC (instead of #PRICE HT // TAX : #PRICE_TAX ; #TAXED_PRICE € TTC){else} #PRICE € HT // TAX : #PRICE_TAX ; #TAXED_PRICE € TTC{/if}</strong> <br /><strong>{if $IS_PROMO == 1} {$PROMO_PRICE} € HT // TAX : {$PROMO_PRICE_TAX} ; {$TAXED_PROMO_PRICE} TTC (instead of {$PRICE HT} // TAX : {$PRICE_TAX} ; {$TAXED_PRICE} TTC){else} {$PRICE} € HT // TAX : {$PRICE_TAX} ; {$TAXED_PRICE} TTC{/if}</strong>
<br /><br /> <br /><br />
Add Add
<select> <select>
{for $will=1 to #QUANTITY} {for $will=1 to $QUANTITY}
<option>{$will}</option> <option>{$will}</option>
{/for} {/for}
</select> </select>

View File

@@ -2,8 +2,8 @@
{loop name="car" type="category"} {loop name="car" type="category"}
<li> <li>
<ul> <ul>
{loop name="product" type="product" category="#ID"} {loop name="product" type="product" category="$ID"}
<li>#REF</li> <li>{$REF}</li>
{/loop} {/loop}
</ul> </ul>
</li> </li>