Update of /cvsroot/php-blog/serendipity/templates/wp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22356
Added Files:
atom.css commentform.tpl comments.tpl content.tpl
entries_archives.tpl entries_summary.tpl entries.tpl
htmlarea.css index.tpl info.txt plugin_calendar.tpl
sidebar.tpl style.css trackbacks.tpl wp-layout.css
Log Message:
Add WP-Compat template.
--- NEW FILE: entries_archives.tpl ---
{foreach from=$archives item="archive"}
<table cellspacing="4" cellpadding="4" border="0">
<tr>
<td colspan="4"><h2>{$archive.year}</h2></td>
</tr>
{foreach from=$archive.months item="month"}
<tr>
<td width="100"><img src="{serendipity_getFile file="img/graph_bar_horisontal.png"}" height="10" width="{math width=100 equation="count * width / max" count=$month.entry_count max=$max_entries format="%d"}" style="border: 1px solid #000000"></td>
<td>{$month.date|@formatTime:"%B"}</td>
<td>{$month.entry_count} {$CONST.ENTRIES}</td>
<td>({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</td>
<td>({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</td>
</tr>
{/foreach}
</table>
{/foreach}
--- NEW FILE: htmlarea.css ---
body {
font-size: 10pt;
padding: 10px;
color: #333333;
background-color: #FAFFFF;
font-size: 9.5pt;
font-weight: normal;
font-family: verdana, arial, geneva, helvetica, sans-serif;
}
/** Embedded images with the s9y image manager **/
.serendipity_imageComment_center,
.serendipity_imageComment_left,
.serendipity_imageComment_right {
border: 1px solid black;
background-color: #EFEFEF;
margin: 3px;
}
.serendipity_imageComment_center {
}
.serendipity_imageComment_left {
float: left;
}
.serendipity_imageComment_right {
float: right;
}
.serendipity_imageComment_img,
.serendipity_imageComment_img img {
margin: 0px;
padding: 0px;
border: 0px;
}
.serendipity_imageComment_txt {
margin: 0px;
padding: 3px;
clear: both;
font-size: 9pt;
}
--- NEW FILE: commentform.tpl ---
<p>
<p><a href='{$serendipityBaseURL}/rss.php?version=2.0&type=comments&cid={$commentform_id}'><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
<h2 id="postcomment">Leave a comment</h2>
<p>{serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}</p>
<form action="{$commentform_action}#feedback" method="post" id="commentform">
<p>
<input id="name" type="text" name="serendipity[name]" value="{$commentform_name}" size="28" tabindex="1" />
<label for="author">{$CONST.NAME}</label>
</p>
<p>
<input type="text" id="email" name="serendipity[email]" value="{$commentform_email}" size="28" tabindex="2" />
<label for="email">{$CONST.EMAIL}</label>
</p>
<p>
<input id="url" type="text" name="serendipity[url]" value="{$commentform_url}" size="28" tabindex="3" />
<label for="url">{$CONST.HOMEPAGE}</label>
</p>
<p>
<label for="comment">{$CONST.COMMENT}</label><br />
<textarea id="comment" rows="4" cols="40" name="serendipity[comment]">{$commentform_data}</textarea>
</p>
{if $is_commentform_showToolbar}
<p>
<input id="checkbox_remember" type="checkbox" name="serendipity[remember]" {$commentform_remember} />
<label for="checkbox_remember">{$CONST.REMEMBER_INFO}</label>
</p>
{if $is_allowSubscriptions}
<p>
<input id="checkbox_subscribe" type="checkbox" name="serendipity[subscribe]" {$commentform_subscribe} />
<label for="checkbox_subscribe">{$CONST.SUBSCRIBE_TO_THIS_ENTRY}</label>
</p>
{/if}
{/if}
{if $is_moderate_comments}
<p>{$CONST.COMMENTS_WILL_BE_MODERATED}</p>
{/if}
<p>
<input type="hidden" name="serendipity[entry_id]" value="{$commentform_id}" />
<input type="submit" name="serendipity[submit]" value="{$CONST.SUBMIT_COMMENT}" />
<input type="submit" name="serendipity[preview]" value="{$CONST.PREVIEW}" />
</p>
</form>
</p>
--- NEW FILE: wp-layout.css ---
/* Serendipity WP default
By Evan Nemerson
December 11, 2004
This is just a simple template modeled after the default one. It is
meant mostly as something to collect dust while you use a custom WP
theme, but it can also be used to guide you in creating your own.
It is licensed under the BSD license, like the rest of Serendipity,
and unlike most WP themes (which are GPL). */
#content {
border-right: 1px dashed #000000;
border-bottom: 1px solid #000000;
border-top: 0px;
background-color: #FFFFFF;
position: absolute;
margin-right: 16em;
}
#menu {
vertical-align: top;
background: white;
width: 16em;
position: absolute;
right: 0;
}
#content > * {
padding: 10px;
margin: 10px;
width: auto;
}
#menu > ul {
display: block;
list-style: none;
padding-left: 0;
margin: 1em;
}
#menu > ul > li {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 1em;
padding-bottom: 1em;
border-bottom: solid 2px #36558C;
}
#menu > ul > li > * {
font-size: 0.83em;
font-weight: normal;
}
body {
font-size: 10pt;
margin: 0;
font-size: 10px;
font-family: verdana, arial, helvetica, sans-serif;
margin-bottom: 30px;
}
input, textarea {
font-size: 10pt;
font-family: verdana, arial, helvetica, sans-serif;
}
th, td {
font-size: 10pt;
}
p, td, th, div, span {
font-family: verdana, arial, helvetica, sans-serif;
}
#header {
margin: auto;
width: 100%;
padding: 1em;
background-image: url(/en/templates/default/img/background.png);
border-bottom: 1px solid #000000;
}
#header a,
#header a:hover,
#header a:link,
#header a:visited {
color: #FFFFFF;
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
text-decoration: none;
}
h2 {
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
font-size: large;
color: #333333;
margin: 0;
margin-top: 20px;
text-align: right;
}
.storytitle {
font-family: Verdana, Arial, Geneva, Helvetica, sans-serif;
font-size: medium;
font-weight: bold;
margin-top: 1em;
color: #333333;
border-bottom: 2px solid #36558C;
}
.storytitle a:link,
.storytitle a:visited {
text-decoration: none;
border: 0;
color: #000000;
}
.meta > ul > li, ul.post-meta li {
display: inline;
}
.meta > ul {
display: inline;
list-style: none;
margin: 0;
padding: 0;
}
.storytitle {
margin: auto;
}
.storytitle a:hover {
color: #FF0000;
}
.storycontent {
font-family:Verdana, Arial, Geneva, Helvetica, sans-serif;
color: #333333;
font-size: 1.3em;
font-weight: normal;
padding-right: 10px;
width: 95%;
margin: auto;
margin-top: 1em;
}
--- NEW FILE: entries.tpl ---
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
{foreach from=$entries item="dategroup"}
{if $dategroup.is_sticky}
<h2>{$CONST.STICKY_POSTINGS}</h2>
{else}
<h2>{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h2>
{/if}
{foreach from=$dategroup.entries item="entry"}
<div class="post">
<h3 class="storytitle" id="post-{$entry.id}"><a href="{$entry.link}" rel="bookmark" title="Permanent Link: {$entry.title}">{$entry.title}</a></h3>
<div class="meta">Filed under:
<ul class="post-categories">{foreach from=$entry.categories item="category"}
<li><a title="View all posts in {$category.category_name}" href="{$serendipityHTTPPath}{$serendipityRewritePrefix}{$CONST.PATH_CATEGORIES}/{$category.category_id}-{$category.category_name|@makeFilename}">{$category.category_name}</a></li>
{/foreach}</ul>
— {$entry.username} @ {$entry.timestamp|@formatTime:'%I:%M %p'}
</div>
<div class="storycontent">
<p>
{$entry.body}
{if $entry.is_extended}
{$entry.extended}
{/if}
</p>
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
<p><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a></p>
{/if}
</div>
<div class="feedback">
<a href="{$entry.link}#comments">Comments ({$entry.comments+$entry.trackbacks})</a>
{$entry.add_footer}
</div>
<!--
<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="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/ei_{$entry.id}.rdf"
trackback:ping="{$serendipityBaseURL}comment.php?type=trackback&entry_id={$entry.id}"
dc:title="{$entry.title}"
dc:identifier="{$entry.rdf_ident}" />
</rdf:RDF>
-->
{$entry.plugin_display_dat}
{if $is_single_entry and not $is_preview}
<h2 id="comments">Comments <a href="#postcomment" title="Leave a comment">»</a></h2>
<p>The <acronym title="Uniform Resource Identifier">URI</acronym> to TrackBack this entry is: <em>{$serendipityBaseURL}comment.php?type=trackback&entry_id={$entry.id}</em></p>
<ol id="commentlist">
{serendipity_printTrackbacks entry=$entry.id}
{serendipity_printComments entry=$entry.id mode=$CONST.VIEWMODE_LINEAR}
</ol>
{$COMMENTFORM}
{/if}
</div>
{/foreach}
{foreachelse}
{if not $plugin_clean_page}
{$CONST.NO_ENTRIES_TO_PRINT}
{/if}
{/foreach}
--- NEW FILE: content.tpl ---
<!-- CONTENT START -->
{$content_message}
{$ENTRIES}
{$ARCHIVES}
<!-- CONTENT END -->
--- NEW FILE: plugin_calendar.tpl ---
<table id="wp-calendar">
<caption>November 2004</caption>
<thead>
<tr>
<th abbr="Sunday" scope="col" title="Sunday">S</th>
<th abbr="Monday" scope="col" title="Monday">M</th>
<th abbr="Tuesday" scope="col" title="Tuesday">T</th>
<th abbr="Wednesday" scope="col" title="Wednesday">W</th>
<th abbr="Thursday" scope="col" title="Thursday">T</th>
<th abbr="Friday" scope="col" title="Friday">F</th>
<th abbr="Saturday" scope="col" title="Saturday">S</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="3" id="prev">{if $plugin_calendar_head.minScroll le $plugin_calendar_head.month_date}<a href="{$plugin_calendar_head.uri_previous}" title="View posts for previous month">«</a>{/if}</td>
<td class="pad"> </td>
<td colspan="3" id="next">{if $plugin_calendar_head.maxScroll ge $plugin_calendar_head.month_date}<a href="{$plugin_calendar_head.uri_next}" title="View posts for previous month">»</a>{/if}</td>
</tr>
</tfoot>
<tbody>
{foreach from=$plugin_calendar_weeks item="week"}
<tr>
{foreach from=$week.days item="day"}
<td>{if isset($day.properties.Active) and $day.properties.Active}<a href="{$day.properties.Link}">{/if}{$day.name|@default:" "}{if isset($day.properties.Active) and $day.properties.Active}</a>{/if}</td>
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
--- NEW FILE: comments.tpl ---
{foreach from=$comments item=comment}
<li id="comment-{$comment.id}">
<p><strong></strong>{$comment.body}</p>
<p><cite>Comment by {if $comment.url}<a href="{$comment.url}" rel='external'>{$comment.username|@default:$CONST.ANONYMOUS}</a>{else}{$comment.username|@default:$CONST.ANONYMOUS}{/if} — {$comment.timestamp|@formatTime:'%m/%d/%Y'} @ <a href="#comment-{$comment.id}">{$comment.timestamp|@formatTime:'%I:%M %p'}</a></cite></p>
</li>
{/foreach}
--- NEW FILE: style.css ---
/* Default WordPress by Dave Shea || http://mezzoblue.com
Modifications by Matthew Mullenweg || http://photomatt.net
This is just a basic layout, with only the bare minimum defined.
Please tweak this and make it your own. :)
*/
a {
color: #675;
}
a img {
border: none;
}
a:visited {
color: #342;
}
a:hover {
color: #9a8;
}
acronym, abbr {
border-bottom: 1px dashed #333;
}
acronym, abbr, span.caps {
cursor: help;
font-size: 90%;
letter-spacing: .07em;
}
blockquote {
border-left: 5px solid #ccc;
margin-left: 1.5em;
padding-left: 5px;
}
body {
background: #fff;
border: solid 2px #565;
border-bottom: solid 1px #565;
border-top: solid 3px #565;
color: #000;
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
margin: 0;
padding: 0;
}
cite {
font-size: 90%;
font-style: normal;
}
h2 {
border-bottom: 1px dotted #ccc;
font: 95% "Times New Roman", Times, serif;
letter-spacing: 0.2em;
margin: 15px 0 2px 0;
padding-bottom: 2px;
}
h3 {
border-bottom: dotted 1px #eee;
font-family: "Times New Roman", Times, serif;
margin-top: 0;
}
ol#comments li p {
font-size: 100%;
}
p, li, .feedback {
font: 90%/175% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
letter-spacing: -1px;
}
/* classes used by the_meta() */
ul.post-meta {
list-style: none;
}
ul.post-meta span.post-meta-key {
font-weight: bold;
}
.credit {
background: #90a090;
border-top: double 3px #aba;
color: #fff;
font-size: 11px;
margin: 10px 0 0 0;
padding: 3px;
text-align: center;
}
.credit a:link, .credit a:hover {
color: #fff;
}
.feedback {
color: #ccc;
text-align: right;
clear: all;
}
.meta {
font-size: .75em;
}
.meta li, ul.post-meta li {
display: inline;
}
.meta ul {
display: inline;
list-style: none;
margin: 0;
padding: 0;
}
.meta, .meta a {
color: #808080;
font-weight: normal;
letter-spacing: 0;
}
.storytitle {
margin: 0;
}
.storytitle a {
text-decoration: none;
}
#commentform #name, #commentform #email, #commentform #url, #commentform textarea {
background: #fff;
border: 1px solid #333;
padding: .2em;
}
#commentform textarea {
width: 100%;
}
#commentlist li ul {
border-left: 1px solid #ddd;
font-size: 110%;
list-style-type: none;
}
#content {
margin: 30px 13em 0 3em;
padding-right: 60px;
}
#header {
background: #90a090;
border-bottom: double 3px #aba;
border-left: solid 1px #9a9;
border-right: solid 1px #565;
border-top: solid 1px #9a9;
font: italic normal 230% 'Times New Roman', Times, serif;
letter-spacing: 0.2em;
margin: 0;
padding: 15px 10px 15px 60px;
}
#header a {
color: #fff;
text-decoration: none;
}
#header a:hover {
text-decoration: underline;
}
#menu {
background: #fff;
border-left: 1px dotted #ccc;
border-top: solid 3px #e0e6e0;
padding: 20px 0 10px 30px;
position: absolute;
right: 2px;
top: 0;
width: 11em;
}
#menu form {
margin: 0 0 0 13px;
}
#menu input#s {
width: 80%;
background: #eee;
border: 1px solid #999;
color: #000;
}
#menu ul {
color: #ccc;
font-weight: bold;
list-style-type: none;
margin: 0;
padding-left: 3px;
text-transform: lowercase;
}
#menu ul li {
font: italic normal 110% 'Times New Roman', Times, serif;
letter-spacing: 0.1em;
margin-top: 10px;
padding-bottom: 2px; /*border-bottom: dotted 1px #ccc;*/
}
#menu ul ul {
font-variant: normal;
font-weight: normal;
line-height: 100%;
list-style-type: none;
margin: 0;
padding: 0;
text-align: left;
}
#menu ul ul li {
border: 0;
font: normal normal 70%/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
letter-spacing: 0;
margin-top: 0;
padding: 0;
padding-left: 12px;
}
#menu ul ul li a {
color: #000;
text-decoration: none;
}
#menu ul ul li a:hover {
border-bottom: 1px solid #809080;
}
#menu ul ul ul.children {
font-size: 142%;
padding-left: 4px;
}
#wp-calendar {
border: 1px solid #ddd;
empty-cells: show;
font-size: 14px;
margin: 0;
width: 90%;
}
#wp-calendar #next a {
padding-right: 10px;
text-align: right;
}
#wp-calendar #prev a {
padding-left: 10px;
text-align: left;
}
#wp-calendar a {
display: block;
text-decoration: none;
}
#wp-calendar a:hover {
background: #e0e6e0;
color: #333;
}
#wp-calendar caption {
color: #999;
font-size: 16px;
text-align: left;
}
#wp-calendar td {
color: #ccc;
font: normal 12px 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
letter-spacing: normal;
padding: 2px 0;
text-align: center;
}
#wp-calendar td.pad:hover {
background: #fff;
}
#wp-calendar td:hover, #wp-calendar #today {
background: #eee;
color: #bbb;
}
#wp-calendar th {
font-style: normal;
text-transform: capitalize;
}
--- NEW FILE: info.txt ---
Name: WP-compat
Author: Evan Nemerson
Date: 20/11-2004
--- NEW FILE: index.tpl ---
{if $is_embedded != true}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="Serendipity v.{$head_version}" />
<style type="text/css" media="screen">
@import url( {serendipity_getFile file="wp-layout.css"} );
</style>
{serendipity_hookPlugin hook="frontend_header"}
</head>
<body>
{/if}
{if $is_raw_mode != true}
<div id="rap">
<h1 id="header"><a href="{$serendipityBaseURL}" title="{$head_title|@default:$blogTitle}: {$head_subtitle|@default:$blogDescription}">{$head_title|@default:$blogTitle}</a></h1>
<div id="content">
{$CONTENT}
</div>
{/if}
{$raw_data}
{if $leftSidebarElements or $rightSidebarElements}
<div id="menu">
<ul>
{if $leftSidebarElements}{serendipity_printSidebar side="left"}{/if}
{if $rightSidebarElements}{serendipity_printSidebar side="right"}{/if}
</ul>
</div>
{/if}
</div>
<p class="credit"><cite>Powered by <a href="http://www.s9y.org/" title="Powered by Serendipity PHP Weblog"><strong>Serendipity</strong></a></cite></p>
{if $is_embedded != true}
</body>
</html>
{/if}
--- NEW FILE: atom.css ---
/* Basic CSS taken from http://www.blogger.com/styles/atom.css */
feed {
display:block;
font-family:verdana, sans-serif;
margin:2%;
font-size:90%;
color:#000000;
background:#ffffff;
}
title {
display:block;
font-size:1.3em;
color:inherit;
background:inherit;
font-weight:bold;
}
tagline, link {
display:block;
font-size:0.9em;
}
id, modified {
display:none;
}
generator {
display:block;
font-size:0.9em;
}
info {
display:block;
margin:3em 4em 3em 4em;
color:#CC3333;
background:#FFFF66;
border:solid #CCCC66 2px;
text-align:center;
padding:1.5em;
font-family:mono;
font-size:0.8em;
}
entry {
display:block;
color:inherit;
background:inherit;
padding:0;
margin:1em 1em 4em 1em;
}
entry modified, entry name {
display:inline;
color:#999999;
background:inherit;
font-size:0.8em;
}
entry created, entry issued, entry id {
display:none;
}
/* Using a single 'commentRSS' and 'comments' is used for compatibility to Opera */
slash\:comments, wfw\:commentRss, commentRss, comments, wfw\:comment, comment {
display:none;
}
entry title {
display:block;
font-size:1em;
font-weight:bold;
color:inherit;
background:inherit;
padding:1em 1em 0em 1em;
margin:0;
border-top:solid 1px #dddddd;
}
content {
display:block;
font-size:0.9em;
color:inherit;
background:inherit;
padding:1em;
line-height:1.5em;
}
--- NEW FILE: trackbacks.tpl ---
{foreach from=$trackbacks item=trackback}
<li id="trackback-{$trackback.id}">
<p><strong>{$trackback.title}</strong><br />{$trackback.body|@strip_tags|@escape:all}</p>
<p><cite>Trackback by <a href='{$trackback.url|@strip_tags}' rel='external'>{$trackback.author|@default:$CONST.ANONYMOUS}</a> — {$trackback.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT} @ <a href="#trackback-{$trackback.id}">{$trackback.timestamp|@formatTime:'%g:%M %a'}</a></cite> </p>
</li>
{/foreach}
--- NEW FILE: entries_summary.tpl ---
<div class='serendipity_date'>{$CONST.TOPICS_OF} {$entries.entries.date|@formatTime:"%B, %Y"}</div>
<div class="serendipity_entry">
{foreach from=$entries item="entries"}
<ul>
{foreach from=$entries.entries item="entry"}
<li><a href="{$entry.link}">{$entry.title}</a>
<br />{$CONST.POSTED_BY} {$entry.username} {$CONST.ON} {$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</li>
{/foreach}
</ul>
{/foreach}
</div>
--- NEW FILE: sidebar.tpl ---
{foreach from=$plugindata item=item}
<li id="{$item.class}">{$item.title}
{$item.content}
</li>
{/foreach}
|