* @copyright 2024 Eddy Prosperi * @license GNU General Public License versione 2 o successiva; vedi LICENSE.txt */ // No direct access defined('_JEXEC') or die; use \Joomla\CMS\HTML\HTMLHelper; use \Joomla\CMS\Factory; use \Joomla\CMS\Uri\Uri; use \Joomla\CMS\Router\Route; use \Joomla\CMS\Language\Text; use \Joomla\CMS\Layout\LayoutHelper; use \Joomla\CMS\Session\Session; use \Joomla\CMS\User\UserFactoryInterface; HTMLHelper::_('bootstrap.tooltip'); HTMLHelper::_('behavior.multiselect'); HTMLHelper::_('formbehavior.chosen', 'select'); $user = Factory::getApplication()->getIdentity(); $userId = $user->get('id'); $listOrder = $this->state->get('list.ordering'); $listDirn = $this->state->get('list.direction'); $canCreate = $user->authorise('core.create', 'com_highlights') && file_exists(JPATH_COMPONENT . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR . 'highlightform.xml'); $canEdit = $user->authorise('core.edit', 'com_highlights') && file_exists(JPATH_COMPONENT . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR . 'highlightform.xml'); $canCheckin = $user->authorise('core.manage', 'com_highlights'); $canChange = $user->authorise('core.edit.state', 'com_highlights'); $canDelete = $user->authorise('core.delete', 'com_highlights'); // Import CSS $wa = $this->document->getWebAssetManager(); $wa->useStyle('com_highlights.list'); ?> params->get('show_page_heading')) : ?>
filterForm)) { echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); } ?>
items as $i => $item) : ?> authorise('core.edit', 'com_highlights'); ?> authorise('core.edit.own', 'com_highlights')): ?> getIdentity()->id == $item->created_by; ?>
id; ?> state == 1): ?> titolo; ?> etichetta; ?> getIdentity()->authorise('core.manage', 'com_highlights.' . $item->id) || $item->checked_out == Factory::getApplication()->getIdentity()->id; ?> checked_out == 0): ?>
addInlineScript(" jQuery(document).ready(function () { jQuery('.delete-button').click(deleteItem); }); function deleteItem() { if (!confirm(\"" . Text::_('COM_HIGHLIGHTS_DELETE_MESSAGE') . "\")) { return false; } } ", [], [], ["jquery"]); } ?>