fix: story template-story class, datetime attr, imageName escaping, raw content comments

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
2026-06-19 23:12:47 +02:00
parent 103ceb62b9
commit 1a247e1889
6 changed files with 8 additions and 8 deletions
@@ -11,10 +11,10 @@ class ScrollySectionShortcode extends Shortcode
$plugin = $this->grav['plugins']->getPlugin('story-blocks');
$page = $plugin ? $plugin->getCurrentPage() : null;
$imageName = $sc->getParameter('image', '');
$imageName = htmlspecialchars($sc->getParameter('image', ''), ENT_QUOTES);
$alt = htmlspecialchars($sc->getParameter('alt', ''), ENT_QUOTES);
$caption = htmlspecialchars($sc->getParameter('caption', ''), ENT_QUOTES);
$content = $sc->getContent(); /* raw inner content — Scrollama JS splits on <hr> */
$content = $sc->getContent(); // ShortcodeCore renders inner Markdown to HTML; trusted author content
$imageUrl = ($page && $imageName) ? $page->url() . '/' . $imageName : $imageName;
$captionHtml = $caption