diff --git a/modules/blockbestsellers/blockbestsellers.css b/modules/blockbestsellers/blockbestsellers.css
index e07df3095..db88db52c 100644
--- a/modules/blockbestsellers/blockbestsellers.css
+++ b/modules/blockbestsellers/blockbestsellers.css
@@ -31,6 +31,7 @@
#best-sellers_block_right li p {
float:left;
margin-left:7px;
+ padding:0;
width:125px;
font-weight:bold;
font-size:12px
diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php
index c0329b5c6..7b7a57488 100644
--- a/modules/blockcategories/blockcategories.php
+++ b/modules/blockcategories/blockcategories.php
@@ -167,10 +167,20 @@ class BlockCategories extends Module
$id_lang = (int)($params['cookie']->id_lang);
$smartyCacheId = 'blockcategories|'.$id_current_shop.'_'.$groups.'_'.$id_lang.'_'.$id_product.'_'.$id_category;
- Tools::enableCache();
+ /*Tools::enableCache();
if (!$this->isCached('blockcategories.tpl', $smartyCacheId))
- {
+ {*/
$maxdepth = Configuration::get('BLOCK_CATEG_MAX_DEPTH');
+ /*p('
+ SELECT c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite
+ FROM `'._DB_PREFIX_.'category` c
+ LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (c.`id_category` = cl.`id_category` AND cl.`id_lang` = '.$id_lang.$this->context->shop->addSqlRestrictionOnLang('cl').')
+ LEFT JOIN `'._DB_PREFIX_.'category_group` cg ON (cg.`id_category` = c.`id_category`)
+ WHERE (c.`active` = 1 OR c.`id_category` = 1)
+ '.((int)($maxdepth) != 0 ? ' AND `level_depth` <= '.(int)($maxdepth) : '').'
+ AND cg.`id_group` IN ('.pSQL($groups).')
+ GROUP BY id_category
+ ORDER BY `level_depth` ASC, '.(Configuration::get('BLOCK_CATEG_SORT') ? 'cl.`name`' : 'c.`position`').' '.(Configuration::get('BLOCK_CATEG_SORT_WAY') ? 'DESC' : 'ASC'));*/
if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite
FROM `'._DB_PREFIX_.'category` c
@@ -193,10 +203,10 @@ class BlockCategories extends Module
$resultParents[$row['id_parent']][] = &$row;
$resultIds[$row['id_category']] = &$row;
}
-
+//p($resultParents);
$blockCategTree = $this->getTree($resultParents, $resultIds, Configuration::get('BLOCK_CATEG_MAX_DEPTH'));
unset($resultParents, $resultIds);
-
+//d($blockCategTree);
$isDhtml = (Configuration::get('BLOCK_CATEG_DHTML') == 1 ? true : false);
if (Tools::isSubmit('id_category'))
{
@@ -220,7 +230,7 @@ class BlockCategories extends Module
else
$this->context->smarty->assign('branche_tpl_path', _PS_MODULE_DIR_.'blockcategories/category-tree-branch.tpl');
$this->context->smarty->assign('isDhtml', $isDhtml);
- }
+ //}
$this->context->smarty->cache_lifetime = 31536000; // 1 Year
$display = $this->display(__FILE__, 'blockcategories.tpl', $smartyCacheId);
Tools::restoreCacheSettings();
diff --git a/modules/blockcategories/category-tree-branch.tpl b/modules/blockcategories/category-tree-branch.tpl
index 7c5a16e17..08215c654 100644
--- a/modules/blockcategories/category-tree-branch.tpl
+++ b/modules/blockcategories/category-tree-branch.tpl
@@ -25,11 +25,11 @@
*}
- {$node.name|escape:html:'UTF-8'}
+ {$node.name|escape:'htmlall':'UTF-8'}
{if $node.children|@count > 0}
{foreach from=$node.children item=child name=categoryTreeBranch}
- {if isset($smarty.foreach.categoryTreeBranch) && $smarty.foreach.categoryTreeBranch.last}
+ {if $smarty.foreach.categoryTreeBranch.last}
{include file="$branche_tpl_path" node=$child last='true'}
{else}
{include file="$branche_tpl_path" node=$child last='false'}
diff --git a/modules/blockcategories/img/icon/open-close.png b/modules/blockcategories/img/icon/open-close.png
new file mode 100644
index 000000000..0552971e5
Binary files /dev/null and b/modules/blockcategories/img/icon/open-close.png differ
diff --git a/modules/blocklayered/blocklayered-15.css b/modules/blocklayered/blocklayered-15.css
index eb3239edc..0f4ac820e 100644
--- a/modules/blocklayered/blocklayered-15.css
+++ b/modules/blocklayered/blocklayered-15.css
@@ -31,6 +31,9 @@
text-indent:-5000px;
background:url(img/icon/less.gif) no-repeat 2px 2px;
}
+#layered_block_left span.closed a {
+ background:url(img/icon/more.gif) no-repeat 2px 2px;
+}
#layered_block_left .layered_subtitle {
display: inline-block;
diff --git a/modules/blocklayered/blocklayered.js b/modules/blocklayered/blocklayered.js
index f90dc80c9..e4d22fcbf 100644
--- a/modules/blocklayered/blocklayered.js
+++ b/modules/blocklayered/blocklayered.js
@@ -240,11 +240,13 @@ function openCloseFilter()
{
$('#'+$(this).attr('rel')).show();
$(this).html('v');
+ $(this).parent().removeClass('closed');
}
else
{
$('#'+$(this).attr('rel')).hide();
$(this).html('<');
+ $(this).parent().addClass('closed');
}
e.preventDefault();
diff --git a/modules/blocktopmenu/css/superfish-modified.css b/modules/blocktopmenu/css/superfish-modified.css
index 559da4afc..daff73bda 100644
--- a/modules/blocktopmenu/css/superfish-modified.css
+++ b/modules/blocktopmenu/css/superfish-modified.css
@@ -60,7 +60,7 @@ ul.sf-menu li.sfHover li ul {
}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
- left: 10em; /* match ul width */
+ left: 9.7em; /* match ul width */
top: 0;
}
ul.sf-menu li li:hover li ul,
@@ -94,7 +94,7 @@ ul.sf-menu li li li.sfHover ul {
background: rgba(113, 113, 113, 0.9);
}
.sf-menu li li li {
- background: #ebebed;
+ background: rgba(113, 113, 113, 0.9);
}
.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
background: transparent url(../img/bg_blocktopmenu_li_hover.png) repeat-x 0 0;
diff --git a/modules/blockwishlist/blockwishlist.css b/modules/blockwishlist/blockwishlist.css
index 641693791..5b65cdf61 100644
--- a/modules/blockwishlist/blockwishlist.css
+++ b/modules/blockwishlist/blockwishlist.css
@@ -97,17 +97,20 @@
text-align:right
}
-#mywishlist td.wishlist_delete {text-align:center}
+#mywishlist td.wishlist_delete {
+ text-align:center;
+ border-right: 1px solid #999
+}
#mywishlist td.wishlist_delete a {
- display:inline-block;
- font-size:8px;
- padding:1px 2px;
+ display:inline-block;
+ font-size:8px;
+ padding:1px 2px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
- border-radius:3px;
- color:#666;
- text-shadow:0 1px 0 #fff;
- text-transform:uppercase;
+ border-radius:3px;
+ color:#666;
+ text-shadow:0 1px 0 #fff;
+ text-transform:uppercase;
background: none repeat scroll 0 0 #ccc;
}
diff --git a/modules/blockwishlist/img/gift.gif b/modules/blockwishlist/img/gift.gif
new file mode 100644
index 000000000..d1908313f
Binary files /dev/null and b/modules/blockwishlist/img/gift.gif differ
diff --git a/modules/blockwishlist/img/icon/delete.gif b/modules/blockwishlist/img/icon/delete.gif
new file mode 100644
index 000000000..6d186d193
Binary files /dev/null and b/modules/blockwishlist/img/icon/delete.gif differ