<?php
/**
* @Copyright
* @package Field - Kubik-Rubik Versioncheck
* @author Viktor Vogel {@link http://www.kubik-rubik.de}
* @version Joomla! 2.5 - 1.1
* @date Created on 2013-06-15
* @link Project Site {@link http://joomla-extensions.kubik-rubik.de}
*
* @license GNU/GPL
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
defined('JPATH_PLATFORM') or die;
class JFormFieldKRTitle extends JFormField
{
protected $type = 'krtitle';
protected function getInput()
{
return '';
}
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 {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;
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| index.html | 2014-04-14 20:06 | 44 B | 76129f60960:kunden | -xw-x----- | |
| krdonationcodecheck.php | 2014-04-14 20:06 | 5.47 KB | 76129f60960:kunden | -xw-x----- | |
| krtitle.php | 2014-04-14 20:06 | 1.88 KB | 76129f60960:kunden | -xw-x----- | |
| krversioncheck.php | 2014-04-14 20:06 | 9.04 KB | 76129f60960:kunden | -xw-x----- | |