[pLog-svn] r1635 - in templates/trunk: . spring spring/imgs

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Tue Mar 29 19:37:12 GMT 2005


Author: jondaley
Date: 2005-03-29 19:37:11 +0000 (Tue, 29 Mar 2005)
New Revision: 1635

Added:
   templates/trunk/spring/
   templates/trunk/spring/album.template
   templates/trunk/spring/albums.template
   templates/trunk/spring/archives.template
   templates/trunk/spring/commentarticle.template
   templates/trunk/spring/commentform.template
   templates/trunk/spring/error.template
   templates/trunk/spring/footer.template
   templates/trunk/spring/header.template
   templates/trunk/spring/imgs/
   templates/trunk/spring/imgs/archives.gif
   templates/trunk/spring/imgs/bg_today.gif
   templates/trunk/spring/imgs/bgc.gif
   templates/trunk/spring/imgs/bgtitle.gif
   templates/trunk/spring/imgs/calendar.gif
   templates/trunk/spring/imgs/calendar.psd
   templates/trunk/spring/imgs/categories.gif
   templates/trunk/spring/imgs/compressed.gif
   templates/trunk/spring/imgs/file.gif
   templates/trunk/spring/imgs/folder.gif
   templates/trunk/spring/imgs/line.jpg
   templates/trunk/spring/imgs/line_v.gif
   templates/trunk/spring/imgs/links.gif
   templates/trunk/spring/imgs/parentfolder.gif
   templates/trunk/spring/imgs/recently.gif
   templates/trunk/spring/imgs/recently.psd
   templates/trunk/spring/imgs/search.gif
   templates/trunk/spring/imgs/sound.gif
   templates/trunk/spring/imgs/syndicate.gif
   templates/trunk/spring/imgs/title.gif
   templates/trunk/spring/links.template
   templates/trunk/spring/main.template
   templates/trunk/spring/post.template
   templates/trunk/spring/postandcomments.template
   templates/trunk/spring/posttrackbacks.template
   templates/trunk/spring/resource.template
   templates/trunk/spring/searchresults.template
   templates/trunk/spring/style.css
   templates/trunk/spring/video.gif
Log:
new template created by 'lurking'

Added: templates/trunk/spring/album.template
===================================================================
--- templates/trunk/spring/album.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/album.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,79 @@
+   		{include file="$blogtemplate/header.template"} 
+
+<h2>{$locale->tr("albums")}</h2>
+
+<div id="album_list">
+<h3>{$album->getName()}</h3>
+<p>{$album->getDescription()}</p>
+
+<!-- album contents go here -->
+ 
+<div id="album">
+
+	<div class="clearer">&nbsp;</div>
+ 
+	<div class="album">
+	<a href="{$url->parentAlbumLink($album)}">
+    	<img src="{$url->getTemplateFile("imgs/parentfolder.gif")}" alt="{$locale->tr("parent")}" /></a>
+    	<p>{$locale->tr("parent")}</p>
+	</div>
+
+   		{assign var="counter" value=1}
+   		{assign var=children value=$album->getChildren()}
+   		{foreach from=$children item=childalbum}
+	<div class="album">
+   	<a href="{$url->albumLink($childalbum)}">
+   	<img src="{$url->getTemplateFile("imgs/folder.gif")}" alt="{$childalbum->getName()}" /></a>
+   	<p>{$childalbum->getName()} ({$childalbum->getNumResources()})</p>
+   		{assign var="counter" value="`$counter+1`"}
+   		{if $counter%3 == 0}
+   		{/if}
+	</div>
+   		{/foreach}
+ 
+<!-- show the resources here -->
+
+   		{assign var=resources value=$album->getResources()}
+   		{foreach from=$resources item=resource}
+	<div class="album">
+   		{if $resource->hasPreview()}
+   		{*<a target="_blank" href="resserver.php?blogId={$blog->getId()}&amp;resource={$resource->getFileName()}">*}
+   	<a href="{$url->resourceLink($resource)}">
+    	<img alt="{$resource->getDescription()}" src="{$url->resourcePreviewLink($resource)}" /></a>
+    	<p>{$resource->getFileName()}</p>
+   		{else}
+   	<a href="{$url->resourceLink($resource)}">
+   		{if $resource->isSound()}
+    	<img alt="Sound" src="{$url->getTemplateFile("imgs/sound.gif")}" /></a>
+   		{elseif $resource->isVideo()}
+    	<img alt="Video" src="{$url->getTemplateFile("imgs/video.gif")}" /></a>
+   		{elseif $resource->isZip()}
+    	<img alt="Zip" src="{$url->getTemplateFile("imgs/compressed.gif")}" /></a>  
+   		{else}
+   	<img alt="File" src="{$url->getTemplateFile("imgs/file.gif")}" /></a>
+   		{/if}  
+   	<p>{$resource->getFileName()}</p>
+   		{/if}
+   		{assign var=metadata value=$resource->getMetadataReader()}
+  	<p>{$metadata->getRoundedSize()}</p>
+   		{if $resource->isImage()}
+  	<p>{$metadata->getWidth()} x {$metadata->getHeight()}</p>
+   		{elseif $resource->isSound()}
+  	<p>{$metadata->getFormat()|upper} {$metadata->getSampleRate()} bps</p>
+   		{elseif $resource->isVideo()}
+  	<p>{$metadata->getFormat()|upper} {$metadata->getWidth()} x {$metadata->getHeight()}, {$metadata->getLengthString()}</p>
+   		{elseif $resource->isZip()}
+   	<p>{$metadata->getTotalFiles()} {$locale->tr("files")}</p>
+   		{/if}
+   		{assign var="counter" value="`$counter+1`"}
+   		{if $counter%3 == 0}
+   		{/if}
+  	</div>
+  		{/foreach}
+
+	<div class="clearer">&nbsp;</div>
+
+</div>
+</div>
+<!-- end of album contents --> 
+		{include file="$blogtemplate/footer.template"} 
\ No newline at end of file

