slide countdown e highlist modulo aggiornato 5 v

This commit is contained in:
2025-01-03 18:30:52 +01:00
parent 8779fa0b74
commit 024ea6956d
37 changed files with 1965 additions and 282 deletions

View File

@ -11,7 +11,8 @@
onchange="this.form.submit();">
<option value="">JOPTION_SELECT_PUBLISHED</option>
</field>
<field name="etichetta" type="sql" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_ETICHETTA" query="SELECT `nome` AS `nome`, `nome` AS val FROM `#__highlights_etichetta`" header="COM_HIGHLIGHTS_HIGHLIGHTS_ETICHETTA_FILTER" key_field="nome" value_field="val" class="inputbox" onchange="this.form.submit()" translate="true"/>
</fields>

View File

@ -17,13 +17,35 @@
<field name="titolo" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_TITOLO" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_TITOLO" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_TITOLO"/>
<field name="sottotitolo" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_SOTTOTITOLO" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_SOTTOTITOLO" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_SOTTOTITOLO"/>
<field name="descrizione" editor="|" buttons="false" filter="JComponentHelper::filterText" type="editor" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DESCRIZIONE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_DESCRIZIONE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DESCRIZIONE"/>
<field name="lingua" client="administrator" type="language" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINGUA" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_LINGUA" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINGUA"/>
<field name="link_pulsante" validate="url" type="url" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINK_PULSANTE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_LINK_PULSANTE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINK_PULSANTE"/>
<field name="lingua" type="contentlanguage" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINGUA" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_LINGUA" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINGUA">
<option value="*">JALL</option>
</field>
<field name="link_pulsante" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINK_PULSANTE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_LINK_PULSANTE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINK_PULSANTE"/>
<field name="link_pdf" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINK_PDF" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_LINK_PDF" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINK_PDF"/>
<field name="testo_pulsante" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_TESTO_PULSANTE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_TESTO_PULSANTE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_TESTO_PULSANTE"/>
<field name="data" class="inputbox" format="%Y-%m-%d" timeformat="12" filter="server_utc" translateformat="false" showtime="false" singleheader="false" todaybutton="false" weeknumbers="false" filltable="false" type="calendar" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_DATA" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA"/>
<field name="classe" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_CLASSE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_CLASSE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_CLASSE"/>
<field name="data"
class="inputbox"
format="%Y-%m-%d %H:%M"
timeformat="24"
filter="server_utc"
translateformat="false"
showtime="true"
singleheader="false"
todaybutton="true"
weeknumbers="false"
filltable="false"
type="calendar"
label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA"
description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_DATA"
hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA"/>
<field name="immagine_main" directory="" type="media" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_IMMAGINE_MAIN" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_IMMAGINE_MAIN" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_IMMAGINE_MAIN"/>
<field name="immagine_secondaria" directory="" type="media" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_IMMAGINE_SECONDARIA" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_IMMAGINE_SECONDARIA" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_IMMAGINE_SECONDARIA"/>
<field name="classe" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_CLASSE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_CLASSE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_CLASSE"/>
<field name="colore_testo" default="00000" format="hex" type="color" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_TESTO" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_COLORE_TESTO" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_TESTO"/>
<field name="colore_sfondo" default="00000" format="hex" type="color" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_SFONDO" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_COLORE_SFONDO" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_SFONDO"/>
<field name="opacita" filter="safehtml" type="text" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_OPACITA" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_OPACITA" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_OPACITA"/>
<field name="colore_sfondo_bottone" default="00000" format="hex" type="color" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_SFONDO_BOTTONE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_COLORE_SFONDO_BOTTONE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_SFONDO_BOTTONE"/>
<field name="colore_testo_bottone" default="00000" format="hex" type="color" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_TESTO_BOTTONE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_COLORE_TESTO_BOTTONE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_TESTO_BOTTONE"/>
<field name="data_inizio_pubblicazione" class="inputbox" format="%Y-%m-%d" timeformat="12" filter="server_utc" translateformat="false" showtime="false" singleheader="false" todaybutton="false" weeknumbers="false" filltable="false" type="calendar" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA_INIZIO_PUBBLICAZIONE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_DATA_INIZIO_PUBBLICAZIONE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA_INIZIO_PUBBLICAZIONE"/>
<field name="data_fine_pubblicazione" class="inputbox" format="%Y-%m-%d" timeformat="12" filter="server_utc" translateformat="false" showtime="false" singleheader="false" todaybutton="false" weeknumbers="false" filltable="false" type="calendar" label="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA_FINE_PUBBLICAZIONE" description="COM_HIGHLIGHTS_FORM_DESC_HIGHLIGHT_DATA_FINE_PUBBLICAZIONE" hint="COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA_FINE_PUBBLICAZIONE"/>
<field name="version_note" type="text" label="JGLOBAL_FIELD_VERSION_NOTE_LABEL" description="JGLOBAL_FIELD_VERSION_NOTE_DESC" class="inputbox" size="45" labelclass="control-label"/>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4.0" method="upgrade">
<name>com_highlights</name>
<creationDate>2024-12-31</creationDate>
<creationDate>2025-01-03</creationDate>
<copyright>2024 Eddy Prosperi</copyright>
<license>GNU General Public License versione 2 o successiva; vedi LICENSE.txt</license>
<author>Eddy Prosperi</author>

