Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/administrator/components/com_falang/models/fields/
Upload File :
Current File : /home/smartconb/www/armencom33/administrator/components/com_falang/models/fields/plaintext.php

<?php
/**
 * @package     Falang for Joomla!
 * @author      Stéphane Bouey <stephane.bouey@faboba.com> - http://www.faboba.com
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * @copyright   Copyright (C) 2010-2021. Faboba.com All rights reserved.
 */

// No direct access to this file
defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Form\FormField;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;


class JFormFieldPlaintext extends FormField
{

    /**
     * The form field type.
     *
     * @var    string
     */
    protected $type = 'Plaintext';

    public function getInput()
    {
        $document = Factory::getDocument();
        $document->addStyleSheet(URI::root().'administrator/components/com_falang/assets/css/falang.css');

        $text = trim($this->value);

        if (!$text)
        {
            return '';
        }

        return '<fieldset class="plaintext">' . Text::_($text) . '</fieldset>';

    }

}