32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-11-16 09:37:08 +00:00

Tags data is already available, no need to query again

This commit is contained in:
Tuan Pham Ngoc 2021-07-09 16:30:37 +07:00
parent b591407d4f
commit b5919ab923

View File

@ -126,10 +126,8 @@ $listDirn = $this->escape($this->state->get('list.direction'));
} }
?> ?>
</div> </div>
<?php $tagsData = $item->tags->getItemTags('com_weblinks.weblink', $item->id); ?> <?php if ($this->params->get('show_tags', 1) && !empty($item->tags->itemTags)) : ?>
<?php if ($this->params->get('show_tags', 1)) : ?> <?php echo JLayoutHelper::render('joomla.content.tags', $item->tags->itemTags); ?>
<?php $tagLayout = new JLayoutFile('joomla.content.tags'); ?>
<?php echo $tagLayout->render($tagsData); ?>
<?php endif; ?> <?php endif; ?>
<?php if (($this->params->get('show_link_description')) and ($item->description != '')) : ?> <?php if (($this->params->get('show_link_description')) and ($item->description != '')) : ?>
<?php $images = json_decode($item->images); ?> <?php $images = json_decode($item->images); ?>