set_prefilter('header', 'scroll_to_top_pref', 100); } function scroll_to_top_pref($content) { $search = ''; $scroll = ' {html_style}{literal} .scrollup { width:48px; height:48px; opacity:0.7; position:fixed; border-radius:24px; bottom:50px; right:50px; display:none; text-indent:-9999px; background: rgba(255,255,255,0.8) url("local/images/scrollup.png") no-repeat; z-index:1000; border:none !important; text-decoration:none !important; } .scrollup:hover { opacity:1; } {/literal}{/html_style} {footer_script}{literal} jQuery(window).scroll(function(){ if (jQuery(this).scrollTop() > 100) { jQuery(".scrollup").fadeIn(); } else { jQuery(".scrollup").fadeOut(); } }); jQuery(".scrollup").click(function(){ jQuery("html, body").animate({ scrollTop: 0 }, 600); return false; }); {/literal}{/footer_script} '; return str_replace($search, $search.$scroll, $content); } /* Plugin Name: Remove breadcrumb photocounter Version: 1.0 Author: barbichou */ add_event_handler('loc_end_index', 'no_breadcrumb_counter'); function no_breadcrumb_counter() { global $template; $titre = $template->get_template_vars('TITLE'); $pos = strrpos($titre,"["); if ($pos !== false) { $template->assign('TITLE', substr($titre, 0, $pos)); } } ?>