Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial version.

  • Loading branch information...
commit da9748f9699c07de4cf0c664377f5b5f5a6252cb 1 parent 8171688
Matthias Mees authored
View
48 commentform.tpl
@@ -0,0 +1,48 @@
+<div id="serendipityCommentFormC" class="serendipityCommentForm">
+ <div id="serendipity_replyform_0"></div>
+ <a id="serendipity_CommentForm"></a>
+ <form id="serendipity_comment" action="{$commentform_action}#feedback" method="post">
+ <div><input type="hidden" name="serendipity[entry_id]" value="{$commentform_id}"/></div>
+ <!-- TODO: Add placeholder text for input form fields; placeholders should be s9y lang variables -->
+ <div class="form_field">
+ <label for="serendipity_commentform_name">{$CONST.NAME}</label>
+ <input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}"/>
+ </div>
+ <div class="form_field">
+ <label for="serendipity_commentform_email">{$CONST.EMAIL}</label>
+ <input id="serendipity_commentform_email" name="serendipity[email]" type="email" value="{$commentform_email}"/>
+ </div>
+ <div class="form_field">
+ <label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label>
+ <input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}"/>
+ </div>
+ <div class="form_field">
+ <label for="serendipity_replyTo">{$CONST.IN_REPLY_TO}</label>
+ {$commentform_replyTo}
+ </div>
+ <div class="form_tarea">
+ <label for="serendipity_commentform_comment">{$CONST.COMMENT}</label>
+ <textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" cols="40">{$commentform_data}</textarea>
+ </div>
+ {serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
+{if $is_commentform_showToolbar}
+ <div class="form_toolbar">
+ <div class="form_box">
+ <input id="checkbox_remember" name="serendipity[remember]" type="checkbox" {$commentform_remember}/><label for="checkbox_remember">{$CONST.REMEMBER_INFO}</label>
+ </div>
+ {if $is_allowSubscriptions}
+ <div class="form_box">
+ <input id="checkbox_subscribe" name="serendipity[subscribe]" type="checkbox" {$commentform_subscribe} /><label for="checkbox_subscribe">{$CONST.SUBSCRIBE_TO_THIS_ENTRY}</label>
+ </div>
+ {/if}
+ </div>
+{/if}
+{if $is_moderate_comments}
+ <p class="serendipity_msg_important">{$CONST.COMMENTS_WILL_BE_MODERATED}</p>
+{/if}
+ <div class="form_button">
+ <input id="serendipity_submit" name="serendipity[submit]" type="submit" value="{$CONST.SUBMIT_COMMENT}"/>
+ <input id="serendipity_preview" name="serendipity[preview]" type="submit" value="{$CONST.PREVIEW}"/>
+ </div>
+</form>
+</div>
View
29 comments.tpl
@@ -0,0 +1,29 @@
+{foreach from=$comments item=comment name="comments"}
+<!-- TODO: * find a robust solution for threaded comments -->
+<!-- * revise heading level -->
+<!-- * jQuery code for admin functions -->
+<article id="c{$comment.id}" class="serendipity_comment{if $entry.author == $comment.author} serendipity_comment_author_self{/if} {cycle values="odd, even"}">
+ <h4>{if $comment.url}<a href="{$comment.url}">{/if}{$comment.author|@default:$CONST.ANONYMOUS}{if $comment.url}</a>{/if} {$CONST.ON} <time datetime="{$comment.timestamp|@formatTime:'%Y-%m-%dT%H:%M:%S'}" pubdate>{$comment.timestamp|@formatTime:$template_option.date_format}</time>:</h4>
+
+ <div class="serendipity_commentBody">
+ {if $comment.body == 'COMMENT_DELETED'}
+ {$CONST.COMMENT_IS_DELETED}
+ {else}
+ {$comment.body}
+ {/if}
+ </div>
+
+ <footer>
+ <a class="comment_source_trace" href="#c{$comment.id}">#{$comment.trace}</a>
+ {if $entry.is_entry_owner}
+ | <a class="comment_source_ownerlink" href="{$comment.link_delete}" onclick="return confirm('{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}');">{$CONST.DELETE}</a>)
+ {/if}
+ {if $entry.allow_comments AND $comment.body != 'COMMENT_DELETED'}
+ | <a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}'; {$comment_onchange}">{$CONST.REPLY}</a>
+ <div id="serendipity_replyform_{$comment.id}"></div>
+ {/if}
+ </footer>
+</article>
+{foreachelse}
+<p class="nocomments">{$CONST.NO_COMMENTS}</p>
+{/foreach}
View
36 config.inc.php
@@ -0,0 +1,36 @@
+<?php
+if (IN_serendipity !== true) { die ("Don't hack!"); }
+
+$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
+if (file_exists($probelang)) { include $probelang; }
+include dirname(__FILE__) . '/lang_en.inc.php';
+
+$serendipity['smarty']->assign(array('currpage'=> "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));
+$serendipity['smarty']->assign(array('currpage2'=> $_SERVER['REQUEST_URI']));
+
+function serendipity_plugin_api_event_hook($event, &$bag, &$eventData, $addData = null) {
+ global $serendipity;
+ switch($event) { case 'frontend_footer': echo '<!--PLUGIN API-->'; }
+ return true;
+}
+
+$template_config = array(
+ array(
+ 'var' => 'date_format',
+ 'name' => GENERAL_PLUGIN_DATEFORMAT . " (http://php.net/strftime)",
+ 'type' => 'select',
+ 'default' => DATE_FORMAT_ENTRY,
+ 'select_values' => array(DATE_FORMAT_ENTRY => DATE_FORMAT_ENTRY,
+ '%a, %e. %B %Y' => '%a, %e. %B %Y',
+ '%d-%m-%y' => '%d-%m-%y',
+ '%m-%d-%y' => '%m-%d-%y',
+ '%a %d-%m-%y' => '%a %d-%m-%y',
+ '%a %m-%d-%y' => '%a %m-%d-%y',
+ '%b %d' => '%b %d',
+ "%b %d '%y" => "%b %d '%y")
+ ),
+);
+
+$template_global_config = array('navigation' => true);
+$template_loaded_config = serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option']);
+serendipity_loadGlobalThemeOptions($template_config, $template_loaded_config, $template_global_config);
View
7 content.tpl
@@ -0,0 +1,7 @@
+{if $searchresult_tooShort or $searchresult_error or $searchresult_noEntries or $searchresult_results}
+ <p class="serendipity_search"><b>{$CONST.QUICKSEARCH}:</b> {$content_message}</p>
+{elseif $content_message}
+ <p class="content_msg">{$content_message}</p>
+{/if}
+{$ENTRIES}
+{$ARCHIVES}
View
142 entries.tpl
@@ -0,0 +1,142 @@
+<!-- TODO: * jQuery code for trackback link etc. -->
+{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
+{foreach from=$entries item="dategroup"}
+ {foreach from=$dategroup.entries item="entry"}
+ <article id="post_{$entry.id}" class="serendipity_entry{if $dategroup.is_sticky} sticky{/if}" role="article">
+ <header>
+ <h3><a href="{$entry.link}">{$entry.title}</a></h3>
+
+ <span class="serendipity_byline">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} <time datetime="{$entry.timestamp|@formatTime:'%Y-%m-%dT%H:%M:%S'}" pubdate>{$entry.timestamp|@formatTime:$template_option.date_format}</time></span>
+
+ {if $entry.categories}
+ <span class="serendipity_entryIcon">
+ {foreach from=$entry.categories item="entry_category"}
+ {if $entry_category.category_icon}
+ <a href="{$entry_category.category_link}"><img title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}"/></a>
+ {/if}
+ {/foreach}
+ </span>
+ {/if}
+ </header>
+
+ <div class="clearfix serendipity_entry_body">
+ {$entry.body}
+ {if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
+ <a class="read_more" href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a>
+ {/if}
+ </div>
+ {if $entry.is_extended}
+ <div id="extended">
+ {$entry.extended}
+ </div>
+ {/if}
+
+ <footer>
+ {if $entry.categories}
+ {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
+ {/if}
+ {if $entry.has_comments}
+ | <a href="{$entry.link}#comments" title="{$entry.comments} {$entry.label_comments}{if $entry.has_trackbacks}, {$entry.trackbacks} {$entry.label_trackbacks}{/if}">{$entry.comments} {$entry.label_comments}</a>
+ {/if}
+ {if $entry.is_entry_owner and not $is_preview}
+ | <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>
+ {/if}
+ {$entry.add_footer}
+ {$entry.plugin_display_dat}
+ </footer>
+
+ <!--
+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <rdf:Description
+ rdf:about="{$entry.link_rdf}"
+ trackback:ping="{$entry.link_trackback}"
+ dc:title="{$entry.title_rdf|@default:$entry.title}"
+ dc:identifier="{$entry.rdf_ident}" />
+ </rdf:RDF>
+ -->
+
+ {if $is_single_entry and not $is_preview}
+ {if $CONST.DATA_UNSUBSCRIBED}
+ <p class="serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</p>
+ {/if}
+ {if $CONST.DATA_TRACKBACK_DELETED}
+ <p class="serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</p>
+ {/if}
+ {if $CONST.DATA_TRACKBACK_APPROVED}
+ <p class="serendipity_msg_notice">{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}</p>
+ {/if}
+ {if $CONST.DATA_COMMENT_DELETED}
+ <p class="serendipity_msg_notice">{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}</p>
+ {/if}
+ {if $CONST.DATA_COMMENT_APPROVED}
+ <p class="serendipity_msg_notice">{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}</p>
+ {/if}
+
+ <section id="trackbacks" class="serendipity_comments">
+ <h3>{$CONST.TRACKBACKS}</h3>
+
+ <a class="trackback_url" rel="nofollow" href="{$entry.link_trackback}" onclick="alert('{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape:html}'); return false;" title="{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape}">{$CONST.TRACKBACK_SPECIFIC}</a>
+
+ {serendipity_printTrackbacks entry=$entry.id}
+ </section>
+
+ <section id="comments" class="serendipity_comments">
+ <h3>{$CONST.COMMENTS}</h3>
+
+ <p>{$CONST.DISPLAY_COMMENTS_AS}
+ {if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
+ {$CONST.COMMENTS_VIEWMODE_LINEAR} | <a href="{$entry.link_viewmode_threaded}#comments" rel="nofollow">{$CONST.COMMENTS_VIEWMODE_THREADED}</a>
+ {else}
+ <a rel="nofollow" href="{$entry.link_viewmode_linear}#comments">{$CONST.COMMENTS_VIEWMODE_LINEAR}</a> | {$CONST.COMMENTS_VIEWMODE_THREADED}
+ {/if}
+ </p>
+
+ {serendipity_printComments entry=$entry.id mode=$entry.viewmode}
+ {if $entry.is_entry_owner}
+ {if $entry.allow_comments}
+ <a href="{$entry.link_deny_comments}">{$CONST.COMMENTS_DISABLE}</a>
+ {else}
+ <a href="{$entry.link_allow_comments}">{$CONST.COMMENTS_ENABLE}</a>
+ {/if}
+ {/if}
+ </section>
+ <a id="feedback"></a>
+ {foreach from=$comments_messagestack item="message"}
+ <p class="serendipity_msg_important">{$message}</p>
+ {/foreach}
+ {if $is_comment_added}
+ <p class="serendipity_msg_notice">{$CONST.COMMENT_ADDED}</p>
+ {elseif $is_comment_moderate}
+ <p class="serendipity_msg_notice">{$CONST.COMMENT_ADDED}: {$CONST.THIS_COMMENT_NEEDS_REVIEW}</p>
+ {elseif not $entry.allow_comments}
+ <p class="serendipity_msg_important">{$CONST.COMMENTS_CLOSED}</p>
+ {else}
+ <section id="respond" class="serendipity_section_commentform">
+ <h3>{$CONST.ADD_COMMENT}</h3>
+ {$COMMENTFORM}
+ </section>
+ {/if}
+ {/if}
+ {$entry.backend_preview}
+ </article>
+ {/foreach}
+{foreachelse}
+ {if not $plugin_clean_page}
+ <p>{$CONST.NO_ENTRIES_TO_PRINT}</p>
+ {/if}
+{/foreach}
+
+ <nav class="serendipity_pagination" role="navigation">
+ {if $footer_info or $footer_prev_page or $footer_next_page}
+ <ul class="clearfix">
+ {if $footer_info}
+ <li class="info"><span>{$footer_info}</span></li>
+ {/if}
+ <li class="prev">{if $footer_prev_page}<a href="{$footer_prev_page}">{/if}{if $footer_prev_page}&larr; {$CONST.PREVIOUS_PAGE}{else}&nbsp;{/if}{if $footer_prev_page}</a>{/if}</li>
+ <li class="next">{if $footer_next_page}<a href="{$footer_next_page}">{/if}{if $footer_next_page}{$CONST.NEXT_PAGE} &rarr;{else}&nbsp;{/if}{if $footer_next_page}</a>{/if}</li>
+ </ul>
+ {/if}
+ </nav>
+ {serendipity_hookPlugin hook="entries_footer"}
View
17 entries_archives.tpl
@@ -0,0 +1,17 @@
+{serendipity_hookPlugin hook="entries_header"}
+<h2>{$CONST.ARCHIVES}</h2>
+{foreach from=$archives item="archive"}
+<section class="archives_year {cycle values="arch_odd, arch_even"}">
+ <h3>{$archive.year}</h3>
+
+ <ul class="plainList">
+ {foreach from=$archive.months item="month"}
+ <li class="archives_month">
+ <span class="archives_date">{if $month.entry_count}<a href="{$month.link}" title="{$CONST.VIEW_FULL}">{/if}{$month.date|@formatTime:"%B"}{if $month.entry_count}</a>{/if}:</span>
+ <span class="archives_count">{if $month.entry_count}<a href="{$month.link_summary}" title="{$CONST.VIEW_TOPICS}">{/if}{$month.entry_count} {$CONST.ENTRIES}{if $month.entry_count}</a>{/if}</span>
+ </li>
+ {/foreach}
+ </ul>
+</section>
+{/foreach}
+{serendipity_hookPlugin hook="entries_footer"}
View
13 entries_summary.tpl
@@ -0,0 +1,13 @@
+{serendipity_hookPlugin hook="entries_header"}
+<h2>{$CONST.TOPICS_OF} {$dateRange.0|@formatTime:"%B %Y"}</h2>
+
+<ul class="archives_summary plainList">
+{foreach from=$entries item="sentries"}
+ {foreach from=$sentries.entries item="entry"}
+ <li><a href="{$entry.link}">{$entry.title}</a>
+ <span class="serendipity_byline">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} <time datetime="{$entry.timestamp|@formatTime:'%Y-%m-%dT%H:%M:%S'}" pubdate>{$entry.timestamp|@formatTime:$template_option.date_format}</time></span>
+ </li>
+ {/foreach}
+{/foreach}
+</ul>
+{serendipity_hookPlugin hook="entries_footer"}
View
BIN  img/xml.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
71 index.tpl
@@ -0,0 +1,71 @@
+{if $is_embedded != true}
+<!doctype html>
+<!--[if lt IE 7 ]> <html class="no-js ie6" lang="{$lang}"> <![endif]-->
+<!--[if IE 7 ]> <html class="no-js ie7" lang="{$lang}"> <![endif]-->
+<!--[if IE 8 ]> <html class="no-js ie8" lang="{$lang}"> <![endif]-->
+<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="{$lang}"> <!--<![endif]-->
+<head>
+ <meta charset="{$head_charset}">
+ <title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
+ <meta name="generator" content="Serendipity v.{$head_version}"/>
+ <link rel="stylesheet" href="{$head_link_stylesheet}"/>
+ <script src="{serendipity_getFile file="js/modernizr-2.0.min.js"}"></script>
+ <link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2"/>
+ <link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml"/>
+{if $entry_id}
+ <link rel="pingback" href="{$serendipityBaseURL}comment.php?type=pingback&amp;entry_id={$entry_id}"/>
+{/if}
+{serendipity_hookPlugin hook="frontend_header"}
+</head>
+<body>
+{else}
+{serendipity_hookPlugin hook="frontend_header"}
+{/if}
+{if $is_raw_mode != true}
+ <header id="banner" class="clearfix container{if $leftSidebarElements > 0 && $rightSidebarElements > 0} col3{elseif $leftSidebarElements > 0 && $rightSidebarElements == 0} col2l{else} col2r{/if}" role="banner">
+ <div id="identity">
+ <h1><a href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle}</a></h1>
+ <p>{$head_subtitle|@default:$blogDescription}</p>
+ </div>
+
+ <form id="search" action="{$serendipityHTTPPath}{$serendipityIndexFile}" method="get" role="search">
+ <div>
+ <input type="hidden" name="serendipity[action]" value="search"/>
+ <label for="searchterm" class="visuallyhidden">{$CONST.QUICKSEARCH}</label>
+ <input id="searchterm" name="serendipity[searchTerm]" type="search" placeholder="{$CONST.QUICKSEARCH}" value=""/>
+ <input id="searchsend" name="serendipity[searchButton]" class="visuallyhidden" type="submit" value="{$CONST.GO}"/>
+ </div>
+ </form>
+ {serendipity_hookPlugin hook="quicksearch_plugin" hookAll="true"}
+ </header>
+
+ <nav id="primary-nav" role="navigation">
+ <ul class="clearfix container">{foreach from=$navlinks item="navlink" name="sbnav"}<li{if $smarty.foreach.sbnav.first} class="first"{/if}{if $smarty.foreach.sbnav.last} class="last"{/if}>{if $currpage==$navlink.href or $currpage2==$navlink.href}<span>{else}<a href="{$navlink.href}">{/if}{$navlink.title}{if $currpage==$navlink.href or $currpage2==$navlink.href}</span>{else}</a>{/if}</li>{/foreach}</ul>
+ </nav>
+
+ <div id="main" class="clearfix container{if $leftSidebarElements > 0 && $rightSidebarElements > 0} col3{elseif $leftSidebarElements > 0 && $rightSidebarElements == 0} col2l{else} col2r{/if}">
+ <section id="content" class="clearfix" role="main">
+ {$CONTENT}
+ </section>
+ {if $leftSidebarElements > 0}
+ <aside id="sidebar_left" role="complementary">
+ {serendipity_printSidebar side="left"}
+ </aside>
+ {/if}
+ {if $rightSidebarElements > 0}
+ <aside id="sidebar_right" role="complementary">
+ {serendipity_printSidebar side="right"}
+ </aside>
+ {/if}
+ </div>
+
+ <footer id="colophon" class="container" role="contentinfo">
+ <small lang="en">Powered by <a href="http://s9y.org">Serendipity</a> &amp; the <i>2k11</i> theme.</small>
+ </footer>
+{/if}
+{$raw_data}
+{serendipity_hookPlugin hook="frontend_footer"}
+{if $is_embedded != true}
+</body>
+</html>
+{/if}
View
4 info.txt
@@ -0,0 +1,4 @@
+Name: 2k11
+Author: Matthias Mees
+Date: 2011-07-27
+Require Serendipity: 1.6
View
4 js/modernizr-2.0.min.js
@@ -0,0 +1,4 @@
+/* Modernizr 2.0.6 (Custom Build) | MIT & BSD
+ * Contains: fontface | backgroundsize | borderimage | borderradius | boxshadow | flexbox | hsla | multiplebgs | opacity | rgba | textshadow | cssanimations | csscolumns | generatedcontent | cssgradients | cssreflections | csstransforms | csstransforms3d | csstransitions | applicationcache | canvas | canvastext | draganddrop | hashchange | history | audio | video | indexeddb | input | inputtypes | localstorage | postmessage | sessionstorage | websockets | websqldatabase | webworkers | geolocation | inlinesvg | smil | svg | svgclippaths | touch | webgl | iepp | respond | mq | cssclasses | addtest | prefixed | teststyles | testprop | testallprops | hasevent | prefixes | domprefixes | load
+ */
+;window.Modernizr=function(a,b,c){function I(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)t[a[b]]=a[b]in l;return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)l.setAttribute("type",f=a[d]),e=l.type!=="text",e&&(l.value=m,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,g.removeChild(l)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=l.checkValidity&&l.checkValidity()===!1:/^color$/.test(f)?(g.appendChild(l),g.offsetWidth,e=l.value!=m,g.removeChild(l)):e=l.value!=m)),s[a[d]]=!!e;return s}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function G(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+p.join(c+" ")+c).split(" ");return F(d,b)}function F(a,b){for(var d in a)if(k[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function E(a,b){return!!~(""+a).indexOf(b)}function D(a,b){return typeof a===b}function C(a,b){return B(o.join(a+";")+(b||""))}function B(a){k.cssText=a}var d="2.0.6",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l=b.createElement("input"),m=":)",n=Object.prototype.toString,o=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),p="Webkit Moz O ms Khtml".split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v=function(a,c,d,e){var f,h,j,k=b.createElement("div");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:i+(d+1),k.appendChild(j);f=["&shy;","<style>",a,"</style>"].join(""),k.id=i,k.innerHTML+=f,g.appendChild(k),h=c(k,a),k.parentNode.removeChild(k);return!!h},w=function(b){if(a.matchMedia)return matchMedia(b).matches;var c;v("@media "+b+" { #"+i+" { position: absolute; } }",function(b){c=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position=="absolute"});return c},x=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=D(e[d],"function"),D(e[d],c)||(e[d]=c),e.removeAttribute(d))),e=null;return f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),y,z={}.hasOwnProperty,A;!D(z,c)&&!D(z.call,c)?A=function(a,b){return z.call(a,b)}:A=function(a,b){return b in a&&D(a.constructor.prototype[b],c)};var H=function(c,d){var f=c.join(""),g=d.length;v(f,function(c,d){var f=b.styleSheets[b.styleSheets.length-1],h=f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"",i=c.childNodes,j={};while(g--)j[i[g].id]=i[g];e.touch="ontouchstart"in a||j.touch.offsetTop===9,e.csstransforms3d=j.csstransforms3d.offsetLeft===9,e.generatedcontent=j.generatedcontent.offsetHeight>=1,e.fontface=/src/i.test(h)&&h.indexOf(d.split(" ")[0])===0},g,d)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",o.join("touch-enabled),("),i,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",o.join("transform-3d),("),i,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',m,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);r.flexbox=function(){function c(a,b,c,d){a.style.cssText=o.join(b+":"+c+";")+(d||"")}function a(a,b,c,d){b+=":",a.style.cssText=(b+o.join(c+";"+b)).slice(0,-b.length)+(d||"")}var d=b.createElement("div"),e=b.createElement("div");a(d,"display","box","width:42px;padding:0;"),c(e,"box-flex","1","width:10px;"),d.appendChild(e),g.appendChild(d);var f=e.offsetWidth===42;d.removeChild(e),g.removeChild(d);return f},r.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},r.canvastext=function(){return!!e.canvas&&!!D(b.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=function(){return!!a.WebGLRenderingContext},r.touch=function(){return e.touch},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){var b=!!a.openDatabase;return b},r.indexedDB=function(){for(var b=-1,c=p.length;++b<c;)if(a[p[b].toLowerCase()+"IndexedDB"])return!0;return!!a.indexedDB},r.hashchange=function(){return x("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},r.history=function(){return!!a.history&&!!history.pushState},r.draganddrop=function(){return x("dragstart")&&x("drop")},r.websockets=function(){for(var b=-1,c=p.length;++b<c;)if(a[p[b]+"WebSocket"])return!0;return"WebSocket"in a},r.rgba=function(){B("background-color:rgba(150,255,150,.5)");return E(k.backgroundColor,"rgba")},r.hsla=function(){B("background-color:hsla(120,40%,100%,.5)");return E(k.backgroundColor,"rgba")||E(k.backgroundColor,"hsla")},r.multiplebgs=function(){B("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(k.background)},r.backgroundsize=function(){return G("backgroundSize")},r.borderimage=function(){return G("borderImage")},r.borderradius=function(){return G("borderRadius")},r.boxshadow=function(){return G("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){C("opacity:.55");return/^0.55$/.test(k.opacity)},r.cssanimations=function(){return G("animationName")},r.csscolumns=function(){return G("columnCount")},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";B((a+o.join(b+a)+o.join(c+a)).slice(0,-a.length));return E(k.backgroundImage,"gradient")},r.cssreflections=function(){return G("boxReflect")},r.csstransforms=function(){return!!F(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},r.csstransforms3d=function(){var a=!!F(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in g.style&&(a=e.csstransforms3d);return a},r.csstransitions=function(){return G("transitionProperty")},r.fontface=function(){return e.fontface},r.generatedcontent=function(){return e.generatedcontent},r.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType){c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';c.h264=a.canPlayType(d+'"')||a.canPlayType(d+', mp4a.40.2"'),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(e){}return c},r.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),c.mp3=a.canPlayType("audio/mpeg;"),c.wav=a.canPlayType('audio/wav; codecs="1"'),c.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}catch(d){}return c},r.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}},r.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}},r.webworkers=function(){return!!a.Worker},r.applicationcache=function(){return!!a.applicationCache},r.svg=function(){return!!b.createElementNS&&!!b.createElementNS(q.svg,"svg").createSVGRect},r.inlinesvg=function(){var a=b.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==q.svg},r.smil=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"animate")))},r.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"clipPath")))};for(var J in r)A(r,J)&&(y=J.toLowerCase(),e[y]=r[J](),u.push((e[y]?"":"no-")+y));e.input||I(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)A(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return;b=typeof b=="boolean"?b:!!b(),g.className+=" "+(b?"":"no-")+a,e[a]=b}return e},B(""),j=l=null,a.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function s(a){var b=-1;while(++b<g)a.createElement(f[b])}a.iepp=a.iepp||{};var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",f=e.split("|"),g=f.length,h=new RegExp("(^|\\s)("+e+")","gi"),i=new RegExp("<(/*)("+e+")","gi"),j=/^\s*[\{\}]\s*$/,k=new RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=b.createDocumentFragment(),m=b.documentElement,n=m.firstChild,o=b.createElement("body"),p=b.createElement("style"),q=/print|all/,r;d.getCSS=function(a,b){if(a+""===c)return"";var e=-1,f=a.length,g,h=[];while(++e<f){g=a[e];if(g.disabled)continue;b=g.media||b,q.test(b)&&h.push(d.getCSS(g.imports,b),g.cssText),b="all"}return h.join("")},d.parseCSS=function(a){var b=[],c;while((c=k.exec(a))!=null)b.push(((j.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(h,"$1.iepp_$2")+c[4]);return b.join("\n")},d.writeHTML=function(){var a=-1;r=r||b.body;while(++a<g){var c=b.getElementsByTagName(f[a]),d=c.length,e=-1;while(++e<d)c[e].className.indexOf("iepp_")<0&&(c[e].className+=" iepp_"+f[a])}l.appendChild(r),m.appendChild(o),o.className=r.className,o.id=r.id,o.innerHTML=r.innerHTML.replace(i,"<$1font")},d._beforePrint=function(){p.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,"all")),d.writeHTML()},d.restoreHTML=function(){o.innerHTML="",m.removeChild(o),m.appendChild(r)},d._afterPrint=function(){d.restoreHTML(),p.styleSheet.cssText=""},s(b),s(l);d.disablePP||(n.insertBefore(p,n.firstChild),p.media="print",p.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint))}(a,b),e._version=d,e._prefixes=o,e._domPrefixes=p,e.mq=w,e.hasEvent=x,e.testProp=function(a){return F([a])},e.testAllProps=G,e.testStyles=v,e.prefixed=function(a){return G(a,"pfx")},g.className=g.className.replace(/\bno-js\b/,"")+(f?" js "+u.join(" "):"");return e}(this,this.document),function(a,b){function u(){r(!0)}a.respond={},respond.update=function(){},respond.mediaQueriesSupported=b;if(!b){var c=a.document,d=c.documentElement,e=[],f=[],g=[],h={},i=30,j=c.getElementsByTagName("head")[0]||d,k=j.getElementsByTagName("link"),l=[],m=function(){var b=k,c=b.length,d=0,e,f,g,i;for(;d<c;d++)e=b[d],f=e.href,g=e.media,i=e.rel&&e.rel.toLowerCase()==="stylesheet",!!f&&i&&!h[f]&&(!/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test(f)||f.replace(RegExp.$1,"").split("/")[0]===a.location.host?l.push({href:f,media:g}):h[f]=!0);n()},n=function(){if(l.length){var a=l.shift();s(a.href,function(b){o(b,a.href,a.media),h[a.href]=!0,n()})}},o=function(a,b,c){var d=a.match(/@media[^\{]+\{([^\{\}]+\{[^\}\{]+\})+/gi),g=d&&d.length||0,b=b.substring(0,b.lastIndexOf("/")),h=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},i=!g&&c,j=0,k,l,m,n,o;b.length&&(b+="/"),i&&(g=1);for(;j<g;j++){k=0,i?(l=c,f.push(h(a))):(l=d[j].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,f.push(RegExp.$2&&h(RegExp.$2))),n=l.split(","),o=n.length;for(;k<o;k++)m=n[k],e.push({media:m.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:f.length-1,minw:m.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:m.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}r()},p,q,r=function(a){var b="clientWidth",h=d[b],l=c.compatMode==="CSS1Compat"&&h||c.body[b]||h,m={},n=c.createDocumentFragment(),o=k[k.length-1],s=(new Date).getTime();if(a&&p&&s-p<i)clearTimeout(q),q=setTimeout(r,i);else{p=s;for(var t in e){var u=e[t];if(!u.minw&&!u.maxw||(!u.minw||u.minw&&l>=u.minw)&&(!u.maxw||u.maxw&&l<=u.maxw))m[u.media]||(m[u.media]=[]),m[u.media].push(f[u.rules])}for(var t in g)g[t]&&g[t].parentNode===j&&j.removeChild(g[t]);for(var t in m){var v=c.createElement("style"),w=m[t].join("\n");v.type="text/css",v.media=t,v.styleSheet?v.styleSheet.cssText=w:v.appendChild(c.createTextNode(w)),n.appendChild(v),g.push(v)}j.insertBefore(n,o.nextSibling)}},s=function(a,b){var c=t();if(!!c){c.open("GET",a,!0),c.onreadystatechange=function(){c.readyState==4&&(c.status==200||c.status==304)&&b(c.responseText)};if(c.readyState==4)return;c.send()}},t=function(){var a=!1,b=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new XMLHttpRequest}],c=b.length;while(c--){try{a=b[c]()}catch(d){continue}break}return function(){return a}}();m(),respond.update=m,a.addEventListener?a.addEventListener("resize",u,!1):a.attachEvent&&a.attachEvent("onresize",u)}}(this,Modernizr.mq("only all")),function(a,b,c){function k(a){return!a||a=="loaded"||a=="complete"}function j(){var a=1,b=-1;while(p.length- ++b)if(p[b].s&&!(a=p[b].r))break;a&&g()}function i(a){var c=b.createElement("script"),d;c.src=a.s,c.onreadystatechange=c.onload=function(){!d&&k(c.readyState)&&(d=1,j(),c.onload=c.onreadystatechange=null)},m(function(){d||(d=1,j())},H.errorTimeout),a.e?c.onload():n.parentNode.insertBefore(c,n)}function h(a){var c=b.createElement("link"),d;c.href=a.s,c.rel="stylesheet",c.type="text/css";if(!a.e&&(w||r)){var e=function(a){m(function(){if(!d)try{a.sheet.cssRules.length?(d=1,j()):e(a)}catch(b){b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,m(function(){j()},0)):e(a)}},0)};e(c)}else c.onload=function(){d||(d=1,m(function(){j()},0))},a.e&&c.onload();m(function(){d||(d=1,j())},H.errorTimeout),!a.e&&n.parentNode.insertBefore(c,n)}function g(){var a=p.shift();q=1,a?a.t?m(function(){a.t=="c"?h(a):i(a)},0):(a(),j()):q=0}function f(a,c,d,e,f,h){function i(){!o&&k(l.readyState)&&(r.r=o=1,!q&&j(),l.onload=l.onreadystatechange=null,m(function(){u.removeChild(l)},0))}var l=b.createElement(a),o=0,r={t:d,s:c,e:h};l.src=l.data=c,!s&&(l.style.display="none"),l.width=l.height="0",a!="object"&&(l.type=d),l.onload=l.onreadystatechange=i,a=="img"?l.onerror=i:a=="script"&&(l.onerror=function(){r.e=r.r=1,g()}),p.splice(e,0,r),u.insertBefore(l,s?null:n),m(function(){o||(u.removeChild(l),r.r=r.e=o=1,j())},H.errorTimeout)}function e(a,b,c){var d=b=="c"?z:y;q=0,b=b||"j",C(a)?f(d,a,b,this.i++,l,c):(p.splice(this.i++,0,a),p.length==1&&g());return this}function d(){var a=H;a.loader={load:e,i:0};return a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=r&&!s,u=s?l:n.parentNode,v=a.opera&&o.call(a.opera)=="[object Opera]",w="webkitAppearance"in l.style,x=w&&"async"in b.createElement("script"),y=r?"object":v||x?"img":"script",z=w?"img":y,A=Array.isArray||function(a){return o.call(a)=="[object Array]"},B=function(a){return Object(a)===a},C=function(a){return typeof a=="string"},D=function(a){return o.call(a)=="[object Function]"},E=[],F={},G,H;H=function(a){function f(a){var b=a.split("!"),c=E.length,d=b.pop(),e=b.length,f={url:d,origUrl:d,prefixes:b},g,h;for(h=0;h<e;h++)g=F[b[h]],g&&(f=g(f));for(h=0;h<c;h++)f=E[h](f);return f}function e(a,b,e,g,h){var i=f(a),j=i.autoCallback;if(!i.bypass){b&&(b=D(b)?b:b[a]||b[g]||b[a.split("/").pop().split("?")[0]]);if(i.instead)return i.instead(a,b,e,g,h);e.load(i.url,i.forceCSS||!i.forceJS&&/css$/.test(i.url)?"c":c,i.noexec),(D(b)||D(j))&&e.load(function(){d(),b&&b(i.origUrl,h,g),j&&j(i.origUrl,h,g)})}}function b(a,b){function c(a){if(C(a))e(a,h,b,0,d);else if(B(a))for(i in a)a.hasOwnProperty(i)&&e(a[i],h,b,i,d)}var d=!!a.test,f=d?a.yep:a.nope,g=a.load||a.both,h=a.callback,i;c(f),c(g),a.complete&&b.load(a.complete)}var g,h,i=this.yepnope.loader;if(C(a))e(a,0,i,0);else if(A(a))for(g=0;g<a.length;g++)h=a[g],C(h)?e(h,0,i,0):A(h)?H(h):B(h)&&b(h,i);else B(a)&&b(a,i)},H.addPrefix=function(a,b){F[a]=b},H.addFilter=function(a){E.push(a)},H.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",G=function(){b.removeEventListener("DOMContentLoaded",G,0),b.readyState="complete"},0)),a.yepnope=d()}(this,this.document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
View
35 plugin_calendar.tpl
@@ -0,0 +1,35 @@
+<table class="serendipity_calendar">
+<thead>
+ <tr>
+ {foreach from=$plugin_calendar_dow item="dow"}
+ <th scope="col"><abbr title="{$dow.date|@formatTime:"%A":false}">{$dow.date|@formatTime:"%a":false}</abbr></th>
+ {/foreach}
+ </tr>
+</thead>
+<tfoot>
+ <tr>
+ <td class="prev">
+ {if $plugin_calendar_head.minScroll le $plugin_calendar_head.month_date}
+ <a href="{$plugin_calendar_head.uri_previous}">&larr;<span class="visuallyhidden"> {$CONST.BACK}</span></a>
+ {/if}
+ </td>
+ <td class="current_month" colspan="5">
+ <a href="{$plugin_calendar_head.uri_month}">{$plugin_calendar_head.month_date|formatTime:"%B '%y":false}</a>
+ </td>
+ <td class="next">
+ {if $plugin_calendar_head.maxScroll ge $plugin_calendar_head.month_date}
+ <a href="{$plugin_calendar_head.uri_next}"><span class="visuallyhidden">{$CONST.FORWARD} </span>&rarr;</a>
+ {/if}
+ </td>
+ </tr>
+</tfoot>
+<tbody>
+{foreach from=$plugin_calendar_weeks item="week"}
+ <tr>
+ {foreach from=$week.days item="day"}
+ <td class="{$day.classes}"{if isset($day.properties.Title)} title="{$day.properties.Title}"{/if}>{if isset($day.properties.Active) and $day.properties.Active}<a href="{$day.properties.Link}">{/if}{$day.name|@default:"&#160;"}{if isset($day.properties.Active) and $day.properties.Active}</a>{/if}</td>
+ {/foreach}
+ </tr>
+{/foreach}
+</tbody>
+</table>
View
24 plugin_categories.tpl
@@ -0,0 +1,24 @@
+{if $is_form}
+<form id="serendipity_category_form" action="{$form_url}" method="post">
+{/if}
+ <!-- TODO: fix category nesting -->
+ <ul class="plainList">
+ {foreach from=$categories item="plugin_category"}
+ <li id="category_{$plugin_category.categoryid}" class="category_depth{$plugin_category.catdepth}">
+ {if $is_form}
+ <input name="serendipity[multiCat][]" type="checkbox" value="{$plugin_category.categoryid}"/>
+ {/if}
+ {if !empty($category_image)}
+ <a class="serendipity_xml_icon" href="{$plugin_category.feedCategoryURL}"><img src="{$category_image}" alt="XML"/></a>
+ {/if}
+ <a href="{$plugin_category.categoryURL}" title="{$plugin_category.category_description|escape}">{$plugin_category.category_name|escape}</a>
+ </li>
+ {/foreach}
+ </ul>
+{if $is_form}
+ <input class="category_submit" name="serendipity[isMultiCat]" type="submit" value="{$CONST.GO}"/>
+{/if}
+ <a class="category_link_all" href="{$form_url}?frontpage">{$CONST.ALL_CATEGORIES}</a>
+{if $is_form}
+</form>
+{/if}
View
55 plugin_contactform.tpl
@@ -0,0 +1,55 @@
+{if $plugin_contactform_articleformat}
+ <div class="serendipity_entry">
+{/if}
+ <h2>{if $plugin_contactform_articleformat}{$plugin_contactform_name}{else}{$plugin_contactform_pagetitle}{/if}</h2>
+
+ <div class="serendpity_preface">
+ {$plugin_contactform_preface}
+ </div>
+
+ {if $is_contactform_sent}
+ <p class="serendipity_msg_notice">{$plugin_contactform_sent}</p>
+ {else}
+ {if $is_contactform_error}
+ <p class="serendipity_msg_important">{$plugin_contactform_error}</p>
+ {foreach from=$comments_messagestack item="message"}
+ <p class="serendipity_msg_important">{$message}</p>
+ {/foreach}
+ {/if}
+
+ <div class="serendipityCommentForm">
+ <a id="serendipity_CommentForm"></a>
+
+ <form id="serendipity_comment" action="{$commentform_action}#feedback" method="post">
+ <div>
+ <input type="hidden" name="serendipity[subpage]" value="{$commentform_sname}"/>
+ <input type="hidden" name="serendipity[commentform]" value="true"/>
+ </div>
+ <!-- TODO: Add placeholder text for input form fields; placeholders should be s9y lang variables -->
+ <div class="form_field">
+ <label for="serendipity_commentform_name">{$CONST.NAME}</label>
+ <input id="serendipity_commentform_name" name="serendipity[name]" type="text" value="{$commentform_name}"/>
+ </div>
+
+ <div class="form_field">
+ <label for="serendipity_commentform_email">{$CONST.EMAIL}</label>
+ <input id="serendipity_commentform_email" name="serendipity[email]" type="email" value="{$commentform_email}"/>
+ </div>
+
+ <div class="form_field">
+ <label for="serendipity_commentform_url">{$CONST.HOMEPAGE}</label>
+ <input id="serendipity_commentform_url" name="serendipity[url]" type="url" value="{$commentform_url}"/>
+ </div>
+
+ <div class="form_tarea">
+ <label for="serendipity_commentform_comment">{$plugin_contactform_message}</label>
+ <textarea id="serendipity_commentform_comment" name="serendipity[comment]" rows="10" cols="40">{$commentform_data}</textarea>
+ </div>
+ {serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
+ <input id="serendipity_submit" name="serendipity[submit]" type="submit" value="{$CONST.SUBMIT_COMMENT}"/>
+ </form>
+ </div>
+ {/if}
+{if $plugin_contactform_articleformat}
+</div>
+{/if}
View
45 plugin_staticpage.tpl
@@ -0,0 +1,45 @@
+<div id="staticpage_{$staticpage_pagetitle|@makeFilename}" class="{if $staticpage_articleformat}serendipity_entry {/if}serendipity_staticpage">
+ <header>
+ <h2>{if $staticpage_articleformat}{$staticpage_articleformattitle|@escape}{else}{$staticpage_headline|@escape}{/if}</h2>
+ {if $staticpage_navigation AND $staticpage_shownavi}
+ {if is_array($staticpage_childpages)}
+ <ul id="staticpage_childpages">
+ {foreach from=$staticpage_childpages item="childpage"}
+ <li><a href="{$childpage.permalink|@escape}" title="{$childpage.pagetitle|@escape}">{$childpage.pagetitle|@escape}</a></li>
+ {/foreach}
+ </ul>
+ {/if}
+ {/if}
+ </header>
+{if $staticpage_pass AND $staticpage_form_pass != $staticpage_pass}
+ <form class="staticpage_password_form" action="{$staticpage_form_url}" method="post">
+ <fieldset>
+ <legend>{$CONST.STATICPAGE_PASSWORD_NOTICE}</legend>
+ <input name="serendipity[pass]" type="password" value=""/>
+ <input name="submit" type="submit" value="{$CONST.GO}" />
+ </fieldset>
+ </form>
+{else}
+ <div class="clearfix serendipity_preface">
+ {$staticpage_precontent}
+ </div>
+ <div class="clearfix staticpage_content">
+ {$staticpage_content}
+ </div>
+{/if}
+{if $staticpage_author or $staticpage_lastchange or $staticpage_adminlink}
+ <footer class="staticpage_metainfo">
+ <small>
+ {if $staticpage_author}
+ {$staticpage_author|@escape}
+ {/if}
+ {if $staticpage_lastchange}
+ | <time datetime="{$staticpage_lastchange|@formatTime:'%Y-%m-%dT%H:%M:%S'}">{$staticpage_lastchange|date_format:$template_option.date_format}</time>
+ {/if}
+ {if $staticpage_adminlink AND $staticpage_adminlink.page_user}
+ | <a href="{$staticpage_adminlink.link_edit}">{$staticpage_adminlink.link_name|@escape}</a>
+ {/if}
+ </small>
+ </footer>
+{/if}
+</div>
View
13 plugin_staticpage_searchresults.tpl
@@ -0,0 +1,13 @@
+<section class="staticpage_results">
+ <h3>{$CONST.STATICPAGE_SEARCHRESULTS|sprintf:$staticpage_searchresults}</h3>
+ {if $staticpage_results}
+ <ul>
+ {foreach from=$staticpage_results item="result"}
+ <li><span><a href="{$result.permalink|@escape}" title="{$result.pagetitle|@escape}">{$result.headline}</a> ({$result.realname})</span>
+ {$result.content|@strip_tags|@strip|@truncate:200:" ... "}</li>
+ {/foreach}
+ </ul>
+ {else}
+ <p>{$CONST.NO_ENTRIES_TO_PRINT}</p>
+ {/if}
+</section>
View
21 plugin_staticpage_sidebar.tpl
@@ -0,0 +1,21 @@
+{if !empty($staticpage_jsStr)}
+ <div class="staticpage_sbJsList">
+ {$staticpage_jsStr}
+ </div>
+{/if}
+{if !$staticpage_jsStr or empty($staticpage_jsStr)}
+ <ul class="plainList">
+ {if $frontpage_path}
+ <li><a href="{$frontpage_path}">{$CONST.PLUGIN_STATICPAGELIST_FRONTPAGE_LINKNAME}</a></li>
+ {/if}
+ {if is_array($staticpage_listContent) and !empty($staticpage_listContent)}
+ {foreach name="pageList" from=$staticpage_listContent item="pageList"}
+ {if !empty($pageList.permalink)}
+ <li class="depth_{$pageList.depth}"><a href="{$pageList.permalink}" title="{$pageList.pagetitle}">{$pageList.headline|truncate:20:"..."}</a></li>
+ {else}
+ <li class="depth_{$pageList.depth}">{$pageList.headline|truncate:20:"..."}</li>
+ {/if}
+ {/foreach}
+ {/if}
+ </ul>
+{/if}
View
16 sidebar.tpl
@@ -0,0 +1,16 @@
+{if $is_raw_mode}
+<div id="serendipity{$pluginside}SideBar">
+{/if}
+{foreach from=$plugindata item=item}
+{if $item.class != "serendipity_quicksearch_plugin"}
+ <section class="{$item.class}">
+ {if $item.title != ""}
+ <h3>{$item.title}</h3>
+ {/if}
+ <div class="sidebar_content">{$item.content}</div>
+ </section>
+{/if}
+{/foreach}
+{if $is_raw_mode}
+</div>
+{/if}
View
598 style.css
@@ -0,0 +1,598 @@
+/* HTML5 ✰ Boilerplate */
+html, body, div, span, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
+small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section, summary,
+time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+}
+
+article, aside, details, figcaption, figure,
+footer, header, hgroup, menu, nav, section { display: block; }
+
+blockquote, q { quotes: none; }
+blockquote:before, blockquote:after,
+q:before, q:after { content: ""; content: none; }
+ins { background-color: #ff9; color: #000; text-decoration: none; }
+mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
+del { text-decoration: line-through; }
+abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
+table { border-collapse: collapse; border-spacing: 0; }
+hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
+input, select { vertical-align: middle; }
+
+/*body { font:13px/1.231 sans-serif; *font-size:small; }*/
+/*select, input, textarea, button { font:99% sans-serif; }*/
+/*pre, code, kbd, samp { font-family: monospace, sans-serif; }*/
+
+html { overflow-y: scroll; }
+a:hover, a:active { outline: none; }
+ul, ol { margin-left: 2em; }
+ol { list-style-type: decimal; }
+nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
+/*small { font-size: 85%; }*/
+strong, th { font-weight: bold; }
+td { vertical-align: top; }
+sub, sup { font-size: 75%; line-height: 0; position: relative; }
+sup { top: -0.5em; }
+sub { bottom: -0.25em; }
+
+pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 15px; }
+textarea { overflow: auto; }
+.ie6 legend,.ie7 legend { margin-left: -7px; }
+input[type="radio"] { vertical-align: text-bottom; }
+/*input[type="checkbox"] { vertical-align: bottom; }*/
+.ie7 input[type="checkbox"] { vertical-align: baseline; }
+.ie6 input { vertical-align: text-bottom; }
+label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
+button, input, select, textarea { margin: 0; }
+input:valid, textarea:valid { }
+input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
+.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
+
+/*::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }*/
+/*::selection { background:#FF5E99; color:#fff; text-shadow: none; }*/
+/*a:link { -webkit-tap-highlight-color: #FF5E99; }*/
+button { width: auto; overflow: visible; }
+.ie7 img { -ms-interpolation-mode: bicubic; }
+
+body, select, input, textarea { color: #333; }
+h1, h2, h3, h4, h5, h6 { font-weight: bold; }
+/*a, a:active, a:visited { color: #607890; }*/
+/*a:hover { color: #036; }*/
+
+
+/**
+ * Primary styles
+ */
+
+/**
+ * s9y colors:
+ *
+ * dark blue: #294564
+ * medium blue: #3e5f81
+ * light blue: #ccdee7
+ * orange: #f80
+ *
+ */
+input[type="checkbox"] {
+ margin: 0 .25em 0 0;
+ vertical-align: baseline;
+}
+
+input[type=text],
+input[type=search],
+input[type=email],
+input[type=url],
+textarea { color: #666;}
+
+input[type=text]:focus,
+input[type=search]:focus,
+input[type=email]:focus,
+input[type=url]:focus,
+textarea:focus { color: #333;}
+
+input, textarea { padding: 3px; }
+button { padding: 4px; }
+
+fieldset { display: block; }
+
+/* Responsive elements w/ fixed width */
+/*img,*/
+/*audio, video,*/
+/*embed, object { max-width: 100%; }*/
+
+a, a:active, a:visited { color: #3e5f81; }
+a:hover { color: #f80; }
+
+h1 a, h2 a, h3 a,
+h4 a, h5 a, h6 a { text-decoration: none; }
+
+::-moz-selection{ background: #333; color:#fff; text-shadow: none; }
+::selection { background:#333; color:#fff; text-shadow: none; }
+a:link { -webkit-tap-highlight-color: #f80; }
+
+
+/**
+ * Typography
+ */
+body {
+ background: #fcfcfc;
+ font:100%/1.5 Arial, Helvetica, sans-serif; *font-size:small;
+ padding: 1em 0;
+}
+select, input, textarea, button { font:99% Arial, Helvetica, sans-serif; }
+pre, code, kbd, samp { font-family: Consolas, monospace, sans-serif; }
+
+small { font-size: .8125em; }
+
+em, i { font-style: italic; }
+
+b, dt { font-weight: bold; }
+
+h1 { font-size: 2em; }
+
+h2 { font-size: 1.5em; }
+
+h3 { font-size: 1.25em; }
+
+p, ul, ol, dl { margin: 0 0 1em; }
+
+/* Automagic quotes for blockquotes */
+blockquote { quotes: "" "" "" ""; }
+blockquote:lang(de) { quotes: "" "" "" ""; }
+blockquote:lang(en) { quotes: "" "" "" ""; }
+
+blockquote p:before { content: open-quote; }
+blockquote p:after { content: close-quote; }
+
+/* Safari support */
+blockquote * { quotes: none; }
+blockquote > *:before { content: ""; }
+blockquote > *:after { content: ""; }
+
+*[lang~='de'] blockquote > *:before,
+blockquote[lang~='de'] > *:before { content: ""; }
+*[lang~='de'] blockquote > *:after,
+blockquote[lang~='de'] > *:after { content: ""; }
+
+*[lang~='en'] blockquote > *:before,
+blockquote[lang~='en'] > *:before { content: ""; }
+*[lang~='en'] blockquote > *:after,
+blockquote[lang~='en'] > *:after { content: ""; }
+
+blockquote {
+ margin: 0 2em 1em;
+}
+
+/* cite adjacent to blockquote */
+blockquote + cite:before { content: "\202F"; }
+
+blockquote + cite {
+ display: inline-block;
+ font-style: italic;
+ margin: 0 0 1em 2em;
+}
+
+
+/**
+ * Layout
+ */
+.container {
+ margin: 0 auto 1em;
+ max-width: 80em;
+ width: 94%;
+}
+
+#primary-nav ul { margin: 0 auto; }
+
+#primary-nav li { display: inline-block; }
+
+.ie7 #primary-nav li {
+ display: inline;
+ zoom: 1;
+}
+
+#identity, #search,
+#content,
+#sidebar_left,
+#sidebar_right {
+ float: left;
+ position: relative;
+}
+
+#identity,
+#content { width: 62%; }
+.col3 #content { width: 50%; }
+#search,
+#sidebar_left,
+#sidebar_right { width: 38%; }
+.col3 #search,
+.col3 #sidebar_left,
+.col3 #sidebar_right { width: 25%; }
+.col3 #identity { width: 75%; }
+.col2l #sidebar_left { left: -62%; }
+.col2l #content { left: 38%; }
+.col3 #content { left: 25%; }
+.col3 #sidebar_left { left: -50%; }
+
+.ie7 #identity,
+.ie7 #content { width: 61.9%; }
+.ie7 .col3 #content { width: 49.9%; }
+.ie7 #search,
+.ie7 #sidebar_left,
+.ie7 #sidebar_right { width: 37.9%; }
+.ie7 .col3 #search,
+.ie7 .col3 #sidebar_left,
+.ie7 .col3 #sidebar_right { width: 24.9%; }
+.ie7 .col3 #identity { width: 74.9%; }
+.ie7 .col2l #sidebar_left { left: -61.9%; }
+.ie7 .col2l #content { left: 37.9%; }
+.ie7 .col3 #content { left: 24.9%; }
+.ie7 .col3 #sidebar_left { left: -49.9%; }
+
+.col2l .serendipity_entry { margin: 0 0 2em 2em; }
+.col2r .serendipity_entry { margin: 0 2em 2em 0;}
+.col3 .serendipity_entry { margin: 0 1em 2em; }
+.col3 #content nav { margin: 0 1em; }
+#sidebar_left section { margin: 0 3em 2em 0; }
+#sidebar_right section { margin: 0 0 2em 3em; }
+
+
+/**
+ * Area styles
+ */
+.read_more,
+.trackback_url {
+ display: block;
+ margin-bottom: 1em;
+}
+
+/* Header */
+#identity h1,
+#identity p { margin: 0 3em 0 0; }
+
+#identity p { color: #666; }
+
+#search div { margin: 2.5em 0 0 3em; }
+
+
+/* Navigation */
+#primary-nav {
+ background: #3e5f81;
+ border-top: 1px solid #294564;
+ border-bottom: 1px solid #294564;
+ color: #fff;
+ margin: 0 0 1em;
+}
+
+#primary-nav span,
+#primary-nav a,
+#primary-nav a:active,
+#primary-nav a:visited {
+ color: #fff;
+ display: block;
+ padding: .25em .75em;
+ border-left: 1px solid #294564;
+ text-decoration: none;
+}
+
+#primary-nav .last span,
+#primary-nav .last a { border-right: 1px solid #294564; }
+
+#primary-nav a,
+#primary-nav a:active,
+#primary-nav a:visited { color: #fff; }
+
+#primary-nav a:hover,
+#primary-nav a:focus {
+ background: #ccdee7;
+ color: #000;
+}
+
+
+/* Content */
+.serendipity_byline,
+.serendipity_entry footer,
+.serendipity_pagination {
+ color: #666;
+ font-size: .8125em;
+}
+
+.serendipity_entry ul,
+.serendipity_entry ol { margin: 0 0 1em 2em; }
+
+.serendipity_entry li ul,
+.serendipity_entry li ol { margin: 0 0 0 2em; }
+
+.serendipity_entry pre {
+ background: #eee;
+ border: 1px solid #aaa;
+ font-size: .8125em;
+ margin: 0 0 1.2308em;
+}
+
+.serendipity_byline,
+.serendipity_pagination {
+ display: block;
+ margin: 0 0 1.2308em;
+}
+
+.serendipity_pagination li {
+ float: left;
+ position: relative;
+}
+
+.serendipity_pagination .info {
+ left: 25%;
+ text-align: center;
+ width: 50%;
+}
+
+.serendipity_pagination .prev {
+ left: -50%;
+ width: 25%;
+}
+
+.serendipity_pagination .next { width: 25%; }
+
+
+/* Archives */
+.archives_year {
+ float: left;
+ width: 48%;
+}
+
+.arch_odd {
+ clear: left;
+ margin: 0 2% 0 0;
+}
+
+.arch_even { margin: 0 0 0 2%; }
+
+.archives_date {
+ display: inline-block;
+ min-width: 7em;
+}
+
+.ie7 .archives_date {
+ display: inline;
+ zoom: 1;
+}
+
+.archives_summary span { display: block; }
+
+
+/* Comments, trackbacks & comment form */
+.serendipity_comments { margin: 1em 0; }
+
+.nocomments {
+ color: #666;
+ font-style: italic;
+}
+
+.form_field label,
+.form_tarea label { display: block; }
+
+.form_tarea,
+.form_toolbar,
+.serendipity_comment { margin-bottom: 1em; }
+
+#serendipity_replyTo {
+ margin: 0 0 1em;
+ max-width: 100%;
+ min-width: 13.5em;
+}
+
+.serendipity_commentDirection {
+ background: #eee;
+ border: 1px solid #aaa;
+ font-size: .8125em;
+ margin: 0 0 1.2308em;
+ max-width: 35em;
+ padding: .3846em;
+}
+
+.comment_avatar {
+ border: 1px solid #aaa;
+ margin: 0 .625em 0 0;
+ padding: 0!important;
+}
+
+
+/* Footer */
+#colophon small,
+.staticpage_metainfo small {
+ border-top: 1px solid #ccc;
+ color: #666;
+ display: block;
+ padding: .9167em 0 1em;
+}
+
+.staticpage_results h3 { font-size: 1em; }
+
+
+/**
+ * S9y-specific styles
+ */
+.serendipity_center {
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+}
+
+.serendipity_msg_important,
+.serendipity_msg_notice {
+ font-size: .8125em;
+ padding: .3846em;
+}
+
+.serendipity_msg_important {
+ background: #fee;
+ border: 1px solid #900;
+ color: #900;
+}
+
+.serendipity_msg_notice {
+ background: #efe;
+ border: 1px solid #090;
+ color: #090;
+}
+
+/* Images (S9y media DB) */
+.serendipity_image_left,
+.serendipity_image_right,
+.serendipity_image_center,
+.serendipity_imageComment_center,
+.serendipity_imageComment_left,
+.serendipity_imageComment_right {
+ border: 1px solid #aaa!important;
+ padding: 0!important;
+}
+
+.serendipity_image_left {
+ float: left;
+ margin: 0 1em 1em 0;
+}
+
+.serendipity_image_right {
+ float: right;
+ margin: 0 0 1em 1em;
+}
+
+.serendipity_image_center {
+ display: block;
+ margin: 0 auto 1em auto;
+}
+
+.serendipity_imageComment_left {
+ display: inline;
+ float: left;
+ margin: 0 1em 1em 0;
+}
+
+.serendipity_imageComment_right {
+ display: inline;
+ float: right;
+ margin: 0 0 1em 1em;
+}
+
+.serendipity_imageComment_center {
+ display: block;
+ margin: 0 auto 1em auto;
+}
+
+.serendipity_imageComment_img img {
+ border: none!important;
+ margin: 0!important;
+}
+
+.serendipity_imageComment_txt {
+ background: #ddd;
+ border: 0 none;
+ color: #333;
+ font-size: .8125em;
+ padding: .2301em;
+ text-align: center;
+}
+
+
+/**
+ * s9y plugins
+ */
+
+/* Core plugins */
+.serendipity_calendar {
+ border: 1px solid #3e5f81;
+ margin: 0 0 1em;
+ width: 100%;
+}
+
+.serendipity_calendar tfoot a,
+.serendipity_calendar tfoot a:active,
+.serendipity_calendar tfoot a:visited {
+ color: #fff;
+ font-weight: bold;
+ text-decoration: none;
+}
+
+.serendipity_calendar tfoot a:hover,
+.serendipity_calendar tfoot a:focus {
+ background: #ccdee7;
+ color: #000;
+}
+
+.serendipity_calendar thead,
+.serendipity_calendar tfoot {
+ background: #3e5f81;
+ color: #fff;
+}
+
+.serendipity_calendar th,
+.serendipity_calendar td {
+ padding: .125em;
+ text-align: center;
+}
+.prev { text-align: left; }
+.next { text-align: right; }
+
+.serendipity_calendar abbr[title] { border: 0 none; }
+
+/* Additional plugins */
+.serendipity_freeTag {
+ display: block;
+ font-size: 1em;
+ margin: 0;
+ text-align: left;
+}
+
+.serendipity_freeTag_related ul { margin: 0 0 1em; }
+
+.serendipity_freetag_taglist {
+ background: #eee;
+ border: 1px solid #aaa;
+ margin: 0 0 1em;
+ padding: 1em;
+}
+
+.serendipity_freetag_taglist_related {
+ font-size: 1.25em;
+ font-weight: bold;
+}
+
+
+.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
+.hidden { display: none; visibility: hidden; }
+.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
+.visuallyhidden.focusable:active,
+.visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
+.invisible { visibility: hidden; }
+.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
+.clearfix:after { clear: both; }
+.clearfix { zoom: 1; }
+
+
+
+@media print {
+ * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
+ -ms-filter: none !important; }
+ a, a:visited { color: #333 !important; text-decoration: underline; }
+ a[href]:after { content: " (" attr(href) ")"; }
+ abbr[title]:after { content: " (" attr(title) ")"; }
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
+ thead { display: table-header-group; }
+ tr, img { page-break-inside: avoid; }
+ @page { margin: 0.5cm; }
+ p, h2, h3 { orphans: 3; widows: 3; }
+ h2, h3{ page-break-after: avoid; }
+}
View
12 trackbacks.tpl
@@ -0,0 +1,12 @@
+{foreach from=$trackbacks item=trackback}
+<article id="c{$trackback.id}" class="serendipity_comment {cycle values="odd, even"}">
+ <h4><cite>{$trackback.author|@default:$CONST.ANONYMOUS}</cite> {$CONST.ON} <time datetime="{$trackback.timestamp|@formatTime:'%Y-%m-%dT%H:%M:%S'}" pubdate>{$trackback.timestamp|@formatTime:$template_option.date_format}</time>: <a href="{$trackback.url|@strip_tags}">{$trackback.title}</a></h4>
+
+ <div class="serendipity_commentBody">{$trackback.body|@strip_tags|@escape:all}</div>
+{if $entry.is_entry_owner}
+ <a href="{$serendipityBaseURL}comment.php?serendipity[delete]={$trackback.id}&amp;serendipity[entry]={$trackback.entry_id}&amp;serendipity[type]=trackbacks">{$CONST.DELETE}</a>
+{/if}
+</article>
+{foreachelse}
+<p class="nocomments">{$CONST.NO_TRACKBACKS}</p>
+{/foreach}
Please sign in to comment.
Something went wrong with that request. Please try again.