/** * Returns YUI3 configuration extension for custom option modules * @param array $args Not used * @return string JS code declaring YUI3 modules */ public static function modules($args) { $importINI = eZINI::instance('sqliimport.ini'); $modules = $importINI->variable('OptionsGUISettings', 'YUI3Modules'); if (count($modules)) { $js = 'YUI3_config = YUI3_config || { modules: {}}' . chr(10); $tpl = SQLIImportUtils::templateInit(); foreach ($modules as $name => $path) { $path = eZURLOperator::eZDesign($tpl, $path, 'ezdesign'); $js .= 'YUI3_config.modules.' . $name . ' = { fullpath: "' . $path . '" };' . chr(10); } return $js; } return ''; }
} while (is_object($var3) and method_exists($var3, 'templateValue')) { $var3 = $var3->templateValue(); } while (is_object($var3) and method_exists($var3, 'templateValue')) { $var3 = $var3->templateValue(); } $var1 = 'stylesheets/skins/' . $var3 . '/dialog.css'; unset($var3); if (!isset($var1)) { $var1 = NULL; } while (is_object($var1) and method_exists($var1, 'templateValue')) { $var1 = $var1->templateValue(); } $var1 = eZURLOperator::eZDesign($tpl, $var1, "ezdesign"); $var1 = '"' . $var1 . '"'; $var = $var1; unset($var1); if (!isset($var)) { $var = NULL; } while (is_object($var) and method_exists($var, 'templateValue')) { $var = $var->templateValue(); } $text .= $var; unset($var); $text .= ', //popup_css_add : "/design/admin2/stylesheets/core.css", gecko_spellcheck : true, table_inline_editing : true, // table edit controlls in gecko