[pLog-svn] r1940 - in templates/trunk: . connections connections/img

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Thu May 5 12:50:43 GMT 2005


Author: jondaley
Date: 2005-05-05 12:50:42 +0000 (Thu, 05 May 2005)
New Revision: 1940

Added:
   templates/trunk/connections/
   templates/trunk/connections/album.template
   templates/trunk/connections/albums.template
   templates/trunk/connections/commentarticle.template
   templates/trunk/connections/commentform.template
   templates/trunk/connections/error.template
   templates/trunk/connections/footer.template
   templates/trunk/connections/header.template
   templates/trunk/connections/img/
   templates/trunk/connections/img/blockquote.gif
   templates/trunk/connections/img/bullet.gif
   templates/trunk/connections/img/comments_bottom.jpg
   templates/trunk/connections/img/content_bg.gif
   templates/trunk/connections/img/contentbg.jpg
   templates/trunk/connections/img/divider.gif
   templates/trunk/connections/img/rap.jpg
   templates/trunk/connections/img/sidenav_bottom.jpg
   templates/trunk/connections/img/sidenav_top.jpg
   templates/trunk/connections/img/sub-bullet.gif
   templates/trunk/connections/img/subcat_bullet.gif
   templates/trunk/connections/img/top.jpg
   templates/trunk/connections/main.template
   templates/trunk/connections/panel.template
   templates/trunk/connections/post.template
   templates/trunk/connections/postandcomments.template
   templates/trunk/connections/posttrackbacks.template
   templates/trunk/connections/resource.template
   templates/trunk/connections/screenshot.jpg
   templates/trunk/connections/searchresults.template
   templates/trunk/connections/style.css
Log:
 This themplate was ported from WordPress connections theme which has just won the Grand Poobah Prize from http://alexking.org/.  http://bugs.plogworld.net/view.php?id=461

Added: templates/trunk/connections/album.template
===================================================================
--- templates/trunk/connections/album.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/album.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,87 @@
+{include file="$blogtemplate/header.template"}
+<div id="content">
+<div class="post">
+<h2>{$album->getName()}</h2>
+<p>
+{$album->getDescription()}
+</p>
+<!-- album contents go here -->
+<div id="album">
+<table style="border:0px;width:93%" summary="Album Resources">
+<tr>
+<td style="width:30%;" align="center" >
+<a class="nodecoration" href="{$url->parentAlbumLink($album)}">
+<img style="border:0px" src="{$url->getUrl("/imgs/folder.gif")}" alt="Folder" /><br/>
+..
+</a>
+</td>
+{assign var="counter" value=1}
+{assign var=children value=$album->getChildren()}
+{foreach from=$children item=childalbum}
+<td style="width:30%;" align="center" >
+<a class="nodecoration" href="{$url->albumLink($childalbum)}">
+<img style="border:0px;" src="{$url->getUrl("/imgs/folder.gif")}" alt="Folder" /><br/>
+{$childalbum->getName()} ({$childalbum->getNumResources()})
+</a>
+<br/><br/>
+{assign var="counter" value="`$counter+1`"}
+</td>
+{if $counter%3 == 0}
+</tr>
+<tr>
+{/if}
+{/foreach}
+<!--- show the resources here -->
+
+{assign var=resources value=$album->getResources()}
+{foreach from=$resources item=resource}
+<td style="width:30%;" align="center" >
+{if $resource->hasPreview()}
+{*<a class="nodecoration" target="_blank" href="resserver.php?blogId={$blog->getId()}&amp;resource={$resource->getFileName()}">*}
+<a class="nodecoration" href="{$url->resourceLink($resource)}">
+<img alt="{$resource->getDescription()}" style="border:0px;" src="{$url->resourcePreviewLink($resource)}" />
+<br/>{$resource->getFileName()}
+</a>
+{else}
+<a class="nodecoration" href="{$url->resourceLink($resource)}">
+{if $resource->isSound()}
+<img alt="Sound" src="{$url->getUrl("/imgs/sound.gif")}" height="64" width="64" style="border:0px;" />
+{elseif $resource->isVideo()}
+<img alt="Video" src="{$url->getUrl("/imgs/video.gif")}" height="64" width="64" style="border:0px;" />
+{elseif $resource->isZip()}
+<img alt="Zip" src="{$url->getUrl("/imgs/compressed.gif")}" height="64" width="64" style="border:0px;" />
+{else}
+<img alt="File" src="{$url->getUrl("/imgs/file.gif")}" height="64" width="64" style="border:0px;" />
+{/if}
+<br/>{$resource->getFileName()}
+</a>
+{/if}
+<br/>
+{assign var=metadata value=$resource->getMetadataReader()}
+{$metadata->getRoundedSize()}<br/>
+{if $resource->isImage()}
+{$metadata->getWidth()} x {$metadata->getHeight()}<br/>
+{elseif $resource->isSound()}
+{$metadata->getFormat()|upper} {$metadata->getSampleRate()} bps<br/>
+{elseif $resource->isVideo()}
+{$metadata->getFormat()|upper}
+{$metadata->getWidth()} x {$metadata->getHeight()},
+{$metadata->getLengthString()}<br/>
+{elseif $resource->isZip()}
+{$metadata->getTotalFiles()} {$locale->tr("files")}<br/>
+{/if}
+{assign var="counter" value="`$counter+1`"}
+</td>
+{if $counter%3 == 0}
+</tr>
+<tr>
+{/if}
+{/foreach}
+<td></td></tr>
+</table>
+</div>
+<!-- end of album contents -->
+</div>
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/albums.template
===================================================================
--- templates/trunk/connections/albums.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/albums.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,30 @@
+{include file="$blogtemplate/header.template"}
+<div id="content">
+<div class="post">
+<h2>{$locale->tr("albums")}</h2>
+<!-- album contents go here -->
+<div id="album">
+<table style="border:0px;width:93%;" summary="Albums">
+<tr>
+{assign var="counter" value=0}
+{foreach from=$albums item=album}
+<td style="width:30%;" align="center">
+<a class="nodecoration" href="{$url->albumLink($album)}">
+<img style="border:0px;" src="{$url->getUrl("/imgs/folder.gif")}" alt="Folder" /><br/>
+{$album->getName()} ({$album->getNumResources()})
+</a>
+{assign var="counter" value="`$counter+1`"}
+</td>
+{if $counter%3 == 0}
+</tr>
+<tr>
+{/if}
+{/foreach}
+<td></td></tr>
+</table>
+</div>
+<!-- end of the albums -->
+</div>
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/commentarticle.template
===================================================================

