Textpattern | PHP Cross Reference | Content Management Systems |
1 <article class="article" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting"> 2 <meta itemprop="mainEntityOfPage" content="<txp:permlink />"> 3 4 <txp:if_individual_article> 5 <h1 itemprop="headline"><txp:title /></h1> 6 <txp:else /> 7 <h1 itemprop="headline"><a href="<txp:permlink />" itemprop="url" title="<txp:text item="read_more" />"><txp:title /></a> 8 </h1> 9 </txp:if_individual_article> 10 11 <p> 12 <strong> 13 <txp:text item="posted" /> 14 </strong> 15 <time datetime="<txp:posted format="iso8601" />" itemprop="datePublished"> 16 <txp:posted /> 17 </time> 18 <meta itemprop="dateModified" content="<txp:modified format="iso8601" />" /> 19 20 <!-- only display comments count if comments posted, or if new comments allowed --> 21 <txp:if_comments> 22 <br> 23 <strong> 24 <txp:text item="comments" /> 25 </strong> 26 <a href="<txp:permlink />#comments-head" title="<txp:text item="view" />" itemprop="discussionUrl"> 27 <span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter"> 28 <meta itemprop="interactionType" content="https://schema.org/CommentAction" /> 29 <span itemprop="userInteractionCount"><txp:comments_count /></span> 30 </span> 31 </a> 32 <txp:else /> 33 <txp:if_comments_allowed> 34 <br> 35 <strong> 36 <txp:text item="comments" /> 37 </strong> 38 <a href="<txp:permlink />#comments-head" title="<txp:text item="view" />" itemprop="discussionUrl"> 39 <span itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter"> 40 <meta itemprop="interactionType" content="https://schema.org/CommentAction" /> 41 <span itemprop="userInteractionCount">0</span> 42 </span> 43 </a> 44 </txp:if_comments_allowed> 45 </txp:if_comments> 46 </p> 47 48 <txp:if_article_image> 49 <txp:images form="images" /> 50 </txp:if_article_image> 51 52 <div itemprop="articleBody"> 53 <txp:body /> 54 </div> 55 56 <p> 57 <strong> 58 <txp:text item="author" /> 59 </strong> 60 <span itemprop="author" itemscope itemtype="https://schema.org/Person"> 61 <span itemprop="name"> 62 <txp:author link this_section /> 63 </span> 64 </span> 65 66 <!-- only display categories if they are actually set for an article, otherwise omit --> 67 <txp:if_article_category> 68 <br> 69 <strong> 70 <txp:text item="categories" /> 71 </strong> 72 <span itemprop="keywords"> 73 <txp:category_list categories='<txp:category1 />,<txp:category2 />' children="0" break=", " trim> 74 <txp:category title link /> 75 </txp:category_list> 76 </span> 77 </txp:if_article_category> 78 </p> 79 80 <!-- if this is an individual article then add the comments section via form: comments_display.article.txp --> 81 <txp:if_individual_article> 82 <txp:output_form form="comments_display" /> 83 </txp:if_individual_article> 84 85 </article>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title