public function __construct(JForm $form = null) { parent::__construct($form); static $resources = true; if ($resources) { $resources = false; $name = basename(realpath(dirname(__FILE__) . "/../..")); $document = JFactory::getDocument(); // $this->element is not ready on the constructor //$type = (string)$this->element["type"]; $type = strtolower($this->type); if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/" . $type . ".js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=" . $type . "&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/" . $type . ".css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/" . $type . ".css"); } $scope = JFactory::getApplication()->scope; if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/" . $scope . ".js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=" . $scope . "&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/" . $scope . ".css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/" . $scope . ".css"); } } }
function __construct($form = null) { parent::__construct($form); if (!isset($GLOBALS[$this->type . '_initialized'])) { $GLOBALS[$this->type . '_initialized'] = true; $url_to_assets = JURI::root() . 'libraries/gjfields/'; $path_to_assets = JPATH_ROOT . '/libraries/gjfields/'; $doc = JFactory::getDocument(); $cssname = $url_to_assets . 'css/common.css'; $cssname_path = $path_to_assets . 'css/common.css'; if (file_exists($cssname_path)) { $doc->addStyleSheet($cssname); } $this->type = JString::strtolower($this->type); $cssname = $url_to_assets . 'css/' . $this->type . '.css'; $cssname_path = $path_to_assets . 'css/' . $this->type . '.css'; if (file_exists($cssname_path)) { $doc->addStyleSheet($cssname); } $jversion = new JVersion(); $common_script = $url_to_assets . 'js/script.js?v=' . $jversion->RELEASE; $doc->addScript($common_script); $scriptname = $url_to_assets . 'js/' . $this->type . '.js'; $scriptname_path = $path_to_assets . 'js/' . $this->type . '.js'; if (file_exists($scriptname_path)) { $doc->addScript($scriptname); } } }
function __construct() { $plugin = JPluginHelper::getPlugin('system', 'minicck'); $this->pluginParams = !empty($plugin->params) ? json_decode($plugin->params) : new stdClass(); $this->fields = !empty($this->pluginParams->customfields) ? $this->pluginParams->customfields : array(); parent::__construct(); }
/** * Override by loading Profile Picture parameters. * * @param JForm $form The form to attach to the form field object. * * @since 2.0 */ public function __construct($form = null) { $plugin = JPluginHelper::getPlugin('user', 'profilepicture'); $this->params = new JRegistry($plugin->params); $this->maxUploadSizeInBytes = $this->params->get('maxUploadSizeInBytes', 800000); parent::__construct($form); }
public function __construct() { parent::__construct(); //Get configuration $app = JFactory::getApplication(); $config = JFactory::getConfig(); }
public function __construct($form = null) { parent::__construct($form); $config = JFactory::getConfig(); if (!$config->get('caching', 0)) { JFactory::getApplication()->enqueueMessage(JText::_('ROKBOOSTER_CACHE_NOT_ENABLED_WARNING'), 'notice'); } }
public function __construct($form = null) { parent::__construct($form); $this->file = \Triiuark\D::getEnableFile(); if (is_file($this->file)) { $this->isEnabled = true; } }
function __construct($form = null) { // Must load admin language files $lang =& JFactory::getLanguage(); $lang->load("com_jevents", JPATH_ADMINISTRATOR); parent::__construct($form); $this->data = array(); $this->labeldata = array(); }
public function __construct($form = null) { parent::__construct($form); if (!isset($GLOBALS["ozio_textimproved_fields_loaded"])) { JFactory::getDocument()->addStyleSheet(JUri::base(true) . "/components/com_oziogallery3/models/fields/fields.css"); JFactory::getDocument()->addScript(JUri::base(true) . "/components/com_oziogallery3/js/get_id.js"); $GLOBALS["ozio_textimproved_fields_loaded"] = true; } }
public function __construct($form = null) { if (!defined('ROKUPDATER_ROOT_PATH')) { define('ROKUPDATER_ROOT_PATH', JPATH_PLUGINS . '/system/rokupdater/'); } require_once ROKUPDATER_ROOT_PATH . '/lib/include.php'; $this->container = RokUpdater_ServiceProvider::getInstance(); parent::__construct($form); }
public function __construct($parent = null) { $include_file = realpath(JPATH_SITE . '/components/com_rokgallery/include.php'); $included_files = get_included_files(); if (!in_array($include_file, $included_files) && ($libret = (require_once $include_file)) !== 'JOOMLA_ROKGALLERY_LIB_INCLUDED') { JError::raiseWarning(100, 'RokGallery: ' . implode('<br /> - ', $loaderrors)); return; } parent::__construct($parent); }
public function __construct($form = null) { parent::__construct($form); if (!isset(self::$ob_enabled)) { self::$ob_enabled = (bool) ini_get('output_buffering'); if (self::$ob_enabled) { JFactory::getApplication()->enqueueMessage(JText::_('ROKBOOSTER_BACKGROUND_PROCESSING_NOT_AVAILABLE'), 'notice'); } } }
public function __construct() { parent::__construct(); $this->setTemplates(); if (defined('ZYGOCONTENT_ADDED')) { return; } define('ZYGOCONTENT_ADDED', true); $this->addJS(); }
public function __construct($parent = null) { if (!defined('ROKGALLERYMODULE')) { define('ROKGALLERYMODULE', 'ROKGALLERYMODULE'); } // Set base dirs self::$ROKGALLERYMODULE_ROOT = JPATH_ROOT . '/modules/mod_rokgallery'; //load up the RTCommon require_once self::$ROKGALLERYMODULE_ROOT . '/lib/include.php'; parent::__construct($parent); }
public function __construct($parent = null) { if (!defined('ROKMINIEVENTS')) { define('ROKMINIEVENTS', 'ROKMINIEVENTS'); } // Set base dirs self::$ROKMINIEVENTS_ROOT = JPATH_ROOT . '/modules/mod_rokminievents'; self::$SOURCE_DIR = self::$ROKMINIEVENTS_ROOT . '/lib/RokMiniEvents/Source'; //load up the RTCommon require_once self::$ROKMINIEVENTS_ROOT . '/lib/include.php'; parent::__construct($parent); }
function __construct($form = null) { parent::__construct($form); $this->fb = SWG::getFacebook(); if (!$this->fb) { $this->fb = new Facebook(SWG::$fbconf); } if ($this->fb->getUser()) { $this->value = $this->fb->getAccessToken(); } else { $this->value = "NONE"; } }
function __construct() { parent::__construct(); $this->countoption = 0; if (JVERSION >= 3.0) { $this->tjfield_icon_plus = "icon-plus-2 "; $this->tjfield_icon_minus = "icon-minus-2 "; } else { // for joomla3.0 $this->tjfield_icon_plus = "icon-plus "; $this->tjfield_icon_minus = "icon-minus "; } }
public function __construct(JForm $form = null) { parent::__construct($form); static $resources = true; if ($resources) { $resources = false; $name = basename(realpath(dirname(__FILE__) . "/../..")); $document = JFactory::getDocument(); $type = strtolower($this->type); if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/" . $type . ".js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=" . $type . "&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/" . $type . ".css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/" . $type . ".css"); } $scope = JFactory::getApplication()->scope; if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/" . $scope . ".js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=" . $scope . "&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/" . $scope . ".css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/" . $scope . ".css"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/glDatePicker.js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=glDatePicker&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/glDatePicker.css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/glDatePicker.css"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/style.css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/style.css"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/script.js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=script&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/jquery.mjs.nestedSortable.js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=jquery.mjs.nestedSortable&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/nestedSortable.css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/nestedSortable.css"); } $GLOBALS["com_name"] = basename(realpath(dirname(__FILE__) . "/../..")); $module = JFactory::getApplication()->input->get("option") == "com_modules"; $language = JFactory::getLanguage(); $enGB = $language->get("tag") == $language->getDefault(); if (!$enGB || $module) { $language->load($GLOBALS["com_name"], JPATH_ADMINISTRATOR, $language->getDefault(), true); $language->load($GLOBALS["com_name"], JPATH_ADMINISTRATOR, null, true); } } }
public function __construct($form = null) { parent::__construct($form); // If the joomla's version is more than or equal to 3.0 if (!COM_TZ_PORTFOLIO_JVERSION_COMPARE) { $doc = JFactory::getDocument(); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/jui/js/jquery.min.js'); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/jui/js/jquery-noconflict.js'); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/jui/js/bootstrap.min.js'); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/jui/js/chosen.jquery.min.js'); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/jui/js/jquery.ui.core.min.js'); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/jui/js/jquery.ui.sortable.min.js'); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/jui/js/sortablelist.js'); $doc->addScript(COM_TZ_PORTFOLIO_ADMIN_HOST_PATH . '/js/template.min.js'); } }
public function __construct(JForm $form = null) { parent::__construct($form); /* (include_once JPATH_ROOT . "/components/com_foxcontact/helpers/flogger.php") or die(JText::sprintf("JLIB_FILESYSTEM_ERROR_READ_UNABLE_TO_OPEN_FILE", "flogger.php")); $log = new FLogger($this->type, "debug"); $log->Write($this->element["name"] . " getLabel()"); */ static $resources = true; if ($resources) { $resources = false; $name = basename(realpath(dirname(__FILE__) . "/../..")); $document = JFactory::getDocument(); // $this->element is not ready on the constructor //$type = (string)$this->element["type"]; $type = strtolower($this->type); if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/" . $type . ".js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=" . $type . "&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/" . $type . ".css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/" . $type . ".css"); } $scope = JFactory::getApplication()->scope; if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/js/" . $scope . ".js")) { $document->addScript(JUri::current() . "?option=" . $name . "&view=loader&filename=" . $scope . "&type=js"); } if (file_exists(JPATH_ADMINISTRATOR . "/components/" . $name . "/css/" . $scope . ".css")) { $document->addStyleSheet(JUri::base(true) . "/components/" . $name . "/css/" . $scope . ".css"); } $GLOBALS["com_name"] = basename(realpath(dirname(__FILE__) . "/../..")); // If we are in module manager always load the language, since the default module admin language is empty $option = JFactory::getApplication()->input->get("option"); // $option != "com_menus" includes "com_modules", "com_advancedmodules" and similar module manager $module = $option != "com_menus"; $language = JFactory::getLanguage(); $enGB = $language->get("tag") == $language->getDefault(); // If we are within the component, don't waste our time reloading the same English language two more times. // Using less CPU power reduces the world carbon dioxide emissions. if (!$enGB || $module) { // The current language is already been loaded, so it is important for the following workaround to work, that the parameter $reload is set to true // Reload the default language (en-GB) $language->load($GLOBALS["com_name"], JPATH_ADMINISTRATOR, $language->getDefault(), true); // Reload current language, overwriting nearly all the strings, but keeping the english version for untranslated strings $language->load($GLOBALS["com_name"], JPATH_ADMINISTRATOR, null, true); } } }
function __construct() { parent::__construct(); $this->countoption = 0; if (JVERSION >= 3.0) { $this->tjfield_icon_plus = "icon-plus-2 "; $this->tjfield_icon_minus = "icon-minus-2 "; $this->tjfield_icon_star = "icon-featured"; $this->tjfield_icon_emptystar = "icon-unfeatured"; } else { // for joomla3.0 $this->tjfield_icon_plus = "icon-plus "; $this->tjfield_icon_minus = "icon-minus "; $this->tjfield_icon_star = "icon-star"; $this->tjfield_icon_emptystar = "icon-star-empty"; } }
function __construct($form = null) { parent::__construct($form); JHTML::_('behavior.framework', true); $app = JFactory::getApplication(); if (!$app->get($this->type . '_initialized', false)) { $app->set($this->type . '_initialized', true); $url_to_assets = JURI::root() . '/libraries/gjfields/'; $path_to_assets = JPATH_ROOT . '/libraries/gjfields/'; $doc = JFactory::getDocument(); $cssname = $url_to_assets . 'css/common.css'; $cssname_path = $path_to_assets . 'css/common.css'; if (file_exists($cssname_path)) { $doc->addStyleSheet($cssname); } $this->type = JString::strtolower($this->type); $cssname = $url_to_assets . 'css/' . $this->type . '.css'; $cssname_path = $path_to_assets . 'css/' . $this->type . '.css'; if (file_exists($cssname_path)) { $doc->addStyleSheet($cssname); } $jversion = new JVersion(); $common_script = $url_to_assets . 'js/script.js?v=' . $jversion->RELEASE; $doc->addScript($common_script); $scriptname = $url_to_assets . 'js/' . $this->type . '.js?v=' . $this->_getGJFieldsVersion(); $scriptname_path = $path_to_assets . 'js/' . $this->type . '.js'; if (file_exists($scriptname_path)) { $doc->addScript($scriptname); } } $this->HTMLtype = 'div'; if (JFactory::getApplication()->isAdmin() && JFactory::getApplication()->getTemplate() !== 'isis') { $this->HTMLtype = 'li'; } $var_name = basename(__FILE__, '.php') . '_HTMLtype'; if (!$app->get($var_name, false)) { $app->set($var_name, true); $doc = JFactory::getDocument(); $doc->addScriptDeclaration('var ' . $var_name . ' = "' . $this->HTMLtype . '";'); $doc->addScriptDeclaration('var lang_reset = "' . JText::_('JSEARCH_RESET') . '?";'); } }
public function __construct($form = null) { $document = JFactory::getDocument(); $version = new JVersion(); $lang = JFactory::getLanguage(); if (self::$load_assets) { if (version_compare($version->getShortVersion(), '3.0.0', '<')) { $document->addStylesheet(JURI::base(true) . '/components/com_djcatalog2/assets/css/djfieldspacer_legacy.css'); } else { $document->addStylesheet(JURI::base(true) . '/components/com_djcatalog2/assets/css/djfieldspacer.css'); } if ($lang->get('lang') != 'en-GB') { $lang = JFactory::getLanguage(); $lang->load('com_djcatalog2', JPATH_ADMINISTRATOR, 'en-GB', false, false); $lang->load('com_djcatalog2', JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_djcatalog2', 'en-GB', false, false); $lang->load('com_djcatalog2', JPATH_ADMINISTRATOR, null, true, false); $lang->load('com_djcatalog2', JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_djcatalog2', null, true, false); } self::$load_assets = false; } return parent::__construct($form); }
public function __construct($form = null) { parent::__construct($form); $this->container = RokCommon_Service::getContainer(); }
public function __construct($form = null) { parent::__construct($form); }
public function __construct() { $this->initialise(); parent::__construct(); }
public function __construct() { parent::__construct(); }
/** * Field constructor * * @param JForm $form Form object */ public function __construct($form = null) { // Call parent constructor parent::__construct($form); }
public function __construct() { parent::__construct(); if (defined('ZE_USERINFO_JUST_ADDED')) { return; } define('ZE_USERINFO_JUST_ADDED', true); $doc = JFactory::getDocument(); $doc->addStyleSheet(JURI::root() . 'plugins/user/zygo_profile/fields/userinfo.css'); $doc->addScript(JURI::root() . 'plugins/user/zygo_profile/fields/drag.js'); //$doc->addStyleSheet(JURI::root().'plugins/user/zygo_profile/fields/drag.css'); $version = new JVersion(); $Jversion = (int) substr($version->getHelpVersion(), 1); $Jversion = $Jversion >= 30 ? 30 : ($Jversion >= 16 ? 16 : 15); $disabled_options = $this->disabled_options(); $disabledJS = array(); foreach ($disabled_options as $name => $value) { if (is_string($value)) { $disabledJS[] = $name . ': "' . $value . '"'; } else { $disabledJSC = $name . ': {'; foreach ($value as $k => $val) { if ($k) { $disabledJSC .= ', '; } $disabledJSC .= $val . ': true'; } $disabledJSC .= '}'; $disabledJS[] = $disabledJSC; } } $disabledJSString = 'var ZEdisabledJS = {' . implode(', ', $disabledJS) . '}; '; $addSelectCorrection = ''; if ($Jversion == 30) { $addSelectCorrection = ' newTab.getElements("select").setStyles({"display":"block"}); newTab.getElements(".chzn-container").destroy(); jQuery("select", newTab).removeClass("chzn-done").chosen({ disable_search_threshold : 10, allow_single_deselect : true });'; } $doc->addScriptDeclaration($disabledJSString . ' window.addEvent("domready", function() { prop={}; var wrapperLis=$$(".userinfo_wrapper")[0].getParent().getParent().getChildren("li"); wrapperLis.each(function(el, i){ if(!el.getChildren(".userinfo_wrapper")[0]){ oddEven=(i%2)? "odd" : "even"; el.addClass("zeLiWrap "+oddEven); var zdiv=document.createElement("div"); zdiv.className="zeClear"; el.appendChild(zdiv); } }); list2 = document.getElementById("userinfo_tab_ul_userinfo"); if(list2){ ZDragDrop.makeListContainer( list2 ); list2.onZDragOver = function() { this.style["border"] = "1px dashed #8E0B8C"; this.style["background"] = "#FFF"; }; list2.onZDragOut = function() {this.style["border"] = "1px solid transparent"; this.style["background"] = "none";}; } }); function zeOpenClose(e, self){ var target = e.srcElement || e.target; target = $(target); self = $(self); if(!target.hasClass("zeOpenCloseSpan") && !target.hasClass("userinfo_tab_head")) return; if(self.hasClass("zeOpened")){ self.removeClass("zeOpened"); }else{ self.addClass("zeOpened"); } } function zeFieldCheck(self, checkedEl){ fieldname=self.getAttribute("rel"); $$(".zeFieldCheck_"+fieldname).removeClass("checked"); if(self.hasClass("checked")){ self.removeClass("checked"); }else{ self.addClass("checked"); } $("jform_params_"+fieldname+"activeTab").value=checkedEl; } function zeRemove(self){ self.parentNode.parentNode.destroy(); } var ZE_NUM_ALL=[]; function zeAddNew(fieldname){ ZE_NUM=ZE_NUM_ALL[fieldname]; var newTab = document.createElement("li"); newTab.id="userinfo_tab_"+fieldname+"_"+ZE_NUM; newTab.className="userinfo_tab"; var inner = $("userinfo_tab_"+fieldname+"_0").innerHTML; inner = inner.replace(/_ze_new_set_label_/g, ZE_NUM); inner = inner.replace(/jform\\[params\\]\\[(\\w*)\\]\\[(\\w*)\\]\\[0\\]/g, "jform[params][$1][$2]["+ZE_NUM+"]"); inner = inner.replace(/jform\\[params\\]\\[(\\w*)\\]\\[(\\w*)\\]\\[(\\w*)\\]\\[0\\]/g, "jform[params][$1][$2][$3]["+ZE_NUM+"]"); inner = inner.replace(/jform_params_(\\w*)0/g, "jform_params_$1"+ZE_NUM); inner = inner.replace(/jformparams(\\w*)0/g, "jformparams$1"+ZE_NUM); inner = inner.replace(/value=\\"uniqueID0\\"/g, \'value="uniqueID\'+ZE_NUM+\'"\'); inner = inner.replace(/value=\\"' . JText::_('PLG_USER_ZYGO_PROFILE_ADD_NEW_FIELD') . '0\\"/g, \'value="' . JText::_('PLG_USER_ZYGO_PROFILE_ADD_NEW_FIELD') . '\'+ZE_NUM+\'"\'); inner = inner.replace(/zeUniqueIdLabel(\\w*)0/g, "zeUniqueIdLabel$1"+ZE_NUM); //inner = inner.replace(/onclick=\\"zeFieldCheck\\(this, 0\\)\\"/g, "onclick=\\"zeFieldCheck(this, "+ZE_NUM+")\\""); inner = inner.replace(/onchange=\\"ze_show_hide_block_types\\(this, \'(\\w*)\', \'(\\w*)\', 0\\)\\"/g, "onchange=\\"ze_show_hide_block_types(this, \'$1\', \'$2\', "+ZE_NUM+")\\""); inner = inner.replace(/onclick=\\"zeAllowDisableColor\\(this, \'(\\w*)\', \'(\\w*)\', 0\\)\\"/g, "onclick=\\"zeAllowDisableColor(this, \'$1\', \'$2\', "+ZE_NUM+")\\""); inner = inner.replace(/ze_block_show_hide(\\w*)0/g, "ze_block_show_hide$1"+ZE_NUM); //inner = inner.replace(/zeFieldCheck_(\\w*)0/g, "zeFieldCheck_$1"+ZE_NUM); inner = inner.replace(/userinfo_tab_0/g, "userinfo_tab_"+ZE_NUM); inner = inner.replace(/zeShowHideSelectOptions\\(this, \'0\'/g, "zeShowHideSelectOptions(this, \'"+ZE_NUM+"\'"); inner = inner.replace(/sh_addField\\(this, \'0\'/g, "sh_addField(this, \'"+ZE_NUM+"\'"); inner = inner.replace(/zeShowHideSelectOptions\\(this, \'0\'/g, "zeShowHideSelectOptions(this, \'"+ZE_NUM+"\'"); inner = inner.replace(/id=\\"zeLiParam(\\w*)0\\"/g, "id=\\"zeLiParam$1"+ZE_NUM+"\\""); inner = inner.replace("<span class=\\"zygoid\\">0</span>", "<span class=\\"zygoid\\">"+ZE_NUM+"</span>"); newTab.innerHTML=inner; $("userinfo_tab_ul_"+fieldname).appendChild(newTab); var labelTooltip=$("zeUniqueIdLabel"+fieldname+ZE_NUM); var parts = labelTooltip.get("title").split("::", 2); labelTooltip.store("tip:title", parts[0]); labelTooltip.store("tip:text", parts[1]); new Tips(labelTooltip, { maxTitleChars: 50, fixed: false}); /*var labelTooltip2=$("zeFieldCheck_"+fieldname+ZE_NUM); var parts = labelTooltip2.get("title").split("::", 2); labelTooltip2.store("tip:title", parts[0]); labelTooltip2.store("tip:text", parts[1]); new Tips(labelTooltip2, { maxTitleChars: 50, fixed: false});*/ ZE_NUM++; ZE_NUM_ALL[fieldname]=ZE_NUM; ZDragDrop.makeItemZDragable(newTab); ' . $addSelectCorrection . ' } function ze_show_hide_block_types(self, fieldname, name, num){ $$(".ze_block_show_hide"+fieldname+name+num).hide(); $("jformparams"+fieldname+name+self.value+num).show(); Object.each(ZEdisabledJS, function(type, elemName){ if(type == self.value || ((typeof(type)=="object") && (self.value in type))){ $("zeLiParam"+fieldname+elemName+num).hide(); }else{ $("zeLiParam"+fieldname+elemName+num).show(); } }); } function zeAllowDisableColor(self, fieldname, name, num){ $("jform_params_"+fieldname+name+num).readOnly = (self.checked)? false : true; } function sh_addField(self, num, fieldname, name){ wrapdiv=document.createElement("div"); wrapdiv.innerHTML=\'<div><input type="text" name="jform[params][\'+fieldname+\'][\'+name+\'_value][\'+num+\'][]" value="" /><input type="text" name="jform[params][\'+fieldname+\'][\'+name+\'_text][\'+num+\'][]" value="" /><input type="button" class="button buttonminus btn btn-danger" onclick="this.parentNode.parentNode.removeChild(this.parentNode)" value="-"></div>\'; document.getElementById("shfield_multitext_wrapper_jform_params_"+fieldname+name+num).appendChild(wrapdiv); } function zeShowHideSelectOptions(self, num, fieldname, name){ document.getElementById("zeLiParam"+fieldname+"fieldOptions"+num).style.display = (self.value=="select" || self.value=="multiselect" || self.value=="radio" || self.value=="checkboxes") ? "block" : "none"; var fdv = document.getElementById("zeLiParam"+fieldname+"fieldDefaultValue"+num); fdv.style.display = (self.value!="html") ? "block" : "none"; document.getElementById("zeLilabel"+fieldname+"fieldParams"+num).innerHTML = (fdv.value!="html") ? "' . JText::_("PLG_USER_ZYGO_PROFILE_FIELDGROUP_FIELDPARAMS_HTML") . '" : "' . JText::_("PLG_USER_ZYGO_PROFILE_FIELDGROUP_FIELDPARAMS") . '"; } '); }
public function __construct() { parent::__construct(); $lang = JFactory::getLanguage(); $lang->load('plg_user_zygo_profile', JPATH_ADMINISTRATOR); }