Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/setup/themes/four-point-eight/pages/archive.txp - 146 lines - 6839 bytes - Text - Print

   1  <!DOCTYPE html>
   2  <html lang="<txp:lang />" dir="<txp:text item="lang_dir" />">
   3  
   4  <head>
   5      <meta charset="utf-8">
   6      <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
   7      <title><txp:page_title /></title>
   8  
   9      <!-- CSS -->
  10      <txp:css format="link" media="" />
  11      <!-- ...or you can use (faster) external CSS files e.g. <link rel="stylesheet" href="<txp:page_url type="theme_path" />/styles/default.css"> -->
  12  
  13      <meta name="generator" content="Textpattern CMS">
  14  
  15      <txp:if_search>
  16          <meta name="robots" content="none">
  17      <txp:else />
  18          <txp:if_author>
  19              <meta name="robots" content="noindex, follow">
  20          <txp:else />
  21              <txp:meta_description />
  22              <txp:if_article_list>
  23                  <txp:variable name="page" value='<txp:page_url type="pg" />' />
  24                  <txp:if_variable name="page" value="1">
  25                      <meta name="robots" content="index, follow">
  26                      <link rel="canonical" href="<txp:section url />">
  27                      <script type="application/ld+json">
  28                          {
  29                              "@context": "https://schema.org",
  30                              "@type": "Blog",
  31                              "headline": "<txp:section title escape="json" />",
  32                              <txp:if_description>"description": "<txp:meta_description format="" escape="json" />",</txp:if_description>
  33                              "url": "<txp:section url escape="json" />"
  34                          }
  35                      </script>
  36                  <txp:else />
  37                      <meta name="robots" content="noindex, follow">
  38                  </txp:if_variable>
  39              <txp:else />
  40                  <txp:meta_keywords separator="," />
  41                  <txp:meta_author title />
  42                  <meta name="robots" content="<txp:if_expires>unavailable_after: <txp:expires gmt format="%d-%b-%y %T" /> GMT<txp:else />index, follow</txp:if_expires>">
  43                  <link rel="canonical" href="<txp:permlink />">
  44                  <meta property="og:site_name" content="<txp:site_name />">
  45                  <meta property="og:type" content="article">
  46                  <meta property="og:title" content="<txp:title />">
  47                  <txp:if_description><meta property="og:description" content="<txp:meta_description format="" />"></txp:if_description>
  48                  <meta property="og:url" content="<txp:permlink />">
  49                  <txp:if_article_image>
  50                      <txp:images limit="1">
  51                          <meta property="og:image" content="<txp:image_url />">
  52                          <meta property="og:image:width" content="<txp:image_info type="w" />">
  53                          <meta property="og:image:height" content="<txp:image_info type="h" />">
  54                          <meta property="og:image:alt" content="<txp:image_info type="alt" />">
  55                      </txp:images>
  56                  </txp:if_article_image>
  57                  <script type="application/ld+json">
  58                      {
  59                          "@context": "https://schema.org",
  60                          "@type": "Blog",
  61                          "blogPost": [{
  62                              "@type": "BlogPosting",
  63                              "headline": "<txp:title escape="json" />",
  64                              <txp:if_description>"description": "<txp:meta_description format="" escape="json" />",</txp:if_description>
  65                              "url": "<txp:permlink escape="json" />"
  66                          }]
  67                      }
  68                  </script>
  69              </txp:if_article_list>
  70          </txp:if_author>
  71      </txp:if_search>
  72  
  73      <!-- content feeds -->
  74      <txp:feed_link flavor="atom" format="link" label="Atom" />
  75      <txp:feed_link flavor="rss" format="link" label="RSS" />
  76  </head>
  77  
  78  <txp:if_search>
  79      <body class="search-page" itemscope itemtype="https://schema.org/SearchResultsPage">
  80  <txp:else />
  81      <txp:if_article_list>
  82          <body class="<txp:section />-page" itemscope itemtype="https://schema.org/CollectionPage">
  83      <txp:else />
  84          <body class="<txp:section />-page" itemscope itemtype="https://schema.org/WebPage">
  85      </txp:if_article_list>
  86  </txp:if_search>
  87  
  88      <txp:output_form form="body_header" />
  89  
  90      <div class="wrapper">
  91          <div class="container">
  92  
  93              <!-- Main content -->
  94              <main id="main" aria-label="<txp:text item="main_content" />" itemscope itemtype="https://schema.org/Blog">
  95  
  96                  <!-- is this the search result page? also omits the pagination links below (uses pagination format within search_display.txp instead) -->
  97                  <txp:if_search>
  98                      <txp:output_form form="search_display" />
  99  
 100                  <txp:else />
 101                      <txp:if_article_list>
 102  
 103                          <h1 itemprop="name"><txp:section title /></h1>
 104                          <txp:article class="article-list" form="article_listing" limit="10" wraptag="ul" />
 105                          <!-- ...or if you want to list all articles from all sections instead, then replace txp:article with txp:article_custom -->
 106  
 107                          <!-- add pagination links to foot of article listings if there are more articles available -->
 108                          <txp:evaluate test="newer,older">
 109                              <nav class="paginator" aria-label="<txp:text item="page_nav" />">
 110                                  <txp:newer rel="prev">
 111                                      <txp:text item="newer" />
 112                                  </txp:newer>
 113                                  <txp:older rel="next">
 114                                      <txp:text item="older" />
 115                                  </txp:older>
 116                              </nav>
 117                          </txp:evaluate>
 118  
 119                      <txp:else />
 120                          <txp:article status />
 121  
 122                          <!-- add pagination links to foot of article if there are more articles available -->
 123                          <txp:evaluate test="link_to_prev,link_to_next">
 124                              <nav class="paginator" aria-label="<txp:text item="page_nav" />">
 125                                  <txp:link_to_prev>
 126                                      <txp:text item="prev" />
 127                                  </txp:link_to_prev>
 128                                  <txp:link_to_next>
 129                                      <txp:text item="next" />
 130                                  </txp:link_to_next>
 131                              </nav>
 132                          </txp:evaluate>
 133                      </txp:if_article_list>
 134                  </txp:if_search>
 135  
 136              </main>
 137  
 138              <txp:output_form form="body_aside" />
 139  
 140          </div> <!-- /.container -->
 141      </div> <!-- /.wrapper -->
 142  
 143      <txp:output_form form="body_footer" />
 144  
 145  </body>
 146  </html>

title

Description

title

Description

title

Description

title

title

Body