[pLog-svn] r1086 - in plog/trunk/templates: . standard-with-plugins standard-with-plugins/imgs

mark at devel.plogworld.net mark at devel.plogworld.net
Tue Feb 15 13:23:27 GMT 2005


Author: mark
Date: 2005-02-15 13:23:27 +0000 (Tue, 15 Feb 2005)
New Revision: 1086

Added:
   plog/trunk/templates/standard-with-plugins/
   plog/trunk/templates/standard-with-plugins/album.template
   plog/trunk/templates/standard-with-plugins/albums.template
   plog/trunk/templates/standard-with-plugins/archives.template
   plog/trunk/templates/standard-with-plugins/commentarticle.template
   plog/trunk/templates/standard-with-plugins/commentform.template
   plog/trunk/templates/standard-with-plugins/error.template
   plog/trunk/templates/standard-with-plugins/footer.template
   plog/trunk/templates/standard-with-plugins/header.template
   plog/trunk/templates/standard-with-plugins/imgs/
   plog/trunk/templates/standard-with-plugins/imgs/compressed.gif
   plog/trunk/templates/standard-with-plugins/imgs/file.gif
   plog/trunk/templates/standard-with-plugins/imgs/folder.gif
   plog/trunk/templates/standard-with-plugins/imgs/parentfolder.gif
   plog/trunk/templates/standard-with-plugins/imgs/sound.gif
   plog/trunk/templates/standard-with-plugins/links.template
   plog/trunk/templates/standard-with-plugins/linktracker.template
   plog/trunk/templates/standard-with-plugins/main.template
   plog/trunk/templates/standard-with-plugins/post.template
   plog/trunk/templates/standard-with-plugins/postandcomments.template
   plog/trunk/templates/standard-with-plugins/posttrackbacks.template
   plog/trunk/templates/standard-with-plugins/resource.template
   plog/trunk/templates/standard-with-plugins/screenshot.jpg
   plog/trunk/templates/standard-with-plugins/searchresults.template
   plog/trunk/templates/standard-with-plugins/style.css
   plog/trunk/templates/standard-with-plugins/video.gif
Log:
Add a new templates, standard-with-plugins to let user can familiar with our new plugins and templates. And also hope user can learn more plugins/template skills from this plugins.

Currently, only recentcomments plugin includes.

Added: plog/trunk/templates/standard-with-plugins/album.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/album.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/album.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,78 @@
+   		{include file="$blogtemplate/header.template"} 
+
+<h2>{$locale->tr("albums")}</h2>
+
+<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_album")}" /></a>
+    	<p>{$locale->tr("parent_album")}</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>
+
+<!-- end of album contents --> 
+		{include file="$blogtemplate/footer.template"} 
\ No newline at end of file

Added: plog/trunk/templates/standard-with-plugins/albums.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/albums.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/albums.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,28 @@
+		{include file="$blogtemplate/header.template"} 
+
+<h2>{$locale->tr("albums")}</h2>
+
+ <!-- album contents go here -->
+ 
+<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>
+
+<!-- end of the albums -->
+		
+		{include file="$blogtemplate/footer.template"} 

Added: plog/trunk/templates/standard-with-plugins/archives.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/archives.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/archives.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,15 @@
+		{include file="$blogtemplate/header.template"} 
+<h2>{$locale->tr("archives")}</h2>
+
+<div id="Archives">
+	
+	<ul>
+		{foreach from=$archives item=month}
+    	<li><a href="{$month->getUrl()}">{$month->getName()}</a> [{$month->getNumArticles()}]</li>
+    		{/foreach}
+    		
+    		
+    	</ul>
+</div>
+   	
+   		{include file="$blogtemplate/footer.template"} 
\ No newline at end of file

Added: plog/trunk/templates/standard-with-plugins/commentarticle.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/commentarticle.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/commentarticle.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,5 @@
+		{include file="$blogtemplate/header.template"} 
+		
+		{include file="$blogtemplate/commentform.template"}
+		
+		{include file="$blogtemplate/footer.template"} 

Added: plog/trunk/templates/standard-with-plugins/commentform.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/commentform.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/commentform.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,19 @@
+<div id="CommentForm">
+  
+	<form id="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: plog/trunk/templates/standard-with-plugins/error.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/error.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/error.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,5 @@
+		{include file="$blogtemplate/header.template"} 
+ 	<h2>{$locale->tr("error")}</h2>
+ 		<p>{$locale->tr($message)}</p>
+		<p><a href="javascript:history.go(-1)">{$locale->tr("back")}</a></p>
+		{include file="$blogtemplate/footer.template"} 

