], true);
} elseif ($parser->getOutputType() == 'text/simplified-html') {
return StringUtil::getAnchorTag($foo->getLink(), $foo->getTitle());
+ } else {
+ return StringUtil::encodeHTML($foo->getLink());
}
}
}
--- /dev/null
+# Migrating from WoltLab Suite 6.1 - Templates
+
+## Image Viewer
+
+The previous image viewer `WCF.ImageViewer` has been open by the HTML class `.jsImageViewer`.
+From now on this is done via the attribute `data-fancybox`, which opens the new [Image Viewer](../../javascript/components_image_viewer.md).
+Which also now supports grouping, `data-fancybox="foo"`.
+
+#### Previous Code Example
+
+```smarty
+<a href="{$link}" class="jsImageViewer" title="{$title}">
+ <img src="{$link}">
+</a>
+```
+
+#### New Code Example
+
+```smarty
+<a href="{$link}" data-caption="{$title}" data-fancybox>
+ <img src="{$link}">
+</a>
+```
- 'Migration':
- 'From WoltLab Suite 6.1':
- 'Deprecations and Removals': 'migration/wsc61/deprecations_removals.md'
+ - 'Templates': 'migration/wsc61/templates.md'
- 'From WoltLab Suite 6.0':
- 'PHP API': 'migration/wsc60/php.md'
- 'Templates': 'migration/wsc60/templates.md'