Add code to display number of links

This commit is contained in:
Sieger66 2021-09-21 20:47:50 +02:00 committed by GitHub
parent 8aa92f906b
commit d749a317ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -37,7 +37,12 @@ if ($this->maxLevel != 0 && count($this->children[$this->category->id]) > 0) :
</div>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->params->get('show_cat_num_links') == 1) :?>
<span class="weblink-count badge bg-info">
<?php echo JText::_('COM_WEBLINKS_NUM'); ?>
<?php echo $child->numitems; ?> </span>
<?php endif; ?>
<?php if (count($child->getChildren()) > 0 ) :
$this->children[$child->id] = $child->getChildren();
$this->category = $child;