View File

@ -11,13 +11,19 @@ CREATE TABLE IF NOT EXISTS `#__highlights_` (
`titolo` VARCHAR(255) NULL DEFAULT "",
`sottotitolo` VARCHAR(255) NULL DEFAULT "",
`descrizione` TEXT NULL ,
`lingua` VARCHAR(5) NULL DEFAULT "",
`lingua` VARCHAR(255) NULL DEFAULT "",
`link_pulsante` VARCHAR(255) NULL DEFAULT "",
`link_pdf` VARCHAR(255) NULL DEFAULT "",
`testo_pulsante` VARCHAR(255) NULL DEFAULT "",
`data` DATETIME NULL DEFAULT NULL ,
`classe` VARCHAR(255) NULL DEFAULT "",
`immagine_main` TEXT NULL ,
`immagine_secondaria` TEXT NULL ,
`classe` VARCHAR(255) NULL DEFAULT "",
`colore_testo` VARCHAR(22) NULL DEFAULT "00000",
`colore_sfondo` VARCHAR(22) NULL DEFAULT "00000",
`opacita` VARCHAR(255) NULL DEFAULT "",
`colore_sfondo_bottone` VARCHAR(22) NULL DEFAULT "00000",
`colore_testo_bottone` VARCHAR(22) NULL DEFAULT "00000",
`data_inizio_pubblicazione` DATETIME NULL DEFAULT NULL ,
`data_fine_pubblicazione` DATETIME NULL DEFAULT NULL ,
PRIMARY KEY (`id`)
@ -27,8 +33,6 @@ PRIMARY KEY (`id`)
,KEY `idx_modified_by` (`modified_by`)
) DEFAULT COLLATE=utf8mb4_unicode_ci;
CREATE INDEX `#__highlights__etichetta` ON `#__highlights_`(`etichetta`);
CREATE TABLE IF NOT EXISTS `#__highlights_etichetta` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,

View File