Added: plog/trunk/templates/standard-with-plugins/footer.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/footer.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/footer.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,89 @@
+</div>
+
+<div id="Menu">
+  	
+  	<h2>{$locale->tr("menu")}</h2>
+    	<div id="Sections">
+    	<ul>
+    	<li><a title="{$locale->tr("main")}" href="{$url->blogLink()}">{$locale->tr("main")}</a></li>
+    	<li><a title="{$locale->tr("archives")}" href="{$url->templatePage("archives")}">{$locale->tr("archives")}</a></li>
+    	<li><a title="{$locale->tr("albums")}" href="{$url->albumLink()}">{$locale->tr("albums")}</a></li>
+    	<li><a title="{$locale->tr("links")}" href="{$url->templatePage("links")}">{$locale->tr("links")}</a></li>
+    	</ul>
+    	</div>
+    	
+    	<h2>{$locale->tr("search")}</h2>
+	<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> 
+
+	<h2>{$locale->tr("calendar")}</h2>
+    	<div id="Calendar">
+    		{$calendar}
+    	</div>	
+  
+  	<h2>{$locale->tr("recently")}</h2>
+    	<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>
+    
+ 	<h2>{$locale->tr("categories")}</h2>
+    	<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></li>
+   		{/foreach}
+  	</ul>
+  	</div>
+
+    {if $recentcomments->isEnabled()}
+     <h2>{$locale->tr("recentcomments")}</h2>
+     <div id="Recently">
+      {assign var=comments value=$recentcomments->getRecentComments()}
+      <ul>
+       {foreach from=$comments item=comment}
+        {assign var=commentpostid value=$comment->getArticleId()}
+        {assign var=commentpost value=$recentcomments->getArticle($commentpostid)}
+        {assign var=commentUserName value=$comment->getUsername()}
+        <li><a title="{$locale->pr("view_comment_by" ,$commentUserName)}" href="{$url->postPermalink($commentpost)}#{$comment->getId()}"><b>{$commentUserName}:&nbsp;</b>{$comment->getText()|truncate:100:"..."|strip_tags}</a></li>
+       {/foreach}
+      </ul>
+     </div> 
+    {/if}  	
+  
+  	<h2>{$locale->tr("syndicate")}</h2>
+    	<div id="Syndicate">
+    	<ul>
+    	<li><a title="RSS 0.90" href="{$url->rssLink("rss090")}">RSS 0.90</a></li>
+    	<li><a title="RSS 1.0" href="{$url->rssLink("rss10")}">RSS 1.0</a></li>
+    	<li><a title="RSS 2.0" href="{$url->rssLink("rss20")}">RSS 2.0</a></li>
+    	<li><a title="XML" href="{$url->rssLink("xml")}">XML</a></li>
+    	</ul>
+    	</div>
+</div>
+
+<div class="clearer">&nbsp;</div> 
+
+</div>
+
+<div id="Bottommenu"><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></div>
+
+
+<!-- Please leave the credit intact. Thank you. -->
+<div id="Bottom">Powered by <a href="http://www.plogworld.org">pLog</a> - Design by <a href="http://www.balearweb.com/">BalearWeb</a></div>
+
+</div>
+
+</body>
+</html>

Added: plog/trunk/templates/standard-with-plugins/header.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/header.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/header.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,24 @@
+<!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>
+  
+<div id="Subtitle">{$blog->getAbout()}</div>
+
+<div id="Subcontainer">  
+
+<div id="Content">

Added: plog/trunk/templates/standard-with-plugins/imgs/compressed.gif
===================================================================
(Binary files differ)


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

Added: plog/trunk/templates/standard-with-plugins/imgs/file.gif
===================================================================
(Binary files differ)


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

Added: plog/trunk/templates/standard-with-plugins/imgs/folder.gif
===================================================================
(Binary files differ)


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

Added: plog/trunk/templates/standard-with-plugins/imgs/parentfolder.gif
===================================================================
(Binary files differ)


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

Added: plog/trunk/templates/standard-with-plugins/imgs/sound.gif
===================================================================
(Binary files differ)


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

