diff --git a/pixelegg/inc/class.pixelegg_framework.inc.php b/pixelegg/inc/class.pixelegg_framework.inc.php index 4e8b26b774..a9e617f2ab 100755 --- a/pixelegg/inc/class.pixelegg_framework.inc.php +++ b/pixelegg/inc/class.pixelegg_framework.inc.php @@ -39,4 +39,22 @@ class pixelegg_framework extends jdots_framework { parent::__construct($template); // call the constructor of the extended class } + + /** + * Render header + * + * Overwritten to load our slider.js + * + * @param array $extra + * @return type + */ + function header(array $extra=array()) + { + // load our slider.js, but only if framework requested + if (!self::$header_done && $_GET['cd'] === 'yes') + { + self::validate_file('/pixelegg/js/slider.js'); + } + return parent::header($extra); + } } diff --git a/pixelegg/templates/pixelegg/head.tpl b/pixelegg/templates/pixelegg/head.tpl index accfc3a487..c71ac7faba 100644 --- a/pixelegg/templates/pixelegg/head.tpl +++ b/pixelegg/templates/pixelegg/head.tpl @@ -18,8 +18,6 @@ {app_css} {java_script} - - {include_wz_tooltip} @@ -30,15 +28,15 @@
- +
- +
{topmenu_items}
- +
-
- - +
+ +
{topmenu_info_items}
@@ -49,14 +47,14 @@
- +
- +
- +
- +