integration new theme standard

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8168 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lCherifi
2011-08-23 14:25:09 +00:00
parent c0bd68221a
commit 2a1e42606b
29 changed files with 332 additions and 198 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
{/if}
<form id="aut" name="authorizeaim_form" action="{$module_dir}validation.php" method="post">
<span style="border: 1px solid #595A5E;display: block;padding: 0.6em;text-decoration: none;margin-left: 0.7em;">
<span style="display: block;text-decoration: none;">
<a id="click_authorizeaim" href="#" title="{l s='Pay with authorizeaim' mod='authorizeaim'}" style="display: block;text-decoration: none;">
{if $cards.visa == 1}
<img src="{$module_dir}cards/visa.gif" alt="{l s='visa logo' mod='authorizeaim'}" />
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+2 -2
View File
@@ -26,7 +26,7 @@
<p class="payment_module">
<a href="{$this_path_ssl}payment.php" title="{l s='Pay by bank wire' mod='bankwire'}">
<img src="{$this_path}bankwire.jpg" alt="{l s='Pay by bank wire' mod='bankwire'}" width="86" height="49"/>
{l s='Pay by bank wire (order process will be longer)' mod='bankwire'}
<img src="{$this_path}bankwire.jpg" alt="{l s='Pay by bank wire' mod='bankwire'}" width="130" height="108"/>
<span>{l s='Pay by bank wire (order process will be longer)' mod='bankwire'}</span>
</a>
</p>
@@ -114,7 +114,7 @@ class BlockBestSellers extends Module
$this->context->smarty->assign(array(
'best_sellers' => $best_sellers,
'mediumSize' => Image::getSize('medium'),
'smallSize' => Image::getSize('small'),
));
return $this->display(__FILE__, 'blockbestsellers.tpl');
}
+14 -9
View File
@@ -19,26 +19,31 @@
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 7077 $
* @version Release: $Revision: 6594 $
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!-- MODULE Block best sellers -->
<div id="best-sellers_block_right" class="block products_block">
<h4><a href="{$link->getPageLink('best-sales')}">{l s='Top sellers' mod='blockbestsellers'}</a></h4>
<h4><a href="{$link->getPageLink('best-sales.php')}">{l s='Top sellers' mod='blockbestsellers'}</a></h4>
<div class="block_content">
{if $best_sellers|@count > 0}
<ul class="product_images">
<li><a href="{$best_sellers.0.link}" title="{$best_sellers.0.legend|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($best_sellers.0.link_rewrite, $best_sellers.0.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.0.legend|escape:'htmlall':'UTF-8'}" /></a></li>
{if $best_sellers|@count > 1}<li><a href="{$best_sellers.1.link}" title="{$best_sellers.1.legend|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($best_sellers.1.link_rewrite, $best_sellers.1.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.1.legend|escape:'htmlall':'UTF-8'}" /></a></li>{/if}
</ul>
<dl>
{foreach from=$best_sellers item=product name=myLoop}
<dt class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$product.link}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}</a></dt>
<li class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} clearfix">
<a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}" class="content_img clearfix">
<span class="number">{$smarty.foreach.myLoop.iteration}</span>
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" height="{$smallSize.height}" width="{$smallSize.width}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
</a>
<p><a href="{$product.link}" title="{$product.legend|escape:'htmlall':'UTF-8'}">
{$product.name|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}<br />
<span class="price">{$product.price}</span>
</a></p>
</li>
{/foreach}
</dl>
<p><a href="{$link->getPageLink('best-sales')}" title="{l s='All best sellers' mod='blockbestsellers'}" class="button_large">{l s='All best sellers' mod='blockbestsellers'}</a></p>
</ul>
<p class="lnk"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='All best sellers' mod='blockbestsellers'}" class="button_large">&raquo;{l s='All best sellers' mod='blockbestsellers'}</a></p>
{else}
<p>{l s='No best sellers at this time' mod='blockbestsellers'}</p>
{/if}
+21
View File
@@ -626,5 +626,26 @@ $(document).ready(function(){
});
ajaxCart.overrideButtonsInThePage();
ajaxCart.refresh();
/* roll over cart */
$("#shopping_cart").mouseover(function(){
$("#cart_block").slideDown(450).addClass("cart_block_hover");
});
$("#cart_block").mouseleave(function(){
$("#cart_block").removeClass("cart_block_hover");
if(!$("#cart_block").hasClass("cart_block_hover"))
$("#cart_block").slideUp(450);
});
$("#header_logo").mouseover(function(){
$("#cart_block").removeClass("cart_block_hover");
if(!$("#cart_block").hasClass("cart_block_hover"))
$("#cart_block").slideUp(450);
});
$("#messWelcome").mouseover(function(){
$("#cart_block").removeClass("cart_block_hover");
if(!$("#cart_block").hasClass("cart_block_hover"))
$("#cart_block").slideUp(450);
});
});
+5
View File
@@ -187,5 +187,10 @@ class BlockCart extends Module
if ((int)(Configuration::get('PS_BLOCK_CART_AJAX')))
$this->context->controller->addJS(($this->_path).'ajax-cart.js');
}
public function hookTop($params)
{
return $this->hookRightColumn($params);
}
}
+2 -5
View File
@@ -33,9 +33,10 @@ $_MODULE['<{blocklayered}prestashop>blocklayered_ef7de3f485174ff47f061ad27d83d0e
$_MODULE['<{blocklayered}prestashop>blocklayered_64646db703ca003a37bd1e73977a3a4d'] = 'Catégories utilisant ce modèle';
$_MODULE['<{blocklayered}prestashop>blocklayered_d758a9754eb9f36db05c22ad0c77e38e'] = 'Sélectionnez une ou plusieurs catégories utilisant ce modèle';
$_MODULE['<{blocklayered}prestashop>blocklayered_5965d2ce192837f00d743d8a674382c1'] = 'Cliquez sur \"Sauvegarder cette sélection\" ou fermez la fenêtre pour sauvegarder';
$_MODULE['<{blocklayered}prestashop>blocklayered_8cf04a9734132302f96da8e113e80ce5'] = 'Accueil';
$_MODULE['<{blocklayered}prestashop>blocklayered_72dd03f11489ff6f604a4eb57c957202'] = 'Sauvegarder cette sélection';
$_MODULE['<{blocklayered}prestashop>blocklayered_2e527847e8c785f3fd99651f64006798'] = 'Etape 2/3 - Sélectionnez vos filtres';
$_MODULE['<{blocklayered}prestashop>blocklayered_3488a51eb7f723d65daeff912e69b177'] = 'Filres sélectionnés';
$_MODULE['<{blocklayered}prestashop>blocklayered_cf3cd81b30d4c4fd996ae5374fe656da'] = 'Aucun filtre sélectionné pour le moment.';
$_MODULE['<{blocklayered}prestashop>blocklayered_8524de963f07201e5c086830d370797f'] = 'Chargement...';
$_MODULE['<{blocklayered}prestashop>blocklayered_74a6a547d86659933a210680efb6e6d1'] = 'Etape 3/3 - Donnez un nom à votre modèle';
$_MODULE['<{blocklayered}prestashop>blocklayered_f8263d99054a4cdb3428196f078fa212'] = 'Nom du modèle :';
@@ -45,11 +46,9 @@ $_MODULE['<{blocklayered}prestashop>blocklayered_ef1094d9826e98f5417e0a37f174213
$_MODULE['<{blocklayered}prestashop>blocklayered_254f642527b45bc260048e30704edb39'] = 'Configuration';
$_MODULE['<{blocklayered}prestashop>blocklayered_054b4f3ea543c990f6b125f41af6ebf7'] = 'Option';
$_MODULE['<{blocklayered}prestashop>blocklayered_689202409e48743b914713f96d93947c'] = 'Valeur';
$_MODULE['<{blocklayered}prestashop>blocklayered_deb2e405c1ee047002c6963e6c963d9e'] = 'Masquer les filtres pour lesquels aucun produit ne correspond';
$_MODULE['<{blocklayered}prestashop>blocklayered_93cba07454f06a4a960172bbd6e2a435'] = 'Oui';
$_MODULE['<{blocklayered}prestashop>blocklayered_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Non';
$_MODULE['<{blocklayered}prestashop>blocklayered_8531c73de81b9ed94322dda7cf947daa'] = 'Afficher le nombre de produits qui correspondent';
$_MODULE['<{blocklayered}prestashop>blocklayered_01f7d5dca78cb0a2c6ad8f3a3fe64883'] = 'Utiliser le système de modèle de filtres';
$_MODULE['<{blocklayered}prestashop>blocklayered_8b6c3aa61f1e15caefb66e68e7e64924'] = 'Autoriser les clients à partager des URLs';
$_MODULE['<{blocklayered}prestashop>blocklayered_abc07e5243a77d8bebcadd90fca23d74'] = 'Pour offrir à vos clients des url courtes, créer un compte sur bit.ly, puis copiez et collez login et clé API.';
$_MODULE['<{blocklayered}prestashop>blocklayered_d67850bd126f070221dcfd5fa6317043'] = 'Inscrivez-vous';
@@ -66,8 +65,6 @@ $_MODULE['<{blocklayered}prestashop>blocklayered_fcebe56087b9373f15514831184fa57
$_MODULE['<{blocklayered}prestashop>blocklayered_2d25c72c1b18e562f6654fff8e11711e'] = 'Non disponible';
$_MODULE['<{blocklayered}prestashop>blocklayered_c0bd7654d5b278e65f21cf4e9153fdb4'] = 'Fabricant';
$_MODULE['<{blocklayered}prestashop>blocklayered_8c489d0946f66d17d73f26366a4bf620'] = 'Poids';
$_MODULE['<{blocklayered}prestashop>blocklayered_3488a51eb7f723d65daeff912e69b177'] = 'Filres sélectionnés';
$_MODULE['<{blocklayered}prestashop>blocklayered_cf3cd81b30d4c4fd996ae5374fe656da'] = 'Aucun filtre sélectionné pour le moment.';
$_MODULE['<{blocklayered}prestashop>blocklayered_308edffd52afae39cc6277e246ec5df8'] = 'Filtres disponibles';
$_MODULE['<{blocklayered}prestashop>blocklayered_cfbc982f8fb7a0cc3abb3c85c795ab41'] = 'Filtre sous-catégories';
$_MODULE['<{blocklayered}prestashop>blocklayered_cd50ff1c5332f9920acf8173c4aab425'] = 'Filtre stock du produit';
+11
View File
@@ -86,6 +86,17 @@ class BlockMyAccount extends Module
{
$this->context->controller->addCSS(($this->_path).'blockmyaccount.css', 'all');
}
public function hookFooter($params)
{
global $smarty;
$smarty->assign(array(
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN')),
'HOOK_BLOCK_MY_ACCOUNT' => Module::hookExec('myAccountBlock')
));
return $this->display(__FILE__, $this->name.'.tpl');
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+2 -2
View File
@@ -26,7 +26,7 @@
<p class="payment_module">
<a href="{$this_path_ssl}payment.php" title="{l s='Pay by cheque' mod='cheque'}">
<img src="{$this_path}cheque.jpg" alt="{l s='Pay by cheque' mod='cheque'}" width="86" height="49" />
{l s='Pay by cheque (order process will be longer)' mod='cheque'}
<img src="{$this_path}cheque.jpg" alt="{l s='Pay by cheque' mod='cheque'}" width="130" height="108" />
<span>{l s='Pay by cheque (order process will be longer)' mod='cheque'}</span>
</a>
</p>
@@ -58,14 +58,13 @@ $('documnet').ready(function(){
{if $favoriteProducts}
<div>
{foreach from=$favoriteProducts item=favoriteProduct}
<div class="clearfix favoriteproduct">
<a href="{$link->getProductLink($favoriteProduct.id_product, null, null, null, null, $favoriteProduct.id_shop)}" class="fl"><img src="{$link->getImageLink($favoriteProduct.link_rewrite, $favoriteProduct.image, 'medium')}" alt=""/></a>
<div class="fl favoriteproduct_description">
<p><a href="{$link->getProductLink($favoriteProduct.id_product, null, null, null, null, $favoriteProduct.id_shop)}"><strong>{$favoriteProduct.name}</strong></a></p>
<p>{$favoriteProduct.description_short}</p>
</div>
<div class="fr">
<img style="cursor:pointer;" rel="ajax_id_favoriteproduct_{$favoriteProduct.id_product}" src="{$img_dir}icon/delete.gif" alt="" class="icon" />
<div class="favoriteproduct clearfix">
<a href="{$link->getProductLink($favoriteProduct.id_product, null, null, null, null, $favoriteProduct.id_shop)}" class="product_img_link"><img src="{$link->getImageLink($favoriteProduct.link_rewrite, $favoriteProduct.image, 'medium')}" alt=""/></a>
<h3><a href="{$link->getProductLink($favoriteProduct.id_product, null, null, null, null, $favoriteProduct.id_shop)}">{$favoriteProduct.name}</a></h3>
<div class="product_desc">{$favoriteProduct.description_short}</div>
<div class="remove">
<img rel="ajax_id_favoriteproduct_{$favoriteProduct.id_product}" src="{$img_dir}icon/delete.gif" alt="" class="icon" />
</div>
</div>
{/foreach}
@@ -75,7 +74,6 @@ $('documnet').ready(function(){
{/if}
<ul class="footer_links">
<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='favoriteproducts'}</a></li>
<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='favoriteproducts'}</a></li>
<li class="fleft"><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='favoriteproducts'}</a></li>
</ul>
</div>
@@ -47,7 +47,7 @@ $('document').ready(function(){
</script>
{if !$isCustomerFavoriteProduct AND $isLogged}
<div id="favoriteproducts_block_extra">
<span id="add_favorites_btn"><img src="{$module_dir}img/add_favorite.gif"/>{l s='Add this product to my favorites' mod='favoriteproducts'}</span>
</div>
<li id="favoriteproducts_block_extra">
{l s='Add this product to my favorites' mod='favoriteproducts'}
</li>
{/if}
+34 -13
View File
@@ -2,25 +2,46 @@
cursor: pointer
}
#favoriteproducts_block_account div.favoriteproduct {
background: none repeat scroll 0 0 #F1F2F4;
border: 1px solid #D0D3D8;
padding: 10px;
margin: 10px 0
#favoriteproducts_block_account .favoriteproduct {
position:relative;
margin-bottom: 14px;
padding: 12px 8px;
border: 1px solid #eee;
border-radius: 3px 3px 3px 3px;
}
#favoriteproducts_block_account div.favoriteproduct .fl {
float: left
.favoriteproduct a.product_img_link {
border: 1px solid #CCCCCC;
display: block;
float: left;
margin-right: 14px;
overflow: hidden;
position: relative;
}
#favoriteproducts_block_account div.favoriteproduct .fr {
float: right
.favoriteproduct h3 {
color: #000000;
font-size: 13px;
padding: 0 0 10px;
}
#favoriteproducts_block_account div.favoriteproduct img {
margin: 5px
.favoriteproduct p.product_desc {
line-height: 16px;
overflow: hidden;
padding: 0;
}
#favoriteproducts_block_account div.favoriteproduct_description {
width: 350px
.favoriteproduct .remove {
position:absolute;
top:10px;
right:10px
}
.favoriteproduct .remove .icon {cursor:pointer}
/* lnk fiche produit */
#usefull_link_block li#favoriteproducts_block_extra {
padding-left:20px;
background:url(img/add_favorite.gif) no-repeat 0 0;
}
+1 -3
View File
@@ -24,8 +24,7 @@ $_MODULE['<{loyalty}prestashop>loyalty_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Non
$_MODULE['<{loyalty}prestashop>loyalty_ade45d72ab6ba1ab576d8b9deb0c2438'] = 'Points attribués au statut suivant';
$_MODULE['<{loyalty}prestashop>loyalty_9611a682e61c503c32e2dc58fdbc8ddf'] = 'Points annulés au statut suivant';
$_MODULE['<{loyalty}prestashop>loyalty_2a46cccdea2f18fdfdfacf99a98b758d'] = 'Les bons de réductions crées par le système de fidélité peuvent être utilisés dans les catégories d\'articles suivantes :';
$_MODULE['<{loyalty}prestashop>loyalty_b718adec73e04ce3ec720dd11a06a308'] = 'ID';
$_MODULE['<{loyalty}prestashop>loyalty_49ee3087348e8d44e1feda1917443987'] = 'Nom';
$_MODULE['<{loyalty}prestashop>loyalty_8cf04a9734132302f96da8e113e80ce5'] = 'Accueil';
$_MODULE['<{loyalty}prestashop>loyalty_c2a7db7dec4de1bdb143ccd790f5a62c'] = 'Cocher pour quelle(s) catégorie(s) seront utilisables les bons de réductions fidélité';
$_MODULE['<{loyalty}prestashop>loyalty_30e793698766edbaaf84a74d4c377f72'] = 'Statuts des points de fidélité';
$_MODULE['<{loyalty}prestashop>loyalty_4f2a91e15af2631ff9424564b8a45fb2'] = 'Initial';
@@ -80,7 +79,6 @@ $_MODULE['<{loyalty}prestashop>loyalty_a16cf3ec5200cc519f4fe48e34b1df83'] = 'Le
$_MODULE['<{loyalty}prestashop>loyalty_8e69341aca5dbf9f55c2e75a2ed5df3c'] = 'Aucun bon de réduction pour le moment.';
$_MODULE['<{loyalty}prestashop>loyalty_00d56a5e37c19c59d521530fc8e7f337'] = 'Aucun point de fidélité pour le moment.';
$_MODULE['<{loyalty}prestashop>loyalty_0b3db27bc15f682e92ff250ebb167d4b'] = 'Retour à votre compte';
$_MODULE['<{loyalty}prestashop>loyalty_8cf04a9734132302f96da8e113e80ce5'] = 'Accueil';
$_MODULE['<{loyalty}prestashop>my-account_c540093e64d84440025b2d8201f04336'] = 'Mes points de fidélité';
$_MODULE['<{loyalty}prestashop>product_ded9088edfbcc1041c3a642b031c8f72'] = 'Programme de fidélisation';
$_MODULE['<{loyalty}prestashop>product_08ef6b34ab8e7039ef0ee69378f0ac0b'] = 'En achetant ce produit vous pouvez gagner jusqu\'à ';
-1
View File
@@ -34,7 +34,6 @@ $_MODULE['<{moneybookers}prestashop>moneybookers_acf2b73b741f10cd1e0d075ed43fed3
$_MODULE['<{moneybookers}prestashop>moneybookers_76264fd7352f803c63396bc27b0ee893'] = 'Moneybookers change de nom et devient Skrill !';
$_MODULE['<{moneybookers}prestashop>moneybookers_f4f70727dc34561dfde1a3c529b6205c'] = 'Configuration';
$_MODULE['<{moneybookers}prestashop>moneybookers_e86e85752dd7a7b31bb935c862480cee'] = 'Choisir la position du logo';
$_MODULE['<{moneybookers}prestashop>moneybookers_239d45036930947dbf41506d27fa1aa7'] = 'Change la position du logo dans le Front Office. Fonctionne avec ';
$_MODULE['<{moneybookers}prestashop>moneybookers_81149af5698332fdf2d6869a66b6ad12'] = 'Live edit';
$_MODULE['<{moneybookers}prestashop>moneybookers_708c440d8915f957ee6717efc426a863'] = 'Envoyer ';
$_MODULE['<{moneybookers}prestashop>moneybookers_5138738b54f0d4bdf7c72780db651abc'] = 'Ouverture de compte';
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

+3 -3
View File
@@ -26,7 +26,7 @@
{if $display_mode == 0}
<form action="https://www.moneybookers.com/app/payment.pl" method="post">
<p class="payment_module" style="border: 1px solid #595A5E; display: block; text-decoration: none; margin-left: 7px; padding: 0.6em;">
<p class="payment_module" style="display: block; text-decoration: none;">
<input type="hidden" name="pay_to_email" value="{$pay_to_email}" />
<input type="hidden" name="recipient_description" value="{$recipient_description}" />
<input type="hidden" name="transaction_id" value="{$transaction_id}" />
@@ -73,7 +73,7 @@
{else}
{foreach from=$inter item=i}
<form action="https://www.moneybookers.com/app/payment.pl" method="post">
<p class="payment_module" style="border: 1px solid #595A5E; display: block; text-decoration: none; height: 50px; margin-left: 7px; padding: 0.6em;">
<p class="payment_module" style="display: block; text-decoration: none; height: 50px;">
<input type="hidden" name="pay_to_email" value="{$pay_to_email}" />
<input type="hidden" name="recipient_description" value="{$recipient_description}" />
<input type="hidden" name="transaction_id" value="{$transaction_id}" />
@@ -115,7 +115,7 @@
{/foreach}
{foreach from=$local item=i}
<form action="https://www.moneybookers.com/app/payment.pl" method="post">
<p class="payment_module" style="border: 1px solid #595A5E; display: block; text-decoration: none; height: 50px; margin-left: 7px; padding: 0.6em;">
<p class="payment_module" style="display: block; text-decoration: none; height: 50px;">
<input type="hidden" name="pay_to_email" value="{$pay_to_email}" />
<input type="hidden" name="recipient_description" value="{$recipient_description}" />
<input type="hidden" name="transaction_id" value="{$transaction_id}" />
+2 -1
View File
@@ -8,6 +8,7 @@ $_MODULE['<{productcomments}prestashop>productcomments-extra_4ce7fa08d440a1e0fb3
$_MODULE['<{productcomments}prestashop>productcomments-extra_b78a3223503896721cca1303f776159b'] = 'Titre';
$_MODULE['<{productcomments}prestashop>productcomments-extra_0be8406951cdfda82f00f79328cf4efc'] = 'Commentaire';
$_MODULE['<{productcomments}prestashop>productcomments-extra_a2ed44743411cf8b80e397448fce104c'] = 'Votre nom';
$_MODULE['<{productcomments}prestashop>productcomments-extra_e699583427bd276f34244d23e6072a41'] = 'Tous les champs sont obligatoires';
$_MODULE['<{productcomments}prestashop>productcomments-extra_94966d90747b97d1f0f206c98a8b1ac3'] = 'Envoyer';
$_MODULE['<{productcomments}prestashop>productcomments-extra_e81c4e4f2b7b93b481e13a8553c2ae1b'] = 'ou';
$_MODULE['<{productcomments}prestashop>productcomments-extra_ea4788705e6873b424c65e91c2846b19'] = 'Annuler';
@@ -67,7 +68,7 @@ $_MODULE['<{productcomments}prestashop>productcomments_6bf852d9850445291f5e9d474
$_MODULE['<{productcomments}prestashop>productcomments_6d28f2900adb9e500868166f6d04da92'] = 'Vous devez attendre';
$_MODULE['<{productcomments}prestashop>productcomments_ba8d7ae5dcadfba739f28a777378f208'] = 'secondes avant de poster un nouveau commentaire.';
$_MODULE['<{productcomments}prestashop>productcomments_4494d00c901c9e22ff3b953177205cea'] = 'Etes vous sur de vouloir signaler ce commentaire?';
$_MODULE['<{productcomments}prestashop>productcomments_7c3b0e9898b88deee7ea75aafd2e37e2'] = 'Note moyenne';
$_MODULE['<{productcomments}prestashop>productcomments_4b3b9db8c9784468094acde0f8bf7071'] = 'Note';
$_MODULE['<{productcomments}prestashop>productcomments_663fc7093256cda156e571631ddb295e'] = 'personne(s) sur';
$_MODULE['<{productcomments}prestashop>productcomments_e759c67f646fedbee26e1e6732588a98'] = 'ont trouvé ce commentaire utile';
$_MODULE['<{productcomments}prestashop>productcomments_39630ad6ee79b8653ea89194cdb45bec'] = 'Ce commentaire vous a-t-il été utile?';
Binary file not shown.

Before

Width:  |  Height:  |  Size: 815 B

After

Width:  |  Height:  |  Size: 543 B

@@ -57,8 +57,9 @@
</script>
<div id="product_comments_block_extra">
<div>
<span style="float:left;">{l s='Average grade' mod='productcomments'}&nbsp</span>
<div class="comments_note">
<span>{l s='Average grade' mod='productcomments'}&nbsp</span>
<div class="star_content clearfix">
{section name="i" start=0 loop=5 step=1}
{if $averageTotal le $smarty.section.i.index}
<div class="star"></div>
@@ -66,9 +67,9 @@
<div class="star star_on"></div>
{/if}
{/section}
<br style="clear:both"/>
</div>
</div>
<div>
<div class="comments_advices">
<a href="#idTab5">{l s='Read user reviews' mod='productcomments'} ({$nbComments})</a><br/>
{if ($too_early == false AND ($logged OR $allow_guests))}
<a id="new_comment_btn" href="#new_comment_form">{l s='Give your advice' mod='productcomments'}</a>
@@ -76,53 +77,59 @@
</div>
<div style="display: none;">
<div id="new_comment_form">
<div>
<form action="{$action_url}" method="post" id="sendComment">
<span class="title">{l s='Give your advice' mod='productcomments'}</span>
<div style="margin-top:20px">
<img style="float:left" src="{$link->getImageLink($product->link_rewrite, $productcomment_cover, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product->name|escape:html:'UTF-8'}" />
<div style="float:left; width:300px; margin-left:10px">
<strong class="clearfix">{$product->name}</strong>
{$product->description_short}
</div>
<form action="{$action_url}" method="post" id="sendComment">
<h2 class="title">{l s='Give your advice' mod='productcomments'}</h2>
<div class="product clearfix">
<img src="{$link->getImageLink($product->link_rewrite, $productcomment_cover, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product->name|escape:html:'UTF-8'}" />
<div class="product_desc">
<p class="product_name"><strong>{$product->name}</strong></p>
{$product->description_short}
</div>
<br style="clear:both"/>
<div style="margin-top:20px">
{if $criterions|@count > 0}
<table border="0" cellspacing="0" cellpadding="0">
{section loop=$criterions name=i start=0 step=1}
<tr>
<th>
<input type="hidden" name="id_product_comment_criterion_{$smarty.section.i.iteration}" value="{$criterions[i].id_product_comment_criterion|intval}" />
{$criterions[i].name|escape:'html':'UTF-8'}:&nbsp;
</th>
<td>
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" id="{$smarty.section.i.iteration}_grade" value="1" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="2" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="3" checked="checked" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="4" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="5" />
</td>
</tr>
{/section}
</table>
{/if}
<label for="comment_title">{l s='Title' mod='productcomments'} *:</label>
<input name="title" type="text" value=""/><br/>
<label for="content">{l s='Comment' mod='productcomments'} *:</label>
<textarea name="content"></textarea>
</div>
<div class="new_comment_form_content">
<p class="intro_form">{l s='Give your advice' mod='productcomments'}</p>
{if $criterions|@count > 0}
<div class="grade_content clearfix">
{section loop=$criterions name=i start=0 step=1}
<span>
<input type="hidden" name="id_product_comment_criterion_{$smarty.section.i.iteration}" value="{$criterions[i].id_product_comment_criterion|intval}" />
{$criterions[i].name|escape:'html':'UTF-8'}:&nbsp;
</span>
<div class="star_content">
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" id="{$smarty.section.i.iteration}_grade" value="1" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="2" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="3" checked="checked" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="4" />
<input class="star" type="radio" name="{$smarty.section.i.iteration}_grade" value="5" />
</div>
{/section}
</div>
{/if}
<div class="form_contenair">
<p class="text">
<label for="comment_title">{l s='Title' mod='productcomments'} <sup>*</sup>:</label>
<input name="title" type="text" value=""/>
</p>
<p class="textarea">
<label for="content">{l s='Comment' mod='productcomments'} <sup>*</sup>:</label>
<textarea name="content"></textarea>
</p>
{if $allow_guests == true && $logged == 0}
<label>{l s='Your name:' mod='productcomments'} *:</label>
<input name="customer_name" type="text" value=""/><br/>
<p class="text">
<label>{l s='Your name:' mod='productcomments'} <sup>*</sup>:</label>
<input name="customer_name" type="text" value=""/>
</p>
{/if}
<p style="float:right">
<p class="submit">
<span class="txt_required">* {l s='All ths fields are mandatory' mod='productcomments'}</span>
<button name="submitMessage" type="submit">{l s='Send' mod='productcomments'}</button>&nbsp;
{l s='or' mod='productcomments'}&nbsp;<a href="#" onclick="$.fancybox.close();">{l s='Cancel' mod='productcomments'}</a>
</p>
<br style="clear:both"/>
</div>
</form>
</div>
</div><!-- /end new_comment_form_content -->
</form>
</div>
</div>
</div>
+156 -84
View File
@@ -1,99 +1,179 @@
#product_comments_block_extra {
border: 1px solid #D0D3D8;
background: #F1F2F4;
padding: 10px
padding-top:10px;
border-top:1px solid #ccc;
font-weight: bold;
font-size:12px;
line-height:18px
}
#product_comments_block_extra a {
text-decoration: none;
font-weight: bold
#product_comments_block_extra a {text-decoration: none;}
#product_comments_block_extra a:hover {text-decoration: underline}
#product_comments_block_extra .comments_note span,
#product_comments_block_extra .star_content {float:left}
#product_comments_block_extra div.star {background: url(img/star.gif) no-repeat scroll 0 0 transparent}
#product_comments_block_extra div.star_on {background: url(img/star.gif) no-repeat scroll 0 -16px transparent}
#product_comments_block_extra .comments_advices {clear:both;}
/* pop-in add grade/advice ********************************************************************* */
#fancybox-wrap {width:585px !important}
#fancybox-content {
width:585px !important;
border-width:0 !important
}
#product_comments_block_extra a:hover {
text-decoration: underline
}
#product_comments_block_extra div.star {
background: url("img/star.gif") no-repeat scroll 0 0 transparent
}
#product_comments_block_extra div.star_on {
background: url("img/star.gif") no-repeat scroll 0 0 transparent;
background-position: 0 -16px
}
#new_comment_form {
width:585px;
color: #333;
background-color: #fff;
padding: 10px;
width: 565px;
text-align: left;
background-color: #fff
}
#new_comment_form .title {
padding: 15px;
background: #333;
color: #fff;
padding:10px;
font-size: 13px;
font-weight: bold;
padding: 5px;
text-align: left;
color: #fff;
text-transform: uppercase;
display: block;
margin: 5px 0
background: #333
}
#new_comment_form label {
display: block;
margin: 5px 0;
text-align: left;
font-weight: bold
#new_comment_form .product {padding:15px}
#new_comment_form .product img {
float:left;
border: 1px solid #ccc;
}
#new_comment_form .product .product_desc {
float:left;
margin-left:15px;
width:300px;
line-height:18px;
color:#666
}
#new_comment_form .product .product_desc .product_name {
padding-bottom:5px;
font-size:13px;
color:#000
}
#new_comment_form textarea {
width: 100%;
min-height: 100px;
margin: 5px 0
#new_comment_form .grade_content {margin:0 0 20px 0}
#new_comment_form .grade_content span,
#new_comment_form .grade_content .star_content {float:left}
#new_comment_form .grade_content span {
display:inline-block;
padding:0 10px;
width:85px;/* 105 */
font-weight:bold
}
#new_comment_form .grade_content .cancel {margin-right:5px}
.new_comment_form_content {
padding:15px;
background:#f8f8f8
}
.new_comment_form_content .intro_form {
padding-bottom: 10px;
font-weight: bold;
font-size: 12px
}
#new_comment_form input[type=text] {
width: 100%;
height: 30px;
margin: 5px 0
#new_comment_form .form_contenair {
clear:both;
margin-top:20px
}
#new_comment_form p.text {
margin-bottom:0;
padding-bottom:0
}
#new_comment_form p.text label, #new_comment_form p.textarea label {
display: block;
margin:12px 0 4px 0;
font-weight: bold;
font-size: 12px;
}
#new_comment_form p.text input {
padding: 0 5px;
height: 28px;
width: 540px;
border: 1px solid #ccc;
background: url(../img/bg_input.png) repeat-x scroll 0 0 #fff;
}
#new_comment_form p.textarea textarea {
padding: 0 5px;
height: 80px;
width: 540px;
border: 1px solid #ccc;
background: url(../img/bg_input.png) repeat-x scroll 0 0 #fff;
}
#new_comment_form th {
font-size: 11px;
text-align: left;
font-weight: bold;
color: #333
#new_comment_form .submit {
padding:0;
font-size:13px;
text-align:right
}
#new_comment_form button {
background-color: #333;
border: solid 1px #BDC2C9;
padding: 3px 5px;
cursor: pointer;
color: #fff
cursor: pointer;
display: inline-block;
padding: 4px 7px 3px 7px;
border: 1px solid #CC9900;
border-radius: 3px 3px 3px 3px;
font-weight: bold;
color: #000;
background: url(../img/bg_bt.gif) repeat-x scroll 0 0 #F4B61B
}
#new_comment_form .submit .txt_required {
float:left;
font-size:12px;
font-style:italic;
color:#666
}
/* TAB COMMENTS ******************************************************************************** */
#product_comments_block_tab {margin:0 0 20px 0}
#product_comments_block_tab div.comment {
border-bottom: solid 1px #ccc;
padding: 5px
margin:0 0 10px 0;
padding: 5px;
border-bottom: 1px dotted #ccc
}
#product_comments_block_tab div.comment div.comment_author {
float: left;
width: 200px
padding-right:25px;
width: 140px;/* 165 */
line-height:18px
}
#product_comments_block_tab div.comment div.comment_author span {font-weight:bold;}
#product_comments_block_tab div.comment div.comment_author span,
#product_comments_block_tab div.comment .star_content {
float:left;
}
#product_comments_block_tab div.comment .star_content {margin: 0 0 0 5px}
#product_comments_block_tab div.star,
#product_comments_block_tab div.star_on {
background: url(img/star.gif) no-repeat 0 0 transparent
}
#product_comments_block_tab div.star_on {background-position: 0 -16px}
#product_comments_block_tab .comment_author_infos {clear:both}
#product_comments_block_tab .comment_author_infos em {color:#999}
#product_comments_block_tab div.comment div.comment_details {
float: left;
width: 320px
width: 360px
}
#product_comments_block_tab div.comment_details p{
padding: 0
#product_comments_block_tab div.comment_details h4 {padding-bottom:10px}
#product_comments_block_tab div.comment_details p {padding-bottom:10px}
#product_comments_block_tab div.comment_details ul {
list-style-type:none;
margin:0
}
#product_comments_block_tab div.comment_details li {
padding:2px 0 2px 12px;
background:url(img/bg_li.png) no-repeat 1px 45% #fff
}
#product_comments_block_tab a {
@@ -101,29 +181,21 @@
font-weight: bold
}
#product_comments_block_tab a:hover {
text-decoration: underline
}
#product_comments_block_tab div.star {
background: url("img/star.gif") no-repeat scroll 0 0 transparent
}
#product_comments_block_tab div.star_on {
background: url("img/star.gif") no-repeat scroll 0 0 transparent;
background-position: 0 -16px
}
#product_comments_block_tab a:hover {text-decoration: underline}
#product_comments_block_tab button.usefulness_btn {
background-color: #bbb;
border: solid 1px #999;
padding: 1px;
cursor: pointer;
color: #fff;
margin: 3px
cursor: pointer;
margin:0 0 0 5px;
display: inline-block;
padding: 0 2px;
border: 1px solid #CC9900;
border-radius: 3px 3px 3px 3px;
color: #000;
font-weight: bold;
background: url("img/bg_bt.gif") repeat-x scroll 0 0 #F4B61B
}
#product_comments_block_tab button.usefulness_btn:hover {background-position: left -50px}
#product_comments_block_tab button.usefulness_btn:active {background-position: left -100px}
#product_comments_block_tab span.report_btn {
cursor: pointer;
text-decoration: underline
}
#product_comments_block_tab span.report_btn {cursor: pointer}
#product_comments_block_tab span.report_btn:hover {text-decoration:underline}
+3 -2
View File
@@ -66,7 +66,7 @@ class ProductComments extends Module
return false;
if (parent::install() == false OR $this->registerHook('productTab') == false
OR $this->registerHook('extraProductComparison') == false OR $this->registerHook('productTabContent') == false
OR $this->registerHook('header') == false OR $this->registerHook('extraRight') == false OR !Configuration::updateValue('PRODUCT_COMMENTS_MINIMAL_TIME', 30)
OR $this->registerHook('header') == false OR $this->registerHook('productOutOfStock') == false OR !Configuration::updateValue('PRODUCT_COMMENTS_MINIMAL_TIME', 30)
OR !Configuration::updateValue('PRODUCT_COMMENTS_ALLOW_GUESTS', 0)
OR !Configuration::updateValue('PRODUCT_COMMENTS_MODERATE', 1))
return false;
@@ -529,6 +529,7 @@ class ProductComments extends Module
<form action="'.$this->_baseUrl.'" method="post" name="product_criterion_form">
<label>'.$this->l('Criterion').'</label>
<div class="margin-form">
">
<select name="id_product_comment_criterion" id="id_product_comment_criterion" onchange="window.location=\''.$this->_baseUrl.'&updateCriterion=\'+$(\'#id_product_comment_criterion option:selected\').val()">
<option value="--">-- '.$this->l('Choose a criterion').' --</option>';
foreach ($criterions AS $foo)
@@ -588,7 +589,7 @@ class ProductComments extends Module
return ($this->display(__FILE__, '/tab.tpl'));
}
public function hookExtraRight($params)
public function hookProductOutOfStock($params)
{
require_once(dirname(__FILE__).'/ProductComment.php');
require_once(dirname(__FILE__).'/ProductCommentCriterion.php');
+4 -3
View File
@@ -90,7 +90,8 @@
{if $comment.content}
<div class="comment clearfix">
<div class="comment_author">
<span style="float:left;">{l s='Average grade' mod='productcomments'}&nbsp</span>
<span>{l s='Grade' mod='productcomments'}&nbsp</span>
<div class="star_content clearfix">
{section name="i" start=0 loop=5 step=1}
{if $comment.grade le $smarty.section.i.index}
<div class="star"></div>
@@ -98,8 +99,8 @@
<div class="star star_on"></div>
{/if}
{/section}
<br style="clear:both"/>
<div>
</div>
<div class="comment_author_infos">
<strong>{$comment.customer_name|escape:'html':'UTF-8'}</strong><br/>
<em>{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}</em>
</div>
-1
View File
@@ -14,7 +14,6 @@ $_MODULE['<{sendtoafriend}prestashop>sendtoafriend_ffa719e6b8863717a9e86579249c7
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2107f6398c37b4b9ee1e1b5afb5d3b2a'] = 'Envoyer à un ami';
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_20589174124c25654cac3736e737d2a3'] = 'Envoyer cette page à un ami susceptible d\'être intéressé par le produit ci-dessous';
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_b31afdfa73c89b567778f15180c2dd6c'] = 'Votre email a bien été envoyé';
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_cc5fd9b9f1cad59fcff97a1f21f34304'] = 'Envoyer un message';
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_19d305aea0ccec77d23362111ebdb6b4'] = 'Nom de votre ami :';
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_7ae8a9a7a5d8fa40d4515fc52f16bb2e'] = 'Email de votre ami :';
$_MODULE['<{sendtoafriend}prestashop>sendtoafriend_2541d938b0a58946090d7abdde0d3890'] = 'Envoyer';
+1 -1
View File
@@ -24,4 +24,4 @@
* International Registered Trademark & Property of PrestaShop SA
*}
<li><a href="{$this_path}sendtoafriend-form.php?id_product={$smarty.get.id_product|intval}">{l s='Send to a friend' mod='sendtoafriend'}</a></li>
<li class="sendtofriend"><a href="{$this_path}sendtoafriend-form.php?id_product={$smarty.get.id_product|intval}">{l s='Send to a friend' mod='sendtoafriend'}</a></li>
+6 -8
View File
@@ -35,25 +35,23 @@
{if isset($smarty.get.submited)}
<p class="success">{l s='Your email has been sent successfully' mod='sendtoafriend'}</p>
{else}
<form method="post" action="{$request_uri}" class="std">
<form method="post" action="{$request_uri}" class="std" id="sendfriendform">
<fieldset>
<h3>{l s='Send a message' mod='sendtoafriend'}</h3>
<p class="align_center">
<p class="product">
<a href="{$productLink}"><img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'small')}" alt="" title="{$cover.legend}" /></a><br/>
<a href="{$productLink}">{$product->name}</a>
</p>
<p>
<p class="text">
<label for="friend-name">{l s='Friend\'s name:' mod='sendtoafriend'}</label>
<input type="text" id="friend-name" name="name" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall':'UTF-8'|stripslashes}{/if}" />
</p>
<p>
<p class="text">
<label for="friend-address">{l s='Friend\'s email:' mod='sendtoafriend'}</label>
<input type="text" id="friend-address" name="email" value="{if isset($smarty.post.name)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" />
</p>
<p class="submit">
<p class="submit clearfix">
<input type="submit" name="submitAddtoafriend" value="{l s='send' mod='sendtoafriend'}" class="button" />
</p>
</fieldset>
@@ -61,6 +59,6 @@
{/if}
<ul class="footer_links">
<li><a href="{$productLink}" class="button_large">{l s='Back to product page' mod='sendtoafriend'}</a></li>
<li><a href="{$productLink}">&laquo; {l s='Back to product page' mod='sendtoafriend'}</a></li>
</ul>
+1 -1
View File
@@ -69,7 +69,7 @@ var TS = (function()
})();
</script>
<div style="border:solid 1px #000; width: 537px; border: 1px solid #595A5E; margin-bottom: 10px;">
<div style="border:solid 1px #000; width: 537px; margin-bottom: 10px;">
<h3 style="padding:0 0 0 5px;"><b>{l s='Trusted Shops Buyer Protection (recommended)' mod='trustedshops'}</b></h3>
<div style="float:left; width:100px;">
<a href="https://www.trustedshops.com/shop/certificate.php?shop_id={$shop_id}" target="_blank">