Textpattern | PHP Cross Reference | Content Management Systems |
1 <!DOCTYPE html> 2 <html lang="<txp:lang />" dir="<txp:text item="lang_dir" />"> 3 4 <head> 5 <meta charset="utf-8"> 6 <meta http-equiv="x-ua-compatible" content="ie=edge"> 7 <title> 8 <txp:page_title /> 9 </title> 10 11 <!-- Google font API --> 12 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700,700italic"> 13 14 <!-- CSS --> 15 <txp:css format="link" media="" /> 16 <!-- ...or you can use (faster) external CSS files e.g. <link rel="stylesheet" href="<txp:site_url />css/default.css"> --> 17 18 <!-- specify meta description if available --> 19 <txp:meta_description /> 20 <!-- specify meta keywords if available --> 21 <txp:meta_keywords separator="," /> 22 23 <meta name="generator" content="Textpattern CMS"> 24 <meta name="viewport" content="width=device-width, initial-scale=1"> 25 26 <!-- specify robots, canonical and author --> 27 <txp:if_search> 28 <meta name="robots" content="none"> 29 <txp:else /> 30 <txp:if_category> 31 <meta name="robots" content="noindex, follow, noodp, noydir"> 32 <txp:else /> 33 <txp:if_author> 34 <meta name="robots" content="noindex, follow, noodp, noydir"> 35 <txp:else /> 36 <meta name="robots" content="index, follow, noodp, noydir"> 37 </txp:if_author> 38 </txp:if_category> 39 <txp:if_section name=""> 40 <link rel="canonical" href="<txp:site_url />"> 41 <txp:else /> 42 <txp:if_individual_article> 43 <link rel="canonical" href="<txp:permlink />"> 44 <txp:meta_author title="1" /> 45 <txp:else /> 46 <link rel="canonical" href="<txp:section url="1" />"> 47 </txp:if_individual_article> 48 </txp:if_section> 49 </txp:if_search> 50 51 <!-- content feeds --> 52 <txp:feed_link flavor="atom" format="link" label="Atom" /> 53 <txp:feed_link flavor="rss" format="link" label="RSS" /> 54 </head> 55 56 <txp:if_section name=""> 57 <txp:if_search> 58 <body class="search-page" itemscope itemtype="http://schema.org/SearchResultsPage"> 59 <txp:else /> 60 <txp:if_category> 61 <body class="listing-page" itemscope itemtype="http://schema.org/CollectionPage"> 62 <txp:else /> 63 <txp:if_author> 64 <body class="listing-page" itemscope itemtype="http://schema.org/CollectionPage"> 65 <txp:else /> 66 <body class="front-page" itemscope itemtype="http://schema.org/WebPage"> 67 </txp:if_author> 68 </txp:if_category> 69 </txp:if_search> 70 <txp:else /> 71 <body class="<txp:section />-page" itemscope itemtype="http://schema.org/WebPage"> 72 </txp:if_section> 73 74 <!-- header --> 75 <header class="site-header"> 76 <h1> 77 <txp:link_to_home> 78 <txp:site_name /> 79 </txp:link_to_home> 80 </h1> 81 <h3> 82 <txp:site_slogan /> 83 </h3> 84 </header> 85 86 <!-- navigation --> 87 <nav class="site-navigation" aria-label="<txp:text item="navigation" />" itemscope itemtype="http://schema.org/SiteNavigationElement"> 88 <div> 89 <txp:section_list default_title='<txp:text item="home" />' include_default="1" wraptag="ul" break=""> 90 <li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>> 91 <a itemprop="url" href="<txp:section url="1" />"> 92 <txp:section title="1" /> 93 </a> 94 </li> 95 </txp:section_list> 96 97 <!-- links by default to form: 'search_input.misc.txp' unless you specify a different form --> 98 <txp:search_input /> 99 </div> 100 </nav> 101 102 <div class="wrapper"> 103 <div class="container"> 104 105 <!-- Main content --> 106 <main aria-label="<txp:text item="main_content" />" itemscope itemtype="http://schema.org/Blog"> 107 108 <!-- is this the search result page? also omits the pagination links below (uses pagination format within search_results.article.txp instead) --> 109 <txp:if_search> 110 111 <h1 itemprop="name"> 112 <txp:text item="search_results" /> 113 </h1> 114 <txp:output_form form="search_results" /> 115 116 <txp:else /> 117 118 <!-- else is this an article category list? --> 119 <txp:if_category> 120 121 <h1 itemprop="name"> 122 <txp:text item="category" /> 123 <txp:category title="1" /> 124 </h1> 125 <txp:article form="article_listing" limit="5" wraptag="ul" class="article-list" /> 126 127 <txp:else /> 128 129 <!-- else is this an article author list? --> 130 <txp:if_author> 131 132 <h1 itemprop="name"> 133 <txp:text item="author" /> 134 <txp:author /> 135 </h1> 136 <txp:article form="article_listing" limit="5" wraptag="ul" class="article-list" /> 137 138 <!-- else display articles normally --> 139 <txp:else /> 140 141 <!-- links by default to form: 'default.article.txp' unless you specify a different form --> 142 <txp:article limit="5" /> 143 144 </txp:if_author> 145 </txp:if_category> 146 147 <!-- add pagination links to foot of article listings/category listings/author listings if there are more articles available, 148 this method is more flexible than using simple txp:link_to_prev/txp:link_to_next or txp:older/txp:newer tags --> 149 <txp:variable name="more" value='<txp:newer /><txp:older />' /> 150 <txp:variable name="prev" value='<txp:newer />' /> 151 <txp:variable name="next" value='<txp:older />' /> 152 153 <txp:if_variable name="more" value=""> 154 <txp:else /> 155 <p class="paginator"> 156 <txp:if_variable name="prev" value=""> 157 <txp:else /> 158 <a rel="prev" href="<txp:newer />"> 159 <txp:text item="newer" /> 160 </a> 161 </txp:if_variable> 162 163 <txp:if_variable name="next" value=""> 164 <txp:else /> 165 <a rel="next" href="<txp:older />"> 166 <txp:text item="older" /> 167 </a> 168 </txp:if_variable> 169 </p> 170 </txp:if_variable> 171 172 </txp:if_search> 173 174 </main> 175 176 <!-- Complementary content --> 177 <aside class="complementary-content"> 178 179 <!-- feed links, default flavor is RSS, so we don't need to specify a flavor on the first feed_link --> 180 <p> 181 <txp:feed_link class="feed-rss" label="RSS" /> 182 / 183 <txp:feed_link class="feed-atom" flavor="atom" label="Atom" /> 184 </p> 185 186 <!-- if links exist, renders a links list --> 187 <txp:variable name="links" value='<txp:linklist limit="1" />' /> 188 189 <txp:if_variable name="links" value=""> 190 <txp:else /> 191 <section> 192 <h4> 193 <txp:text item="links" /> 194 </h4> 195 196 <!-- links by default to form: 'plainlinks.link.txp' unless you specify a different form --> 197 <txp:linklist wraptag="ul" break="li" /> 198 </section> 199 </txp:if_variable> 200 201 </aside> 202 203 </div> <!-- /.container --> 204 </div> <!-- /.wrapper --> 205 206 <!-- footer --> 207 <footer class="site-footer"> 208 <p> 209 <small> 210 <txp:text item="published_with" /> 211 <a rel="external" href="http://textpattern.com" title="<txp:text item="go_txp_com" />">Textpattern CMS</a> 212 </small> 213 </p> 214 </footer> 215 216 <!-- add your own JavaScript here --> 217 218 </body> 219 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
title