* @license GNU General Public License version 2 or later; see LICENSE.txt */ /** @var \Joomla\Component\Content\Administrator\View\Article\HtmlView $this */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Associations; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\Registry\Registry; /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->getRegistry()->addExtensionRegistryFile('com_contenthistory'); $wa->useScript('keepalive') ->useScript('form.validate') ->useScript('com_contenthistory.admin-history-versions'); $this->configFieldsets = ['editorConfig']; $this->hiddenFieldsets = ['basic-limited']; $fieldsetsInImages = ['image-intro', 'image-full']; $fieldsetsInLinks = ['linka', 'linkb', 'linkc']; $this->ignore_fieldsets = array_merge(['jmetadata', 'item_associations'], $fieldsetsInImages, $fieldsetsInLinks); $this->useCoreUI = true; // Create shortcut to parameters. $params = clone $this->state->get('params'); $params->merge(new Registry($this->item->attribs)); $input = Factory::getApplication()->getInput(); $assoc = Associations::isEnabled(); $showArticleOptions = $params->get('show_article_options', 1); if (!$assoc || !$showArticleOptions) { $this->ignore_fieldsets[] = 'frontendassociations'; } if (!$showArticleOptions) { // Ignore fieldsets inside Options tab $this->ignore_fieldsets = array_merge($this->ignore_fieldsets, ['attribs', 'basic', 'category', 'author', 'date', 'other']); } // In case of modal $isModal = $input->get('layout') === 'modal'; $layout = $isModal ? 'modal' : 'edit'; $tmpl = $input->get('tmpl'); $tmpl = $tmpl ? '&tmpl=' . $tmpl : ''; ?>
'general', 'recall' => true, 'breakpoint' => 768]); ?>
form->getLabel('articletext'); ?> form->getInput('articletext'); ?>
get('show_urls_images_backend') == 1) : ?>
form->getFieldsets()[$fieldset]->label); ?>
form->renderFieldset($fieldset); ?>
form->getFieldsets()[$fieldset]->label); ?>
form->renderFieldset($fieldset); ?>
get('show_publishing_options', 1) == 1) : ?>
get('show_associations_edit', 1) == 1) : ?>
canDo->get('core.admin') && $params->get('show_configure_edit_options', 1) == 1) : ?>
form->renderFieldset('editorConfig'); ?>
canDo->get('core.admin') && $params->get('show_permissions', 1) == 1) : ?>
form->getInput('rules'); ?>
get('show_publishing_options', 1) == 0) : ?> form->getInput('id'); ?>