mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-27 18:24:56 +00:00
indent with tabs
This commit is contained in:
parent
be8e34e76a
commit
f4bc69f6c6
@ -18,39 +18,39 @@ if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) :
|
|||||||
?>
|
?>
|
||||||
<?php foreach ($this->items[$this->parent->id] as $id => $item) : ?>
|
<?php foreach ($this->items[$this->parent->id] as $id => $item) : ?>
|
||||||
<?php if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : ?>
|
<?php if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : ?>
|
||||||
<div class="com-weblinks-categories__items">
|
<div class="com-weblinks-categories__items">
|
||||||
<h3 class="page-header item-title">
|
<h3 class="page-header item-title">
|
||||||
<a href="<?php echo Route::_(RouteHelper::getCategoryRoute($item->id, $item->language)); ?>">
|
<a href="<?php echo Route::_(RouteHelper::getCategoryRoute($item->id, $item->language)); ?>">
|
||||||
<?php echo $this->escape($item->title); ?></a>
|
<?php echo $this->escape($item->title); ?></a>
|
||||||
<?php if ($this->params->get('show_cat_items_cat') == 1) :?>
|
<?php if ($this->params->get('show_cat_items_cat') == 1) :?>
|
||||||
<span class="badge bg-info">
|
<span class="badge bg-info">
|
||||||
<?php echo Text::_('COM_WEBLINKS_NUM_ITEMS'); ?>
|
<?php echo Text::_('COM_WEBLINKS_NUM_ITEMS'); ?>
|
||||||
<?php echo $item->numitems; ?>
|
<?php echo $item->numitems; ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->maxLevelcat > 1 && count($item->getChildren()) > 0) : ?>
|
<?php if ($this->maxLevelcat > 1 && count($item->getChildren()) > 0) : ?>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
id="category-btn-<?php echo $item->id; ?>"
|
id="category-btn-<?php echo $item->id; ?>"
|
||||||
data-bs-target="#category-<?php echo $item->id; ?>"
|
data-bs-target="#category-<?php echo $item->id; ?>"
|
||||||
data-bs-toggle="collapse"
|
data-bs-toggle="collapse"
|
||||||
class="btn btn-secondary btn-sm float-end"
|
class="btn btn-secondary btn-sm float-end"
|
||||||
aria-label="<?php echo Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"
|
aria-label="<?php echo Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"
|
||||||
>
|
>
|
||||||
<span class="icon-plus" aria-hidden="true"></span>
|
<span class="icon-plus" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</h3>
|
</h3>
|
||||||
<?php if ($this->params->get('show_subcat_desc_cat') == 1) : ?>
|
<?php if ($this->params->get('show_subcat_desc_cat') == 1) : ?>
|
||||||
<?php if ($item->description) : ?>
|
<?php if ($item->description) : ?>
|
||||||
<div class="category-desc">
|
<div class="category-desc">
|
||||||
<?php echo HTMLHelper::_('content.prepare', $item->description, '', 'com_weblinks.categories'); ?>
|
<?php echo HTMLHelper::_('content.prepare', $item->description, '', 'com_weblinks.categories'); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($this->maxLevelcat > 1 && count($item->getChildren()) > 0) : ?>
|
<?php if ($this->maxLevelcat > 1 && count($item->getChildren()) > 0) : ?>
|
||||||
<div class="collapse fade" id="category-<?php echo $item->id; ?>">
|
<div class="collapse fade" id="category-<?php echo $item->id; ?>">
|
||||||
<?php
|
<?php
|
||||||
$this->items[$item->id] = $item->getChildren();
|
$this->items[$item->id] = $item->getChildren();
|
||||||
$this->parent = $item;
|
$this->parent = $item;
|
||||||
@ -59,9 +59,9 @@ if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) :
|
|||||||
$this->parent = $item->getParent();
|
$this->parent = $item->getParent();
|
||||||
$this->maxLevelcat++;
|
$this->maxLevelcat++;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
Loading…
Reference in New Issue
Block a user