[-] MO - productComments: write review is now the only thing displayed if there are no comments. homeSlider: fixed missing variable in .js

This commit is contained in:
bMancone
2011-08-31 13:32:43 +00:00
parent 5a5c400c87
commit e99ff51d5a
3 changed files with 22 additions and 10 deletions
+2 -1
View File
@@ -559,6 +559,7 @@ class HomeSlider extends Module
$this->context->smarty->assign('homeslider_slides', $slides);
$this->context->smarty->assign('homeslider', $slider);
return $this->display(__FILE__, 'homeslider.tpl');
}
@@ -568,8 +569,8 @@ class HomeSlider extends Module
return;
$this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js');
$this->context->controller->addJS($this->_path.'js/jquery.bxSlider.min.js');
$this->context->controller->addJS($this->_path.'js/homeslider.js');
$this->context->controller->addCSS($this->_path.'bx_styles.css');
$this->context->controller->addJS($this->_path.'js/homeslider.js');
}
public function hookBackOfficeTop()
+15 -9
View File
@@ -1,11 +1,17 @@
$(function(){
$('#homeslider').bxSlider({
infiniteLoop: true,
hideControlOnEnd: true,
pager: true,
autoHover: true,
auto: true,
speed: homeslider_speed,
pause: homeslider_pause
});
if (!homeslider_speed == undefined)
var homeslider_speed = 300;
if (!homeslider_pause == undefined)
var homeslider_pause = 6000;
$('#homeslider').bxSlider({
infiniteLoop: true,
hideControlOnEnd: true,
pager: true,
autoHover: true,
auto: true,
speed: homeslider_speed,
pause: homeslider_pause
});
});
@@ -77,6 +77,7 @@
</script>
<div id="product_comments_block_extra">
{if $nbComments != 0}
<div class="comments_note">
<span>{l s='Average grade' mod='productcomments'}&nbsp</span>
<div class="star_content clearfix">
@@ -89,8 +90,12 @@
{/section}
</div>
</div>
{/if}
<div class="comments_advices">
{if $nbComments != 0}
<a href="#idTab5">{l s='Read user reviews' mod='productcomments'} ({$nbComments})</a><br/>
{/if}
{if ($too_early == false AND ($logged OR $allow_guests))}
<a id="new_comment_btn" href="#new_comment_form">{l s='Write your review' mod='productcomments'}</a>
{/if}