Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/setup/forms/article.default.txp - 96 lines - 3632 bytes - Text - Print

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

title

Description

title

Description

title

Description

title

title

Body