public static function Load() { // jqueryui is a dependency. JQuery::IncludeJQueryUI(); \Core\view()->addScript('js/jquery/jquery.browser.js'); \Core\view()->addScript('js/jquery/jquery.contextMenu.js'); \Core\view()->addStylesheet('css/jquery.contextMenu.css'); // IMPORTANT! Tells the script that the include succeeded! return true; }
public static function LoadFancyIP() { // I need jquery ui first. \JQuery::IncludeJQueryUI(); // And Core.Strings \Core::_AttachCoreStrings(); // Add the styles \Core\view()->addStylesheet('assets/css/phpwhois/fancy_ip.css'); // And the script itself \Core\view()->addScript('assets/js/phpwhois/fancy_ip.js'); // IMPORTANT! Tells the script that the include succeeded! return true; }
public static function Load() { // I need jquery UI as a pre-req... if (!JQuery::IncludeJQueryUI()) { return false; } if (ConfigHandler::Get('/core/javascript/minified')) { \Core\view()->addScript('js/jquery.lightbox-0.5.min.js'); } else { \Core\view()->addScript('js/jquery.lightbox-0.5.js'); } \Core\view()->addStylesheet('css/jquery.lightbox-0.5.css'); // IMPORTANT! Tells the script that the include succeeded! return true; }
/** * Add the Core.Ajaxlinks library to the page * * @return bool */ public static function _AttachAjaxLinks(){ JQuery::IncludeJQueryUI(); \Core\view()->addScript('js/core.ajaxlinks.js', 'foot'); return true; }