initial commit
This commit is contained in:
2
Resources/Private/Partials/Meta/Default.html
Normal file
2
Resources/Private/Partials/Meta/Default.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<f:variable name="metatype" value="default" />
|
||||
<f:render partial="Meta/Rendering/Section" arguments="{_all}" />
|
31
Resources/Private/Partials/Meta/Elements/Authors.html
Normal file
31
Resources/Private/Partials/Meta/Elements/Authors.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<f:variable name="name">authors</f:variable>
|
||||
<f:variable name="icon"><f:render partial="General/BlogIcons" section="Author" optional="true" /></f:variable>
|
||||
<f:variable name="prefix"><f:translate key="meta.authors.author"/></f:variable>
|
||||
|
||||
<f:if condition="{post.authors}">
|
||||
<f:if condition="{post.authors -> f:count()} > 1">
|
||||
<f:variable name="prefix"><f:translate key="meta.authors.authors"/></f:variable>
|
||||
</f:if>
|
||||
<f:render partial="Meta/Rendering/Item" arguments="{name: name, icon: icon, prefix: prefix}" contentAs="content">
|
||||
<ul class="postmetagroup__list">
|
||||
<f:for each="{post.authors}" as="author">
|
||||
<li>
|
||||
<span class="postmetagroup__listitem" data-blog-author="{author.uid}">
|
||||
<f:if condition="{avatarSettings.enable}">
|
||||
<f:variable name="avatarsize" value="{avatarSettings.size as integer}" />
|
||||
<f:if condition="{avatarsize}"><f:else><f:variable name="avatarsize" value="24" /></f:else></f:if>
|
||||
<span class="postmetagroup__listprefix"><img loading="lazy" class="postmetagroup__listavatar blogavatar" height="{avatarsize}" width="{avatarsize}" src="{author.avatar}" itemprop="image"></span>
|
||||
</f:if>
|
||||
<span class="postmetagroup__listtext" data-prefix="{f:translate(key:'meta.authors.author')}"><f:render section="ProfileLink" arguments="{author: author}" contentAs="content">{author.name}</f:render></span>
|
||||
</span>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:render>
|
||||
</f:if>
|
||||
<f:section name="ProfileLink">
|
||||
<f:if condition="{author.detailsPage} || {settings.authorUid}">
|
||||
<f:then><blogvh:link.author rel="author" author="{author}"><span itemprop="name">{content}</span></blogvh:link.author></f:then>
|
||||
<f:else><span itemprop="name">{content}</span></f:else>
|
||||
</f:if>
|
||||
</f:section>
|
20
Resources/Private/Partials/Meta/Elements/Categories.html
Normal file
20
Resources/Private/Partials/Meta/Elements/Categories.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<f:variable name="name">categories</f:variable>
|
||||
<f:variable name="icon"><f:render partial="General/BlogIcons" section="Category" optional="true" /></f:variable>
|
||||
<f:variable name="prefix"><f:translate key="meta.categories.category"/></f:variable>
|
||||
|
||||
<f:if condition="{post.categories}">
|
||||
<f:if condition="{post.categories -> f:count()} > 1">
|
||||
<f:variable name="prefix"><f:translate key="meta.categories.categories"/></f:variable>
|
||||
</f:if>
|
||||
<f:render partial="Meta/Rendering/Item" arguments="{name: name, icon: icon, prefix: prefix}" contentAs="content">
|
||||
<ul class="postmetagroup__list">
|
||||
<f:for each="{post.categories}" as="postCategory">
|
||||
<li>
|
||||
<span class="postmetagroup__listitem" data-blog-category="{postCategory.uid}">
|
||||
<span class="postmetagroup__listtext"><blogvh:link.category category="{postCategory}" /></span>
|
||||
</span>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:render>
|
||||
</f:if>
|
23
Resources/Private/Partials/Meta/Elements/Comments.html
Normal file
23
Resources/Private/Partials/Meta/Elements/Comments.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<f:variable name="name">comments</f:variable>
|
||||
<f:variable name="icon"><f:render partial="General/BlogIcons" section="Comment" optional="true" /></f:variable>
|
||||
<f:variable name="prefix"><f:translate key="meta.comments.join_conversation"/></f:variable>
|
||||
<f:variable name="text"><f:translate key="meta.comments.comments"/></f:variable>
|
||||
|
||||
<f:if condition="{settings.comments.active} && {post.commentsActive}">
|
||||
<f:variable name="commentCount" value="{post.activeComments -> f:count()}" />
|
||||
<f:if condition="{settings.comments.disqus._typoScriptNodeValue} != 1">
|
||||
<f:if condition="{commentCount} == 0">
|
||||
<f:variable name="prefix"><f:translate key="meta.comments.start_conversation"/></f:variable>
|
||||
<f:variable name="text"><f:translate key="meta.comments.has_comments" arguments="{0: commentCount}"/></f:variable>
|
||||
</f:if>
|
||||
<f:if condition="{commentCount} == 1">
|
||||
<f:variable name="text"><f:translate key="meta.comments.has_comment" arguments="{0: commentCount}"/></f:variable>
|
||||
</f:if>
|
||||
<f:if condition="{commentCount} >= 1">
|
||||
<f:variable name="text"><f:translate key="meta.comments.has_comments" arguments="{0: commentCount}"/></f:variable>
|
||||
</f:if>
|
||||
</f:if>
|
||||
<f:render partial="Meta/Rendering/Item" arguments="{name: name, icon: icon, prefix: prefix}" contentAs="content">
|
||||
<blogvh:link.post post="{post}" section="comments">{text}</blogvh:link.post>
|
||||
</f:render>
|
||||
</f:if>
|
10
Resources/Private/Partials/Meta/Elements/Published.html
Normal file
10
Resources/Private/Partials/Meta/Elements/Published.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<f:variable name="name">published</f:variable>
|
||||
<f:variable name="icon"><f:render partial="General/BlogIcons" section="Published" optional="true" /></f:variable>
|
||||
<f:variable name="prefix"><f:translate key="meta.published.published"/></f:variable>
|
||||
|
||||
<f:render partial="Meta/Rendering/Item" arguments="{name: name, icon: icon, prefix: prefix}" contentAs="content">
|
||||
<blogvh:link.post post="{post}" rel="bookmark">
|
||||
<f:if condition="!{publishDateFormat}"><f:variable name="dateformat" value="%d.%m.%Y" /></f:if>
|
||||
<time datetime="{f:format.date(format: '%Y-%m-%dT%H:%M:%S-%z', date: post.publishDate)}" itemprop="datepublished">{f:format.date(format: publishDateFormat, date: post.publishDate)}</time>
|
||||
</blogvh:link.post>
|
||||
</f:render>
|
20
Resources/Private/Partials/Meta/Elements/Tags.html
Normal file
20
Resources/Private/Partials/Meta/Elements/Tags.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<f:variable name="name">tags</f:variable>
|
||||
<f:variable name="icon"><f:render partial="General/BlogIcons" section="Tag" optional="true" /></f:variable>
|
||||
<f:variable name="prefix"><f:translate key="meta.tags.tag"/></f:variable>
|
||||
|
||||
<f:if condition="{post.tags}">
|
||||
<f:if condition="{post.tags -> f:count()} > 1">
|
||||
<f:variable name="prefix"><f:translate key="meta.tags.tags"/></f:variable>
|
||||
</f:if>
|
||||
<f:render partial="Meta/Rendering/Item" arguments="{name: name, icon: icon, prefix: prefix}" contentAs="content">
|
||||
<ul class="postmetagroup__list">
|
||||
<f:for each="{post.tags}" as="postTag">
|
||||
<li>
|
||||
<span class="postmetagroup__listitem" data-blog-tag="{postTag.uid}">
|
||||
<span class="postmetagroup__listtext"><blogvh:link.tag tag="{postTag}" /></span>
|
||||
</span>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:render>
|
||||
</f:if>
|
2
Resources/Private/Partials/Meta/ListFooter.html
Normal file
2
Resources/Private/Partials/Meta/ListFooter.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<f:variable name="metatype" value="listfooter" />
|
||||
<f:render partial="Meta/Rendering/Section" arguments="{_all}" />
|
2
Resources/Private/Partials/Meta/ListHeader.html
Normal file
2
Resources/Private/Partials/Meta/ListHeader.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<f:variable name="metatype" value="listheader" />
|
||||
<f:render partial="Meta/Rendering/Section" arguments="{_all}" />
|
2
Resources/Private/Partials/Meta/PostFooter.html
Normal file
2
Resources/Private/Partials/Meta/PostFooter.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<f:variable name="metatype" value="postfooter" />
|
||||
<f:render partial="Meta/Rendering/Section" arguments="{_all}" />
|
2
Resources/Private/Partials/Meta/PostHeader.html
Normal file
2
Resources/Private/Partials/Meta/PostHeader.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<f:variable name="metatype" value="postheader" />
|
||||
<f:render partial="Meta/Rendering/Section" arguments="{_all}" />
|
3
Resources/Private/Partials/Meta/Rendering/Group.html
Normal file
3
Resources/Private/Partials/Meta/Rendering/Group.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="postmetagroup postmetagroup--{settings.meta.{metatype}.modifier} postmetagroup--type-{metatype}">
|
||||
{content -> f:format.raw()}
|
||||
</div>
|
12
Resources/Private/Partials/Meta/Rendering/Item.html
Normal file
12
Resources/Private/Partials/Meta/Rendering/Item.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<f:if condition="!{name}"><f:variable name="name">default</f:variable></f:if>
|
||||
<div class="postmetagroup__item postmetagroup__item--{name}">
|
||||
<f:if condition="{icon}">
|
||||
<div class="postmetagroup__icon">
|
||||
<span class="blogicon">{icon -> f:format.raw()}</span>
|
||||
</div>
|
||||
</f:if>
|
||||
<div class="postmetagroup__body">
|
||||
<f:if condition="{prefix}"><div class="postmetagroup__prefix">{prefix -> f:format.raw()}</div></f:if>
|
||||
<f:if condition="{content}"><div class="postmetagroup__content">{content -> f:format.raw()}</div></f:if>
|
||||
</div>
|
||||
</div>
|
23
Resources/Private/Partials/Meta/Rendering/Section.html
Normal file
23
Resources/Private/Partials/Meta/Rendering/Section.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<f:if condition="!{metatype}"><f:variable name="metatype" value="default" /></f:if>
|
||||
<f:variable name="modifier" value="{settings.meta.{metatype}.modifier}" />
|
||||
<f:if condition="{settings.meta.{metatype}.enable}">
|
||||
<f:render partial="Meta/Rendering/Group" arguments="{_all}" contentAs="content">
|
||||
<f:if condition="{settings.meta.{metatype}.elements.authors.enable}">
|
||||
<f:variable name="avatarSettings" value="{settings.meta.{metatype}.elements.authors.avatar}" />
|
||||
<f:render partial="Meta/Elements/Authors" arguments="{_all}" />
|
||||
</f:if>
|
||||
<f:if condition="{settings.meta.{metatype}.elements.categories.enable}">
|
||||
<f:render partial="Meta/Elements/Categories" arguments="{_all}" />
|
||||
</f:if>
|
||||
<f:if condition="{settings.meta.{metatype}.elements.tags.enable}">
|
||||
<f:render partial="Meta/Elements/Tags" arguments="{_all}" />
|
||||
</f:if>
|
||||
<f:if condition="{settings.meta.{metatype}.elements.published.enable}">
|
||||
<f:variable name="publishDateFormat" value="{settings.meta.{metatype}.elements.published.format}" />
|
||||
<f:render partial="Meta/Elements/Published" arguments="{_all}" />
|
||||
</f:if>
|
||||
<f:if condition="{settings.meta.{metatype}.elements.comments.enable}">
|
||||
<f:render partial="Meta/Elements/Comments" arguments="{_all}" />
|
||||
</f:if>
|
||||
</f:render>
|
||||
</f:if>
|
2
Resources/Private/Partials/Meta/TeaserFooter.html
Normal file
2
Resources/Private/Partials/Meta/TeaserFooter.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<f:variable name="metatype" value="teaserfooter" />
|
||||
<f:render partial="Meta/Rendering/Section" arguments="{_all}" />
|
2
Resources/Private/Partials/Meta/TeaserHeader.html
Normal file
2
Resources/Private/Partials/Meta/TeaserHeader.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<f:variable name="metatype" value="teaserheader" />
|
||||
<f:render partial="Meta/Rendering/Section" arguments="{_all}" />
|
Reference in New Issue
Block a user