public static function create($name, $initContents) { $p = self::$plugin; queue_css($p->pluginPublicDir() . 'elrte/css/smoothness/jquery-ui-1.8.13.custom.css'); queue_css($p->pluginPublicDir() . 'elrte/css/elrte.min.css'); queue_css($p->pluginPublicDir() . 'elfinder/css/elfinder.min.css'); queue_css($p->pluginPublicDir() . 'elfinder/css/theme.css'); queue_js($p->pluginPublicDir() . 'elrte/js/jquery-ui-1.8.13.custom.min.js'); queue_js($p->pluginPublicDir() . 'elrte/js/elrte.full.js'); queue_js($p->pluginPublicDir() . 'elfinder/js/elfinder.full.js'); queue_js($p->pluginPublicDir() . 'elrte/js/i18n/elrte.en.js'); return sprintf(<<<EOT <script type="text/javascript" charset="utf-8"> \t\$(function() { \t\tvar opts = { \t\t\tlang : 'en', // set your language \t\t\tstyleWithCSS : false, \t\t\theight : 400, \t\t\ttoolbar : 'maxi', \t\t\tcssfiles : ['%s'], \t\t\tfmOpen : function(callback) { \t\t\t\t\$('<div />').dialogelfinder({ \t\t\t\t\turl : '%selfinder/php/connector.php', \t\t\t\t\tlang : 'en', \t\t\t\t\tcommandsOptions : { \t\t\t\t\t\tgetfile : { \t\t\t\t\t\t\tonlyURL : true, // disable to return detail info \t\t\t\t\t\t\tmultiple : false, // disable to return multiple files info \t\t\t\t\t\t\tfolders : false, // disable to return folders info \t\t\t\t\t\t\toncomplete : 'destroy' // action after callback (""/"close"/"destroy") \t\t\t\t\t\t} \t\t\t\t\t}, \t\t\t\t\tgetFileCallback : function (obj) { \t\t\t\t\t\tcallback(obj.baseUrl + obj.path.substr(obj.path.replace('\\\\', '/').indexOf('/')+1)); \t\t\t\t\t} \t\t\t\t}) \t\t\t} \t\t}; \t\t// create editor \t\t\$('#%s').elrte(opts); \t\t// or this way \t\t// var editor = new elRTE(document.getElementById('our-element'), opts); \t}); </script> <textarea id="%s">%s</textarea> EOT , Themes::getCurrentTheme()->getPublicPath() . "editor.css", $p->pluginPublicDir(), $name, $name, $initContents); }
exit; } if (isset($_GET["read-queue"])) { queue_popup_list(); exit; } if (isset($_GET["popup-message"])) { popup_message(); exit; } if (isset($_GET["details"])) { popup_postqueue(); exit; } if (isset($_GET["js-message"])) { queue_js(); exit; } //postfix_queue_monitoring(); function popup_js() { $page = CurrentPageName(); $tpl = new templates(); $js_add = file_get_contents("js/artica_postfix_queue.js"); $title = $tpl->_ENGINE_parse_body('{queue_monitoring}'); $html = "\n\t{$js_add}\n\t\n\tfunction StartIndex(){\n\t\tYahooWinS(700,'{$page}?popup=yes','{$title}');\n\t\n\t}\n\t\n\tStartIndex();\n\t"; echo $html; } function queue_js() { $page = CurrentPageName();
<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title><?php echo Admin::pageTitle(); ?> ‹ <?php _e('admin', 'TopHat Admin'); ?> </title> <?php load_library(array('bootstrap-css', 'jquery', 'bootstrap-js')); queue_css(TH_PUB_ADMIN . 'design/styles.css'); queue_js(TH_PUB_ADMIN . 'design/admin.js'); load_css(); load_js(); ?> </head> <body class="<?php echo Admin::bodyClasses(); ?> "> <div id="topnavbar" class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span>
/** * Include Openlayers in admin views. * * @param array $request The request. * * @return void. */ public function adminThemeHeader($request) { // Listen for items show. if ($request->getModuleName() == 'default' && $request->getActionName() == 'show') { queue_css('openlayers/style'); queue_js('openlayers/OpenLayers'); } }
if(isset($_GET["postqueue-context-list"])){postqueue_context_list();exit;} if(isset($_GET["ban-to-domain"])){ban_domains_js();exit;} if(isset($_GET["ban-to-domain-perform"])){ban_domains_perform();exit;} if(isset($_GET["banned"])){banned_domains();exit;} if(isset($_GET["banned-list"])){banned_list();exit;} if(isset($_GET["banned-delete"])){banned_delete_js();exit;} if(isset($_GET["banned-delete-perform"])){banned_delete_perform();exit;} if(isset($_GET["js-message"])){queue_js();exit;} //postfix_queue_monitoring(); function banned_delete_js(){ $page=CurrentPageName(); $domain=$_GET["banned-delete"]; $hostname=$_GET["hostname"]; $tpl=new templates(); $ask=$tpl->javascript_parse_text("{delete} ?"); $html=" var x_bandomain_delete= function (obj) { var response=obj.responseText; if(response){alert(response);}