Added: templates/trunk/connections/commentform.template
===================================================================
--- templates/trunk/connections/commentform.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/commentform.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,13 @@
+<form id="commentform" name="commentform" action="{$url->getBaseUrl()}/index.php" method="post">
+<p><input name="userName" type="text" size="35" /><small>{$locale->tr("comment_username")} (required)</small></p>
+<p><input name="commentTopic" type="text" size="35" /><small>{$locale->tr("comment_topic")}</small></p>
+<p><input name="userUrl" type="text" size="35" /><small>{$locale->tr("comment_url")}</small></p>
+<p><input name="userEmail" type="text" size="35" /><small>{$locale->tr("comment_email")}</small></p>
+<p><textarea rows="10" cols="45" name="commentText"></textarea></p>
+<p><input style="font-weight: bold;" type="submit" name="post" value="&nbsp;{$locale->tr("comment_send")}&nbsp;" />
+&nbsp;&nbsp;<input style="font-weight: bold;" type="reset"></p>
+<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}"/>
+</form>
\ No newline at end of file

Added: templates/trunk/connections/error.template
===================================================================
--- templates/trunk/connections/error.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/error.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,10 @@
+{include file="$blogtemplate/header.template"}
+<div id="content">
+   <div class="post">
+      <h2 class="post-title">{$locale->tr("error")}</h2>
+      <p>{$locale->tr($message)}</p>
+      <p><a href="javascript:history.go(-1)">{$locale->tr("back")}</a></p>
+   </div>
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/footer.template
===================================================================
--- templates/trunk/connections/footer.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/footer.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,6 @@
+<p id="footer">
+Power by <a href="http://www.plogworld.net" target="_blank">pLog</a>. Design by <a href="http://wpthemes.info" title="WP Themes.Info">WPThemes.Info</a>&nbsp; Converted to use with pLog by James Huang. Valid <a href="http://validator.w3.org/check/referer">XHTML</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></p>
+</div>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: templates/trunk/connections/header.template
===================================================================
--- templates/trunk/connections/header.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/header.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,25 @@
+<!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" 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" title="Default" href="{$url->getTemplateFile("style.css")}" type="text/css" />
+	<link rel="alternate" type="text/xml" title="RSS 2.0" href="{$url->rssLink("rss20")}" />
+	<link rel="alternate" type="text/xml" title="RSS 1.0" href="{$url->rssLink("rss10")}" />
+	<link rel="alternate" type="text/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="rap">
+		<div id="header">
+			<ul id="topnav">
+				<li><a href="{$url->blogLink()}"> {$locale->tr("main")} </a> | </li>
+				<li><a href="admin.php" accesskey="2">{$locale->tr("dashboard")} </a> | </li>
+				<li><a href="{$url->albumLink()}">{$locale->tr("albums")} </a> | </li>
+			</ul> 
+			<h1><a href="{$url->blogLink()}" accesskey="1"> {$blog->getBlog()}</a></h1>
+			<div id="desc">{$blog->getAbout()}</div>
+		</div>
+		<div id="main">

