Merge branch 'master' of https://github.com/thelia/thelia
Conflicts: core/lib/Thelia/Controller/Admin/CustomerController.php templates/admin/default/customers.html
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<link rel="stylesheet" href="{$asset_url}">
|
||||
{/stylesheets}
|
||||
|
||||
{debugbar_renderHead}
|
||||
{debugbar_rendercss}
|
||||
|
||||
{block name="after-bootstrap-css"}{/block}
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
{* Modules css are included here *}
|
||||
|
||||
{module_include location='head_css'}
|
||||
|
||||
{debugbar_renderHead}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -225,11 +223,13 @@
|
||||
|
||||
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
|
||||
|
||||
{debugbar_renderjs}
|
||||
{debugbar_renderresult}
|
||||
|
||||
{block name="after-javascript-include"}{/block}
|
||||
|
||||
{block name="javascript-initialization"}{/block}
|
||||
|
||||
{debugbar_render}
|
||||
{* Modules scripts are included now *}
|
||||
{module_include location='footer_js'}
|
||||
|
||||
|
||||
@@ -61,14 +61,14 @@
|
||||
<tbody>
|
||||
{loop name="customer_list" type="customer" current="false" visible="*" last_order="1" backend_context="1" page={$customer_page} limit={$display_customer}}
|
||||
<tr>
|
||||
<td>{#REF}</td>
|
||||
<td>{$REF}</td>
|
||||
|
||||
<td>
|
||||
{#COMPANY}
|
||||
{$COMPANY}
|
||||
</td>
|
||||
|
||||
<td class="object-title">
|
||||
{#FIRSTNAME} {#LASTNAME}
|
||||
{$FIRSTNAME} {$LASTNAME}
|
||||
</td>
|
||||
|
||||
{module_include location='customer_list_row'}
|
||||
@@ -87,7 +87,7 @@
|
||||
<a class="btn btn-default btn-xs" title="{intl l='Edit this customer'}" href="{url path="/admin/customer/update/{$ID}" }"><i class="glyphicon glyphicon-edit"></i></a>
|
||||
{/loop}
|
||||
{loop type="auth" name="can_send_mail" roles="ADMIN" permissions="admin.customer.sendMail"}
|
||||
<a class="btn btn-default btn-xs" title="{intl l="Send a mail to this customer"}" href="mailto:{#EMAIL}"><span class="glyphicon glyphicon-envelope"></span></a>
|
||||
<a class="btn btn-default btn-xs" title="{intl l="Send a mail to this customer"}" href="mailto:{$EMAIL}"><span class="glyphicon glyphicon-envelope"></span></a>
|
||||
{/loop}
|
||||
{loop type="auth" name="can_delete" roles="ADMIN" permissions="admin.customer.delete"}
|
||||
<a class="btn btn-default btn-xs customer-delete" title="{intl l='Delete this customer and all his orders'}" href="#delete_customer_dialog" data-id="{$ID}" data-toggle="modal"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
@@ -104,33 +104,34 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{module_include location='customer_bottom'}
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
|
||||
<ul class="pagination pagination-centered">
|
||||
{if $customer_page != 1}
|
||||
<li><a href="{url path="/admin/customers" page="1"}">«</a></li>
|
||||
{else}
|
||||
<li class="disabled"><a href="#">«</a></li>
|
||||
{/if}
|
||||
{module_include location='customer_bottom'}
|
||||
<div class="row">
|
||||
<div class="col-md-12 text-center">
|
||||
|
||||
{pageloop rel="customer_list"}
|
||||
{if $PAGE != $CURRENT}
|
||||
<li><a href="{url path="/admin/customers" page="$PAGE"}">{$PAGE}</a></li>
|
||||
{else}
|
||||
<li class="active"><a href="#">{$PAGE}</a></li>
|
||||
{/if}
|
||||
<ul class="pagination pagination-centered">
|
||||
{if $customer_page != 1}
|
||||
<li><a href="{url path="/admin/customers" page="1"}">«</a></li>
|
||||
{else}
|
||||
<li class="disabled"><a href="#">«</a></li>
|
||||
{/if}
|
||||
|
||||
{pageloop rel="customer_list"}
|
||||
{if $PAGE != $CURRENT}
|
||||
<li><a href="{url path="/admin/customers" page="{$PAGE}"}">{$PAGE}</a></li>
|
||||
|
||||
{else}
|
||||
<li class="active"><a href="#">{$PAGE}</a></li>
|
||||
{/if}
|
||||
|
||||
{if $PAGE == $LAST && $LAST != $CURRENT}
|
||||
<li><a href="{url path="/admin/customers" page="$PAGE"}">»</a></li>
|
||||
{else}
|
||||
<li class="disabled"><a href="#">»</a></li>
|
||||
{/if}
|
||||
{/pageloop}
|
||||
</ul>
|
||||
|
||||
{if $PAGE == $LAST && $LAST != $CURRENT}
|
||||
<li><a href="{url path="/admin/customers" page="$PAGE"}">»</a></li>
|
||||
{else}
|
||||
<li class="disabled"><a href="#">»</a></li>
|
||||
{/if}
|
||||
{/pageloop}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ Parameters:
|
||||
{* re-display the form creation dialog if it contains errors *}
|
||||
|
||||
{form name="{$form_name}"}
|
||||
{if #form_error}
|
||||
{if $form_error}
|
||||
$('#{$dialog_id}').modal();
|
||||
{/if}
|
||||
{/form}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
{loop type="feed" name="thelia_feeds" url="http://thelia.net/Flux-rss.html?id_rubrique=8" limit="3"}
|
||||
<div class="span4 feed-list-item">
|
||||
<h3>{$DATE}</h3>
|
||||
<h2><a href="#URL" target="_blank" title="{intl l='Lire la suite'}">{$TITLE|strip_tags}</a></h2>
|
||||
<h2><a href="{$URL}" target="_blank" title="{intl l='Lire la suite'}">{$TITLE|strip_tags}</a></h2>
|
||||
<p>{$DESCRIPTION|strip_tags|truncate:250:"...":true}</p>
|
||||
<p><a class="btn" href="#URL" target="_blank">{intl l='Lire la suite »'}</a></p>
|
||||
<p><a class="btn" href="{$URL}" target="_blank">{intl l='Lire la suite »'}</a></p>
|
||||
</div>
|
||||
{/loop}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<input type="hidden" name="{$name}" value="{$edit_language_locale}" />
|
||||
{/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'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
<a class="left carousel-control" href="#carousel" data-slide="prev"><i class="icon-prev"></i></a>
|
||||
<a class="right carousel-control" href="#carousel" data-slide="next"><i class="icon-next"></i></a>
|
||||
<a class="left carousel-control" href="#carousel" data-slide="prev"><span class="icon-prev"></span></a>
|
||||
<a class="right carousel-control" href="#carousel" data-slide="next"><span class="icon-next"></span></a>
|
||||
</div>
|
||||
</section><!-- #carousel -->
|
||||
|
||||
@@ -39,23 +39,23 @@
|
||||
<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 -->
|
||||
|
||||
<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" }
|
||||
<img itemprop="image"
|
||||
{loop name="image_product_new" type="image" limit="1" product="{#ID}"}
|
||||
src="{#IMAGE_URL}"
|
||||
{loop name="image_product_new" type="image" limit="1" product="{$ID}"}
|
||||
src="{$IMAGE_URL}"
|
||||
{/loop}
|
||||
alt="Product #{#LOOP_COUNT}" >
|
||||
alt="Product #{$LOOP_COUNT}" >
|
||||
{/ifloop}
|
||||
{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}
|
||||
<span class="mask"></span>
|
||||
</a>
|
||||
|
||||
<a href="{#URL}" class="product-info">
|
||||
<h3 class="name"><span itemprop="name">{#TITLE}</span></h3>
|
||||
<div class="short-description" itemprop="description">{#CHAPO}</div>
|
||||
<a href="{$URL}" class="product-info">
|
||||
<h3 class="name"><span itemprop="name">{$TITLE}</span></h3>
|
||||
<div class="short-description" itemprop="description">{$CHAPO}</div>
|
||||
|
||||
<div class="product-price">
|
||||
<div class="price-container" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
|
||||
@@ -68,7 +68,7 @@
|
||||
preorder : http://schema.org/PreOrder
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
@@ -97,22 +97,22 @@
|
||||
<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 -->
|
||||
|
||||
<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" }
|
||||
<img itemprop="image"
|
||||
{loop name="image_product_promo" type="image" limit="1" product="{#ID}"}
|
||||
src="{#IMAGE_URL}"
|
||||
{loop name="image_product_promo" type="image" limit="1" product="{$ID}"}
|
||||
src="{$IMAGE_URL}"
|
||||
{/loop}
|
||||
alt="Product #{#LOOP_COUNT}" >
|
||||
alt="Product #{$LOOP_COUNT}" >
|
||||
{/ifloop}
|
||||
{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}
|
||||
<span class="mask"></span>
|
||||
</a>
|
||||
|
||||
<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 class="product-price">
|
||||
@@ -126,9 +126,9 @@
|
||||
preorder : http://schema.org/PreOrder
|
||||
online_only : http://schema.org/OnlineOnly
|
||||
-->
|
||||
{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="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 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="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}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -30,7 +30,7 @@ URL: http://www.thelia.net
|
||||
{stylesheets file='assets/less/styles.less' filters='less,cssembed'}
|
||||
<link rel="stylesheet" href="{$asset_url}">
|
||||
{/stylesheets}
|
||||
|
||||
{debugbar_rendercss}
|
||||
{block name="stylesheet"}{/block}
|
||||
</head>
|
||||
|
||||
@@ -80,7 +80,7 @@ URL: http://www.thelia.net
|
||||
</ul>
|
||||
</li>
|
||||
{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}
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-cart navbar-right">
|
||||
@@ -113,7 +113,7 @@ URL: http://www.thelia.net
|
||||
<div class="input-group">
|
||||
<input type="search" name="q" id="q" placeholder="Search..." class="form-control" aria-required="true" required pattern=". { 2,}" title="Minmimum 2 characters.">
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" class="btn btn-search"><i class="icon-search"></i> <span>Search</span></button>
|
||||
<button type="submit" class="btn btn-search"><span class="icon-search"></span> <span>Search</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -124,7 +124,7 @@ URL: http://www.thelia.net
|
||||
<a class="current dropdown-toggle" data-toggle="dropdown" href="language.html">{lang attr="title"}</a>
|
||||
<ul class="select dropdown-menu">
|
||||
{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}
|
||||
</ul>
|
||||
</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>
|
||||
<ul class="select dropdown-menu">
|
||||
{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}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -158,15 +158,15 @@ URL: http://www.thelia.net
|
||||
<div class="container">
|
||||
<div class="banner banner-col-3">
|
||||
<div class="col">
|
||||
<i class="icon-truck icon-flip-horizontal"></i>
|
||||
<span class="icon-truck icon-flip-horizontal"></span>
|
||||
Free shipping <small>Orders over $50</small>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i class="icon-credit-card"></i>
|
||||
<span class="icon-credit-card"></span>
|
||||
Secure payment <small>Multi-payment plateform</small>
|
||||
</div>
|
||||
<div class="col">
|
||||
<i class="icon-info"></i>
|
||||
<span class="icon-info"></span>
|
||||
Need help ? <small>Questions ? See or F.A.Q.</small>
|
||||
</div>
|
||||
</div>
|
||||
@@ -228,48 +228,48 @@ URL: http://www.thelia.net
|
||||
<li>
|
||||
<a href="http://facebook.com" class="facebook" data-toggle="tooltip" data-placement="top" title="facebook" target="_blank">
|
||||
<span class="icon-stack">
|
||||
<i class="icon-circle icon-stack-base"></i>
|
||||
<i class="icon-facebook icon-light"></i>
|
||||
<span class="icon-circle icon-stack-base"></span>
|
||||
<span class="icon-facebook icon-light"></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://twitter.com" class="twitter" data-toggle="tooltip" data-placement="top" title="twitter" target="_blank">
|
||||
<span class="icon-stack">
|
||||
<i class="icon-circle icon-stack-base"></i>
|
||||
<i class="icon-twitter icon-light"></i>
|
||||
<span class="icon-circle icon-stack-base"></span>
|
||||
<span class="icon-twitter icon-light"></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://instagram.com" class="instagram" data-toggle="tooltip" data-placement="top" title="instagram" target="_blank">
|
||||
<span class="icon-stack">
|
||||
<i class="icon-circle icon-stack-base"></i>
|
||||
<i class="icon-instagram icon-light"></i>
|
||||
<span class="icon-circle icon-stack-base"></span>
|
||||
<span class="icon-instagram icon-light"></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://google.com" class="google-plus" data-toggle="tooltip" data-placement="top" title="google+" target="_blank">
|
||||
<span class="icon-stack">
|
||||
<i class="icon-circle icon-stack-base"></i>
|
||||
<i class="icon-google-plus icon-light"></i>
|
||||
<span class="icon-circle icon-stack-base"></span>
|
||||
<span class="icon-google-plus icon-light"></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://youtube.com" class="youtube" data-toggle="tooltip" data-placement="top" title="youtube" target="_blank">
|
||||
<span class="icon-stack">
|
||||
<i class="icon-circle icon-stack-base"></i>
|
||||
<i class="icon-youtube icon-light"></i>
|
||||
<span class="icon-circle icon-stack-base"></span>
|
||||
<span class="icon-youtube icon-light"></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#rss" class="rss" data-toggle="tooltip" data-placement="top" title="rss" target="_blank">
|
||||
<span class="icon-stack">
|
||||
<i class="icon-circle icon-stack-base"></i>
|
||||
<i class="icon-rss icon-light"></i>
|
||||
<span class="icon-circle icon-stack-base"></span>
|
||||
<span class="icon-rss icon-light"></span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
@@ -397,6 +397,9 @@ URL: http://www.thelia.net
|
||||
<script src="{$asset_url}"></script>
|
||||
{/javascripts}
|
||||
|
||||
{debugbar_renderjs}
|
||||
{debugbar_renderresult}
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<h1 id="main-label" class="page-header">{intl l="Login"}</h1>
|
||||
{form name="thelia.customer.login"}
|
||||
<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'}
|
||||
<input type="hidden" name="{$name}" value="{navigate to="return_to"}" /> {* the url the user is redirected to on login success *}
|
||||
{/form_field}
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="control-input">
|
||||
<input type="email" name="{$name}" id="{$label_attr.for}" value="{$value}" class="form-control" {$attr} aria-required="true" autofocus required>
|
||||
{if $error}
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
<span class="help-block"><span class="icon-remove"></span> {$message}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,7 +58,7 @@
|
||||
<div class="control-input">
|
||||
<input type="password" name="{$name}" id="{$label_attr.for}" class="form-control" autocomplete="off">
|
||||
{if $error}
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
<span class="help-block"><span class="icon-remove"></span> {$message}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
<article class="col-main" role="main" aria-labelledby="main-label">
|
||||
|
||||
<h1 id="main-label" class="page-header">{intl l="Create New Account"}</h1>
|
||||
{form name=""}
|
||||
<form id="form-register" class="form-horizontal" action="" method="post" role="form">
|
||||
{form name="thelia.customer.creation"}
|
||||
<form id="form-register" class="form-horizontal" action="{url path="/customer/create"}" method="post" role="form">
|
||||
|
||||
<fieldset id="register-info" class="panel panel">
|
||||
<div class="panel-heading">
|
||||
@@ -26,48 +26,78 @@
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="form-group group-firstname has-success">
|
||||
<label class="control-label" for="firstname">First Name: <span class="required">*</span></label>
|
||||
{form_field form=$form field="firstname"}
|
||||
<div class="form-group group-firstname {if $error}has-error{elseif $value != "" && !$error}has_success{/if}">
|
||||
<label class="control-label" for="{$label_attr.for}">{$label} <span class="required">*</span></label>
|
||||
<div class="control-input">
|
||||
<input type="text" name="firstname" id="firstname" class="form-control" placeholder="John" autofocus required>
|
||||
<span class="help-block"><i class="icon-ok"></i> Available input!</span>
|
||||
<input type="text" name="{$name}" id="{$label_attr.for}" class="form-control" placeholder="John" value="{$value}" autofocus required>
|
||||
{if $error }
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
{elseif $value != "" && !$error}
|
||||
<span class="help-block"><i class="icon-ok"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
{/form_field}
|
||||
{form_field form=$form field="lastname"}
|
||||
<div class="form-group group-lastname {if $error}has-error{elseif $value != "" && !$error}has_success{/if}">
|
||||
<label class="control-label" for="{$label_attr.for}">{$label} <span class="required">*</span></label>
|
||||
<div class="control-input">
|
||||
<input type="text" name="{$name}" id="{$label_attr.for}" class="form-control" placeholder="John" value="{$value}" autofocus required>
|
||||
{if $error }
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
{elseif $value != "" && !$error}
|
||||
<span class="help-block"><i class="icon-ok"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
{/form_field}
|
||||
{form_field form=$form field="email"}
|
||||
<div class="form-group group-email {if $error}has-error{elseif $value != "" && !$error}has_success{/if}">
|
||||
<label class="control-label" for="{$label_attr.for}">{$label} <span class="required">*</span></label>
|
||||
|
||||
<div class="form-group group-lastname has-error">
|
||||
<label class="control-label " for="lastname">Last Name: <span class="required">*</span></label>
|
||||
<div class="control-input">
|
||||
<input type="text" name="lastname" id="lastname" class="form-control" placeholder="Doe" required>
|
||||
<span class="help-block"><i class="icon-remove"></i> Invalid input!</span>
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
|
||||
<div class="form-group group-email">
|
||||
<label class="control-label" for="email">Email Address: <span class="required">*</span></label>
|
||||
<div class="control-input">
|
||||
<input type="email" name="email" id="email" class="form-control" placeholder="johndoe@domain.com" required>
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
|
||||
<div class="form-group group-phone">
|
||||
<label class="control-label" for="phone">Telephone: <span class="required">*</span></label>
|
||||
<div class="control-input">
|
||||
<input type="tel" name="phone" id="phone" class="form-control" placeholder="(01) 02 03 04 05 " required>
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
|
||||
<div class="form-group group-fax">
|
||||
<label class="control-label" for="fax">Fax: </label>
|
||||
<div class="control-input">
|
||||
<input type="tel" name="fax" id="fax" class="form-control" placeholder="(01) 02 03 04 05 ">
|
||||
<input type="email" name="{$name}" id="{$label_attr.for}" class="form-control" placeholder="johndoe@domain.com" required value="{$smarty.get.email|default:$value}">
|
||||
{if $error }
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
{elseif $value != "" && !$error}
|
||||
<span class="help-block"><i class="icon-ok"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
{/form_field}
|
||||
{form_field form=$form field="phone"}
|
||||
<div class="form-group group-phone {if $error}has-error{elseif $value != "" && !$error}has_success{/if}">
|
||||
<label class="control-label" for="{$label_attr.for}">{$label}</label>
|
||||
<div class="control-input">
|
||||
<input type="text" name="{$name}" id="{$label_attr.for}" class="form-control" placeholder="John" value="{$value}" autofocus>
|
||||
{if $error }
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
{elseif $value != "" && !$error}
|
||||
<span class="help-block"><i class="icon-ok"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
{/form_field}
|
||||
{form_field form=$form field="cellphone"}
|
||||
<div class="form-group group-cellphone {if $error}has-error{elseif $value != "" && !$error}has_success{/if}">
|
||||
<label class="control-label" for="{$label_attr.for}">{$label}</label>
|
||||
<div class="control-input">
|
||||
<input type="text" name="{$name}" id="{$label_attr.for}" class="form-control" placeholder="John" value="{$value}" autofocus>
|
||||
{if $error }
|
||||
<span class="help-block"><i class="icon-remove"></i> {$message}</span>
|
||||
{elseif $value != "" && !$error}
|
||||
<span class="help-block"><i class="icon-ok"></i></span>
|
||||
{/if}
|
||||
</div>
|
||||
</div><!--/.form-group-->
|
||||
{/form_field}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset id="register-delivery" class="panel">
|
||||
<div class="panel-heading">
|
||||
2. Delivery Informations
|
||||
2. {intl l="Delivery Informations"}
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<label> <span>{intl l="{$label}"} : </span></label>
|
||||
<select name="{$name}">
|
||||
{loop type="title" name="title1"}
|
||||
<option value="#ID">#LONG</option>
|
||||
<option value="{$ID}">{$LONG}</option>
|
||||
{/loop}
|
||||
|
||||
</select>
|
||||
@@ -78,7 +78,7 @@
|
||||
<label> <span>{intl l="{$label}"} : </span></label>
|
||||
<select name="{$name}">
|
||||
{loop type="country" name="country1"}
|
||||
<option value="#ID">#TITLE</option>
|
||||
<option value="{$ID}">{$TITLE}</option>
|
||||
{/loop}
|
||||
|
||||
</select>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<label> <span>{intl l="{$label}"} : </span></label>
|
||||
<select name="{$name}">
|
||||
{loop type="title" name="title1"}
|
||||
<option value="#ID">#LONG</option>
|
||||
<option value="{$ID}">{$LONG}</option>
|
||||
{/loop}
|
||||
|
||||
</select>
|
||||
@@ -79,7 +79,7 @@
|
||||
<label> <span>{intl l="{$label}"} : </span></label>
|
||||
<select name="{$name}">
|
||||
{loop type="country" name="country1"}
|
||||
<option value="#ID">#TITLE</option>
|
||||
<option value="{$ID}">{$TITLE}</option>
|
||||
{/loop}
|
||||
|
||||
</select>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<ul>
|
||||
{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}
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<h1>{intl l='cart'}</h1>
|
||||
<ul>
|
||||
{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}
|
||||
</ul>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
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}
|
||||
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
|
||||
{loop name="category0" type="category" parent="0" order="manual"}
|
||||
<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"}
|
||||
<h5>Associated Content</h5>
|
||||
<ul>
|
||||
{loop name="prod_ass_cont" type="associated_content" category="#ID" order="associated_content"}
|
||||
<li>#TITLE</li>
|
||||
{loop name="prod_ass_cont" type="associated_content" category="$ID" order="associated_content"}
|
||||
<li>{$TITLE}</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
{/ifloop}
|
||||
@@ -26,23 +26,23 @@
|
||||
<h5>No associated content</h5>
|
||||
{/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;">
|
||||
<h3><a href="#URL">PRODUCT #ID : #REF (#LOOP_COUNT / #LOOP_TOTAL)</a></h3>
|
||||
<h4>#TITLE</h4>
|
||||
<p>#DESCRIPTION</p>
|
||||
<h3><a href="{$URL}">PRODUCT {$ID} : {$REF} ({$LOOP_COUNT} / {$LOOP_TOTA}L)</a></h3>
|
||||
<h4>{$TITLE}</h4>
|
||||
<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"}
|
||||
<h5>Features</h5>
|
||||
<ul>
|
||||
{assign var=current_product value=#ID}
|
||||
{loop name="ft" type="feature" order="manual" product="#ID"}
|
||||
{assign var=current_product value=$ID}
|
||||
{loop name="ft" type="feature" order="manual" product="$ID"}
|
||||
<li>
|
||||
<strong>#TITLE</strong> :
|
||||
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"}
|
||||
#TITLE / #PERSONAL_VALUE
|
||||
<strong>{$TITLE}</strong> :
|
||||
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="{$ID}"}
|
||||
{$TITLE} / {$PERSONAL_VALUE}
|
||||
{/loop}
|
||||
</li>
|
||||
{/loop}
|
||||
@@ -53,15 +53,15 @@
|
||||
{/elseloop}
|
||||
</div>
|
||||
{/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;">
|
||||
<h3>SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3>
|
||||
<h3>SUBCATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
|
||||
|
||||
{ifloop rel="prod_ass_cont"}
|
||||
<h5>Associated Content</h5>
|
||||
<ul>
|
||||
{loop name="prod_ass_cont" type="associated_content" category="#ID" order="associated_content"}
|
||||
<li>#TITLE</li>
|
||||
{loop name="prod_ass_cont" type="associated_content" category="$ID" order="associated_content"}
|
||||
<li>{$TITLE}</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
{/ifloop}
|
||||
@@ -69,22 +69,22 @@
|
||||
<h5>No associated content</h5>
|
||||
{/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;">
|
||||
<h3><a href="#URL">PRODUCT #ID : #REF (#LOOP_COUNT / #LOOP_TOTAL)</a></h3>
|
||||
<h4>#TITLE</h4>
|
||||
<p>#DESCRIPTION</p>
|
||||
<h3><a href="{$URL}">PRODUCT {$ID} : {$REF} ({$LOOP_COUNT} / {$LOOP_TOTAL})</a></h3>
|
||||
<h4>{$TITLE}</h4>
|
||||
<p>{$DESCRIPTION}</p>
|
||||
|
||||
{ifloop rel="ft"}
|
||||
<h5>Features</h5>
|
||||
<ul>
|
||||
{assign var=current_product value=#ID}
|
||||
{loop name="ft" type="feature" order="manual" product="#ID"}
|
||||
{assign var=current_product value=$ID}
|
||||
{loop name="ft" type="feature" order="manual" product="$ID"}
|
||||
<li>
|
||||
<strong>#TITLE</strong> :
|
||||
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"}
|
||||
#TITLE / #PERSONAL_VALUE
|
||||
<strong>{$TITLE}</strong> :
|
||||
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="$ID"}
|
||||
{$TITLE} / {$PERSONAL_VALUE}
|
||||
{/loop}
|
||||
</li>
|
||||
{/loop}
|
||||
@@ -109,10 +109,10 @@
|
||||
<ul>
|
||||
{loop name="ft" type="feature" order="manual"}
|
||||
<li>
|
||||
#TITLE
|
||||
{$TITLE}
|
||||
<ul>
|
||||
{loop name="ftav" type="feature_availability" order="manual" feature="#ID"}
|
||||
<li>#TITLE</li>
|
||||
{loop name="ftav" type="feature_availability" order="manual" feature="$ID"}
|
||||
<li>{$TITLE}</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -126,10 +126,10 @@
|
||||
<ul>
|
||||
{loop name="attr" type="attribute" order="manual"}
|
||||
<li>
|
||||
#TITLE
|
||||
{$TITLE}
|
||||
<ul>
|
||||
{loop name="attrav" type="attribute_availability" order="manual" attribute="#ID"}
|
||||
<li>#TITLE</li>
|
||||
{loop name="attrav" type="attribute_availability" order="manual" attribute="$ID"}
|
||||
<li>{$TITLE}</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -143,7 +143,7 @@
|
||||
<ul>
|
||||
{loop name="cur" type="currency"}
|
||||
<li>
|
||||
#NAME (#SYMBOL)
|
||||
{$NAME} ({$SYMBOL})
|
||||
</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
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}
|
||||
@@ -132,28 +132,28 @@
|
||||
|
||||
{form_field form=$form field="email"}
|
||||
{form_error form=$form field="email"}
|
||||
{#message}
|
||||
{$message}
|
||||
{/form_error}
|
||||
<label><span>{intl l="{$label}"}</span></label><input type="email" name="{$name}" value="{$value}" {$attr} ><br />
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field="email_confirm"}
|
||||
{form_error form=$form field="email_confirm"}
|
||||
{#message}
|
||||
{$message}
|
||||
{/form_error}
|
||||
<label><span>{intl l="{$label}"}</span></label><input type="email" name="{$name}" {$attr} ><br />
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field="password"}
|
||||
{form_error form=$form field="password"}
|
||||
{#message}
|
||||
{$message}
|
||||
{/form_error}
|
||||
<label><span>{intl l="{$label}"}</span></label><input type="password" name="{$name}" {$attr} ><br />
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field="password_confirm"}
|
||||
{form_error form=$form field="password_confirm"}
|
||||
{#message}
|
||||
{$message}
|
||||
{/form_error}
|
||||
<label><span>{intl l="{$label}"}</span></label><input type="password" name="{$name}" {$attr} ><br />
|
||||
{/form_field}
|
||||
|
||||
@@ -7,43 +7,43 @@
|
||||
<table border="1" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td>ID</td>
|
||||
<td>#ID</td>
|
||||
<td>{$ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Réference</td>
|
||||
<td>#REF</td>
|
||||
<td>{$REF}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Title</td>
|
||||
<td>
|
||||
{loop name="title" type="title" id="#TITLE"}
|
||||
#LONG (#SHORT)
|
||||
{loop name="title" type="title" id="$TITLE"}
|
||||
{$LONG} ({$SHORT})
|
||||
{/loop}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Firstname</td>
|
||||
<td>#FIRSTNAME</td>
|
||||
<td>{$FIRSTNAME}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Lastname</td>
|
||||
<td>#LASTNAME</td>
|
||||
<td>{$LASTNAME}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Email</td>
|
||||
<td>#EMAIL</td>
|
||||
<td>{$EMAIL}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Is reseller</td>
|
||||
<td>#RESELLER</td>
|
||||
<td>{$RESELLER}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sponsor</td>
|
||||
<td>#SPONSOR</td>
|
||||
<td>{$SPONSOR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Discount</td>
|
||||
<td>#DISCOUNT %</td>
|
||||
<td>{$DISCOUNT} %</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -56,20 +56,20 @@
|
||||
<table border="1" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td>ID</td>
|
||||
<td>#ID</td>
|
||||
<td>{$ID}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>#NAME</td>
|
||||
<td>{$NAME}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Title</td>
|
||||
<td>
|
||||
<ul>
|
||||
{assign var=current_title value=#TITLE}
|
||||
{assign var=current_title value=$TITLE}
|
||||
{loop name="title" type="title"}
|
||||
<li {if $current_title==#ID}style="background-color: yellow"{/if}>
|
||||
#LONG (#SHORT)
|
||||
<li {if $current_title==$ID}style="background-color: yellow"{/if}>
|
||||
{$LONG} ({$SHORT})
|
||||
</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
@@ -77,36 +77,36 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Company</td>
|
||||
<td>#COMPANY</td>
|
||||
<td>{$COMPANY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Firstname</td>
|
||||
<td>#FIRSTNAME</td>
|
||||
<td>{$FIRSTNAME}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Lastname</td>
|
||||
<td>#LASTNAME</td>
|
||||
<td>{$LASTNAME}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Address</td>
|
||||
<td>#ADDRESS1<br/>#ADDRESS2<br/>#ADDRESS3</td>
|
||||
<td>{$ADDRESS1}<br/>{$ADDRESS2}<br/>{$ADDRESS3}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Zipcode</td>
|
||||
<td>#ZIPCODE</td>
|
||||
<td>{$ZIPCODE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>City</td>
|
||||
<td>#CITY</td>
|
||||
<td>{$CITY}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Country</td>
|
||||
<td>
|
||||
<select>
|
||||
{assign var=current_country value=#COUNTRY}
|
||||
{assign var=current_country value=$COUNTRY}
|
||||
{loop name="country" type="country"}
|
||||
<option {if $current_country==#ID}selected="selected"{/if}>
|
||||
#TITLE (#ID - #ISOCODE - #ISOALPHA2 - #ISOALPHA3)
|
||||
<option {if $current_country==$ID}selected="selected"{/if}>
|
||||
{$TITLE} ({$ID} - {$ISOCODE} - {$ISOALPHA2} - {$ISOALPHA3})
|
||||
</option>
|
||||
{/loop}
|
||||
</select>
|
||||
@@ -114,11 +114,11 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Phone</td>
|
||||
<td>#PHONE</td>
|
||||
<td>{$PHONE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cellphone</td>
|
||||
<td>#CELLPHONE</td>
|
||||
<td>{$CELLPHONE}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
{loop type="delivery" name="delivery.list"}
|
||||
<li>
|
||||
<ul>
|
||||
<li>id : {#ID}</li>
|
||||
<li>prix : {#PRICE}</li>
|
||||
<li>Choisir : <a href="{url path="/delivery/choose/{#ID}"}">Choisir</a></li>
|
||||
<li>id : {$ID}</li>
|
||||
<li>prix : {$PRICE}</li>
|
||||
<li>Choisir : <a href="{url path="/delivery/choose/{$ID}"}">Choisir</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{/loop}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{loop name="folder0" type="folder" parent="0" order="alpha_reverse"}
|
||||
<div style="border: solid 4px blue; padding: 20px; margin: 10px;">
|
||||
<h2>FOLDER : #TITLE</h2>
|
||||
{loop name="folder1" type="folder" parent="#ID"}
|
||||
<h2>FOLDER : {$TITLE}</h2>
|
||||
{loop name="folder1" type="folder" parent="$ID"}
|
||||
<div style="border: double 4px lightseagreen; padding: 20px; margin: 10px;">
|
||||
<h3>SUBFOLDER : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3>
|
||||
{loop name="content" type="content" folder="#ID"}
|
||||
<h3>SUBFOLDER : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
|
||||
{loop name="content" type="content" folder="$ID"}
|
||||
<div style="border: solid 1px green; padding: 20px; margin: 10px;">
|
||||
<h3>CONTENT : #TITLE</h3>
|
||||
<p>#DESCRIPTION</p>
|
||||
<h3>CONTENT : {$TITLE}</h3>
|
||||
<p>{$DESCRIPTION}</p>
|
||||
</div>
|
||||
{/loop}
|
||||
</div>
|
||||
|
||||
@@ -5,22 +5,22 @@
|
||||
<h2>Category Images</h2>
|
||||
<ul>
|
||||
{loop type="category" name="jsvdfk"}
|
||||
<li><p>Category id #ID: #TITLE</p>
|
||||
<li><p>Category id {$ID}: {$TITLE}</p>
|
||||
<ul>
|
||||
<li>
|
||||
{loop type="image" name="image_test" category="#ID" width="200" height="100" resize_mode="borders"}
|
||||
<p>Processed file URL: #IMAGE_URL</p>
|
||||
<p>Original file URL: #ORIGINAL_IMAGE_URL</p>
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" category="$ID" width="200" height="100" resize_mode="borders"}
|
||||
<p>Processed file URL: {$IMAGE_URL}</p>
|
||||
<p>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
|
||||
{loop type="image" name="image_test" category="#ID"}
|
||||
<p>Full size file URL: #IMAGE_URL</p>
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" category="$ID"}
|
||||
<p>Full size file URL: {$IMAGE_URL}</p>
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
|
||||
{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>
|
||||
{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>
|
||||
{/loop}
|
||||
</li>
|
||||
</ul>
|
||||
@@ -34,27 +34,27 @@
|
||||
<h2>Product Images</h2>
|
||||
<ul>
|
||||
{loop type="product" name="jsvdfk"}
|
||||
<li><p>Product id #ID: #TITLE</p>
|
||||
<li><p>Product id {$ID}: {$TITLE}</p>
|
||||
<ul>
|
||||
<li>
|
||||
{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>Original file URL: #ORIGINAL_IMAGE_URL</p>
|
||||
{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>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
|
||||
<p>Images:</p>
|
||||
|
||||
<img src="#IMAGE_URL" />
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
{loop type="image" name="image_test" product="#ID" width="200" height="100" resize_mode="crop"}
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" product="$ID" width="200" height="100" resize_mode="crop"}
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
{loop type="image" name="image_test" product="#ID" width="100" height="200" resize_mode="borders" background_color="#cc8000"}
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" product="$ID" width="100" height="200" resize_mode="borders" background_color="#cc8000"}
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
{loop type="image" name="image_test" product="#ID" width="100" rotation="-20" background_color="#facabe"}
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" product="$ID" width="100" rotation="-20" background_color="#facabe"}
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
{loop type="image" name="image_test" product="#ID" width="200" height="100" resize_mode="borders" background_color="#facabe" effects="negative"}
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" product="$ID" width="200" height="100" resize_mode="borders" background_color="#facabe" effects="negative"}
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
</p>
|
||||
</li>
|
||||
@@ -67,13 +67,13 @@
|
||||
<h2>Folder Images</h2>
|
||||
<ul>
|
||||
{loop type="folder" name="jsvdfk"}
|
||||
<li><p>Folder id #ID: #TITLE</p>
|
||||
<li><p>Folder id {$ID}: {$TITLE}</p>
|
||||
<ul>
|
||||
<li>
|
||||
{loop type="image" name="image_test" folder="#ID" width="200" height="100" resize_mode="borders"}
|
||||
<p>Processed file URL: #IMAGE_URL</p>
|
||||
<p>Original file URL: #ORIGINAL_IMAGE_URL</p>
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" folder="$ID" width="200" height="100" resize_mode="borders"}
|
||||
<p>Processed file URL: {$IMAGE_URL}</p>
|
||||
<p>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
</li>
|
||||
</ul>
|
||||
@@ -86,13 +86,13 @@
|
||||
<h2>Content Images</h2>
|
||||
<ul>
|
||||
{loop type="content" name="jsvdfk"}
|
||||
<li><p>Content id #ID: #TITLE</p>
|
||||
<li><p>Content id {$ID}: {$TITLE}</p>
|
||||
<ul>
|
||||
<li>
|
||||
{loop type="image" name="image_test" content="#ID" width="200" height="100" resize_mode="borders"}
|
||||
<p>Processed file URL: #IMAGE_URL</p>
|
||||
<p>Original file URL: #ORIGINAL_IMAGE_URL</p>
|
||||
<img src="#IMAGE_URL" />
|
||||
{loop type="image" name="image_test" content="$ID" width="200" height="100" resize_mode="borders"}
|
||||
<p>Processed file URL: {$IMAGE_URL}</p>
|
||||
<p>Original file URL: {$ORIGINAL_IMAGE_URL}</p>
|
||||
<img src="{$IMAGE_URL}" />
|
||||
{/loop}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{loop name="included0" type="category" parent="0"}
|
||||
<h2>Out before - CATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h2>
|
||||
{loop name="category1" type="category" parent="#ID"}
|
||||
<h3>Inner - SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3>
|
||||
<h2>Out before - CATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h2>
|
||||
{loop name="category1" type="category" parent="$ID"}
|
||||
<h3>Inner - SUBCATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
|
||||
{/loop}
|
||||
|
||||
{loop name="category2" type="category" parent="#ID"}
|
||||
<h3>Inner 2 - SUBCATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h3>
|
||||
{loop name="category2" type="category" parent="$ID"}
|
||||
<h3>Inner 2 - SUBCATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h3>
|
||||
{/loop}
|
||||
<h2>Out after - CATEGORY : #TITLE (#LOOP_COUNT / #LOOP_TOTAL)</h2>
|
||||
<h2>Out after - CATEGORY : {$TITLE} ({$LOOP_COUNT} / {$LOOP_TOTAL})</h2>
|
||||
<hr />
|
||||
{/loop}
|
||||
@@ -13,6 +13,7 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{debugbar_render}
|
||||
{debugbar_renderjs}
|
||||
{debugbar_renderresult}
|
||||
</body>
|
||||
</html>
|
||||
@@ -7,7 +7,7 @@
|
||||
{stylesheets file='../assets/css/*' filters='less,cssembed'}
|
||||
<link rel="stylesheet" href="{$asset_url}">
|
||||
{/stylesheets}
|
||||
{debugbar_renderHead}
|
||||
{debugbar_rendercss}
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
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_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 />
|
||||
{/form_field}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div style="border: solid 1px; padding: 20px;">
|
||||
|
||||
{loop name="cat" type="category" page="{$category_current_page}" limit="2"}
|
||||
<h2>#LOOP_COUNT - #TITLE</h2>
|
||||
<h2>{$LOOP_COUNT} - {$TITLE}</h2>
|
||||
<h3>Products :</h3>
|
||||
|
||||
<div style="border: solid 1px; padding: 20px;">
|
||||
@@ -17,23 +17,23 @@
|
||||
{assign var=product_current_page value={$smarty.get.$this_product_getter|default:1}}
|
||||
|
||||
<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>
|
||||
#ID:#REF
|
||||
{$ID}:{$REF}
|
||||
</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<p>#TITLE page choice</p>
|
||||
<p>{$TITLE} page choice</p>
|
||||
{pageloop rel="prod"}
|
||||
{if ${PAGE} != {$product_current_page}}
|
||||
<a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}=#PAGE">#PAGE</a>
|
||||
{if $PAGE != $product_current_page}
|
||||
<a href="index_dev.php?view=pagination&category_page={$category_current_page}&{$this_product_getter}={$PAGE}">{$PAGE}</a>
|
||||
{else}
|
||||
{ #PAGE }
|
||||
{$PAGE}
|
||||
{/if}
|
||||
{if {$PAGE} != {$LAST}}
|
||||
{if $PAGE != $LAST}
|
||||
-
|
||||
{/if}
|
||||
{/pageloop}
|
||||
@@ -44,12 +44,12 @@
|
||||
|
||||
<p>categories page choice</p>
|
||||
{pageloop rel="cat"}
|
||||
{if ${PAGE} != {$category_current_page}}
|
||||
<a href="index_dev.php?view=pagination&category_page=#PAGE">#PAGE</a>
|
||||
{if $PAGE != $category_current_page}
|
||||
<a href="index_dev.php?view=pagination&category_page={$PAGE}">{$PAGE}</a>
|
||||
{else}
|
||||
{ #PAGE }
|
||||
{$PAGE}
|
||||
{/if}
|
||||
{if {$PAGE} != {$LAST}}
|
||||
{if $PAGE != $LAST}
|
||||
-
|
||||
{/if}
|
||||
{/pageloop}
|
||||
@@ -62,18 +62,18 @@ Pagination before loop
|
||||
{capture name="prod2"}
|
||||
{loop name="prod2" type="product" page="{$product_current_page}" limit="2"}
|
||||
<li>
|
||||
#ID:#REF
|
||||
{$ID}:{$REF}
|
||||
</li>
|
||||
{/loop}
|
||||
{/capture}
|
||||
|
||||
{pageloop rel="prod2"}
|
||||
{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}
|
||||
{ #PAGE }
|
||||
{$PAGE}
|
||||
{/if}
|
||||
{if {$PAGE} != {$LAST}}
|
||||
{if $PAGE != $LAST}
|
||||
-
|
||||
{/if}
|
||||
{/pageloop}
|
||||
@@ -82,11 +82,11 @@ Pagination before loop
|
||||
|
||||
{pageloop rel="prod2"}
|
||||
{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}
|
||||
{ #PAGE }
|
||||
{$PAGE}
|
||||
{/if}
|
||||
{if {$PAGE} != {$LAST}}
|
||||
{if $PAGE != $LAST}
|
||||
-
|
||||
{/if}
|
||||
{/pageloop}
|
||||
|
||||
@@ -6,20 +6,20 @@ Index : {navigate to="index"}<br />
|
||||
|
||||
{ifloop rel="product"}
|
||||
|
||||
{loop type="product" name="product" current="true"}
|
||||
{loop type="product" name="product" current="true" min_price="50" max_price="100"}
|
||||
|
||||
<div style="border: dashed 2px red; padding: 20px; margin: 10px;">
|
||||
<h2>PRODUCT (#ID) : #REF</h2>
|
||||
<h3>#TITLE</h3>
|
||||
<p>#DESCRIPTION</p>
|
||||
<h2>PRODUCT ({$ID}) : {$REF}</h2>
|
||||
<h3>{$TITLE}</h3>
|
||||
<p>{$DESCRIPTION}</p>
|
||||
|
||||
<p>Starting by #BEST_PRICE € HT (TAX : #BEST_PRICE_TAX ; #BEST_TAXED_PRICE € TTC)</p>
|
||||
<p>Starting by {$BEST_PRICE} {currency attr="symbol"} HT (TAX : {$BEST_PRICE_TAX} ; {$BEST_TAXED_PRICE} {currency attr="symbol"} TTC)</p>
|
||||
|
||||
{ifloop rel="acc"}
|
||||
<h4>Accessories</h4>
|
||||
<ul>
|
||||
{loop name="acc" type="accessory" product="#ID" order="accessory"}
|
||||
<li><a href="#URL">#REF</a></li>
|
||||
{loop name="acc" type="accessory" product="$ID" order="accessory"}
|
||||
<li><a href="{$URL}">{$REF}</a></li>
|
||||
{/loop}
|
||||
</ul>
|
||||
{/ifloop}
|
||||
@@ -30,8 +30,8 @@ Index : {navigate to="index"}<br />
|
||||
{ifloop rel="prod_ass_cont"}
|
||||
<h4>Associated Content</h4>
|
||||
<ul>
|
||||
{loop name="prod_ass_cont" type="associated_content" product="#ID" order="associated_content"}
|
||||
<li>#TITLE</li>
|
||||
{loop name="prod_ass_cont" type="associated_content" product="$ID" order="associated_content"}
|
||||
<li>{$TITLE}</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
{/ifloop}
|
||||
@@ -42,12 +42,12 @@ Index : {navigate to="index"}<br />
|
||||
{ifloop rel="ft"}
|
||||
<h4>Features</h4>
|
||||
<ul>
|
||||
{assign var=current_product value=#ID}
|
||||
{loop name="ft" type="feature" order="manual" product="#ID"}
|
||||
{assign var=current_product value=$ID}
|
||||
{loop name="ft" type="feature" order="manual" product="$ID"}
|
||||
<li>
|
||||
<strong>#TITLE</strong> :
|
||||
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="#ID"}
|
||||
#TITLE / #PERSONAL_VALUE
|
||||
<strong>{$TITLE}</strong> :
|
||||
{loop name="ft_v" type="feature_value" product="{$current_product}" feature="$ID"}
|
||||
{$TITLE} / {$PERSONAL_VALUE}
|
||||
{/loop}
|
||||
</li>
|
||||
{/loop}
|
||||
@@ -59,18 +59,18 @@ Index : {navigate to="index"}<br />
|
||||
|
||||
<h4>Product sale elements</h4>
|
||||
|
||||
{assign var=current_product value=#ID}
|
||||
{loop name="pse" type="product_sale_elements" product="#ID"}
|
||||
{assign var=current_product value=$ID}
|
||||
{loop name="pse" type="product_sale_elements" product="$ID"}
|
||||
<div style="border: solid 2px darkorange; padding: 5px; margin: 5px;">
|
||||
{loop name="combi" type="attribute_combination" product_sale_elements="#ID"}
|
||||
#ATTRIBUTE_TITLE = #ATTRIBUTE_AVAILABILITY_TITLE<br />
|
||||
{loop name="combi" type="attribute_combination" product_sale_elements="$ID"}
|
||||
{$ATTRIBUTE_TITLE} = {$ATTRIBUTE_AVAILABILITY_TITLE}<br />
|
||||
{/loop}
|
||||
<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 />{$WEIGHT} g
|
||||
<br /><strong>{if $IS_PROMO == 1} {$PROMO_PRICE} {currency attr="symbol"} HT // TAX : {$PROMO_PRICE_TAX} ; {$TAXED_PROMO_PRICE} {currency attr="symbol"} TTC (instead of {$PRICE_HT} // TAX : {$PRICE_TAX} ; {$TAXED_PRICE} {currency attr="symbol"} TTC){else} {$PRICE} {currency attr="symbol"} HT // TAX : {$PRICE_TAX} ; {$TAXED_PRICE} {currency attr="symbol"} TTC{/if}</strong>
|
||||
<br /><br />
|
||||
Add
|
||||
<select>
|
||||
{for $will=1 to #QUANTITY}
|
||||
{for $will=1 to $QUANTITY}
|
||||
<option>{$will}</option>
|
||||
{/for}
|
||||
</select>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
{loop name="car" type="category"}
|
||||
<li>
|
||||
<ul>
|
||||
{loop name="product" type="product" category="#ID"}
|
||||
<li>#REF</li>
|
||||
{loop name="product" type="product" category="$ID"}
|
||||
<li>{$REF}</li>
|
||||
{/loop}
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user