public function getInput($fieldValue = null) { if (!$this->isPublished()) { return ""; } $app = JFactory::getApplication(); if ($app->isSite()) { $value = !is_null($fieldValue) ? $fieldValue : $this->value; $this->addAttribute("type", "text", "input"); $this->addAttribute("class", $this->getInputClass(), "input"); $this->addAttribute("class", "readonly", "input"); if ((int) $this->params->get("size", 32)) { $this->setAttribute("size", (int) $this->params->get("size", 32), "input"); } $this->setAttribute("readonly", "readonly", "input"); $this->setVariable('value', $value); return $this->fetch('input.php', __CLASS__); } else { return parent::getInput($fieldValue); } }