diff --git a/src/components/com_weblinks/tmpl/category/default_items.php b/src/components/com_weblinks/tmpl/category/default_items.php index 347752a..5b297fc 100644 --- a/src/components/com_weblinks/tmpl/category/default_items.php +++ b/src/components/com_weblinks/tmpl/category/default_items.php @@ -28,7 +28,6 @@ $canEdit = $user->authorise('core.edit', 'com_weblinks.category.' . $this->ca $canEditOwn = $user->authorise('core.edit.own', 'com_weblinks.category.' . $this->category->id); $canCreate = $user->authorise('core.create', 'com_weblinks.category.' . $this->category->id); -$n = count($this->items); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?> @@ -156,13 +155,16 @@ $listDirn = $this->escape($this->state->get('list.direction')); params->get('show_link_description')) && ($item->description != '')) : ?>
images); ?> - image_first)) : ?> - float_first)) ? $this->params->get('float_first') : $images->float_first; ?> + image_first)) : ?> + + float_first)) : ?> + float_first == 'right' ? 'float-end' : 'float-start'; ?> + image_first); ?> image_first_alt) && empty($images->image_first_alt_empty) ? '' : 'alt="' . htmlspecialchars($images->image_first_alt, ENT_COMPAT, 'UTF-8') . '"'; ?> -
+
itemprop="thumbnail" /> image_first_caption)) : ?> @@ -172,12 +174,15 @@ $listDirn = $this->escape($this->state->get('list.direction')); image_second)) : ?> - float_second)) ? $this->params->get('float_second') : $images->float_second; ?> + + float_second)) : ?> + float_second == 'right' ? 'float-end' : 'float-start'; ?> + image_second); ?> image_second_alt) && empty($images->image_second_alt_empty) ? '' : 'alt="' . htmlspecialchars($images->image_second_alt, ENT_COMPAT, 'UTF-8') . '"'; ?> -
+
itemprop="thumbnail" /> image_second_caption)) : ?> diff --git a/src/components/com_weblinks/tmpl/weblink/default.php b/src/components/com_weblinks/tmpl/weblink/default.php index c8da427..fc9c21c 100644 --- a/src/components/com_weblinks/tmpl/weblink/default.php +++ b/src/components/com_weblinks/tmpl/weblink/default.php @@ -40,60 +40,70 @@ if (!$canEdit)
+ item->event->afterDisplayTitle; ?> + item->event->beforeDisplayContent; ?> +
- - - params->get('show_link_description')) && ($this->item->description != '')) : ?> -
- item->images); ?> - image_first)) : ?> - float_first)) : - $imgFloat = $images->float_first == 'right' ? 'float-end' : 'float-start'; - endif; - $img = HTMLHelper::cleanImageURL($images->image_first); - $alt = empty($images->image_first_alt) && empty($images->image_first_alt_empty) - ? '' - : 'alt="' . htmlspecialchars($images->image_first_alt, ENT_COMPAT, 'UTF-8') . '"'; - ?> -
- itemprop="thumbnail" /> - image_first_caption)) : ?> -
image_first_caption, ENT_COMPAT, 'UTF-8'); ?>
- -
- - - image_second)) : ?> - float_second)) : - $imgFloat = $images->float_second == 'right' ? 'float-end' : 'float-start'; - endif; - $img = HTMLHelper::cleanImageURL($images->image_second); - $alt = empty($images->image_first_alt) && empty($images->image_second_alt_empty) - ? '' - : 'alt="' . htmlspecialchars($images->image_second_alt, ENT_COMPAT, 'UTF-8') . '"'; - ?> -
- itemprop="thumbnail" /> - image_second_caption)) : ?> -
image_second_caption, ENT_COMPAT, 'UTF-8'); ?>
- -
- - - item->description; ?> +
+ +
+ params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> +
+ item->tags->itemTags); ?>
+ +
+ item->images); ?> + image_first)) : ?> + + float_first)) : ?> + float_first == 'right' ? 'float-end' : 'float-start'; ?> + + image_first); ?> + image_first_alt) && empty($images->image_first_alt_empty) + ? '' + : 'alt="' . htmlspecialchars($images->image_first_alt, ENT_COMPAT, 'UTF-8') . '"'; ?> +
+ itemprop="thumbnail" /> + image_first_caption)) : ?> +
image_first_caption, ENT_COMPAT, 'UTF-8'); ?>
+ +
+ + + image_second)) : ?> + + float_second)) : ?> + float_second == 'right' ? 'float-end' : 'float-start'; ?> + + image_second); ?> + image_second_alt) && empty($images->image_second_alt_empty) + ? '' + : 'alt="' . htmlspecialchars($images->image_second_alt, ENT_COMPAT, 'UTF-8') . '"'; ?> +
+ itemprop="thumbnail" /> + image_second_caption)) : ?> +
image_second_caption, ENT_COMPAT, 'UTF-8'); ?>
+ +
+ + + item->description)) : ?> + item->description; ?> + + +
+
item->event->afterDisplayContent; ?>