slide countdown e highlist modulo aggiornato 5 v
This commit is contained in:
@ -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">
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user