Added: templates/trunk/connections/img/blockquote.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/blockquote.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/bullet.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/bullet.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/comments_bottom.jpg
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/comments_bottom.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/content_bg.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/content_bg.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/contentbg.jpg
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/contentbg.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/divider.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/divider.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/rap.jpg
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/rap.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/sidenav_bottom.jpg
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/sidenav_bottom.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/sidenav_top.jpg
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/sidenav_top.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/sub-bullet.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/sub-bullet.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/subcat_bullet.gif
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/subcat_bullet.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/img/top.jpg
===================================================================
(Binary files differ)


Property changes on: templates/trunk/connections/img/top.jpg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: templates/trunk/connections/main.template
===================================================================
--- templates/trunk/connections/main.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/main.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,10 @@
+{include file="$blogtemplate/header.template"}
+			<div id="content">
+				<div class="post">
+	{foreach from=$posts item=post}
+  		{include file="$blogtemplate/post.template"}
+	{/foreach}
+				</div>
+			</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/panel.template
===================================================================
--- templates/trunk/connections/panel.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/panel.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,73 @@
+<div id="sidebar">
+<!--Calendar-->
+<h2> {$locale->tr("calendar")} </h2>
+<ul>
+<li>
+<div align="center">
+{$calendar}
+</div>
+</li>
+</ul>
+<!--Search-->
+<form name="search_form" method="post" action="{$url->getIndexUrl()}">
+<h2> {$locale->tr("search")} </h2>
+<ul>
+<li><div style="text-align:center">
+<input type="text" name="searchTerms" value="" size="14" /><br/>
+<input type="hidden" name="op" value="Search" />
+<input type="hidden" name="blogId" value="{$blog->getId()}" />
+<input type="submit" name="Search" value="{$locale->tr("search")|capitalize}" />
+</div></li>
+</ul>
+</form>
+
+<!--Recent Articles-->
+<h2> {$locale->tr("recently")} </h2>
+<ul>
+{foreach from=$recentposts item=recentpost}
+<li><a title="{$recentpost->getText()|truncate:150:"..."|strip_tags|escape}" href="{$url->postLink($recentpost)}">{$recentpost->getTopic()}</a></li>
+{/foreach}
+</ul>
+
+<!--archives-->
+<h2> {$locale->tr("archives")} </h2>
+<ul>
+{foreach from=$archives item=month}
+<li><div style="text-align:center"><a href="{$month->getUrl()}">{$month->getName()}</a></div></li>
+{/foreach}
+</ul>
+
+<!--categories-->
+<h2> {$locale->tr("categories")} </h2>
+<ul>
+{foreach from=$articlecategories item=articleCategory}
+<li><a href="{$url->categoryRssLink($articleCategory)}"><img src="{$url->getUrl("/imgs/rss_logo_small.gif")}" style="border:0px;" alt="RSS 0.90" align="middle" /></a>
+<a href="{$url->categoryLink($articleCategory)}">{$articleCategory->getName()}</a> [{$articleCategory->getNumArticles()}]</li>
+{/foreach}
+</ul>
+
+<!--Mylink-->
+<h2> {$locale->tr("my_links")} </h2>
+<ul>
+{foreach from=$mylinkscategories item=linkcategory}
+<li>{$linkcategory->getName()}
+<ul class='children'>
+{foreach from=$linkcategory->getLinks() item=link}
+<li><a href="{$link->getUrl()}" title="{$link->getDescription()}">{$link->getName()}</a></li>
+{/foreach}
+</ul>
+</li>
+{/foreach}
+</ul>
+
+<!--Syndicate-->
+<h2> {$locale->tr("syndicate")} </h2>
+<ul>
+<li><div style="text-align:center">
+<a class="nodecoration" 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><br />
+<a class="nodecoration" 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><br />
+<a class="nodecoration" 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><br />
+<a class="nodecoration" 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><br />
+</div></li>
+</ul>
+</div>
\ No newline at end of file