Added: plog/trunk/templates/standard-with-plugins/links.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/links.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/links.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,15 @@
+		{include file="$blogtemplate/header.template"} 
+  
+<div id="Links">
+	<h2>{$locale->tr("my_links")}</h2>
+  		{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>
+  
+		{include file="$blogtemplate/footer.template"} 
\ No newline at end of file

Added: plog/trunk/templates/standard-with-plugins/linktracker.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/linktracker.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/linktracker.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,13 @@
+		{include file="$blogtemplate/header.template"} 
+ 
+ <h2>{$locale->tr("link_tracker_results")}</h2>
+ <div>
+ 		{foreach from=$links item=link}
+ 	<ul>
+ 	<li>
+  	<a target="_blank" href="{$link->getUrl()}">{$link->getUrl()}</a></li>
+  	</ul>
+ 		{/foreach}
+</div>
+
+		{include file="$blogtemplate/footer.template"} 

Added: plog/trunk/templates/standard-with-plugins/main.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/main.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/main.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,27 @@
+		{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! -->
+<h3><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></h3>
+<div>
+{$post->getText()|strip_tags|truncate:300:"...":false}
+</div>
+
+<p class="footer">
+{foreach name=categories from=$post->getCategories() item=postCategory}
+  <a href="{$url->categoryLink($postCategory)}">{$postCategory->getName()}</a> 
+  {if !$smarty.foreach.categories.last}, {/if}
+{/foreach}
+</p>
+{else}
+  <!-- show the whole post, as we would normally do -->
+   {include file="$blogtemplate/post.template"}
+{/if}
+{/foreach}
+		
+		{include file="$blogtemplate/footer.template"} 
\ No newline at end of file

Added: plog/trunk/templates/standard-with-plugins/post.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/post.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/post.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,17 @@
+<h2>{$post->getTopic()}</h2>
+		<!-- {$url->postTrackbackLink($post)} -->
+		{assign var="postDate" value=$post->getDateObject()}
+		{assign var="postOwner" value=$post->getUserInfo()}
+<p class="date">{$postOwner->getUsername()} | {$locale->formatDate($postDate,"%d %B, %Y %H:%M")}</p>
+
+<div>
+{$post->getText()}
+</div>
+
+<p class="footer">
+{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>
+</p>

Added: plog/trunk/templates/standard-with-plugins/postandcomments.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/postandcomments.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/postandcomments.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,39 @@
+		{assign var="postPageTitle" value=$post->getTopic()}
+		{assign var="postPageTitle" value=" | $postPageTitle"}
+		{include file="$blogtemplate/header.template"} 
+  
+<p id="Nextpost">
+		{if $nextpost == true}
+<a href="{$url->postPermalink($nextpost)}" title="Next post: {$nextpost->getTopic()}">&laquo;</a> |
+   		{/if}
+   		{if $prevpost == true}
+<a href="{$url->postPermalink($prevpost)}" title="Previous post: {$prevpost->getTopic()}">&raquo;</a>
+   		{/if}
+</p>
+   
+   		{assign var="poster" value=$post->getUserInfo()}
+   		
+   		{include file="$blogtemplate/post.template"}
+<h2>{$locale->tr("comments_for_post")}</h2>	
+   		{foreach from=$comments item=comment}
+
+<a name="{$comment->getId()}"><h3 class="commentheader"><img src="{$url->getUrl("/imgs/comment_icon1.gif")}" alt="Comment Icon" /> {$comment->getTopic()}</h3></a>
+
+<p class="commentposterinfo">
+		{assign var="postDate" value=$comment->getTimestamp()}
+		{if $comment->getUserUrl() != ""}<a href="{$comment->getUserUrl()}">{$comment->getUsername()}</a>
+		{else}
+                {$comment->getUsername()}
+                {/if} | {$locale->formatDate($postDate, "%d/%m/%Y, %H:%M")}
+</p>
+
+<div class="commenttext">
+{$comment->getText()}
+</div>
+  		{/foreach}
+
+		{if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
+		{include file="$blogtemplate/commentform.template"}
+		{/if}
+		
+		{include file="$blogtemplate/footer.template"} 

Added: plog/trunk/templates/standard-with-plugins/posttrackbacks.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/posttrackbacks.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/posttrackbacks.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,21 @@
+		{include file="$blogtemplate/header.template"} 
+		
+<h2>{$locale->tr("trackbacks")}</h2>
+		
+<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}
+
+{include file="$blogtemplate/footer.template"} 

Added: plog/trunk/templates/standard-with-plugins/resource.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/resource.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/resource.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,74 @@
+		{include file="$blogtemplate/header.template"} 
+
+<h2>{$locale->tr("albums")}</h2>
+
+		{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->resourceDownloadLink($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_album")}</a></p>
+
+</div>
+
+</div>
+
+
+<div class="clearer">&nbsp;</div> 
+
+</div>
+
+<div id="Bottommenu"><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></div>
+
+
+<!-- Please leave the credit intact. Thank you. -->
+<div id="Bottom">Powered by <a href="http://www.plogworld.org">pLog</a> - Design by <a href="http://www.balearweb.com/">BalearWeb</a></div>
+
+</div>
+</body>
+</html>
\ No newline at end of file

Added: plog/trunk/templates/standard-with-plugins/screenshot.jpg
===================================================================
(Binary files differ)


Property changes on: plog/trunk/templates/standard-with-plugins/screenshot.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: plog/trunk/templates/standard-with-plugins/searchresults.template
===================================================================
--- plog/trunk/templates/standard-with-plugins/searchresults.template	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/searchresults.template	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,21 @@
+{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}
+      <h3><a href="{$url->postPermalink($article)}?searchTerms={foreach from=$searchterms item=term}{$term|escape:"hex"}%20{/foreach}">{$article->getTopic()}</a></h3>
+      {else}
+      <h3><a href="{$url->postPermalink($article)}&searchTerms={foreach from=$searchterms item=term}{$term|escape:"hex"}%20{/foreach}">{$article->getTopic()}</a></h3>
+      {/if}
+      <p class="searchArticle">
+      {$article->getText()|strip_tags|truncate:300:"...":false}
+      </p>
+      {assign var="articleCategory" value=$article->getCategory()}
+      <p class="footer""><a href="{$url->postCategoryLink($article)}">{$articleCategory->getName()}</a></p>
+
+    {/foreach}
+   </div> 
+{include file="$blogtemplate/footer.template"} 

Added: plog/trunk/templates/standard-with-plugins/style.css
===================================================================
--- plog/trunk/templates/standard-with-plugins/style.css	2005-02-15 13:20:43 UTC (rev 1085)
+++ plog/trunk/templates/standard-with-plugins/style.css	2005-02-15 13:23:27 UTC (rev 1086)
@@ -0,0 +1,377 @@
+/* ******************  general  *************** */
+
+abbr, acronym {
+  cursor: help;
+  border: none;
+}
+
+html, #Bottom, #Title h1 { background:#004ca1; } 
+
+body {
+	margin:0; 
+	padding:0;
+	font:small lucida sans unicode, arial, times new roman, sans-serif;
+	color:#525150;
+	background: #fff;
+	}
+	
+a:link {
+	color: #004ca1;
+	}
+	
+a:visited {
+	color: #b50394;
+	}
+	
+a:hover, a:active, a:focus {
+	color: #fff; text-decoration:none; background-color: #b50394;
+	}
+
+h2, h3 {
+	margin:0;
+	padding:0;
+	}
+	
+.Upgrade {
+	display: none;
+	font-weight: bold;
+	}
+	
+.clearer {
+	clear : both;
+	height : 1px;
+	font-size : 1px;
+	}
+      
+#Container {
+	width: 100%;
+	}
+
+#Title h1 {
+   color: #fff;
+   margin:0;
+   padding:25px 0 5px 10px;
+   font-size:320%;
+   font-weight: normal;
+   } 
+
+#Title a:active, h1 a:link, h1 a:hover, h1 a:focus, h1 a:visited {
+	text-decoration: none;
+	color: #fff;
+	background-color:transparent; 
+	}
+
+#Subtitle {
+	background-color:#002f64;
+	color:#fff;
+	padding:2px 14px 2px 14px;
+	font-size:medium;
+	}
+	
+	
+#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-bottom:10px;
+	padding-top:10px;
+	}
+	
+	
+/* ******************  column a  *************** */
+	
+#Content {
+	width: 62%;
+	float: left;
+	margin-right:3%;
+	margin-left:2%;
+	background-color:#fff;
+	}
+	
+#Content h2 {
+	color:#b8b2ac;
+	margin:20px 0 10px 0;
+	}
+	
+.date {
+	font-weight: bold;
+	}
+
+.footer {
+	padding-bottom:1em;
+	border-bottom: 1px solid #d4d0cd;
+	}
+	
+#Nextpost {
+	text-align:center;
+	}	
+	
+.commentposterinfo {
+	margin-bottom:1em;
+	font-weight: bold;
+	}
+	
+h3.commentheader {
+	font-size:medium;
+	color:#b8b2ac;
+	font-weight: normal;
+	}
+	
+.reply {font-weight: normal;font-size:small;}
+
+div.commenttext {
+	border-bottom: 1px solid #d4d0cd;
+	padding-bottom:1em;
+	margin-bottom:1em;
+	}
+
+
+#CommentForm fieldset {
+	border:2px solid #d4d0cd; 
+	padding-top:10px; 
+	margin-top:10px; 
+	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;
+	}
+	
+/* ******************  columnb  *************** */
+	
+#Menu   {
+	width:30%;
+	float: left;
+	text-align:left;
+	background-color:#fff;
+	}
+	
+#Calendar, #Search {
+	border-left-color:#d4d0cd;
+	border-left-style:solid;
+	border-left-width:6px;
+	width:86%;
+	padding-top:1px;
+	padding-bottom:1px;
+	padding-right:14px;
+	padding-left:6px;
+	margin-bottom:10px;
+	background-color:#f0efee;
+	margin-top:1px;
+	}
+	
+#Search fieldset {border:0px solid; padding:2px; margin:2px;}
+#Search input {margin:0px;padding:2px;width:7em;}
+#Search input.button {margin:0px;padding:2px;width:5em;}
+#Search form {margin:0px;padding:2px;}
+#Search label {margin:0px;padding:2px;width:8em;}
+
+table.calMonth {
+	width:11em;
+	border-spacing:4px;
+	border:0px;
+	}
+
+th.calMonthCurrent {
+	font-weight:normal;
+	padding: 0px;
+	text-align: center;
+	}
+	
+th.calMonthBackward {
+	font-weight:normal;
+	padding: 0px;
+	text-align:center;
+	}
+	
+th.calMonthForward {
+	font-weight:normal;
+	padding: 0px;
+	text-align:center;
+	}
+	
+.calMonthHeader th {
+	text-align:center;
+	font-weight:normal;
+	padding: 0px;
+	}
+	
+#Calendar td {	
+	padding: 0px;
+	text-align:center
+	}
+
+.calendarToday {
+ 	background-color: #d4d0cd;
+	}	
+
+#Menu h2 {
+  	background-color: #004ca1;
+  	font-size:small;
+  	width:86%;
+  	display:block;
+        padding:1px 10px 1px 10px;
+  	border-left-style:solid;
+  	border-left-color:#002f64;
+  	color:#fff;
+  	margin-top:10px;
+  	border-left-width:6px;
+	}
+
+#Categories ul, #Syndicate ul, #Recently ul, #Sections ul {
+	margin-left:0; 
+	margin-top:0; 
+	margin-bottom:0px; 
+	padding:0; 
+	list-style:none; 
+	font-size:small;
+	}
+
+#Categories a, #Syndicate a, #Recently a, #Sections a {
+	width:86%;
+	display:block;
+	padding-top:1px;
+	padding-bottom:1px;
+	border-left-style:solid;
+	border-left-color:#d4d0cd;
+	text-decoration:none;
+	padding-right:10px;
+	padding-left:10px;
+	background-color:#f0efee;
+	border-left-width:6px;
+	margin-top:1px
+	}
+
+#Categories a:hover, #Syndicate a:hover, #Recently a:hover, 
+#Sections a:hover, #Categories a:focus, #Syndicate a:focus, 
+#Recently a:focus, #Links a:focus, #Categories a:active,  
+#Syndicate a:active, #Recently a:active, #Sections a:active {
+	border-color:#71025C;
+	background-color:#b50394;
+	}
+
+
+/* ******************  footer  *************** */
+
+#Bottommenu {
+	clear:both;
+	background-color:#002f64;
+	color:#fff;
+	padding:3px 15px 3px 15px;
+	}
+
+
+#Bottom {
+   color:#fff;
+   padding:3px 3px 3px 15px;
+   } 
+	
+#Bottommenu a, #Bottommenu a:link, #Bottommenu a:visited, #Bottom a, 
+#Bottom a:link, #Bottom a:visited {
+	text-decoration: none;
+	color: #fff;
+	border: 0;
+	}
+
+#Bottommenu a:active, #Bottommenu a:focus, #Bottommenu a:hover, 
+#Bottom a:active, #Bottom a:focus, #Bottom a:hover { 
+	text-decoration : underline; 
+	color : #fff;background-color:transparent; 
+	}
+
+
+/* ******************  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}
\ No newline at end of file

Added: plog/trunk/templates/standard-with-plugins/video.gif
===================================================================
(Binary files differ)


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




More information about the pLog-svn mailing list