fix skinstatic
This commit is contained in:
parent
1c4575214d
commit
bf636c7617
@ -42,7 +42,7 @@ class SkinStatic extends Module {
|
||||
Tools::getValue('right_link_'.(int) $i.'_'.(int) $language['id_lang']),
|
||||
Configuration::get('SKINSTATIC_VERSION'),
|
||||
),
|
||||
'<style type="text/css">body#index #columns { background: url("http://dev.bebeboutik.com/themes/site/skinstatic_cache/skin_'.(int) $i.'_'.(int) $language['id_lang'].'.jpg?v={version}") no-repeat '.(Tools::getValue('fixed_'.(int) $i.'_'.(int) $language['id_lang'])? 'fixed center 0px': 'scroll center 0px').' #F1F1F1}</style><a'.((int) Tools::getValue('new_window_'.(int) $i.'_'.(int) $language['id_lang'])? ' onclick="window.open(this.href); return false;"': '').' id="skin-left" href="{left_link}"></a><a'.((int) Tools::getValue('new_window_'.(int) $i.'_'.(int) $language['id_lang'])? ' onclick="window.open(this.href); return false;"': '').' id="skin-right" href="{right_link}"></a>'.(Tools::getValue('fixed_'.(int) $i.'_'.(int) $language['id_lang'])? '
|
||||
'<style type="text/css">body#index #columns { background: url("http://dev.bebeboutik.com/themes/site/skinstatic_cache/skin_'.(int) $i.'_'.(int) $language['id_lang'].'.jpg?v={version}") no-repeat '.(Tools::getValue('fixed_'.(int) $i.'_'.(int) $language['id_lang'])? 'fixed center 0px': 'scroll center 0px').' #FFFFFF}</style><a'.((int) Tools::getValue('new_window_'.(int) $i.'_'.(int) $language['id_lang'])? ' onclick="window.open(this.href); return false;"': '').' id="skin-left" href="{left_link}"></a><a'.((int) Tools::getValue('new_window_'.(int) $i.'_'.(int) $language['id_lang'])? ' onclick="window.open(this.href); return false;"': '').' id="skin-right" href="{right_link}"></a>'.(Tools::getValue('fixed_'.(int) $i.'_'.(int) $language['id_lang'])? '
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
$(document).ready(function() { var scrolling = $("#skin-left, #skin-right"); var pos = scrolling.position(); var size = scrolling.height() + 80; var max_size = $(document).height() - $("#footer").height() - 45; $(window).scroll(function(event) { offset = parseFloat(scrolling.css("marginTop").replace("px", "")); scrolling.css({ "marginTop": Math.min($(document).scrollTop(), max_size) + "px" }); }); '.($i == 0 && substr(Tools::getValue('left_link_'.(int) $i.'_'.(int) $language['id_lang']), 0, 28) == 'http://www.privatesportshop.'? '$("#skin-left, #skin-right").unbind("click").removeAttr("href").removeAttr("onclick").click(function(event) { event.stopPropagation(); event.preventDefault(); $("#privatesales_block li > a").first().trigger("click"); });': '').'
|
||||
|
Loading…
Reference in New Issue
Block a user