[pLog-svn] r3811 - in templates/trunk: . standard_new
standard_new/standard_new
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Jul 26 12:14:17 GMT 2006
Author: oscar
Date: 2006-07-26 12:14:16 +0000 (Wed, 26 Jul 2006)
New Revision: 3811
Added:
templates/trunk/standard_new/
templates/trunk/standard_new/standard_new/
templates/trunk/standard_new/standard_new/album.template
templates/trunk/standard_new/standard_new/albums.template
templates/trunk/standard_new/standard_new/archives.template
templates/trunk/standard_new/standard_new/commentarticle.template
templates/trunk/standard_new/standard_new/commentform.template
templates/trunk/standard_new/standard_new/compressed.gif
templates/trunk/standard_new/standard_new/error.template
templates/trunk/standard_new/standard_new/file.gif
templates/trunk/standard_new/standard_new/folder.gif
templates/trunk/standard_new/standard_new/footer.template
templates/trunk/standard_new/standard_new/header.template
templates/trunk/standard_new/standard_new/linktracker.template
templates/trunk/standard_new/standard_new/logo.jpg
templates/trunk/standard_new/standard_new/main.template
templates/trunk/standard_new/standard_new/parentfolder.gif
templates/trunk/standard_new/standard_new/post.template
templates/trunk/standard_new/standard_new/postandcomments.template
templates/trunk/standard_new/standard_new/posttrackbacks.template
templates/trunk/standard_new/standard_new/resource.template
templates/trunk/standard_new/standard_new/searchresults.template
templates/trunk/standard_new/standard_new/sound.gif
templates/trunk/standard_new/standard_new/style.css
templates/trunk/standard_new/standard_new/video.gif
Log:
a new template from balearweb, thanks Elena!
Added: templates/trunk/standard_new/standard_new/album.template
===================================================================
--- templates/trunk/standard_new/standard_new/album.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/album.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,80 @@
+ {include file="$blogtemplate/header.template"}
+
+<h2>{$locale->tr("albums")}</h2>
+
+<div id="albums">
+<h3>{$album->getName()}</h3>
+<p>{$album->getDescription()}</p>
+</div>
+
+<!-- album contents go here -->
+
+<div id="album">
+
+ <div class="clearer"> </div>
+
+ <div class="album">
+ <a href="{$url->parentAlbumLink($album)}">
+ <img src="{$url->getTemplateFile("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("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()}&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("sound.gif")}" /></a>
+ {elseif $resource->isVideo()}
+ <img alt="Video" src="{$url->getTemplateFile("video.gif")}" /></a>
+ {elseif $resource->isZip()}
+ <img alt="Zip" src="{$url->getTemplateFile("compressed.gif")}" /></a>
+ {else}
+ <img alt="File" src="{$url->getTemplateFile("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"> </div>
+
+</div>
+
+<!-- end of album contents -->
+ {include file="$blogtemplate/footer.template"}
\ No newline at end of file
Added: templates/trunk/standard_new/standard_new/albums.template
===================================================================
--- templates/trunk/standard_new/standard_new/albums.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/albums.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,28 @@
+ {include file="$blogtemplate/header.template"}
+
+<h2>{$locale->tr("albums")}</h2>
+
+ <!-- album contents go here -->
+
+<div id="album">
+
+ <div class="clearer"> </div>
+
+ {assign var="counter" value=0}
+ {foreach from=$albums item=album}
+ <div class="album">
+ <a href="{$url->albumLink($album)}"><img src="{$url->getTemplateFile("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"> </div>
+
+</div>
+
+<!-- end of the albums -->
+
+ {include file="$blogtemplate/footer.template"}
Added: templates/trunk/standard_new/standard_new/archives.template
===================================================================
--- templates/trunk/standard_new/standard_new/archives.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/archives.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -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: templates/trunk/standard_new/standard_new/commentarticle.template
===================================================================
--- templates/trunk/standard_new/standard_new/commentarticle.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/commentarticle.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,5 @@
+ {include file="$blogtemplate/header.template"}
+
+ {include file="$blogtemplate/commentform.template"}
+
+ {include file="$blogtemplate/footer.template"}
Added: templates/trunk/standard_new/standard_new/commentform.template
===================================================================
--- templates/trunk/standard_new/standard_new/commentform.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/commentform.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -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: templates/trunk/standard_new/standard_new/compressed.gif
===================================================================
(Binary files differ)
Property changes on: templates/trunk/standard_new/standard_new/compressed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: templates/trunk/standard_new/standard_new/error.template
===================================================================
--- templates/trunk/standard_new/standard_new/error.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/error.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,4 @@
+ {include file="$blogtemplate/header.template"}
+ <h2>{$locale->tr("error")}</h2>
+ <div class="Post">{$locale->tr($message)}</div>
+ {include file="$blogtemplate/footer.template"}
Added: templates/trunk/standard_new/standard_new/file.gif
===================================================================
(Binary files differ)
Property changes on: templates/trunk/standard_new/standard_new/file.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: templates/trunk/standard_new/standard_new/folder.gif
===================================================================
(Binary files differ)
Property changes on: templates/trunk/standard_new/standard_new/folder.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: templates/trunk/standard_new/standard_new/footer.template
===================================================================
--- templates/trunk/standard_new/standard_new/footer.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/footer.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,109 @@
+<div class="pager">
+ {include file="$misctemplatepath/pager.template" style="links"}
+</div>
+</div>
+
+
+<div id="Menu">
+{assign var=blogOwner value=$blog->getOwnerInfo()}
+{if $blogOwner->hasPicture()}
+ {assign var=picture value=$blogOwner->getPicture()}
+ <img id="UserPicture" src="{$url->resourceDownloadLink($picture)}" alt="My picture!" />
+{/if}
+
+
+ {assign var=AboutMyself value=$blogOwner->getAboutMyself()}
+ {if $AboutMyself}
+ <h2>{$locale->tr("about_myself")}</h2>
+ <p>{$AboutMyself}</p>
+ {/if}
+
+
+
+
+
+ <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>
+ </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>
+
+
+ <h2>{$locale->tr("my_links")}</h2>
+<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></li>
+ {/foreach}
+ </ul>
+ {/foreach}
+ </div>
+
+ <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"> </div>
+
+</div>
+
+
+
+<!-- Please leave the credit intact. Thank you. -->
+<div id="Bottom">Powered by <a href="http://www.lifetype.net">Life Type</a> - Design by <a href="http://www.balearweb.com/">BalearWeb</a> - <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>
+
+
+</body>
+</html>
Added: templates/trunk/standard_new/standard_new/header.template
===================================================================
--- templates/trunk/standard_new/standard_new/header.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/header.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -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>
+ <title>{$blog->getBlog()}{$postPageTitle}</title>
+ <meta http-equiv="content-type" content="text/html; charset={$locale->getCharset()}" />
+ <meta name="generator" content="{$version}" />
+ <meta http-equiv="Content-Language" content="{$locale->getLanguageId()}" />
+ <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="Admin"><a href="http://bloc.balearweb.net/admin.php">Administrar</a></div>
+
+<div id="Container">
+
+<div id="Content">
+
+<div id="Title"><h1><a href="{$url->blogLink()}">{$blog->getBlog()}</a></h1></div>
+
+<p id="Subtitle">{$blog->getAbout()}</p>
Added: templates/trunk/standard_new/standard_new/linktracker.template
===================================================================
--- templates/trunk/standard_new/standard_new/linktracker.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/linktracker.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -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: templates/trunk/standard_new/standard_new/logo.jpg
===================================================================
(Binary files differ)
Property changes on: templates/trunk/standard_new/standard_new/logo.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: templates/trunk/standard_new/standard_new/main.template
===================================================================
--- templates/trunk/standard_new/standard_new/main.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/main.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,26 @@
+ {include file="$blogtemplate/header.template"}
+
+{if $category}<h2>{$locale->tr("posts")}: {$category->getName()}</h2>{/if}
+
+{foreach from=$posts item=post}
+{if $showAll | 1 && $category}
+ <!-- showing only the topic of the post, in case we have too many! -->
+<h3><a href="{$url->postPermalink($post)}">{$post->getTopic()}</a></h3>
+<div class="Post">
+{$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: templates/trunk/standard_new/standard_new/parentfolder.gif
===================================================================
(Binary files differ)
Property changes on: templates/trunk/standard_new/standard_new/parentfolder.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: templates/trunk/standard_new/standard_new/post.template
===================================================================
--- templates/trunk/standard_new/standard_new/post.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/post.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,16 @@
+<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 class="Post">
+{$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->getTotalTrackbacks()})</a>
+
+</p>
Added: templates/trunk/standard_new/standard_new/postandcomments.template
===================================================================
--- templates/trunk/standard_new/standard_new/postandcomments.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/postandcomments.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,30 @@
+ {assign var="postPageTitle" value=$post->getTopic()}
+ {assign var="postPageTitle" value=" | $postPageTitle"}
+ {include file="$blogtemplate/header.template"}
+
+ {assign var="poster" value=$post->getUserInfo()}
+
+ {include file="$blogtemplate/post.template"}
+<h2 class="comments">{$locale->tr("comments")}</h2>
+ {foreach from=$comments item=comment}
+
+<h3 class="commentheader">{$comment->getTopic()}</h3>
+
+<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: templates/trunk/standard_new/standard_new/posttrackbacks.template
===================================================================
--- templates/trunk/standard_new/standard_new/posttrackbacks.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/posttrackbacks.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,25 @@
+ {include file="$blogtemplate/header.template"}
+
+
+<h2>{$locale->tr("trackbacks")}</h2>
+
+<div id="trackbacks_container">
+
+<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/standard_new/standard_new/resource.template
===================================================================
--- templates/trunk/standard_new/standard_new/resource.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/resource.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,71 @@
+ {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("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("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("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("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"> </div>
+
+</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> - <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>
+
+</div>
+</body>
+</html>
\ No newline at end of file
Added: templates/trunk/standard_new/standard_new/searchresults.template
===================================================================
--- templates/trunk/standard_new/standard_new/searchresults.template 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/searchresults.template 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,22 @@
+{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()}
+ <h3><a href="{$url->postPermalink($article)}">{$article->getTopic()}</a></h3>
+ <p class="searchArticle">
+ {$article->getText()|strip_tags|truncate:300:"...":false}
+ </p>
+ <p class="footer">
+ {foreach name=categories from=$article->getCategories()
+ item=postCategory}
+ <a href="{$url->categoryLink($postCategory)}">
+ {$postCategory->getName()}</a>{if
+ !$smarty.foreach.categories.last}, {/if}
+ {/foreach}
+ </p>
+ {/foreach}
+ </div>
+{include file="$blogtemplate/footer.template"}
Added: templates/trunk/standard_new/standard_new/sound.gif
===================================================================
(Binary files differ)
Property changes on: templates/trunk/standard_new/standard_new/sound.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: templates/trunk/standard_new/standard_new/style.css
===================================================================
--- templates/trunk/standard_new/standard_new/style.css 2006-07-26 12:11:03 UTC (rev 3810)
+++ templates/trunk/standard_new/standard_new/style.css 2006-07-26 12:14:16 UTC (rev 3811)
@@ -0,0 +1,445 @@
+/* ****************** General *************** */
+
+a:link {
+ color : #034A81;
+ }
+
+a:visited {
+ color : #A31418;
+ }
+
+a:hover, a:active, a:hover {
+ text-decoration : none;
+ border-bottom : solid 2px;
+ }
+
+abbr, acronym {
+ cursor : help;
+ border : none;
+ }
+
+html, #Bottom, #Admin {
+ background : #000;
+ }
+
+#Admin a {
+ color : #fff;
+ }
+
+#Admin {
+ text-align : right;
+ font-size : small;
+ padding : 0.3em 15px;
+ }
+
+body {
+ margin : 0;
+ padding : 0;
+ font : small 'lucida sans unicode', arial, times new roman, sans-serif;
+ color : #000;
+ background : #fff;
+ }
+
+.clearer {
+ clear : both;
+ height : 0px;
+ font-size : 0px;
+ line-height : 0px;
+ }
+
+#Container {
+ width : 100%;
+ text-align : left;
+ background-color : #fff;
+ padding-bottom : 10px;
+ padding-top : 10px;
+ }
+
+
+/* ****************** column a *************** */
+
+#Content {
+ width : 56%;
+ float : left;
+ margin-right : 20px;
+ margin-left : 20px;
+ background : #F4F2E6;
+ }
+
+h1 {
+ margin : 0;
+ padding : 1em 0 0.2em 0;
+ background-color : #fff;
+ }
+
+h1 a {
+ text-decoration : none !important;
+ color : #000 !important;
+ border-bottom : solid 0px !important;
+ font-size : xx-large;
+ }
+
+#Subtitle {
+ color : #000;
+ font-size : large;
+ margin : 0;
+ border-bottom : solid 20px #fff;
+ background-color : #fff;
+ }
+
+
+#Content h2 {
+ margin : 0;
+ padding : 10px;
+ color : #A31418;
+ }
+
+#SearchResults h3 {
+ margin : 0;
+ padding : 10px;
+ }
+
+#SearchResults p {
+ margin : 0;
+ padding : 10px;
+ }
+
+.pager {
+ margin : 0;
+ padding : 10px;
+ }
+
+.date {
+ font-weight : bold;
+ padding : 10px 10px 0 10px;
+ margin : 0;
+ }
+
+.Post {
+ padding : 0 10px 0 10px;
+ line-height : 1.5em;
+ text-align : justify;
+ }
+
+.Post p {
+ padding : 1em 0 0 0;
+ line-height : 1.5em;
+ text-align : justify;
+ margin : 0;
+ }
+
+.Post img {
+ padding-top : 1.2em;
+ }
+
+br {
+ line-height : 0em !important;
+ font-size : 0;
+ }
+
+p.footer {
+ border-bottom : solid #fff 1em;
+ padding : 1em 10px 10px 10px;
+ margin : 0;
+ }
+
+h2.comments {
+ font-size :medium;
+ color : #000 !important;
+ }
+
+#Content h3.commentheader {
+ padding : 0 10px 0 30px !important;
+ margin : 0;
+ color : #A31418;
+ font-size : small;
+ line-height : 1.5em;
+ }
+
+p.commentposterinfo {
+ font-weight : bold;
+ padding : 0 10px 0 30px;
+ margin : 0;
+ line-height : 1.5em;
+ }
+
+div.commenttext {
+ padding : 0 10px 10px 30px;
+ margin : 0;
+ line-height : 1.5em;
+ }
+
+#CommentForm {
+ background : #fff;
+ border-bottom : 10px solid #fff;
+ border-top : 10px solid #fff;
+ }
+
+#CommentForm fieldset {
+ border : 2px solid #F4F2E6;
+ padding-top : 10px;
+ margin-top : 10px;
+ padding-left : 10px;
+ }
+
+#CommentForm legend {
+ 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 : 28%;
+ float : left;
+ text-align : left;
+ border-left : solid #000 0.3em;
+ padding-left : 15px;
+ }
+
+#Calendar, #Search {
+ width : 86%;
+ margin : 0 0 1.2em 0;
+ }
+
+#UserPicture {
+ margin : 0 0 1.2em 0;
+ display : block;
+ }
+
+#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 : #F4F2E6;
+ }
+
+#Menu h2 {
+ font-size : small;
+ width : 86%;
+ margin-top : 0;
+ margin-bottom : 0;
+ }
+
+#Menu h3 {
+ font-size : small;
+ width : 86%;
+ margin-bottom : 0;
+ font-weight : normal;
+ }
+
+#Categories ul, #Syndicate ul, #Recently ul, #Sections ul, #Links ul {
+ font-size : small;
+ line-height : 1.5em;
+ margin-top : 0.5em;
+ margin-bottom : 1.5em;
+ }
+
+
+/* ****************** footer *************** */
+
+#Bottom {
+ color : #fff;
+ padding : 3px 3px 6px 15px;
+ clear : both;
+ }
+
+#Bottom a {
+ color : #fff;
+ }
+
+
+/* ****************** links *************** */
+
+div#Links {
+ margin : 0 0 0 1em;
+ }
+
+
+/* ****************** albums *************** */
+
+div#album, div#albums {
+ margin : 0 10px;
+ }
+
+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 {
+ border-bottom : solid 0px;
+ }
+
+
+/* ****************** trakbacks *************** */
+
+
+#trackbacks_container {
+ padding : 0 10px 10px 10px;
+ }
+
+#trackbacks_container h4 {
+ margin : 1em 0 0 0;
+ padding : 0;
+ font-size : small;
+ }
+
+#trackbacks_container dl {
+ margin : 0;
+ padding : 0;
+ }
+
+#trackbacks_container dt {
+ font-weight : bold;
+ float : left;
+ }
+
+#trackbacks_container 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 : 1.2em 1em 1em 0px
+ }
+
+.floatright {
+ float : right;
+ padding : 1.2em 0px 1em 1em;
+ }
+
+
+/* ****************** to highlight text *************** */
+.bold {
+ font-weight : bold;
+ }
+
+.italic {
+ font-style : italic;
+ }
+
+.underline {
+ text-decoration : underline;
+ }
\ No newline at end of file
Added: templates/trunk/standard_new/standard_new/video.gif
===================================================================
(Binary files differ)
Property changes on: templates/trunk/standard_new/standard_new/video.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the pLog-svn
mailing list