diff --git a/views/SlideshowPluginSlideshowSlide/frontend_attachment.php b/views/SlideshowPluginSlideshowSlide/frontend_attachment.php index 8a41c74..d8731a8 100644 --- a/views/SlideshowPluginSlideshowSlide/frontend_attachment.php +++ b/views/SlideshowPluginSlideshowSlide/frontend_attachment.php @@ -4,7 +4,7 @@ $properties = $data->properties; - $title = $description = $url = $urlTarget = $alternativeText = $noFollow = $postId = ''; + $title = $description = $descriptionText = $url = $urlTarget = $alternativeText = $noFollow = $postId = ''; $titleElementTag = $descriptionElementTag = SlideshowPluginSlideInserter::getElementTag(); @@ -21,6 +21,7 @@ if (isset($properties['description'])) { $description = trim(SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($properties['description'])); + $descriptionText = trim($properties['description']); } if (isset($properties['descriptionElementTagID'])) @@ -124,8 +125,12 @@ if ($imageAvailable): ?>
- - <?php echo $alternativeText; ?> 0) ? 'width="' . $imageWidth . '"' : ''; ?> 0) ? 'height="' . $imageHeight . '"' : ''; ?> /> + + <?php echo $alternativeText; ?> 0) ? 'width="' . $imageWidth . '"' : ''; ?> 0) ? 'height="' . $imageHeight . '"' : ''; ?> />
' . $anchorTag . $title . $endAnchorTag . '' : ''; ?> @@ -136,4 +141,4 @@ - \ No newline at end of file +