@ -51,11 +51,17 @@ class HighlightsModel extends ListModel
'descrizione', 'a.descrizione',
'lingua', 'a.lingua',
'link_pulsante', 'a.link_pulsante',
'link_pdf', 'a.link_pdf',
'testo_pulsante', 'a.testo_pulsante',
'data', 'a.data',
'classe', 'a.classe',
'immagine_main', 'a.immagine_main',
'immagine_secondaria', 'a.immagine_secondaria',
'classe', 'a.classe',
'colore_testo', 'a.colore_testo',
'colore_sfondo', 'a.colore_sfondo',
'opacita', 'a.opacita',
'colore_sfondo_bottone', 'a.colore_sfondo_bottone',
'colore_testo_bottone', 'a.colore_testo_bottone',
'data_inizio_pubblicazione', 'a.data_inizio_pubblicazione',
'data_fine_pubblicazione', 'a.data_fine_pubblicazione',
);
@ -193,6 +199,14 @@ class HighlightsModel extends ListModel
}
}
// Filtering etichetta
$filter_etichetta = $this->state->get("filter.etichetta");
if ($filter_etichetta !== null && !empty($filter_etichetta))
{
$query->where("a.`etichetta` = '".$db->escape($filter_etichetta)."'");
}
// Add the list ordering clause.
$orderCol = $this->state->get('list.ordering', 'id');
$orderDirn = $this->state->get('list.direction', 'ASC');

View File

@ -39,9 +39,9 @@ HTMLHelper::_('bootstrap.tooltip');
<?php echo $this->form->renderField('descrizione'); ?>
<?php echo $this->form->renderField('lingua'); ?>
<?php echo $this->form->renderField('link_pulsante'); ?>
<?php echo $this->form->renderField('link_pdf'); ?>
<?php echo $this->form->renderField('testo_pulsante'); ?>
<?php echo $this->form->renderField('data'); ?>
<?php echo $this->form->renderField('classe'); ?>
</fieldset>
</div>
</div>
@ -57,6 +57,21 @@ HTMLHelper::_('bootstrap.tooltip');
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Stile', Text::_('COM_HIGHLIGHTS_TAB_STILE', true)); ?>
<div class="row-fluid">
<div class="col-md-12 form-horizontal">
<fieldset class="adminform">
<legend><?php echo Text::_('COM_HIGHLIGHTS_FIELDSET_STILE'); ?></legend>
<?php echo $this->form->renderField('classe'); ?>
<?php echo $this->form->renderField('colore_testo'); ?>
<?php echo $this->form->renderField('colore_sfondo'); ?>
<?php echo $this->form->renderField('opacita'); ?>
<?php echo $this->form->renderField('colore_sfondo_bottone'); ?>
<?php echo $this->form->renderField('colore_testo_bottone'); ?>
</fieldset>
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Pubblicazione', Text::_('COM_HIGHLIGHTS_TAB_PUBBLICAZIONE', true)); ?>
<div class="row-fluid">
<div class="col-md-12 form-horizontal">

View File

