Skip to content

Commit

Permalink
[-] MO : homeslider - resolve #PSCSX-1529 responsive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tchauviere authored and gRoussac committed Apr 10, 2014
1 parent d8fe517 commit b3561fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ $(document).ready(function(){
$('.homeslider-description').click(function () {
window.location.href = $(this).prev('a').prop('href');
});

if ($('#htmlcontent_top').length > 0)
$('#homepage-slider').addClass('col-xs-8');
else
$('#homepage-slider').addClass('col-xs-12');
});
2 changes: 1 addition & 1 deletion themes/default-bootstrap/modules/homeslider/homeslider.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{if $page_name =='index'}
<!-- Module HomeSlider -->
{if isset($homeslider_slides)}
<div id="homepage-slider" class="{$slider_class}">
<div id="homepage-slider">
{if isset($homeslider_slides.0) && isset($homeslider_slides.0.sizes.1)}{capture name='height'}{$homeslider_slides.0.sizes.1}{/capture}{/if}
<ul id="homeslider"{if isset($smarty.capture.height) && $smarty.capture.height} style="max-height:{$smarty.capture.height}px;"{/if}>
{foreach from=$homeslider_slides item=slide}
Expand Down

0 comments on commit b3561fc

Please sign in to comment.