Added: templates/trunk/spring/albums.template
===================================================================
--- templates/trunk/spring/albums.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/albums.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,28 @@
+		{include file="$blogtemplate/header.template"} 
+
+<h2>{$locale->tr("albums")}</h2>
+
+ <!-- album contents go here -->
+<div id="album_list"> 
+<div id="album">
+	
+	<div class="clearer">&nbsp;</div>
+
+		{assign var="counter" value=0}
+  		{foreach from=$albums item=album}
+	<div class="album">
+	<a href="{$url->albumLink($album)}"><img src="{$url->getTemplateFile("imgs/folder.gif")}" alt="{$album->getName()}" /></a>
+  	<p>{$album->getName()} ({$album->getNumResources()})</p>
+  		{assign var="counter" value="`$counter+1`"}
+		{if $counter%3 == 0}
+		{/if}
+	</div>
+		{/foreach}
+
+	<div class="clearer">&nbsp;</div>
+
+</div>
+</div>
+<!-- end of the albums -->
+		
+		{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/archives.template
===================================================================
--- templates/trunk/spring/archives.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/archives.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,16 @@
+		{include file="$blogtemplate/header.template"} 
+<h2>{$locale->tr("archives")}</h2>
+
+<div id="archives_list">
+<div id="Archives">
+	
+	<ul>
+		{foreach from=$archives item=month}
+    	<li><a href="{$month->getUrl()}">{$month->getName()}</a> [{$month->getNumArticles()}]</li>
+    		{/foreach}
+    		
+    		
+    	</ul>
+</div>
+</div>   	
+   		{include file="$blogtemplate/footer.template"} 
\ No newline at end of file

Added: templates/trunk/spring/commentarticle.template
===================================================================
--- templates/trunk/spring/commentarticle.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/commentarticle.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,5 @@
+		{include file="$blogtemplate/header.template"} 
+		
+		{include file="$blogtemplate/commentform.template"}
+		
+		{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/commentform.template
===================================================================
--- templates/trunk/spring/commentform.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/commentform.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,19 @@
+<div id="CommentForm">
+  
+	<form id="NewComment" name="NewComment" action="{$url->getBaseUrl()}/index.php" method="post">
+	<fieldset>
+ 	<legend>{$locale->tr("add_comment")}</legend>
+   	<div><label for="commentTopic">{$locale->pr("comment_topic")}</label><input type="text" name="commentTopic" id="commentTopic" value="" /></div>
+   	<div><label for="commentText">{$locale->pr("comment_text")}</label><textarea rows="10" cols="30" name="commentText" id="commentText"></textarea></div>
+   	<div><label for="userName">{$locale->pr("comment_username")}</label><input type="text" name="userName" id="userName" value="" /></div>
+   	<div><label for="userEmail">Email</label><input type="text" name="userEmail" id="userEmail" value="" /></div>
+   	<div><label for="userUrl">Web</label><input type="text" name="userUrl" id="userUrl" value="" /></div>
+   	<div id="Submit"><input id="Add" type="submit" value="{$locale->pr("comment_send")}" name="Add" />
+   	<input type="hidden" name="op" value="AddComment" />
+   	<input type="hidden" name="articleId" value="{$post->getId()}" />
+   	<input type="hidden" name="blogId" value="{$blog->getId()}" />
+   	<input type="hidden" name="parentId" value="{$parentId}" /></div>
+	</fieldset>
+  	</form>
+  	
+</div>

Added: templates/trunk/spring/error.template
===================================================================
--- templates/trunk/spring/error.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/error.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,5 @@
+		{include file="$blogtemplate/header.template"} 
+ 	<h2>{$locale->tr("error")}</h2>
+ 		<div id="error">{$locale->tr($message)}</div>
+		<div id="post"><a href="javascript:history.go(-1)">{$locale->tr("back")}</a></div>
+		{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/footer.template
===================================================================
--- templates/trunk/spring/footer.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/footer.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,84 @@
+</div>
+
+<div id="Menu">
+
+    	<div id="calendar_title"><!--{$locale->tr("calendar")}--></div>
+	<div id="Calendar">
+		{$calendar}
+    	</div>
+
+	<div id="search_title"><!--{$locale->tr("search")}--></div>
+	<div id="Search">
+	<form id="search_form" method="post" action="{$url->getIndexUrl()}">
+	<fieldset>
+	<label for="searchTerms"><input type="text" id="searchTerms" name="searchTerms" value="" /></label>
+	<input type="submit" name="Search" value="{$locale->tr("search_s")}" class="button" />
+	<input type="hidden" name="op" value="Search" />
+	<input type="hidden" name="blogId" value="{$blog->getId()}" />   
+	</fieldset>
+	</form>
+	</div> 
+
+	<div id="archives_title"><!--{$locale->tr("archives")}--></div>
+	<div id="Archives">
+	<ul>
+		{foreach from=$archives item=month}
+    	<li><a href="{$month->getUrl()}">{$month->getName()}</a> [{$month->getNumArticles()}]</li>
+    		{/foreach}
+    	</ul>
+	</div>
+	
+	<div id="categories_title"><!--{$locale->tr("categories")}--></div>
+    	<div id="Categories">
+    	<ul>
+    		{foreach from=$articlecategories item=articleCategory}
+    	<li><a title="{$articleCategory->getName()}" href="{$url->categoryLink($articleCategory)}">{$articleCategory->getName()} <abbr title="{$articleCategory->getNumArticles()} {$locale->tr("posts")}">[{$articleCategory->getNumArticles()}]</abbr></a>&nbsp;<a  href="{$url->categoryRssLink($articleCategory)}"><img src="{$url->getUrl("/imgs/rss_logo_small.gif")}" style="border:0px;" align="center" alt="RSS 0.90" /></a></li>
+   		{/foreach}
+  	</ul>
+  	</div>
+
+  	<div id="recently_title"><!--{$locale->tr("recently")}--></div>
+    	<div id="Recently">
+    	<ul>
+    		{foreach from=$recentposts item=post}
+        <li><a title="{$post->getTopic()}" href="{$url->postLink($post)}">{$post->getTopic()}</a></li>
+    		{/foreach}
+    	</ul>
+   	</div>
+
+	<div id="links_title"><!--{$locale->tr("my_links")}--></div>
+	<div id="Links">
+  		{foreach from=$mylinkscategories item=linkcategory}
+    	<div id="LinksCategories">{$linkcategory->getName()}</div>
+   	<ul>
+  		{foreach from=$linkcategory->getLinks() item=link}
+  	<li><a href="{$link->getUrl()}" title="{$link->getDescription()}">{$link->getName()}</a></li>
+    		{/foreach}
+  	</ul>
+  		{/foreach}
+  	</div>
+
+   	<div id="syndicate_title"><!--{$locale->tr("syndicate")}--></div>
+    	<div id="Syndicate">
+    	<ul>
+    	<li><a  title="Link to the RSS 0.90 feed." href="{$url->rssLink("rss090")}"><img src="{$url->getUrl("/imgs/rss090_logo.gif")}" style="border:0px;" alt="RSS 0.90" /></a></li>
+    	<li><a  title="Link to the RSS 1.0 feed." href="{$url->rssLink("rss10")}"><img src="{$url->getUrl("/imgs/rss10_logo.gif")}" style="border:0px;" alt="RSS 1.0" /></a></li>
+    	<li><a  title="Link to the RSS 2.0 feed." href="{$url->rssLink("rss20")}"><img src="{$url->getUrl("/imgs/rss20_logo.gif")}" style="border:0px;" alt="RSS 2.0" /></a></li>
+    	<li><a  title="Link to the Atom 0.3 feed." href="{$url->rssLink("atom")}"><img src="{$url->getUrl("/imgs/atom_logo.png")}" style="border:0px;" alt="Atom 0.3" /></a></li>
+    	</ul>
+    	</div>
+</div>
+
+<div class="clearer">&nbsp;</div> 
+</div>
+
+
+
+
+<!-- Please leave the credit intact. Thank you. -->
+<div id="Bottom"><a href="http://www.w3.org/WAI/">Accessible</a> and Valid <a href="http://validator.w3.org/check/referer">XHTML 1.0 Strict</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> Powered by <a href="http://www.plogworld.net">pLog</a></div>
+
+</div>
+
+</body>
+</html>

Added: templates/trunk/spring/header.template
===================================================================
--- templates/trunk/spring/header.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/header.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$locale->getLanguageId()}" lang="{$locale->getLanguageId()}" dir="{$locale->getDirection()}">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset={$locale->getCharset()}" />
+ <meta name="generator" content="{$version}" />
+ <meta http-equiv="Content-Language" content="{$locale->getLanguageId()}" />
+ <title>{$blog->getBlog()}{$postPageTitle}</title>
+ <link rel="stylesheet" type="text/css" title="Style" href="{$url->getTemplateFile("style.css")}" />
+ <link rel="alternate" type="application/xml" title="RSS 2.0" href="{$url->rssLink("rss20")}" />
+ <link rel="alternate" type="application/xml" title="RSS 1.0" href="{$url->rssLink("rss10")}" />
+ <link rel="alternate" type="application/xml" title="RSS 0.90" href="{$url->rssLink("rss090")}" />
+ <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="{$url->rssLink("atom")}" />  
+ </head>
+  <body> 
+
+<div id="Container">
+  
+<div id="Title"><h1><a href="{$url->blogLink()}">{$blog->getBlog()}</a></h1><div id="Subtitle">{$blog->getAbout()}</div></div>
+  
+<div id="Subcontainer">  
+
+<div id="Content">
+<div id="Topmenu">
+    <a href="{$url->blogLink()}">{$locale->tr("main")}</a> /
+    <a href="{$url->templatePage("archives")}">{$locale->tr("archives")}</a> /
+    <a href="{$url->albumLink()}">{$locale->tr("albums")}</a> /
+    <a href="{$url->templatePage("links")}">{$locale->tr("links")}</a> /
+    <a href="{$url->getBaseUrl()}/summary.php">{$locale->tr("summary")}</a> /
+    <a href="{$url->getAdminUrl()}">{$locale->tr("Manage")}</a> /
+ </div>

Added: templates/trunk/spring/imgs/archives.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/archives.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/bg_today.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/bg_today.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/bgc.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/bgc.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/bgtitle.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/bgtitle.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/calendar.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/calendar.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/calendar.psd
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/calendar.psd
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/categories.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/categories.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/compressed.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/compressed.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/file.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/file.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/folder.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/folder.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/line.jpg
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/line.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/line_v.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/line_v.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/links.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/links.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/parentfolder.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/parentfolder.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/recently.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/recently.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/recently.psd
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/recently.psd
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/search.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/search.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/sound.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/sound.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/syndicate.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/syndicate.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/imgs/title.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/imgs/title.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/spring/links.template
===================================================================
--- templates/trunk/spring/links.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/links.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,15 @@
+		{include file="$blogtemplate/header.template"} 
+	<h2>{$locale->tr("my_links")}</h2>
+<div id="links_list">
+ <div id="Links">
+	{foreach from=$mylinkscategories item=linkcategory}
+    	<h3>{$linkcategory->getName()}</h3>
+   	<ul>
+  		{foreach from=$linkcategory->getLinks() item=link}
+  	<li><a href="{$link->getUrl()}" title="{$link->getDescription()}">{$link->getName()}</a>: {$link->getDescription()}</li>
+    		{/foreach}
+  	</ul>
+  		{/foreach}
+  	</div>
+</div>  
+		{include file="$blogtemplate/footer.template"} 
\ No newline at end of file

Added: templates/trunk/spring/main.template
===================================================================
--- templates/trunk/spring/main.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/main.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,30 @@
+		{include file="$blogtemplate/header.template"} 
+		
+
+ {if $showAll == 1 && $category}<h2>{$locale->tr("posts")}: {$category->getName()}</h2>{/if} 
+ 
+ 
+{foreach from=$posts item=post}
+{if $showAll}
+  <!-- showing only the topic of the post, in case we have too many! -->
+
+<div id="topic"><div id="topic_l"><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></div>
+</div>
+<div id="post">
+{$post->getText()|truncate:300:"...":false}
+</div>
+
+<div id="line"></div>
+<div id="footer">
+{foreach name=categories from=$post->getCategories() item=postCategory}
+  <a href="{$url->categoryLink($postCategory)}">{$postCategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+{/foreach}
+</div>
+
+{else}
+  <!-- show the whole post, as we would normally do -->
+   {include file="$blogtemplate/post.template"}
+{/if}
+{/foreach}
+		
+		{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/post.template
===================================================================
--- templates/trunk/spring/post.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/post.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,19 @@
+<div id="topic"><div id="topic_l">{$post->getTopic()}</div>
+		<!-- {$url->postTrackbackLink($post)} -->
+		{assign var="postDate" value=$post->getDateObject()}
+		{assign var="postOwner" value=$post->getUserInfo()}
+<div id="topic_r">{$locale->formatDate($postDate,"%Y/%m/%d,%H:%M")}</div>
+</div>
+
+<div id="post">
+{$post->getText()}
+</div>
+
+<div id="line"></div>
+<div id="footer">
+# Posted by {$postOwner->getUsername()} :: 
+{foreach name=categories from=$post->getCategories() item=postCategory}
+  <a href="{$url->categoryLink($postCategory)}">{$postCategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+{/foreach}
+:: <a href="{$url->postPermalink($post)}">{$locale->tr("comment on this")} ({$post->getTotalComments()})</a> :: <a title="{$locale->tr("permalink_title")}" href="{$url->postPermalink($post)}">{$locale->tr("permalink")}</a> :: <a href="{$url->postTrackbackStatsLink($post)}">{$locale->tr("trackbacks")} ({$post->getNumTrackbacks()})</a>
+</div>

Added: templates/trunk/spring/postandcomments.template
===================================================================
--- templates/trunk/spring/postandcomments.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/postandcomments.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,41 @@
+		{assign var="postPageTitle" value=$post->getTopic()}
+		{assign var="postPageTitle" value=" | $postPageTitle"}
+		{include file="$blogtemplate/header.template"} 
+  
+<p id="Nextpost">
+         {assign var=prevpost value=$post->getPrevArticle()}
+         {if $prevpost == true}
+<a href="{$url->postPermalink($prevpost)}" title="Previous post: {$prevpost->getTopic()}">&laquo; {$prevpost->getTopic()}</a> | <a href="{$url->blogLink()}">Main</a>
+         {/if}
+      {assign var=nextpost value=$post->getNextArticle()}
+      {if $nextpost == true}
+ | <a href="{$url->postPermalink($nextpost)}" title="Next post: {$nextpost->getTopic()}">{$nextpost->getTopic()} &raquo;</a>
+         {/if}
+
+</p>
+   
+   		{assign var="poster" value=$post->getUserInfo()}
+   		
+   		{include file="$blogtemplate/post.template"}
+
+<h2>{$locale->tr("comments")}</h2>	
+   		{foreach from=$comments item=comment}
+
+<div id="comment">
+	<div id="commentheader"><img src="{$url->getUrl("/imgs/comment_icon1.gif")}" alt="Comment Icon" /> {$comment->getTopic()}</div>
+	<div id="commenttext">{$comment->getText()}</div>
+	<div id="commentposterinfo">
+		{assign var="postDate" value=$comment->getTimestamp()}Posted by:
+		{if $comment->getUserUrl() != ""}<a href="{$comment->getUserUrl()}">{$comment->getUsername()}</a>
+		{else}
+                {$comment->getUsername()}
+                {/if} at {$locale->formatDate($postDate, "%Y/%m/%d, %H:%M")}
+	</div>
+</div>
+  		{/foreach}
+
+		{if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
+		{include file="$blogtemplate/commentform.template"}
+		{/if}
+		
+		{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/posttrackbacks.template
===================================================================
--- templates/trunk/spring/posttrackbacks.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/posttrackbacks.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,21 @@
+		{include file="$blogtemplate/header.template"} 
+		
+<h2>{$locale->tr("trackbacks")}</h2>
+<div id="trackback_list">		
+<h3>{$locale->tr("trackbacks_for_article")} "<a href="{$url->postLink($post)}">{$post->getTopic()}</a>":</h3>
+
+			{foreach from=$trackbacks item=trackback}
+<h4><a href="{$trackback->getUrl()}">{$trackback->getTitle()}</a></h4>
+
+<dl>
+<dt>{$locale->tr("trackback_excerpt")}:</dt>
+<dd>{$trackback->getExcerpt()}</dd>
+<dt>{$locale->tr("trackback_weblog")}:</dt>
+<dd>{$trackback->getBlogName()}</dd>
+   		{assign var="trackbackDate" value=$trackback->getDateObject()}
+<dt>{$locale->tr("date")}:</dt>
+<dd>{$locale->formatDate($trackbackDate, "%d/%m/%Y %H:%M")}</dd>
+</dl>
+  		{/foreach}
+</div>
+{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/resource.template
===================================================================
--- templates/trunk/spring/resource.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/resource.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,62 @@
+		{include file="$blogtemplate/header.template"} 
+
+<h2>{$locale->tr("albums")}</h2>
+<div id="album_list">
+		{assign var=metadata value=$resource->getMetadataReader()}
+		{assign var=updated value=$resource->getTimestamp()}
+<div id="album">
+	<h3>{$resource->getFileName()}</h3>
+
+	<div id="Resource-Desc">
+    	<a href="{$url->resourceDownloadLink($resource)}">{$locale->tr("download")}</a> 
+    	({$metadata->getRoundedSize()}) | {$locale->tr("created")} {$locale->formatDate($updated,"%d %b, %Y")}</div>
+ 
+ 	<div id="Resource">    
+  	<p>{$resource->getDescription()}</p>
+  		{if $resource->isImage()}
+   	<img src="{$url->resourceMediumSizePreviewLink($resource)}" alt="{$resource->getFileName()}, {$metadata->getRoundedSize()}" />
+  
+  		{else}
+     	<a href="{$url->resourceDownloadLink($resource)}">
+   		{* show some information about the file *}
+   
+   		{if $resource->isSound()}
+     	<img alt="Sound" src="{$url->getTemplateFile("imgs/sound.gif")}" /></a>
+     	<p>{$resource->getFileName()}</p>
+     	<p>{$locale->tr("format")}: {$metadata->getFormat()|upper}</p>
+     	<p>{$locale->tr("length")}: {$metadata->getLengthString()}</p>
+     	<p>{$locale->tr("sample_rate")}: {$metadata->getSampleRate()} Khz</p>
+   
+   		{elseif $resource->isVideo()}
+     	<img alt="Sound" src="{$url->getTemplateFile("imgs/video.gif")}" /></a>
+     	<p>{$resource->getFileName()}</p>
+     	<p>{$locale->tr("format")}: {$metadata->getFormat()|upper}</p>
+    	<p>{$locale->tr("size")}: {$metadata->getHeight()} x {$metadata->getWidth()}</p>
+    	<p>{$locale->tr("length")}: {$metadata->getLengthString()}</p>
+    	<p>{$locale->tr("video_codec")}: {$metadata->getVideoCodec()}</p>
+    	<p>{$locale->tr("audio_codec")}: {$metadata->getAudioCodec()}</p>
+   
+   		{elseif $resource->isZip()}
+     	<img alt="Zip" src="{$url->getTemplateFile("imgs/compressed.gif")}" /></a>
+     	<p>{$resource->getFileName()}</p> 
+    	<p>{$metadata->getTotalFiles()} {$locale->tr("files")}</p>
+    	<p>{$locale->tr("uncompressed_size")}: {$metadata->getRoundedUncompressedSize()}</p>
+   
+   		{else}
+     	<img alt="File" src="{$url->getTemplateFile("imgs/file.gif")}" /></a>
+     	<p>{$resource->getFileName()}</p>
+         
+   		{/if}   
+  		{/if}
+ 	</div>
+ 
+ 
+		{assign var=album value=$resource->getAlbum()} 
+	<p><a href="{$url->albumLink($album)}">{$locale->tr("parent")}</a></p>
+
+</div>
+
+</div>
+
+
+{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/searchresults.template
===================================================================
--- templates/trunk/spring/searchresults.template	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/searchresults.template	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,26 @@
+{include file="$blogtemplate/header.template"} 
+   <h2>{$locale->tr("search_results")}: {foreach from=$searchterms item=term}{$term} {/foreach}</h2>
+   <div id="SearchResults">
+    {foreach from=$searchresults item=result}
+    
+    
+      {assign var=article value=$result->getArticle()}
+      {if $urlmode == 2}
+      <div id="topic"><div id="topic_l"><a href="{$url->postPermalink($article)}?searchTerms={foreach from=$searchterms item=term}{$term|escape:"hex"}%20{/foreach}">{$article->getTopic()}</a></div></div>
+      {else}
+      <div id="topic"><div id="topic_l"><a href="{$url->postPermalink($article)}&searchTerms={foreach from=$searchterms item=term}{$term|escape:"hex"}%20{/foreach}">{$article->getTopic()}</a></div></div>
+      {/if}
+
+      <div id="post">
+      {$article->getText()|strip_tags|truncate:300:"...":false}
+      </div>
+
+      <div id="line"></div>
+	<div id="footer">
+		{foreach name=categories from=$article->getCategories() item=postCategory}
+ 			<a href="{$url->categoryLink($postCategory)}">{$postCategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+		{/foreach}
+	</div>
+    {/foreach}
+   </div> 
+{include file="$blogtemplate/footer.template"} 

Added: templates/trunk/spring/style.css
===================================================================
--- templates/trunk/spring/style.css	2005-03-29 17:42:20 UTC (rev 1634)
+++ templates/trunk/spring/style.css	2005-03-29 19:37:11 UTC (rev 1635)
@@ -0,0 +1,554 @@
+
+/* ******************  general  *************** */
+html { background:#b6ca8b; } 
+
+body {
+	margin:0; 
+	padding:0;
+	font:small Georgia, Verdana, arial, times new roman, lucida sans unicode, sans-serif;
+	color:#333;
+	background: #b6ca8b;
+	text-align:center;
+	}
+	
+a:link, a:visited {
+	color: #000000;
+	text-decoration: none;
+	}
+	
+a:hover, a:active, a:focus {
+	color: #ff0000;
+	text-decoration: underline;
+	}
+
+.Upgrade {
+	display: none;
+	font-weight: bold;
+	}
+	
+.clearer {
+	clear : both;
+	height : 1px;
+	font-size : 1px;
+	}
+      
+#Container {
+	width:770px;
+	margin:0px auto;
+	text-align:left;
+	padding:0px;
+	border: 1px solid #aed6b3;
+	color: #333;
+	}
+
+h1 {
+   color: #000;
+   margin:0;
+   padding:40px 0 8px 30px;
+   font-size:18px;
+   font-weight: bold;
+   background-color: transparent;
+   text-align: left;
+   } 
+h2 {
+   padding-left:30px;
+	}
+#Title {
+   width:100%;
+   height:138px;
+   background:url(imgs/title.gif) #fff no-repeat;
+   }
+
+#Title a:active, h1 a:link, h1 a:hover, h1 a:focus, h1 a:visited {
+	text-decoration: none;
+	color: #000;
+	background-color:transparent; 
+	}
+
+#Subtitle {
+	color:#000;
+	padding:2px 1px 15px 40px;
+	font-size:small;
+	width:400px;
+	text-align: left;
+	background-color:transparent;
+	}
+	
+	
+#Subtitle a:link, #Subtitle a:visited, #Subtitle a:hover {
+	text-decoration: underline;
+	color: #fff;
+	background-color:transparent;
+	}	
+	
+#Subtitle a:active, #Subtitle a:focus {
+	color: #002f64; text-decoration:none; background-color: #fff;
+	}
+
+#Subcontainer {
+	text-align:left;
+	background-color:#fff;
+	padding:0px;
+	margin:0px auto;
+	}
+	
+	
+/* ******************  column a  *************** */
+	
+#Content {
+	width:600px;
+	float: left;
+	text-align:left;
+	background:url(imgs/line_v.gif) #fff no-repeat  right top;
+	color: #333;
+	}
+#Topmenu {
+	background:url(imgs/bgc.gif) #fff no-repeat;
+	width:565px;
+	height:108px;
+	text-align:center;
+	color:#895929;
+	font-weight:bold;
+	}	
+#Topmenu a:link,#Topmenu a:visited{
+	color:#027f0a;
+	}
+#Topmenu a:hover,#Topmenu a:active{
+	color:#ff0000;
+	}
+#topic {
+	width:555px;
+	height:46px;
+	background:url(imgs/bgtitle.gif) #fff no-repeat;
+	float: left;
+	margin-left: 10px;
+	}
+#topic_l {
+	width:320px;
+	color:#027f0a;
+	font-size:15px;
+	font-weight:bold;
+	background:transparent;
+	float: left;
+	padding-left:40px;
+	padding-top:10px;
+	}
+#topic_r {
+	width:130px;
+	float: right;
+	color:#333;
+	text-align:right;
+	font:11px Georgia,Verdana;
+	padding-right:40px;
+	padding-top:10px;
+	background:transparent;
+	}
+
+#post {
+	width:505px;
+	line-height:1.8em;
+	font-size:small;
+	background:#fff;
+	margin:0px;
+	padding:10px 30px;
+	}	
+#post a:link,#post a:visited{
+	color:#7FB24C;
+	text-decoration:none;
+	}
+
+#post a:hover,#post a:active{
+	color:#196619;
+	text-decoration:none;
+	}
+#error {
+	line-height:1.8em;
+	font-size:small;
+	margin:0px;
+	padding:10px 30px;
+	color:#FF0000;
+	}
+#line {
+	width:535px;
+	background:url(imgs/line.jpg) #fff no-repeat;
+	margin-left:30px;
+	height:13px;
+	}
+#footer {
+	width:525px;
+	font-size:small;
+	font-style: italic;
+	padding-bottom:1.8em;
+	text-align:right;
+	padding-right:40px;
+	background:#fff;
+	color:#666;
+	}
+
+#footer a:link,a:visited{
+	color:#666;
+	}
+#footer a:hover,a:active{
+	color:#ff0000;
+	}
+/**************************************************/	
+#Nextpost {
+	text-align:center;
+	}	
+#Nextpost a:link,#Nextpost a:visited{
+	color:#7FB24C;
+	text-decoration:none;
+	}
+
+#Nextpost a:hover,#Nextpost a:active{
+	color:#196619;
+	text-decoration:none;
+	}
+/********************* comment *************/	
+
+#comment {
+	width:500px;
+	border-left: 5px solid #cccccc;
+	border-top: 1px solid #aed6b3;
+	border-bottom: 1px solid #aed6b3;
+	background-color: #d8f5d9;
+	margin:10px 30px;
+	font-size: 12px;
+	color: #333333;
+	font-family: 'Courier New','ËÎÌå';
+	padding: 5px;
+	}
+#commentheader {
+	padding-left:10px;
+	font-size:small;
+	color:#333;
+	font-weight: bold;
+	}
+#commenttext {
+	line-height:1.8em;
+	text-indent:2em;
+	}
+#commentposterinfo {
+	font-style: italic;
+	color:#999;
+	padding-right:10px;
+	text-align:right;
+	}
+.reply {font-weight: normal;font-size:small;}
+#CommentForm fieldset {
+	width:450px;
+	border:2px solid #d4d0cd; 
+	padding-top:10px; 
+	margin-top:10px; 
+	margin-left:40px; 
+	padding-left:10px; 
+	padding-bottom:10px;
+	}
+
+#CommentForm legend {
+	color:#525150;
+	padding:2px 4px 2px 4px;
+	background-color: #ffffff;
+	font-weight : bold;
+	}
+
+#CommentForm label {
+	width:6em;
+	float:left;
+	display:block;
+	clear:both; 
+	float:left;
+	margin-top:8px;
+	margin-bottom:0px;
+	}
+	
+#CommentForm input {
+	margin-top:
+	8px;margin-bottom:8px;
+	}
+	
+#Submit {
+	margin-top:8px;
+	margin-bottom:8px;
+	margin-left:6em;
+	}
+	
+#CommentForm textarea {
+	margin-top:8px;
+	margin-bottom:0px;
+	}
+	
+/* ******************  column b  *************** */
+	
+#Menu   {
+	width: 170px;
+	float: left;
+	font:12px/1.5 trebuchet ms, verdana, arial, helvetica, sans-serif;
+	color:#666;
+	text-align:left;
+	background-color:#fff;
+	}
+#Menu h2 {
+	width: 170px;
+	font:12px/1.5 trebuchet ms, verdana, arial, helvetica, sans-serif;
+	text-align: center;
+	color: #333;
+	background: #d8f5d9;
+	font-weight: bold;
+	padding:2px 1px;
+	}
+#calendar_title{
+	background:url(imgs/calendar.gif) #fff no-repeat;
+	width:170px;
+	height:46px;
+	}
+#Calendar {
+	width:95%;
+	}
+#Calendar a:link,#Calendar a:visited {
+	color:#009900;
+	}
+#Calendar a:hover,#Calendar a:active {
+	color:#009900;
+	}
+#categories_title{
+	background:url(imgs/categories.gif) #fff no-repeat;
+	width:170px;
+	height:51px;
+	}
+#recently_title{
+	background:url(imgs/recently.gif) #fff no-repeat;
+	width:170px;
+	height:51px;
+	}
+#links_title{
+	background:url(imgs/links.gif) #fff no-repeat;
+	width:170px;
+	height:51px;
+	}
+#search_title{
+	background:url(imgs/search.gif) #fff no-repeat;
+	width:170px;
+	height:51px;
+	}
+#archives_title{
+	background:url(imgs/archives.gif) #fff no-repeat;
+	width:170px;
+	height:51px;
+	}
+#syndicate_title{
+	background:url(imgs/syndicate.gif) #000 no-repeat;
+	width:170px;
+	height:51px;
+	}
+#Search {
+	width:90%;
+	padding:1px 5px;
+	background-color:#fff;
+	}
+	
+#Search fieldset {border:0px solid; padding:10px 0px; margin:0px;}
+#Search input {width:90px;font-size:12px;}
+#Search input.button {width:40px;font-size:12px;}
+#Search form {margin:0px;}
+#Search label {margin:0px;padding:0px;width:140px;}
+
+table.calMonth {
+	width:100%;
+	border-spacing:4px;
+	border:0px;
+	}
+
+th.calMonthCurrent {
+	font-weight:bold;
+	padding: 0px;
+	text-align: center;
+	}
+	
+th.calMonthBackward {
+	font-weight:bold;
+	padding: 0px;
+	text-align:center;
+	}
+	
+th.calMonthForward {
+	font-weight:bold;
+	padding: 0px;
+	text-align:center;
+	}
+	
+.calMonthHeader th {
+	text-align:center;
+	font-weight:bold;
+	padding: 0px;
+	}
+	
+#Calendar td {	
+	padding: 0px;
+	text-align:center;
+	}
+
+.calMonthToday {
+	background: url(imgs/bg_today.gif) #fff no-repeat;
+	}	
+
+#Categories{
+	margin:0;
+	padding:0;
+	}
+
+#Archives{
+	margin:0;
+	padding:0;
+	line-height:1.8em;
+	}
+
+#Links{
+	line-height:1.8em;
+	}
+
+#LinksCategories {
+	padding:3px 5px; 
+	font-weight:bold;
+	}
+
+#Links ul {
+	margin:0;
+	padding:1px 10px; 
+	list-style:none; 
+	font-size:small;
+	}
+#Categories ul, #Syndicate ul, #Recently ul, #Sections ul {
+	margin:0;
+	padding:1px 10px; 
+	list-style:none; 
+	font-size:small;
+	background-color:#fff;
+	line-height:1.8em;
+	}
+
+#Categories a:link, #Syndicate a:link, #Recently a:link, #Links a:link, #Sections a:link,
+#Categories a:visited, #Syndicate a:visited, #Recently a:visited, #Links a:visited, #Sections a:visited{
+	text-decoration: underline;
+	color:#333;
+	}
+
+#Categories a:hover, #Syndicate a:hover, #Recently a:hover, #Links a:hover, #Sections a:hover, 
+#Categories a:focus, #Syndicate a:focus, #Recently a:focus, #Links a:focus, #Sections a:hover,
+#Categories a:active,#Syndicate a:active, #Recently a:active, #Links a:active, #Sections a:active {
+	text-decoration: underline;
+	color:#ff0000;
+	}
+
+
+/* ******************  footer  *************** */
+
+#Bottommenu {
+	clear:both;
+	background-color:#002f64;
+	color:#fff;
+	padding:3px 15px 3px 15px;
+	}
+
+
+#Bottom {
+   color:#CCFF99;
+   padding:3px 15px 3px 3px;
+   text-align:right;
+   background-color:#027f0a;
+   } 
+	
+#Bottommenu a, #Bottommenu a:link, #Bottommenu a:visited, #Bottom a, 
+#Bottom a:link, #Bottom a:visited {
+	text-decoration: none;
+	color: #CCFF99;
+	border: 0;
+	}
+
+#Bottommenu a:active, #Bottommenu a:focus, #Bottommenu a:hover, 
+#Bottom a:active, #Bottom a:focus, #Bottom a:hover { 
+	text-decoration: underline; 
+	color: #CCFF99;
+	background-color: transparent; 
+	}
+
+#archives_list,#links_list,#album_list,#trackback_list{
+	width:415
+	line-height:1.8em;
+	font-size:small;
+	margin:10px 50px;
+	color:#000;
+	}
+/* ******************  albums  *************** */
+
+div.album {
+	text-align: center;
+        float: left;
+        width:150px;
+        margin-bottom:20px;
+  	}
+
+.album p {
+   	text-align: center;
+   	padding:0;
+   	margin:0;
+   	width:150px;
+   	}
+   
+a img {border:none;}
+#album a:link {color: #004ca1;}
+#album a:visited {color: #b50394;}
+#album a:hover, #album a:active, #album a:focus {color: #004ca1;background:none;}
+
+
+/* ******************  trakbacks  *************** */
+
+h4 {
+	margin:1em 0 0 0;
+	padding:0;font-size:small;
+	}
+	
+dl {	
+	margin:0;
+	padding:0;
+	}
+	
+dt {
+	font-weight: bold;
+	float:left;
+	}
+	
+dd {
+	padding-left:4em;
+	}
+	
+/* ******************  to align elements  *************** */
+.left {text-align: left;display:block}
+.right {text-align: right;display:block}
+.center {text-align: center;display:block}
+
+/* ******************  to float elements  *************** */
+.floatleft {float: left;padding:2px 10px 10px 0px}
+.floatright {float: right;padding:2px 0px 10px 10px;}
+
+/* ******************  to highlight text  *************** */
+.bold {font-weight: bold;}
+.italic {font-style:italic;}
+.underline {text-decoration:underline}
+
+.quote {
+  margin: 0px 20px 0px 30px;
+  padding: 0 0 0 4px;
+	border-left: 2px dotted #aed6b3;
+  color:#666;
+  font-size: 12px;
+	}
+.code {
+	border-left: 5px solid #cccccc;
+	border-top: 1px solid #aed6b3;
+	border-bottom: 1px solid #aed6b3;
+	font-size: 12px;
+	margin: 10px; padding: 5px; color: #333333;
+	font-family: 'Courier New','ËÎÌå';
+	background-color: #d8f5d9;
+	}
\ No newline at end of file

Added: templates/trunk/spring/video.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/spring/video.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the pLog-svn mailing list