Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (48 sloc) 2.368 kb
1ab6ce0 @yellowled Fixes for lists in static pages.
authored
1 <article id="staticpage_{$staticpage_pagetitle|@makeFilename}" class="clearfix serendipity_staticpage{if $staticpage_articleformat} serendipity_entry{/if}">
da9748f Initial version.
Matthias Mees authored
2 <header>
e8de6b6 Fallback if staticpage article format and/or non-article format title…
Matthias Mees authored
3 <h2>{if $staticpage_articleformat}{if $staticpage_articleformattitle}{$staticpage_articleformattitle|@escape}{else}{$staticpage_pagetitle}{/if}{else}{if $staticpage_headline}{$staticpage_headline|@escape}{else}{$staticpage_pagetitle}{/if}{/if}</h2>
bf8df0f Remove unlogical switch for static child pages.
Matthias Mees authored
4 {if is_array($staticpage_childpages)}
da9748f Initial version.
Matthias Mees authored
5 <ul id="staticpage_childpages">
6 {foreach from=$staticpage_childpages item="childpage"}
7 <li><a href="{$childpage.permalink|@escape}" title="{$childpage.pagetitle|@escape}">{$childpage.pagetitle|@escape}</a></li>
8 {/foreach}
9 </ul>
10 {/if}
11 </header>
12 {if $staticpage_pass AND $staticpage_form_pass != $staticpage_pass}
13 <form class="staticpage_password_form" action="{$staticpage_form_url}" method="post">
14 <fieldset>
15 <legend>{$CONST.STATICPAGE_PASSWORD_NOTICE}</legend>
0b49d8d @yellowled Got rid of (X)HTML syntax for self-closing tags.
authored
16 <input name="serendipity[pass]" type="password" value="">
17 <input name="submit" type="submit" value="{$CONST.GO}" >
da9748f Initial version.
Matthias Mees authored
18 </fieldset>
19 </form>
20 {else}
456530e Added switches to not emit empty content containers.
Matthias Mees authored
21 {if $staticpage_precontent}
4ccf5c6 Added .content class to some elements.
Matthias Mees authored
22 <div class="clearfix content serendipity_preface">
da9748f Initial version.
Matthias Mees authored
23 {$staticpage_precontent}
24 </div>
456530e Added switches to not emit empty content containers.
Matthias Mees authored
25 {/if}
45ca085 Fixed switches to not emit empty content containers.
Matthias Mees authored
26 {if $staticpage_content}
1ab6ce0 @yellowled Fixes for lists in static pages.
authored
27 <div class="clearfix content {if $staticpage_articleformat}serendipity_entry_body{else}staticpage_content{/if}">
da9748f Initial version.
Matthias Mees authored
28 {$staticpage_content}
29 </div>
456530e Added switches to not emit empty content containers.
Matthias Mees authored
30 {/if}
da9748f Initial version.
Matthias Mees authored
31 {/if}
32 {if $staticpage_author or $staticpage_lastchange or $staticpage_adminlink}
33 <footer class="staticpage_metainfo">
9f040f5 @yellowled Proper footer markup.
authored
34 <p>
da9748f Initial version.
Matthias Mees authored
35 {if $staticpage_author}
8ab132e @yellowled Makes it possible to suppress author name on static pages as well.
authored
36 <span class="single_user"><span class="visuallyhidden">{$CONST.POSTED_BY} </span>{$staticpage_author|@escape}
da9748f Initial version.
Matthias Mees authored
37 {/if}
8ab132e @yellowled Makes it possible to suppress author name on static pages as well.
authored
38 {if $staticpage_author AND $staticpage_lastchange} | </span>{/if}
da9748f Initial version.
Matthias Mees authored
39 {if $staticpage_lastchange}
96e138b @yellowled Fixes static page date format, hat tip to @ophian.
authored
40 <span class="visuallyhidden">{$CONST.ON} </span><time datetime="{$staticpage_lastchange|@serendipity_html5time}" pubdate>{$staticpage_lastchange|@formatTime:$template_option.date_format}</time>
da9748f Initial version.
Matthias Mees authored
41 {/if}
42 {if $staticpage_adminlink AND $staticpage_adminlink.page_user}
43 | <a href="{$staticpage_adminlink.link_edit}">{$staticpage_adminlink.link_name|@escape}</a>
44 {/if}
9f040f5 @yellowled Proper footer markup.
authored
45 </p>
da9748f Initial version.
Matthias Mees authored
46 </footer>
47 {/if}
0010359 @yellowled Static pages should probably be articles.
authored
48 </article>
Something went wrong with that request. Please try again.