1
0
Fork 0
textpattern-theme-musuc/forms/article/default.txp

76 lines
2.3 KiB
Plaintext
Executable File

<article>
<txp:body />
<p><txp:text item="posted" />
</strong>
<time datetime="<txp:posted format="iso8601" />" itemprop="datePublished">
<txp:posted />
</time>
<meta itemprop="dateModified" content="<txp:modified format="iso8601" />" />
<!-- only display comments count if comments posted, or if new comments allowed -->
<txp:if_comments>
<br>
<strong>
<txp:text item="comments" />
</strong>
<a href="<txp:permlink />#comments-head" title="<txp:text item="view" />" itemprop="discussionUrl">
<span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
<meta itemprop="interactionType" content="https://schema.org/CommentAction" />
<span itemprop="userInteractionCount"><txp:comments_count /></span>
</span>
</a>
<txp:else />
<txp:if_comments_allowed>
<br>
<strong>
<txp:text item="comments" />
</strong>
<a href="<txp:permlink />#comments-head" title="<txp:text item="view" />" itemprop="discussionUrl">
<span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
<meta itemprop="interactionType" content="https://schema.org/CommentAction" />
<span itemprop="userInteractionCount">0</span>
</span>
</a>
</txp:if_comments_allowed>
</txp:if_comments>
</p>
<txp:if_article_image>
<txp:images form="images" />
</txp:if_article_image>
<p>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">
<txp:author link this_section />
</span>
</span>
<!-- only display categories if they are actually set for an article, otherwise omit -->
<txp:if_article_category>
<br>
<strong>
<txp:text item="categories" />
</strong>
<span itemprop="keywords">
<txp:if_article_category number="1">
<txp:if_article_category number="2">
<txp:category1 title link />,
<txp:category2 title link />
<txp:else />
<txp:category1 title link />
</txp:if_article_category>
<txp:else />
<txp:category2 title link />
</txp:if_article_category>
</span>
</txp:if_article_category>
</p>
<!-- if this is an individual article then add the comments section via form: comments_display.article.txp -->
<txp:if_individual_article>
<txp:output_form form="comments_display" />
</txp:if_individual_article>
</article>