Textpattern PHP Cross Reference Content Management Systems

Source: /textpattern/setup/themes/four-point-eight/pages/default.txp - 116 lines - 4900 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_category>
  23                  <meta name="robots" content="noindex, follow">
  24              <txp:else />
  25                  <txp:variable name="page" value='<txp:page_url type="pg" />' />
  26                  <txp:if_variable name="page" value="1">
  27                      <meta name="robots" content="index, follow">
  28                      <link rel="canonical" href="<txp:site_url />">
  29                      <script type="application/ld+json">
  30                          {
  31                              "@context": "https://schema.org",
  32                              "@type": "WebSite",
  33                              "headline": "<txp:site_name escape="json" />",
  34                              <txp:if_description>"description": "<txp:meta_description format="" escape="json" />",</txp:if_description>
  35                              "url": "<txp:site_url escape="json" />"
  36                          }
  37                      </script>
  38                  <txp:else />
  39                      <meta name="robots" content="noindex, follow">
  40                  </txp:if_variable>
  41                  <txp:variable name="front-page" value="1" />
  42              </txp:if_category>
  43          </txp:if_author>
  44      </txp:if_search>
  45  
  46      <!-- content feeds -->
  47      <txp:feed_link flavor="atom" format="link" label="Atom" />
  48      <txp:feed_link flavor="rss" format="link" label="RSS" />
  49  </head>
  50  
  51  <txp:if_variable name="front-page">
  52      <body class="front-page" itemscope itemtype="https://schema.org/WebPage">
  53  <txp:else />
  54      <txp:if_search>
  55          <body class="search-page" itemscope itemtype="https://schema.org/SearchResultsPage">
  56      <txp:else />
  57          <body class="listing-page" itemscope itemtype="https://schema.org/CollectionPage">
  58      </txp:if_search>
  59  </txp:if_variable>
  60  
  61      <txp:output_form form="body_header" />
  62  
  63      <div class="wrapper">
  64          <div class="container">
  65  
  66              <!-- Main content -->
  67              <main id="main" aria-label="<txp:text item="main_content" />" itemscope itemtype="https://schema.org/Blog">
  68  
  69                  <!-- is this the search result page? also omits the pagination links below (uses pagination format within search_display.txp instead) -->
  70                  <txp:if_search>
  71                      <txp:output_form form="search_display" />
  72  
  73                  <txp:else />
  74                      <!-- else is this the front page? -->
  75                      <txp:if_variable name="front-page">
  76                          <!-- links by default to form: 'default.txp' unless you specify a different form -->
  77                          <txp:article limit="5" />
  78  
  79                      <txp:else />
  80                          <!-- else is this an article author list? -->
  81                          <txp:if_author>
  82                              <h1 itemprop="name"><txp:text item="author" /> <txp:author /></h1>
  83  
  84                          <txp:else />
  85                              <!-- else is this an article category list? -->
  86                              <txp:if_category>
  87                                  <h1 itemprop="name"><txp:text item="category" /> <txp:category title /></h1>
  88                              </txp:if_category>
  89                          </txp:if_author>
  90                          <txp:article form="article_listing" limit="10" wraptag="ul" class="article-list" />
  91                      </txp:if_variable>
  92  
  93                      <!-- add pagination links to foot of front page/author listings/category listings if there are more articles available -->
  94                      <txp:evaluate test="newer,older">
  95                          <nav class="paginator" aria-label="<txp:text item="page_nav" />">
  96                              <txp:newer rel="prev">
  97                                  <txp:text item="newer" />
  98                              </txp:newer>
  99                              <txp:older rel="next">
 100                                  <txp:text item="older" />
 101                              </txp:older>
 102                          </nav>
 103                      </txp:evaluate>
 104                  </txp:if_search>
 105  
 106              </main>
 107  
 108              <txp:output_form form="body_aside" />
 109  
 110          </div> <!-- /.container -->
 111      </div> <!-- /.wrapper -->
 112  
 113      <txp:output_form form="body_footer" />
 114  
 115  </body>
 116  </html>

title

Description

title

Description

title

Description

title

title

Body