mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-26 01:57:30 +00:00
fix no weblinks found, add new button
This commit is contained in:
parent
efe415d633
commit
fb07654070
@ -33,9 +33,6 @@ $listOrder = $this->escape($this->state->get('list.ordering'));
|
|||||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if (empty($this->items)) : ?>
|
|
||||||
<p> <?php echo Text::_('COM_WEBLINKS_NO_WEBLINKS'); ?></p>
|
|
||||||
<?php else : ?>
|
|
||||||
<div class="com-weblinks-category__items">
|
<div class="com-weblinks-category__items">
|
||||||
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
|
||||||
<?php if ($this->params->get('filter_field')) : ?>
|
<?php if ($this->params->get('filter_field')) : ?>
|
||||||
@ -52,7 +49,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||||||
placeholder="<?php echo Text::_('COM_WEBLINKS_FILTER_SEARCH_DESC'); ?>"
|
placeholder="<?php echo Text::_('COM_WEBLINKS_FILTER_SEARCH_DESC'); ?>"
|
||||||
>
|
>
|
||||||
<button type="submit" name="filter_submit" class="btn btn-primary"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
|
<button type="submit" name="filter_submit" class="btn btn-primary"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
|
||||||
<button type="reset" name="filter-clear-button" class="btn btn-secondary" onclick="document.getElementById('filter-search').value = '';document.adminForm.submit();"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
|
<button type="reset" name="filter-clear-button" class="btn btn-secondary"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||||
@ -63,9 +60,15 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||||||
<?php echo $this->pagination->getLimitBox(); ?>
|
<?php echo $this->pagination->getLimitBox(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
<?php if (empty($this->items)) : ?>
|
||||||
|
<?php if ($this->params->get('show_no_contacts', 1)) : ?>
|
||||||
|
<div class="alert alert-info">
|
||||||
|
<span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
|
||||||
|
<?php echo Text::_('COM_WEBLINKS_NO_WEBLINKS'); ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php else : ?>
|
||||||
<ul class="category list-unstyled">
|
<ul class="category list-unstyled">
|
||||||
|
|
||||||
<?php foreach ($this->items as $i => $item) : ?>
|
<?php foreach ($this->items as $i => $item) : ?>
|
||||||
|
|
||||||
<?php // Shouldn't this be checked in the model?The pagination will be affected
|
<?php // Shouldn't this be checked in the model?The pagination will be affected
|
||||||
@ -198,8 +201,6 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<?php // Code to add a link to submit a weblink. ?>
|
|
||||||
|
|
||||||
<?php if ($this->params->get('show_pagination')) : ?>
|
<?php if ($this->params->get('show_pagination')) : ?>
|
||||||
<div class="com-contact-category__counter w-100">
|
<div class="com-contact-category__counter w-100">
|
||||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||||
@ -211,6 +212,11 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($canCreate) : ?>
|
||||||
|
<?php echo HTMLHelper::_('weblinkicon.create', $this->category, $this->category->params); ?>
|
||||||
|
<?php endif; ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user