Added: templates/trunk/connections/post.template
===================================================================
--- templates/trunk/connections/post.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/post.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,16 @@
+<!-- {$url->postTrackbackLink($post)} -->
+{assign var="postDate" value=$post->getDateObject()}
+{assign var="postOwner" value=$post->getUserInfo()}
+		<!-- post start -->
+		<p class="post-date">{$locale->formatDate($postDate,"%d %B, %Y %H:%M")}</p>
+		<div class="post-info"><h2 class="post-title"><a href="{$url->postPermalink($post)}" rel="bookmark" title="Permanent Link: {$post->getTopic()}"> {$post->getTopic()} </a></h2>
+			Posted by {$postOwner->getUsername()} under 
+				[{foreach name=categories from=$post->getCategories() item=postcategory}
+				<a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>
+				{if !$smarty.foreach.categories.last}, {/if}
+				{/foreach}]
+			<br/>[<a href="{$url->postPermalink($post)}"> ({$post->getTotalComments()}) {$locale->tr("comment on this")} </a>]&nbsp;|&nbsp;[<a href="{$url->postTrackbackStatsLink($post)}"> ({$post->getNumTrackbacks()}) {$locale->tr("trackbacks")}  </a>]</div>
+			<div class="post-content">
+				{$post->getText()}
+				<div class="post-footer">&nbsp;</div>
+			</div>

