コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: JSHelper.php プロジェクト: nicholasryan/CorePlus
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: Core.class.php プロジェクト: nicholasryan/CorePlus
	/**
	 * 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;
	}