Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/title.php.tar
Назад
home/wuectly/www/plugins/system/googlic_analytics/elements/title.php 0000604 00000002545 15245605475 0022200 0 ustar 00 <?php /*------------------------------------------------------------------------ # author lomart # copyright : Copyright (C) 2011 lomart.fr All Rights Reserved. # @license : http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Website : http://lomart.fr # Technical Support: Forum - http://forum.joomla.fr -------------------------------------------------------------------------*/ // no direct access defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); class JFormFieldTitle extends JFormField { protected $type = 'Title'; protected function getInput() { return ' '; } protected function getLabel() { $html = array(); // texte a afficher $label = $this->element['label']; $label = $this->translateLabel ? JText::_($label) : $label; // param�tre 'style' pour remplacer le style par d�faut // a indiquer dans le xml sous la forme : // style="margin:5px;border:1px dotted red" // style="REDBOX" qui retourne le contenu de la cl� REDBOOX="margin:5px;border:1px dotted red" $style = $this->element['style']; $style = $this->translateLabel ? JText::_($style) : $style; // contruction de la chaine retour $html[] = "<div style='"; $html[] = $style; $html[] = "display:block;clear:both;'>"; $html[] = $label; $html[] = "</div>"; return implode('',$html); } } home/wuectly/www/libraries/fof/form/field/title.php 0000604 00000003040 15245606725 0016427 0 ustar 00 <?php /** * @package FrameworkOnFramework * @subpackage form * @copyright Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // Protect from unauthorized access defined('FOF_INCLUDED') or die; JFormHelper::loadFieldClass('text'); /** * Form Field class for the FOF framework * Supports a title field with an optional slug display below it. * * @package FrameworkOnFramework * @since 2.0 */ class FOFFormFieldTitle extends FOFFormFieldText implements FOFFormField { /** * Get the rendering of this field type for a repeatable (grid) display, * e.g. in a view listing many item (typically a "browse" task) * * @since 2.0 * * @return string The field HTML */ public function getRepeatable() { // Initialise $slug_format = '(%s)'; $slug_class = 'small'; // Get field parameters if ($this->element['slug_field']) { $slug_field = (string) $this->element['slug_field']; } else { $slug_field = $this->item->getColumnAlias('slug'); } if ($this->element['slug_format']) { $slug_format = (string) $this->element['slug_format']; } if ($this->element['slug_class']) { $slug_class = (string) $this->element['slug_class']; } // Get the regular display $html = parent::getRepeatable(); $slug = $this->item->$slug_field; $html .= '<br />' . '<span class="' . $slug_class . '">'; $html .= JText::sprintf($slug_format, $slug); $html .= '</span>'; return $html; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка