Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions views/SlideshowPluginSlideshowSlide/frontend_attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -21,6 +21,7 @@
if (isset($properties['description']))
{
$description = trim(SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($properties['description']));
$descriptionText = trim($properties['description']);
}

if (isset($properties['descriptionElementTagID']))
Expand Down Expand Up @@ -124,8 +125,12 @@
if ($imageAvailable): ?>

<div class="slideshow_slide slideshow_slide_image">
<?php echo $anchorTag; ?>
<img src="<?php echo htmlspecialchars($imageSrc); ?>" alt="<?php echo $alternativeText; ?>" <?php echo ($imageWidth > 0) ? 'width="' . $imageWidth . '"' : ''; ?> <?php echo ($imageHeight > 0) ? 'height="' . $imageHeight . '"' : ''; ?> />
<?php
echo $anchorTag;
// do shortcodes in slides...
echo !empty($descriptionText) ? do_shortcode($descriptionText): '';
?>
<img src="<?php echo htmlspecialchars($imageSrc); ?>" alt="<?php echo $alternativeText; ?>" <?php echo ($imageWidth > 0) ? 'width="' . $imageWidth . '"' : ''; ?> <?php echo ($imageHeight > 0) ? 'height="' . $imageHeight . '"' : ''; ?> />
<?php echo $endAnchorTag; ?>
<div class="slideshow_description_box slideshow_transparent">
<?php echo !empty($title) ? '<' . $titleElementTag . ' class="slideshow_title">' . $anchorTag . $title . $endAnchorTag . '</' . $titleElementTag . '>' : ''; ?>
Expand All @@ -136,4 +141,4 @@
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>