30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-09-28 04:59:04 +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>
<?php $tagsData = $item->tags->getItemTags('com_weblinks.weblink', $item->id); ?>
<?php if ($this->params->get('show_tags', 1)) : ?>
<?php $tagLayout = new JLayoutFile('joomla.content.tags'); ?>
<?php echo $tagLayout->render($tagsData); ?>
<?php if ($this->params->get('show_tags', 1) && !empty($item->tags->itemTags)) : ?>
<?php echo JLayoutHelper::render('joomla.content.tags', $item->tags->itemTags); ?>
<?php endif; ?>
<?php if (($this->params->get('show_link_description')) and ($item->description != '')) : ?>
<?php $images = json_decode($item->images); ?>