- md5
- e9b5e05ce92115f65154111bf952157c
- sha1
- 4648419892b82e000d8fc153e5b96c1ec845e378
- sha256
- 30a09004dab25a91d2935af50a147a1182e27821561d15dbe91eda62438c6d4c
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
<?php
/**
* @package Joomla.Administrator
* @subpackage com_plugins
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;
HTMLHelper::_('behavior.formvalidator');
HTMLHelper::_('behavior.keepalive');
HTMLHelper::_('behavior.tabstate');
$this->fieldsets = $this->form->getFieldsets('params');
$this->useCoreUI = true;
$input = Factory::getApplication()->input;
// In case of modal
$isModal = $input->get('layout') === 'modal' ? true : false;
$layout = $isModal ? 'modal' : 'edit';
$tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=component' : '';
?>
<form action="<?php echo Route::_('index.php?option=com_plugins&view=plugin&layout=' . $layout . $tmpl . '&extension_id=' . (int) $this->item->extension_id); ?>" method="post" name="adminForm" id="style-form" class="form-validate">
<div>
<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'general')); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'general', Text::_('COM_PLUGINS_PLUGIN')); ?>
<div class="row">
<div class="col-md-9">
<?php if ($this->item->xml) : ?>
<?php if ($this->item->xml->description) : ?>
<h2>
<?php
if ($this->item->xml)
{
echo ($text = (string) $this->item->xml->name) ? Text::_($text) : $this->item->name;
}
else
{
echo Text::_('COM_PLUGINS_XML_ERR');
}
?>
</h2>
<div class="info-labels mb-1">
<span class="badge badge-secondary">
<?php echo $this->form->getValue('folder'); ?>
</span> /
<span class="badge badge-secondary">
<?php echo $this->form->getValue('element'); ?>
</span>
</div>
<div>
<?php
$this->fieldset = 'description';
$short_description = Text::_($this->item->xml->description);
$this->fieldset = 'description';
$long_description = LayoutHelper::render('joomla.edit.fieldset', $this);
if (!$long_description)
{
$truncated = JHtmlString::truncate($short_description, 550, true, false);
if (strlen($truncated) > 500)
{
$long_description = $short_description;
$short_description = JHtmlString::truncate($truncated, 250);
if ($short_description == $long_description)
{
$long_description = '';
}
}
}
?>
<p><?php echo $short_description; ?></p>
<?php if ($long_description) : ?>
<p class="readmore">
<a href="#" onclick="jQuery('.nav-tabs a[href=\'#description\']').tab('show');">
<?php echo Text::_('JGLOBAL_SHOW_FULL_DESCRIPTION'); ?>
</a>
</p>
<?php endif; ?>
</div>
<?php endif; ?>
<?php else : ?>
<div class="alert alert-danger">
<?php echo Text::_('COM_PLUGINS_XML_ERR'); ?>
</div>
<?php endif; ?>
<?php
$this->fieldset = 'basic';
$html = LayoutHelper::render('joomla.edit.fieldset', $this);
echo $html ? '<hr>' . $html : '';
?>
</div>
<div class="col-md-3">
<div class="card card-light">
<div class="card-body">
<?php echo LayoutHelper::render('joomla.edit.global', $this); ?>
<div class="form-vertical form-no-margin">
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('ordering'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('ordering'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('folder'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('folder'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('element'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('element'); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php if (isset($long_description) && $long_description != '') : ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'description', Text::_('JGLOBAL_FIELDSET_DESCRIPTION')); ?>
<?php echo $long_description; ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php endif; ?>
<?php
$this->fieldsets = array();
$this->ignore_fieldsets = array('basic', 'description');
echo LayoutHelper::render('joomla.edit.params', $this);
?>
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
</div>
<input type="hidden" name="task" value="">
<?php echo HTMLHelper::_('form.token'); ?>
</form>
The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.