function init() { parent::init(); //try to include the jquery library by sapphire, else jquery 1.4.2 in the shopsystem folder if (file_exists(THIRDPARTY_PATH . '/jquery/jquery-packed.js')) { Requirements::JavaScript(THIRDPARTY_DIR . '/jquery/jquery-packed.js'); } else { Requirements::JavaScript(SHOPSYSTEM_DIR . '/javascript/_jquery-packed.js'); } Requirements::JavaScript(SHOPSYSTEM_DIR . '/javascript/shopsystem.js'); Requirements::ThemedCSS('shoppingcart'); Requirements::ThemedCSS('shop'); }
public function init() { parent::init(); $sBaseUrl = Director::absoluteBaseURL(); Requirements::JavaScript($sBaseUrl . 'widgets/widget_newsletter/javascript/newsletterwidget.js'); }
function newsletterNavigator() { if ($this->memberIsNewsletterAdmin()) { Requirements::JavaScript("newsletter/javascript/jquery.js"); Requirements::JavaScript("newsletter/javascript/jqDnR.js"); Requirements::JavaScript("newsletter/javascript/newsletternavi.js"); Requirements::ThemedCSS("newsletternavigator"); return ' <div id="NewsletterNavigator"> ' . $this->NewsletterNavigatorForm()->forTemplate() . ' <div id="NewsletterNaviMessage"> </div> </div>'; } }