protected function getInput() { $tc = 'phocadownload'; $ts = 'media/com_'.$tc.'/css/administrator/'; $ti = 'media/com_'.$tc.'/images/administrator/'; JHTML::stylesheet( $ts.'/'.$tc.'options.css' ); echo '<div style="clear:both;"></div>'; $phocaImage = ( (string)$this->element['phocaimage'] ? $this->element['phocaimage'] : '' ); $image = ''; if ($phocaImage != ''){ $image = JHTML::_('image', $ti . $phocaImage, '' ); } if ($this->element['default']) { if ($image != '') { return '<div class="ph-options-head-expert">' .'<div>'. $image.' <strong>'. JText::_($this->element['default']) . '</strong></div>' .'</div>'; } else { return '<div class="ph-options-head-expert">' .'<strong>'. JText::_($this->element['default']) . '</strong>' .'</div>'; } } else { return parent::getLabel(); } echo '<div style="clear:both;"></div>'; }
protected function getLabel() { if ($this->form->jevdata[$this->name]["repeatId"] == 0) { return parent::getLabel(); } return ""; }
function getLabel() { if (method_exists($this, 'fetchTooltip')) { return $this->fetchTooltip($this->element['label'], $this->description, $this->element, $this->options['control'], $this->element['name'] = ''); } else { return parent::getLabel(); } }
protected function getLabel() { $name = basename(realpath(dirname(__FILE__) . '/' . '..' . '/' . '..')); $direction = intval(JFactory::getLanguage()->get('rtl', 0)); $left = $direction ? "right" : "left"; $right = $direction ? "left" : "right"; $class = version_compare(JVERSION, '2.5', 'gt') ? '3x' : '25'; echo '<div class="clr"></div>'; $image = ''; $icon = (string) $this->element['icon']; if (!empty($icon)) { $image .= '<img style="margin:0; float:' . $left . ';" src="' . JURI::base(true) . '/../media/' . $name . '/images/' . $icon . '">'; } $helpurl = (string) $this->element['helpurl']; if (!empty($helpurl)) { $image .= '<a href="' . $helpurl . '" target="_blank"><img style="margin:0; float:' . $right . ';" src="' . JURI::base(true) . '/../media/oziochat/images/question-button-16.png"></a>'; } $style = 'background:#f4f4f4; color:#025a8d; border:1px solid silver; padding:5px; margin:5px 0;'; if ($this->element['default']) { return '<div class="' . $class . '" style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; font-weight:bold; line-height:16px;">' . JText::_($this->element['default']) . '</span>' . '</div>'; } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getLabel() { if (JFactory::getApplication()->isAdmin() || JEVHelper::isEventPublisher()) { return parent::getLabel(); } return ""; }
protected function getLabel() { $cn = basename(realpath(dirname(__FILE__) . '/../..')); $direction = intval(JFactory::getLanguage()->get('rtl', 0)); $left = $direction ? "right" : "left"; $right = $direction ? "left" : "right"; $db = JFactory::getDBO(); $sql = "SELECT value FROM #__" . substr($cn, 4) . "_settings WHERE name = '" . $this->element['triggerkey'] . "';"; $db->setQuery($sql); $method = $db->loadResult(); if (!$method) { $style = 'clear:both; background:#f4f4f4; border:1px solid silver; padding:5px; margin:5px 0;'; $image = '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/exclamation-16.png">'; return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; line-height:16px;">' . 'Problems with database' . '</span>' . '</div>'; } if ($method != $this->element['triggervalue']) { return ""; } echo '<div class="clr"></div>'; $image = ''; $icon = (string) $this->element['icon']; if (!empty($icon)) { $image .= '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/' . $icon . '">'; } $style = 'background:#f4f4f4; border:1px solid silver; padding:5px; margin:5px 0;'; if ($this->element['default']) { return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; line-height:16px;">' . 'error' . '</span>' . '</div>'; } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getLabel() { if ($this->getInput()) { return parent::getLabel(); } return ""; }
protected function getLabel() { /* (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()"); */ $cn = basename(realpath(dirname(__FILE__) . '/../..')); $direction = intval(JFactory::getLanguage()->get('rtl', 0)); $left = $direction ? "right" : "left"; $right = $direction ? "left" : "right"; echo '<div class="clr"></div>'; $image = ''; $icon = (string) $this->element['icon']; if (!empty($icon)) { $image .= '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/' . $icon . '">'; } $helpurl = (string) $this->element['helpurl']; if (!empty($helpurl)) { $image .= '<a href="' . $helpurl . '" target="_blank"><img style="margin:0; float:' . $right . ';" src="' . JUri::base() . '../media/' . $cn . '/images/question-button-16.png"></a>'; } $style = 'background:#f4f4f4; color:#025a8d; border:1px solid silver; padding:5px; margin:5px 0;'; if ($this->element['default']) { return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; font-weight:bold; line-height:16px;">' . JText::_($this->element['default']) . '</span>' . '</div>'; } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getLabel() { $glist = $this->form->jevdata[$this->name]["glist"]; if ($this->getInput() && $glist && strpos($glist, "<input ") === false) { return parent::getLabel(); } return ""; }
protected function getLabel() { $cfg = JEVConfig::getInstance(); if ($cfg->get("multicategory", 0)) { return parent::getLabel(); } return ""; }
protected function getLabel() { if ($this->migrator->isInstalled()) { return parent::getLabel(); } else { return ""; } }
/** * Display debug info * * @return string The field input markup. * * @since 11.1 */ protected function getLabel() { $apiHelper = new mauticApiHelper(); $params = $apiHelper->getPluginParams(); if ($params->get('debug_on')) { return parent::getLabel(); } }
protected function getLabel() { $glist = $this->form->jevdata[$this->name]["glist"]; if ($this->getInput() && $glist) { return parent::getLabel(); } return ""; }
protected function getLabel() { $clistChoice = $this->form->jevdata[$this->name]["clistChoice"]; if ($this->getInput() && $clistChoice) { return parent::getLabel(); } return ""; }
protected function getLabel() { $offerlock = $this->form->jevdata[$this->name]["offerlock"]; if ($this->getInput() && $offerlock) { return parent::getLabel(); } return ""; }
/** * Make sure that the current user has the sufficient privilegies * * @return string */ protected function getLabel() { $user = JFactory::getUser(); if (!$user->authorise('core.multimedia.create', (string) $this->element['component'])) { return ''; } return parent::getLabel(); }
/** * * Get Label of element param * @return string label */ function getLabel() { $func = (string) $this->element['function'] ? (string) $this->element['function'] : ''; if (substr($func, 0, 1) == '@' || !isset($this->label) || !$this->label) { return; } else { return parent::getLabel(); } }
/** * (non-PHPdoc) * @see JFormField::getLabel() */ function getLabel() { // Get the label text from the XML element, defaulting to the element name. $text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name']; $text = $this->translateLabel ? JText::_($text) : $text; $max = $this->getMax(); $mb = $max / 1024; $this->description = JText::_($this->description) . $max . 'Kb / ' . $mb . 'Mb'; return parent::getLabel(); }
protected function getLabel() { JHTML::stylesheet('administrator/components/com_easyfrontendseo/css/easyfrontendseo.css'); echo '<div class="clr"></div>'; if ($this->element['default']) { return '<div style="padding: 5px 5px 5px 0; font-size: 16px;"><strong>' . JText::_($this->element['default']) . '</strong></div>'; } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getLabel() { if ($this->container->hasParameter('roksprocket.current_provider')) { /** @var RokSprocket_IProvider $provider */ $provider = $this->container->getParameter('roksprocket.current_provider'); if (!$provider->allowFieldRender($this->type, $this->fieldname, $this->value)) { return ''; } } return parent::getLabel(); }
protected function getLabel() { // load any custom fields $dispatcher =& JDispatcher::getInstance(); JPluginHelper::importPlugin("jevents"); $id = $this->id; $res = $dispatcher->trigger('onEditMenuItem', array(&$this->data, &$this->value, $this->type, $this->name, $this->id, $this->form)); if (isset($this->data[$id])) { $this->element['label'] = $this->data[$id]->label; $this->description = $this->data[$id]->description; } else { $this->element['label'] = ""; $this->description = ""; } return parent::getLabel(); }
protected function getLabel() { // Use static variable to execute the CSS instruction only once static $execute_once = false; if (empty($execute_once)) { $document = JFactory::getDocument(); $document->addStyleDeclaration('fieldset.panelform label, ul.config-option-list label, div.current label {width: 20em;}'); $execute_once = true; } $label = '<div class="clr"></div>'; if ($this->element['label']) { $label .= '<div style="padding: 5px 5px 5px 0; font-size: 16px;"><strong>' . JText::_($this->element['label']) . '</strong></div>'; } else { $label .= parent::getLabel(); } return $label; }
protected function getLabel() { $name = basename(realpath(dirname(__FILE__) . DS . '..' . DS . '..')); $direction = intval(JFactory::getLanguage()->get('rtl', 0)); $left = $direction ? "right" : "left"; $right = $direction ? "left" : "right"; echo '<div class="clr"></div>'; $image = ''; $icon = (string) $this->element['icon']; if (!empty($icon)) { $image .= '<img style="margin:0; float:' . $left . ';" src="' . JURI::base(true) . '/components/' . $name . '/models/images/' . $icon . '">'; } $style = 'background:#f4f4f4; color:#025a8d; border:1px solid silver; padding:5px; margin:5px 0;'; if ($this->element['default']) { return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; font-weight:bold; line-height:16px;">' . JText::_($this->element['default']) . '</span>' . '</div>'; } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getInput() { JHTML::stylesheet('media/com_phocagallery/css/administrator/phocagalleryoptions.css'); echo '<div style="clear:both;"></div>'; $phocaImage = (string) $this->element['phocaimage'] ? $this->element['phocaimage'] : ''; $image = ''; if ($phocaImage != '') { $image = JHTML::_('image', 'media/com_phocagallery/images/administrator/' . $phocaImage, ''); } if ($this->element['default']) { if ($image != '') { return '<div class="ph-options-head">' . '<div>' . $image . ' <strong>' . JText::_($this->element['default']) . '</strong></div>' . '</div>'; } else { return '<div class="ph-options-head">' . '<strong>' . JText::_($this->element['default']) . '</strong>' . '</div>'; } } else { return parent::getLabel(); } echo '<div style="clear:both;"></div>'; }
protected function getLabel() { /* (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()"); */ $cn = basename(realpath(dirname(__FILE__) . '/../..')); $direction = intval(JFactory::getLanguage()->get('rtl', 0)); $left = $direction ? "right" : "left"; $right = $direction ? "left" : "right"; $db = JFactory::getDBO(); $sql = "SELECT value FROM #__" . substr($cn, 4) . "_settings WHERE name = '" . $this->element['triggerkey'] . "';"; $db->setQuery($sql); $method = $db->loadResult(); if (!$method) { // Database error. Example: table missing. $method = NULL, $db->_errornum = 1146, $db->_errormsg = table doesn't exist // Record missing. $method = NULL, $db->_errornum = 0, $db->_errormsg = "" // $db->getErrorNum() // $db->getErrorMsg() $style = 'clear:both; background:#f4f4f4; border:1px solid silver; padding:5px; margin:5px 0;'; $image = '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/exclamation-16.png">'; return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; line-height:16px;">' . JText::_(strtoupper($cn) . '_ERR_DATABASE_PROBLEMS') . ' <a href="http://www.fox.ra.it/forum/15-installation/1579-error-message-qproblems-with-databaseq.html" target="_blank">' . JText::_(strtoupper($cn) . '_DOCUMENTATION') . '</a>.' . '</span>' . '</div>'; } if ($method != $this->element['triggervalue']) { return ""; } echo '<div class="clr"></div>'; $image = ''; $icon = (string) $this->element['icon']; if (!empty($icon)) { $image .= '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/' . $icon . '">'; } $style = 'background:#f4f4f4; border:1px solid silver; padding:5px; margin:5px 0;'; if ($this->element['default']) { return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; line-height:16px;">' . JText::_($this->element['default']) . '. <a href="' . $this->element['triggerdata'] . '" target="_blank">' . JText::_(strtoupper($cn) . '_DOCUMENTATION') . '</a>.' . '</span>' . '</div>'; } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getLabel() { // Use static variable to execute the CSS instruction only once static $execute_once = false; if (empty($execute_once)) { $document = JFactory::getDocument(); // Set label instruction only for option tabs $fieldsets = $this->form->getFieldsets(); foreach ($fieldsets as $fieldset) { $document->addStyleDeclaration('div#attrib-' . $fieldset->name . ' label, div#' . $fieldset->name . ' label {width: 20em;}'); } $execute_once = true; } $label = '<div class="clr"></div>'; if ($this->element['label']) { $label .= '<div style="padding: 5px 5px 5px 0; font-size: 16px;"><strong>' . JText::_($this->element['label']) . '</strong></div>'; } else { $label .= parent::getLabel(); } return $label; }
protected function getLabel() { // Temporary solution JHTML::stylesheet('administrator/components/com_phocagallery/assets/phocagalleryoptions.css'); echo '<div class="clr"></div>'; $phocaImage = (string) $this->element['phocaimage'] ? $this->element['phocaimage'] : ''; $image = ''; $style = 'background: #CCE6FF; color: #0069CC;padding:5px;margin:5px 0;'; if ($phocaImage != '') { $image = JHTML::_('image', 'administrator/components/com_phocagallery/assets/images/' . $phocaImage, ''); } if ($this->element['default']) { if ($image != '') { return '<div style="' . $style . '">' . '<table border="0"><tr>' . '<td valign="middle" align="center">' . $image . '</td>' . '<td valign="middle" align="center">' . '<strong>' . JText::_($this->element['default']) . '</strong></td>' . '</tr></table>' . '</div>'; } else { return '<div style="' . $style . '">' . '<strong>' . JText::_($this->element['default']) . '</strong>' . '</div>'; } } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getLabel() { $cn = basename(realpath(dirname(__FILE__) . '/../..')); $direction = intval(JFactory::getLanguage()->get('rtl', 0)); $left = $direction ? "right" : "left"; $right = $direction ? "left" : "right"; echo '<div class="clr"></div>'; $colorGroup = (string) $this->element['color']; switch ($colorGroup) { case 'basic': $color[0] = "#6c9aab"; $color[1] = "#78abbe"; break; case 'fields': $color[0] = "#c07163"; $color[1] = "#d67e6e"; break; case 'events': $color[0] = "#855c6e"; $color[1] = "#94667a"; break; case 'security': $color[0] = "#b0ab81"; $color[1] = "#c4be90"; break; default: $color[0] = "#cccccc"; $color[1] = "#cccccc"; break; } $style = 'background:' . "{$color['0']}" . ';'; if ($this->element['default']) { return '<div class="b2j-contact-field-title" style="' . $style . '">' . '<span style="padding-' . $left . ':5px;">' . JText::_($this->element['default']) . '</span>' . '</div>'; } else { return parent::getLabel(); } echo '<div class="clr"></div>'; }
protected function getLabel() { echo '<div class="clearfix"></div>'; return parent::getLabel(); echo '<div class="clearfix"></div>'; }
/** * Return the string that use as label of the input * * @return string */ protected function getLabel() { return parent::getLabel(); }