[-] 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:
@@ -559,6 +559,7 @@ class HomeSlider extends Module
|
|||||||
|
|
||||||
$this->context->smarty->assign('homeslider_slides', $slides);
|
$this->context->smarty->assign('homeslider_slides', $slides);
|
||||||
$this->context->smarty->assign('homeslider', $slider);
|
$this->context->smarty->assign('homeslider', $slider);
|
||||||
|
|
||||||
return $this->display(__FILE__, 'homeslider.tpl');
|
return $this->display(__FILE__, 'homeslider.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -568,8 +569,8 @@ class HomeSlider extends Module
|
|||||||
return;
|
return;
|
||||||
$this->context->controller->addJS(_PS_JS_DIR_.'jquery/jquery-ui-1.8.10.custom.min.js');
|
$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/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->addCSS($this->_path.'bx_styles.css');
|
||||||
|
$this->context->controller->addJS($this->_path.'js/homeslider.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookBackOfficeTop()
|
public function hookBackOfficeTop()
|
||||||
|
|||||||
@@ -1,11 +1,17 @@
|
|||||||
$(function(){
|
$(function(){
|
||||||
$('#homeslider').bxSlider({
|
|
||||||
infiniteLoop: true,
|
if (!homeslider_speed == undefined)
|
||||||
hideControlOnEnd: true,
|
var homeslider_speed = 300;
|
||||||
pager: true,
|
if (!homeslider_pause == undefined)
|
||||||
autoHover: true,
|
var homeslider_pause = 6000;
|
||||||
auto: true,
|
|
||||||
speed: homeslider_speed,
|
$('#homeslider').bxSlider({
|
||||||
pause: homeslider_pause
|
infiniteLoop: true,
|
||||||
});
|
hideControlOnEnd: true,
|
||||||
|
pager: true,
|
||||||
|
autoHover: true,
|
||||||
|
auto: true,
|
||||||
|
speed: homeslider_speed,
|
||||||
|
pause: homeslider_pause
|
||||||
|
});
|
||||||
});
|
});
|
||||||
@@ -77,6 +77,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="product_comments_block_extra">
|
<div id="product_comments_block_extra">
|
||||||
|
{if $nbComments != 0}
|
||||||
<div class="comments_note">
|
<div class="comments_note">
|
||||||
<span>{l s='Average grade' mod='productcomments'} </span>
|
<span>{l s='Average grade' mod='productcomments'} </span>
|
||||||
<div class="star_content clearfix">
|
<div class="star_content clearfix">
|
||||||
@@ -89,8 +90,12 @@
|
|||||||
{/section}
|
{/section}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div class="comments_advices">
|
<div class="comments_advices">
|
||||||
|
{if $nbComments != 0}
|
||||||
<a href="#idTab5">{l s='Read user reviews' mod='productcomments'} ({$nbComments})</a><br/>
|
<a href="#idTab5">{l s='Read user reviews' mod='productcomments'} ({$nbComments})</a><br/>
|
||||||
|
{/if}
|
||||||
{if ($too_early == false AND ($logged OR $allow_guests))}
|
{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>
|
<a id="new_comment_btn" href="#new_comment_form">{l s='Write your review' mod='productcomments'}</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user