Added: templates/trunk/connections/postandcomments.template
===================================================================
--- templates/trunk/connections/postandcomments.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/postandcomments.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,45 @@
+{include file="$blogtemplate/header.template"}
+{assign var="postDate" value=$post->getDateObject()}
+{assign var="postOwner" value=$post->getUserInfo()}
+{assign var=nextpost value=$post->getNextArticle()}
+{assign var=prevpost value=$post->getPrevArticle()}
+{assign var=postId value=$post->getId()}
+<div id="content">
+<div class="post">
+<p align="center">
+{if $prevpost == true}
+<a href="{$url->postPermalink($prevpost)}" title="{$locale->tr("previous_post")}: {$prevpost->getTopic()}">&laquo; {$locale->tr("previous_post")}</a> |
+{/if}
+{if $nextpost == true}
+<a href="{$url->postPermalink($nextpost)}" title="{$locale->tr("next_post")}: {$nextpost->getTopic()}">{$locale->tr("next_post")}&raquo;</a>
+{/if}
+</p>
+{include file="$blogtemplate/post.template"}
+
+{* show comments *}
+<h3 id="comments">{$post->getTotalComments()} COMMONS TO "{$post->getTopic()}"</h3>
+<ol class="commentlist">
+{foreach name=comment from=$comments item=comment}
+<li class="alt" id="comment-{$comment->getId()}">
+{$locale->tr("posted_by")}
+{if $comment->getUserUrl() != ""}
+<cite><a href="{$comment->getUserUrl()}"}>{$comment->getUsername()}</a></cite>
+{else}
+<cite>{$comment->getUsername()}</cite>
+{/if}
+<a name="{$comment->getId()}"></a>
+{$comment->getTopic()} [<a href="{$url->postPermalink($post)}#NewComment"> {$locale->tr("reply")} </a>]<br />
+<small class="commentmetadata">{assign var=commentDate value=$comment->getDateObject()}	{$locale->formatDate($commentDate, "%d/%m/%Y, %H:%M")}</small>
+<p>{$comment->getText()}</p>
+</li>
+{/foreach}
+</ol>
+{if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
+<h3 id="respond"><a name="Newcomment"></a>{$locale->tr("add_comment")}</h3>
+{include file="$blogtemplate/commentform.template"}
+{/if}
+
+</div>
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/posttrackbacks.template
===================================================================
--- templates/trunk/connections/posttrackbacks.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/posttrackbacks.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,17 @@
+{include file="$blogtemplate/header.template"}
+<div id="content">
+<div class="post">
+<h2 class="post-title">{$locale->tr("trackbacks_for_article")} "<a href="{$url->postLink($post)}">{$post->getTopic()}</a>":</h2>
+<br/<br/>
+{foreach from=$trackbacks item=trackback}
+<b>{$locale->tr("trackbacks_for_article")}:</b><a href="{$trackback->getUrl()}">{$trackback->getTitle()}</a><br/>
+<b>{$locale->tr("trackback_excerpt")}:</b> {$trackback->getExcerpt()}<br/>
+<b>{$locale->tr("trackback_weblog")}:</b> {$trackback->getBlogName()}<br/>
+{assign var="trackbackDate" value=$trackback->getDateObject()}
+<b>{$locale->tr("date")}:</b> {$locale->formatDate($trackbackDate, "%d/%m/%Y %H:%M")}<br/>
+<div class="post-footer">&nbsp;</div>
+{/foreach}
+</div>
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/resource.template
===================================================================
--- templates/trunk/connections/resource.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/resource.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,58 @@
+{include file="$blogtemplate/header.template"}
+{assign var=metadata value=$resource->getMetadataReader()}
+{assign var=updated value=$resource->getTimestamp()}
+<div id="content">
+<div class="post">
+<h2>{$resource->getFileName()}</h2>
+<br/>
+<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 id="album">
+<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->getUrl("/imgs/sound.gif")}" height="64" width="64" style="border:0px;" /><br/>
+{$resource->getFileName()}
+</a><br/>
+{$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
+{$locale->tr("length")}: {$metadata->getLengthString()}<br/>
+{$locale->tr("sample_rate")}: {$metadata->getSampleRate()} Khz
+{elseif $resource->isVideo()}
+<img alt="Sound" src="{$url->getUrl("/imgs/video.gif")}" height="64" width="64" style="border:0px;" /><br/>
+{$resource->getFileName()}
+</a><br/>
+{$locale->tr("format")}: {$metadata->getFormat()|upper}<br/>
+{$locale->tr("size")}: {$metadata->getHeight()} x {$metadata->getWidth()}<br/>
+{$locale->tr("length")}: {$metadata->getLengthString()}<br/>
+{$locale->tr("video_codec")}: {$metadata->getVideoCodec()}<br/>
+{$locale->tr("audio_codec")}: {$metadata->getAudioCodec()}
+{elseif $resource->isZip()}
+<img alt="Sound" src="{$url->getUrl("/imgs/compressed.gif")}" height="64" width="64" style="border:0px;" /><br/>
+{$resource->getFileName()}
+</a><br/>
+{$metadata->getTotalFiles()} {$locale->tr("files")}<br/>
+{$locale->tr("uncompressed_size")}: {$metadata->getRoundedUncompressedSize()}
+{else}
+<img alt="Sound" src="{$url->getUrl("/imgs/file.gif")}" height="64" width="64" style="border:0px;" /><br/>
+{$resource->getFileName()}
+</a>
+{/if}
+{/if}
+<br/>
+</div>
+<p>
+{assign var=album value=$resource->getAlbum()}
+{if $prevresource}<a href="{$url->resourceLink($prevresource)}">&laquo;</a> | {/if}
+<a href="{$url->albumLink($album)}">{$locale->tr("back")}</a>
+{if $nextresource}| <a href="{$url->resourceLink($nextresource)}">&raquo;</a>{/if}
+</p>
+</div>
+</div>
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/screenshot.jpg
===================================================================
(Binary files differ)


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

Added: templates/trunk/connections/searchresults.template
===================================================================
--- templates/trunk/connections/searchresults.template	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/searchresults.template	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,22 @@
+{include file="$blogtemplate/header.template"}
+<div id="content">
+<div class="post">
+<h2 class="post-title">{$locale->tr("search_results")}: {foreach from=$searchterms item=term}{$term} {/foreach}</h2><br/>
+<div class="post-info">
+{foreach from=$searchresults item=result}
+{assign var=article value=$result->getArticle()}
+<h3 class="post-title"><a href="{$url->postPermalink($article)}">{$article->getTopic()}</a></h3>
+
+{$locale->tr("categories")}:
+{foreach name=categories from=$article->getCategories() item=articleCategory}
+<a href="{$url->categoryLink($articleCategory)}">{$articleCategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+{/foreach}
+
+<div class="post-content">{$article->getText()|strip_tags|truncate:300:"...":false}</div>
+<div class="post-footer">&nbsp;</div>
+{/foreach}
+</div>
+</div>
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}
\ No newline at end of file

Added: templates/trunk/connections/style.css
===================================================================
--- templates/trunk/connections/style.css	2005-05-04 13:44:29 UTC (rev 1939)
+++ templates/trunk/connections/style.css	2005-05-05 12:50:42 UTC (rev 1940)
@@ -0,0 +1,365 @@
+/*
+Theme Name: Connections
+Theme URI: http://wpthemes.info
+Version: 1.0
+Description: A Theme from wpthemes.Info
+Author: Patricia Muller
+Author URI: http://www.vanillamist.com/blog/
+-------------------------------------------------
+ReTheme Name: Connections-pLog
+Version: 1.0
+ReBuild-Author: James Huang
+Ported Author URL: http://163.21.6.11/plog/
+
+*/
+body {
+margin:0;
+padding:0;
+font-family: 'Trebuchet MS',Georgia, Times, Times New Roman, sans-serif;
+font-size: 0.9em;
+text-align:center;
+color:#29303B;
+line-height:1.3em;
+background: #F3F6ED;
+}
+a {
+color: #909D73;
+text-decoration:none;
+}
+a:visited {
+color: #8a3207;
+}
+a:hover {
+color: #753206;
+text-decoration:underline;
+}
+input, textarea
+{
+background: #F3F6ED;
+border: #E1D6C6 1px solid;
+}
+#rap
+{
+background:#fff url(img/rap.jpg) center repeat-y;
+width:760px;
+margin:0 auto;
+padding:0px 8px;
+text-align:left;
+font-family: Trebuchet MS,Georgia, Arial, serif;
+font-size: 0.9em;
+}
+#header {
+background:#fff url(img/top.jpg) no-repeat bottom;
+height: 183px;
+margin: 0 auto;
+width:760px;
+padding:0;
+border:#fc9 0px solid;
+}
+#main
+{
+margin:0 auto;
+padding:0;
+background:url(img/content_bg.gif) repeat;
+width:740px;
+}
+#content {
+width:510px;
+float:left;
+padding:5px;
+margin:0;
+overflow:hidden;
+display:inline;
+}
+#sidebar {
+width:186px;
+float:right;
+padding:0px 8px 10px 8px;
+margin:0;
+font-size:1em;
+color:#333;
+display:inline;
+}
+a img {
+border: none;
+}
+acronym, abbr {
+border-bottom: 1px dotted #0c6bf0;
+}
+acronym, abbr, span.caps {
+cursor: help;
+letter-spacing: .07em;
+}
+code {
+font-size: 1em;
+font-style: italic;
+}
+blockquote {
+margin: 15px 30px 0 45px;
+padding: 0 0 0 45px;
+background: url(img/blockquote.gif) no-repeat left top;
+font-style:italic;
+}
+
+cite {
+font-size: 0.9em;
+font-style: normal;
+}
+h3 {
+margin: 0;
+padding: 0;
+font-size:1.3em;
+}
+p {
+margin: 0 0 1em;
+padding: 0;
+line-height: 1.5em;
+}
+h1, h2, h3, h4 {
+font-family: Georgia, "Lucida Sans Unicode", lucida, Verdana, sans-serif;
+font-weight: normal;
+letter-spacing: 1px;
+}
+#header h1
+{
+margin: 0;
+font-size: 1.6em;
+padding:10px 20px 0 0;
+text-align:right;
+}
+#header h1 a
+{
+color:#B5C09D;
+text-decoration:none;
+}
+#header h1 a:hover
+{
+color:#F7F3ED;
+}
+#header #desc
+{
+font-weight:normal;
+font-style:italic;
+font-size:1em;
+color:#B5C09D;
+text-align:right;
+margin:0;
+padding:0 20px 0 0;
+}
+#sidebar h2 {
+margin: 10px 0 0 0;
+padding:2px;
+font-size: 1em;
+color: #676E04;
+text-align:center;
+background:url(img/sidenav_top.jpg) no-repeat center;
+border:#ccc 0px solid;
+height:22px;
+font-weight:bold;
+}
+#sidebar ul {
+list-style-type: none;
+padding: 5px;
+margin: 0;
+font-size: 0.9em;
+padding-bottom:20px;
+background:#F3F6ED url(img/sidenav_bottom.jpg) no-repeat bottom;
+border:#E1D6c6 1px solid;
+border-top:#f3f6ed 1px solid;
+}
+#pagenav
+{
+list-style:none;
+}
+#sidebar ul li {
+margin: 0.1em 0 0 0;
+padding: 0;
+}
+#sidebar ul li a {
+text-decoration: none;
+border:none;
+}
+#sidebar ul li a:link {
+color: #909D73;
+}
+#sidebar ul li a:visited {
+color: #999999;
+}
+#sidebar ul li a:hover, #sidebar ul li a:active {
+color: #990000;
+}
+#sidebar ul ul {
+list-style-type: none;
+padding: 5px;
+margin: 0;
+font-size: 1em;
+background:none;
+border:none;
+}
+#sidebar ul ul li
+{
+margin:0;
+padding:0;
+padding-left:10px;
+margin-left:10px;
+background:url(img/subcat_bullet.gif) no-repeat left;
+}
+#content ul {
+margin-left: 0;
+padding-left: 45px;
+list-style-type: none;
+}
+#content ul li {
+background: url(img/bullet.gif) no-repeat 0 7px;
+padding-left: 1.5em;
+}
+.post , .page
+{
+margin:0 0 30px 0;
+}
+.page
+{
+margin:25px -5px 0 27px;
+}
+.post-info, .page-info
+{
+font-size:0.85em;
+font-family: Verdana, Arial, Sans-Serif;
+margin:0;
+padding:0;
+color:#333;
+}
+.page-info
+{
+text-align:center;
+}
+.post-info a
+{
+color:#990000;
+}
+.post-info a:hover
+{
+color:#000;
+}
+.post-content, .page-content {
+padding:10px 0;
+margin:3px 0;
+border-top:#BBC4A3 1px solid;
+font-family: Georgia, Verdana, Arial, serif;
+font-size:12px;
+}
+.page-content {
+
+}
+.post-title, .page-title {
+font-family:Georgia, Arial, Serif;
+font-size:1.3em;
+margin:0;
+font-weight:bold;
+}
+.page-title
+{
+font-size:1.6em;
+font-weight:normal;
+}
+#content .page-title a, .post-title a:link, .post-title a:visited, .post-title a:hover, .post-title a:active
+{
+text-decoration:none;
+color:#676E04;
+}
+.post-date {
+float: left;
+color: #BBC4A3;
+font-family: Georgia,'Lucida sans ms', Verdana, Arial, Helvetica, sans-serif;
+font-size: 0.9em;
+text-align: center;
+font-weight: bold;
+margin: 3px 10px 0 0;
+padding: 8px 3px;
+width: 55px;
+background: #E7EBDE;
+line-height:1em;
+}
+.post-footer
+{
+padding-top:20px;
+background:url(img/divider.gif) no-repeat center;
+}
+#footer {
+margin:0 auto;
+padding: 7px 0;
+border-top:#BBC4A3 1px solid;
+clear: both;
+font-size: 0.8em;
+color: #999;
+text-align:center;
+width:740px;
+}
+#footer a {
+border:none;
+color:#7A7636;
+}
+
+.commentlist {
+font-size:1em;
+font-weight:normal;
+}
+#commentform
+{
+margin:0 0 0 40px;
+}
+#commentform textarea {
+width: 80%;
+}
+#commentform p {
+margin: 0 0 1em;
+}
+#comments,#respond {
+text-transform: uppercase;
+margin: 3em 0 1em 40px;
+color: #676E04;
+font: 0.9em verdana, helvetica, sans-serif;
+}
+.commentlist li
+{
+margin:5px 0;
+padding:10px 10px 20px 10px;
+background:#F3F6ED url(img/comments_bottom.jpg) repeat-x bottom;
+border:#E1D6C6 1px solid;
+}
+.commentlist .alt
+{
+
+}
+#topnav
+{
+list-style:none;
+font-size:0.9em;
+margin:0 auto;
+padding:12px 20px 0 0;
+text-align:right;
+font-family:Verdana, Arial, Sans-Serif;
+}
+#topnav li
+{
+list-style:none;
+display:inline;
+padding:0;
+margin:0;
+font-weight:bold;
+}
+
+#topnav li a:link, #topnav li a:visited
+{
+text-decoration:none;
+color:#BBC4A3;
+}
+#topnav li a:hover, #topnav li a:active
+{
+color:#F7F3ED;
+}
+
+.calMonthToday{
+border:1px dotted #669933;
+background-color:#eeeeee;
+}
\ No newline at end of file




More information about the pLog-svn mailing list