@ -1,4 +1,5 @@
<?php
/**
* @version CVS: 1.0.0
* @package Com_Highlights
@ -25,7 +26,7 @@ HTMLHelper::_('behavior.multiselect');
// Import CSS
$wa = $this->document->getWebAssetManager();
$wa->useStyle('com_highlights.admin')
->useScript('com_highlights.admin');
->useScript('com_highlights.admin');
$user = Factory::getApplication()->getIdentity();
$userId = $user->get('id');
@ -35,8 +36,7 @@ $canOrder = $user->authorise('core.edit.state', 'com_highlights');
$saveOrder = $listOrder == 'a.ordering';
if (!empty($saveOrder))
{
if (!empty($saveOrder)) {
$saveOrderingUrl = 'index.php?option=com_highlights&task=highlights.saveOrderAjax&tmpl=component&' . Session::getFormToken() . '=1';
HTMLHelper::_('draggablelist.draggable');
}
@ -44,129 +44,121 @@ if (!empty($saveOrder))
?>
<form action="<?php echo Route::_('index.php?option=com_highlights&view=highlights'); ?>" method="post"
name="adminForm" id="adminForm">
name="adminForm" id="adminForm">
<div class="row">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
<div class="clearfix"></div>
<table class="table table-striped" id="highlightList">
<thead>
<tr>
<th class="w-1 text-center">
<input type="checkbox" autocomplete="off" class="form-check-input" name="checkall-toggle" value=""
title="<?php echo Text::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)"/>
</th>
<?php if (isset($this->items[0]->ordering)): ?>
<th scope="col" class="w-1 text-center d-none d-md-table-cell">
<tr>
<th class="w-1 text-center">
<input type="checkbox" autocomplete="off" class="form-check-input" name="checkall-toggle" value=""
title="<?php echo Text::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />
</th>
<?php echo HTMLHelper::_('searchtools.sort', '', 'a.ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
<?php if (isset($this->items[0]->ordering)): ?>
<th scope="col" class="w-1 text-center d-none d-md-table-cell">
</th>
<?php endif; ?>
<?php echo HTMLHelper::_('searchtools.sort', '', 'a.ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
<th scope="col" class="w-1 text-center">
<?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'a.state', $listDirn, $listOrder); ?>
</th>
<th class='left'>
<?php echo HTMLHelper::_('searchtools.sort', 'COM_HIGHLIGHTS_HIGHLIGHTS_TITOLO', 'a.titolo', $listDirn, $listOrder); ?>
</th>
<th class='left'>
<?php echo HTMLHelper::_('searchtools.sort', 'COM_HIGHLIGHTS_HIGHLIGHTS_ETICHETTA', 'a.etichetta', $listDirn, $listOrder); ?>
</th>
<th scope="col" class="w-3 d-none d-lg-table-cell" >
<?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="<?php echo isset($this->items[0]) ? count(get_object_vars($this->items[0])) : 10; ?>">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody <?php if (!empty($saveOrder)) :?> class="js-draggable" data-url="<?php echo $saveOrderingUrl; ?>" data-direction="<?php echo strtolower($listDirn); ?>" <?php endif; ?>>
<?php foreach ($this->items as $i => $item) :
$ordering = ($listOrder == 'a.ordering');
$canCreate = $user->authorise('core.create', 'com_highlights');
$canEdit = $user->authorise('core.edit', 'com_highlights');
$canCheckin = $user->authorise('core.manage', 'com_highlights');
$canChange = $user->authorise('core.edit.state', 'com_highlights');
?>
<tr class="row<?php echo $i % 2; ?>" data-draggable-group='1' data-transition>
<td class="text-center">
<?php echo HTMLHelper::_('grid.id', $i, $item->id); ?>
</td>
<?php if (isset($this->items[0]->ordering)) : ?>
<td class="text-center d-none d-md-table-cell">
<?php
$iconClass = '';
if (!$canChange)
{
$iconClass = ' inactive';
}
elseif (!$saveOrder)
{
$iconClass = ' inactive" title="' . Text::_('JORDERINGDISABLED');
} ?> <span class="sortable-handler<?php echo $iconClass ?>">
<span class="icon-ellipsis-v" aria-hidden="true"></span>
</span>
<?php if ($canChange && $saveOrder) : ?>
<input type="text" name="order[]" size="5" value="<?php echo $item->ordering; ?>" class="width-20 text-area-order hidden">
<?php endif; ?>
</td>
</th>
<?php endif; ?>
<td class="text-center">
<?php echo HTMLHelper::_('jgrid.published', $item->state, $i, 'highlights.', $canChange, 'cb'); ?>
</td>
<td>
<?php if (isset($item->checked_out) && $item->checked_out && ($canEdit || $canChange)) : ?>
<?php echo HTMLHelper::_('jgrid.checkedout', $i, $item->uEditor, $item->checked_out_time, 'highlights.', $canCheckin); ?>
<?php endif; ?>
<?php if ($canEdit) : ?>
<a href="<?php echo Route::_('index.php?option=com_highlights&task=highlight.edit&id='.(int) $item->id); ?>">
<?php echo $this->escape($item->titolo); ?>
</a>
<?php else : ?>
<?php echo $this->escape($item->titolo); ?>
<?php endif; ?>
</td>
<td>
<?php echo $item->etichetta; ?>
</td>
<td class="d-none d-lg-table-cell">
<?php echo $item->id; ?>
</td>
<th scope="col" class="w-1 text-center">
<?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'a.state', $listDirn, $listOrder); ?>
</th>
<th class='left'>
<?php echo HTMLHelper::_('searchtools.sort', 'COM_HIGHLIGHTS_HIGHLIGHTS_TITOLO', 'a.titolo', $listDirn, $listOrder); ?>
</th>
<th class='left'>
<?php echo HTMLHelper::_('searchtools.sort', 'COM_HIGHLIGHTS_HIGHLIGHTS_ETICHETTA', 'a.etichetta', $listDirn, $listOrder); ?>
</th>
<th scope="col" class="w-3 d-none d-lg-table-cell">
<?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> </th>
</tr>
<?php endforeach; ?>
</thead>
<tfoot>
<tr>
<td colspan="<?php echo isset($this->items[0]) ? count(get_object_vars($this->items[0])) : 10; ?>">
<?php echo $this->pagination->getListFooter(); ?>
</td>
</tr>
</tfoot>
<tbody <?php if (!empty($saveOrder)) : ?> class="js-draggable" data-url="<?php echo $saveOrderingUrl; ?>" data-direction="<?php echo strtolower($listDirn); ?>" <?php endif; ?>>
<?php foreach ($this->items as $i => $item) :
$ordering = ($listOrder == 'a.ordering');
$canCreate = $user->authorise('core.create', 'com_highlights');
$canEdit = $user->authorise('core.edit', 'com_highlights');
$canCheckin = $user->authorise('core.manage', 'com_highlights');
$canChange = $user->authorise('core.edit.state', 'com_highlights');
?>
<tr class="row<?php echo $i % 2; ?>" data-draggable-group='1' data-transition>
<td class="text-center">
<?php echo HTMLHelper::_('grid.id', $i, $item->id); ?>
</td>
<?php if (isset($this->items[0]->ordering)) : ?>
<td class="text-center d-none d-md-table-cell">
<?php
$iconClass = '';
if (!$canChange) {
$iconClass = ' inactive';
} elseif (!$saveOrder) {
$iconClass = ' inactive" title="' . Text::_('JORDERINGDISABLED');
} ?> <span class="sortable-handler<?php echo $iconClass ?>">
<span class="icon-ellipsis-v" aria-hidden="true"></span>
</span>
<?php if ($canChange && $saveOrder) : ?>
<input type="text" name="order[]" size="5" value="<?php echo $item->ordering; ?>" class="width-20 text-area-order hidden">
<?php endif; ?>
</td>
<?php endif; ?>
<td class="text-center">
<?php echo HTMLHelper::_('jgrid.published', $item->state, $i, 'highlights.', $canChange, 'cb'); ?>
</td>
<td>
<?php if (isset($item->checked_out) && $item->checked_out && ($canEdit || $canChange)) : ?>
<?php echo HTMLHelper::_('jgrid.checkedout', $i, $item->uEditor, $item->checked_out_time, 'highlights.', $canCheckin); ?>
<?php endif; ?>
<?php if ($canEdit) : ?>
<a href="<?php echo Route::_('index.php?option=com_highlights&task=highlight.edit&id=' . (int) $item->id); ?>">
<?php echo $this->escape($item->titolo); ?>
</a>
<?php else : ?>
<?php echo $this->escape($item->titolo); ?>
<?php endif; ?>
</td>
<td>
<?php echo $item->etichetta; ?>
</td>
<td class="d-none d-lg-table-cell">
<?php if ($canEdit) : ?>
<a href="<?php echo Route::_('index.php?option=com_highlights&task=highlight.edit&id=' . (int) $item->id); ?>">
<?php echo $this->escape($item->id); ?>
</a>
<?php else : ?>
<?php echo $this->escape($item->id); ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<input type="hidden" name="task" value=""/>
<input type="hidden" name="boxchecked" value="0"/>
<input type="hidden" name="list[fullorder]" value="<?php echo $listOrder; ?> <?php echo $listDirn; ?>"/>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="list[fullorder]" value="<?php echo $listOrder; ?> <?php echo $listDirn; ?>" />
<?php echo HTMLHelper::_('form.token'); ?>
</div>
</div>