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

@ -65,6 +65,11 @@ if (!$canEdit && Factory::getApplication()->getIdentity()->authorise('core.edit.
<td><?php echo $this->item->link_pulsante; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_LINK_PDF'); ?></th>
<td><?php echo $this->item->link_pdf; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_TESTO_PULSANTE'); ?></th>
<td><?php echo $this->item->testo_pulsante; ?></td>
@ -80,11 +85,6 @@ if (!$canEdit && Factory::getApplication()->getIdentity()->authorise('core.edit.
</td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_CLASSE'); ?></th>
<td><?php echo $this->item->classe; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_IMMAGINE_MAIN'); ?></th>
<td><?php echo $this->item->immagine_main; ?></td>
@ -95,6 +95,36 @@ if (!$canEdit && Factory::getApplication()->getIdentity()->authorise('core.edit.
<td><?php echo $this->item->immagine_secondaria; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_CLASSE'); ?></th>
<td><?php echo $this->item->classe; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_TESTO'); ?></th>
<td><?php echo $this->item->colore_testo; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_SFONDO'); ?></th>
<td><?php echo $this->item->colore_sfondo; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_OPACITA'); ?></th>
<td><?php echo $this->item->opacita; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_SFONDO_BOTTONE'); ?></th>
<td><?php echo $this->item->colore_sfondo_bottone; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_COLORE_TESTO_BOTTONE'); ?></th>
<td><?php echo $this->item->colore_testo_bottone; ?></td>
</tr>
<tr>
<th><?php echo Text::_('COM_HIGHLIGHTS_FORM_LBL_HIGHLIGHT_DATA_INIZIO_PUBBLICAZIONE'); ?></th>
<td> <?php

View File

@ -11,10 +11,10 @@
label="COM_HIGHLIGHTS_FIELDSET_ITEM_ID_SELECT_LABEL">
<field
name="id"
query="SELECT `id`, `titolo` FROM #__highlights_ ORDER BY `id`"
query="SELECT `id`, `ordering` FROM #__highlights_ ORDER BY `id`"
type="sql"
key_field="id"
value_field="titolo"
value_field="ordering"
label="COM_HIGHLIGHTS_ITEM_ID_SELECT_LABEL"
require="true"
description="JGLOBAL_SHOW_TITLE_DESC">

View File

@ -73,18 +73,32 @@ $canEdit = HighlightsHelper::canUserEdit($this->item, $user);
<?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'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Immagini', Text::_('COM_HIGHLIGHTS_TAB_IMMAGINI', true)); ?>
<?php echo $this->form->renderField('immagine_main'); ?>
<?php echo $this->form->renderField('immagine_secondaria'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Stile', Text::_('COM_HIGHLIGHTS_TAB_STILE', true)); ?>
<?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'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'Pubblicazione', Text::_('COM_HIGHLIGHTS_TAB_PUBBLICAZIONE', true)); ?>
<?php echo $this->form->renderField('data_inizio_pubblicazione'); ?>

View File

@ -44,7 +44,7 @@ $wa->useStyle('com_highlights.list');
<?php endif;?>
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post"
name="adminForm" id="adminForm">
<?php if(!empty($this->filterForm)) { echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); } ?>
<div class="table-responsive">
<table class="table table-striped" id="highlightList">
<thead>
@ -106,13 +106,7 @@ $wa->useStyle('com_highlights.list');
</a>
</td>
<td>
<?php $canCheckin = Factory::getApplication()->getIdentity()->authorise('core.manage', 'com_highlights.' . $item->id) || $item->checked_out == Factory::getApplication()->getIdentity()->id; ?>
<?php if($canCheckin && $item->checked_out > 0) : ?>
<a href="<?php echo Route::_('index.php?option=com_highlights&task=highlight.checkin&id=' . $item->id .'&'. Session::getFormToken() .'=1'); ?>">
<?php echo HTMLHelper::_('jgrid.checkedout', $i, $item->uEditor, $item->checked_out_time, 'highlight.', false); ?></a>
<?php endif; ?>
<a href="<?php echo Route::_('index.php?option=com_highlights&view=highlight&id='.(int) $item->id); ?>">
<?php echo $this->escape($item->titolo); ?></a>
<?php echo $item->titolo; ?>
</td>
<td>
<?php echo $item->etichetta; ?>