} else { foreach ($jss as $onejs) { echo add_javascript_to_page($onejs); } } $ext_lang_file = get_ext_language_file(get_locale()); if ($ext_lang_file) { echo add_javascript_to_page("extjs/locale/{$ext_lang_file}"); } echo add_javascript_to_page("ckeditor/ckeditor.js"); // Include plguin specif js foreach (Plugins::instance()->getActive() as $p) { /* @var $p Plugin */ $js_file = PLUGIN_PATH . "/" . $p->getSystemName() . "/public/assets/javascript/" . $p->getSystemName() . ".js"; if (is_file($js_file)) { add_javascript_to_page(get_public_url("assets/javascript/" . $p->getSystemName() . ".js", $p->getSystemName())); echo "\n"; } } ?> <?php echo add_javascript_to_page(get_url('dimension', 'dimensions_js')); // loaded first because it's needed for translating ?> <style> #loading { font-size: 20px; left: 45%; position: absolute; top: 45%; color: #333333;
/** * Return image URl * * @param string $file_name * @return string */ function get_image_url($file_name) { static $theme = null; if (is_null($theme)) { if (function_exists('config_option')) { $theme = get_theme_name(); } // if if (trim($theme) == '') { $theme = DEFAULT_THEME; } // if } // if return get_public_url("assets/themes/$theme/images/$file_name"); } // get_image_url
/** * Return image URl * * @param string $file_name * @return string */ function get_image_url($file_name) { static $theme = null; if (is_null($theme)) { if (function_exists('config_option')) { $theme = config_option('theme'); } // if if (trim($theme) == '') { $theme = DEFAULT_THEME; } // if } // if $prefix = get_assets_prefix(); return get_public_url("assets/{$prefix}themes/{$theme}/images/{$file_name}"); }