[pLog-svn] r4832 - templates/branches/lifetype-1.2/unported/kubrick

reto at devel.lifetype.net reto at devel.lifetype.net
Thu Feb 22 16:19:08 EST 2007


Author: reto
Date: 2007-02-22 16:19:08 -0500 (Thu, 22 Feb 2007)
New Revision: 4832

Modified:
   templates/branches/lifetype-1.2/unported/kubrick/README.txt
   templates/branches/lifetype-1.2/unported/kubrick/album.template
   templates/branches/lifetype-1.2/unported/kubrick/panel.template
   templates/branches/lifetype-1.2/unported/kubrick/post.template
   templates/branches/lifetype-1.2/unported/kubrick/postandcomments.template
   templates/branches/lifetype-1.2/unported/kubrick/postmetadata.inc
   templates/branches/lifetype-1.2/unported/kubrick/posttrackbacks.template
   templates/branches/lifetype-1.2/unported/kubrick/style.css
Log:
kubrick is done...



Modified: templates/branches/lifetype-1.2/unported/kubrick/README.txt
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/README.txt	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/README.txt	2007-02-22 21:19:08 UTC (rev 4832)
@@ -1,4 +1,4 @@
-This is the readme file and change log file for "kubrick" template for Plog
+This is the readme file and change log file for "kubrick" template for LifeType
 Kubrick template is original by Michael Heilemann from http://binarybonsai.com/kubrick/
 
 Modified By Knight from http://www.ahknight.net
@@ -30,4 +30,4 @@
 fixed some locale issue
 fixed the link category won't show issue
 postmetadata now include as a inc file
-empty link category will hide
\ No newline at end of file
+empty link category will hide

Modified: templates/branches/lifetype-1.2/unported/kubrick/album.template
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/album.template	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/album.template	2007-02-22 21:19:08 UTC (rev 4832)
@@ -2,51 +2,44 @@
 <div id="content" class="narrowcolumn">
 {assign var="postDate" value=$album->getTimestamp()}
 <div class="blog">
- <h2>{$album->getName()}</h2>
+ <h2><a href="{$url->parentAlbumLink($album)}">&lt;&lt;</a> {$album->getName()}</h2>
  <div class="post">
   <div class="entry">
-     <a href="{$url->albumLink($album)}">
+     <p><a href="{$url->albumLink($album)}">
      {$locale->tr("resources")} ({$album->getNumResources()})
-    </a> | {$locale->tr("created")} {$locale->formatDate($postDate,"%d %b, %Y")}
+    </a> | {$locale->tr("created")} {$locale->formatDate($postDate,"%d %b, %Y")}<br/>
+    {$album->getDescription()}</p>
   </div>
  </div>
- <p>{$album->getDescription()}</p><br/>
  
+ 
 {** 
     smarty template gets a bit complicated here since we want to show the contents of the album in a nicely
     arranged table, and that needs some very basic maths... we also need to check after every iteration
     wether we have to close the current row or start a new one, and so on...
  **}
-    
+ 
+   
  <!-- album contents go here -->
-<table style="border:0px;width:100%;" summary="Album Resources">
- <tr>
-  <td style="width:25%;" align="center" >
-   <a 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="counter" value=1}
   {assign var=children value=$album->getChildren()}
-  {foreach from=$children item=childalbum}
-  <td style="width:25%;" align="center" >
+    {foreach from=$children item=childalbum}
+<div class="post">
+ <h2 class="date">{$childalbum->getName()}</h2>
+  <div class="entry">
    <a 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%4}
-   </tr>
-   <tr>
-  {/if}
- {/foreach}
+     {$locale->tr("resources")} ({$childalbum->getNumResources()})
+    </a>
+  </div>
+{$childalbum->getDescription()|strip_tags|truncate:255:"..."|escape}
+</div> 
+{/foreach}
 
+
  <!--- show the resources here -->
 
- 
+ <table style="border:0px;width:100%;" summary="Album Resources">
+ <tr>
  {foreach from=$resources item=resource}
   <td style="width:25%;" align="center" >
   {if $resource->hasPreview()}
@@ -85,7 +78,7 @@
   {/if}
   {assign var="counter" value="`$counter+1`"}
   </td>
-  {if $counter%4 == 0}
+  {if $counter%3 == 0}
    </tr>
    <tr>
   {/if}

Modified: templates/branches/lifetype-1.2/unported/kubrick/panel.template
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/panel.template	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/panel.template	2007-02-22 21:19:08 UTC (rev 4832)
@@ -1,12 +1,22 @@
 <div id="sidebar">
 <ul>
 	
-	<!--
+	{assign var=blogOwner value=$blog->getOwnerInfo()}
+    {assign var=AboutMyself value=$blogOwner->getAboutMyself()}
+	{if $AboutMyself || $blogOwner->hasPicture()}
 	<li><h2>{$locale->tr("about")}</h2>
-		Here is a section you can use to briefly talk about yourself or your site. Uncomment and delete this line to use.
-		<p>Your description here.</p>
+	<p>    
+		{if $blogOwner->hasPicture()}
+            {assign var=picture value=$blogOwner->getPicture()}
+            <img id="UserPicture" src="{$picture->getPreviewLink()}" alt="{$blogOwner->getUsername()}" style="margin-right:10px;float:left" />
+        {/if}
+        {if $AboutMyself}
+            {$AboutMyself}
+        {/if}
+    </p>
 	</li>
-        --> 
+	{/if}
+       
 	<li>
 		<form method="post" action="{$url->getIndexUrl()}">
 		<div>
@@ -18,6 +28,9 @@
 		</div>
 		</form>
 	</li>
+	<li><h2>{$locale->tr("calendar")}</h2>
+    {$calendar}
+	</li>
 	<li><h2>{$locale->tr("recently")}</h2>
 	    <ul>
 	  	{foreach from=$recentposts item=post}

Modified: templates/branches/lifetype-1.2/unported/kubrick/post.template
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/post.template	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/post.template	2007-02-22 21:19:08 UTC (rev 4832)
@@ -18,12 +18,12 @@
   </p>
  </div>
 
-<!-- comment these out if you want to see an example of custom fields, but remember to name the fields
+{* comment these out if you want to see an example of custom fields, but remember to name the fields
      in the same way they are named here: 'imfeeling' (livejournal.com style), 'listening' and 'new_field' 
 <p>
  <b>{$post->getFieldDescription("imfeeling")}</b> {$post->getField("imfeeling")}<br/>
  <b>{$post->getFieldDescription("listening")}:</b> {$post->getField("listening")}<br/> 
  <b>{$post->getFieldDescription("non-searchable")}</b>{$post->getField("non-searchable")}
 </p> 
--->
+*}
 </div>

Modified: templates/branches/lifetype-1.2/unported/kubrick/postandcomments.template
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/postandcomments.template	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/postandcomments.template	2007-02-22 21:19:08 UTC (rev 4832)
@@ -21,7 +21,7 @@
       </div>
     {/if}    
 </div>
- <!-- commented this part because the comment part want to change -->
+ 
  <!-- {$url->postTrackbackLink($post)} -->
  {assign var="postDate" value=$post->getDateObject()}
  {assign var="postOwner" value=$post->getUserInfo()}
@@ -31,7 +31,7 @@
   	<small>{$locale->tr("posted_by")} {$postOwner->getUsername()} | {$locale->formatDate($postDate,"%j %b, %Y")}</small>
   	
    <div class="entry">
-   	<ul>{$post->getText()}</ul>
+   	{$post->getText()}
    </div>
    <br />
   <p class="postmetadata alt">
@@ -42,34 +42,37 @@
   
   </div>
  
- <!-- comment these out if you want to see an example of custom fields, but remember to name the fields
+{* comment these out if you want to see an example of custom fields, but remember to name the fields
       in the same way they are named here: 'imfeeling' (livejournal.com style), 'listening' and 'new_field' 
  <p>
   <b>{$post->getFieldDescription("imfeeling")}</b> {$post->getField("imfeeling")}<br/>
   <b>{$post->getFieldDescription("listening")}:</b> {$post->getField("listening")}<br/> 
   <b>{$post->getFieldDescription("non-searchable")}</b>{$post->getField("non-searchable")}
  </p> 
- -->
+*}
 </div>
 
  <div>
  {if $post->getComments()}
  <h3 id="comments">{$post->getTotalComments()} {$locale->tr("comments")}  &amp; {$post->getTotalTrackbacks()} {$locale->tr("trackbacks")} {$locale->tr("of")} "{$post->getTopic()}" </h3>
- {foreach from=$post->getComments() item=comment}
   <ol class="commentlist">
-   <a name="{$comment->getId()}"></a><p>{$comment->getText()}</p>
+    {foreach from=$comments item=comment}
+<li class="comment {$comment->getId()}">
+{$comment->getText()}
    <span class="comments-post">
     {$locale->tr("posted_by")}
     {if $comment->getUserUrl() != ""}
-     <a href="{$comment->getUserUrl()}"}>{$comment->getUsername()}</a>
+     <a href="{$comment->getUserUrl()}" >{$comment->getUsername()}</a>
     {else}
      {$comment->getUsername()}
     {/if}
 	{assign var=commentDate value=$comment->getDateObject()}
     {$locale->formatDate($commentDate, "%d %b %Y, %H:%M")}
    </span>
-  </ol>
+</li>
  {/foreach}
+</ol>
+<div>{pager style="links"}</div>
  {/if}
  
  </div>

Modified: templates/branches/lifetype-1.2/unported/kubrick/postmetadata.inc
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/postmetadata.inc	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/postmetadata.inc	2007-02-22 21:19:08 UTC (rev 4832)
@@ -1,8 +1,11 @@
       This entry was posted on {$locale->formatDate($postDate,"%d %B, %Y %H:%M")}
-      and file under
+      and filed under
       {foreach name=categories from=$post->getCategories() item=postcategory}
       <a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
       {/foreach}. 
-      You can follow any responses to this entry through the
-      <a href="{$url->postRssLink($post)}">RSS2.0</a> feed.
-      You can leave a <a href="{$url->postPermalink($post)}">Response</a>, or <a href="{$url->postTrackbackStatsLink($post)}">{$locale->tr("trackbacks")}</a> from your own site.
+      {if $blogsettings->getValue("comments_enabled") && $post->getCommentsEnabled()==1}
+      You can leave a <a href="{$url->postPermalink($post)}#CommentForm">response</a>.
+    {/if}
+    {if $post->getNumTrackbacks() > 0}
+    This article was <a href="{$url->postTrackbackStatsLink($post)}">trackbacked</a> {$post->getNumTrackbacks()} times.
+    {/if}

Modified: templates/branches/lifetype-1.2/unported/kubrick/posttrackbacks.template
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/posttrackbacks.template	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/posttrackbacks.template	2007-02-22 21:19:08 UTC (rev 4832)
@@ -1,22 +1,8 @@
 {include file="$blogtemplate/header.template"}
 <div id="content" class="narrowcolumn">
-<div class="navigation">
-  {if $post->getNextArticle() != ""}
-    <div class="alignleft">
-      {assign var=nextpost value=$post->getNextArticle()}
-      &laquo; <a href="{$url->postTrackbackStatsLink($nextpost)}"> {$nextpost->getTopic()}</a>
-    </div>
-  {/if}
-        
-  {if $post->getPrevArticle() != ""}
-    <div class="alignright">
-      {assign var=prevpost value=$post->getPrevArticle()}
-      <a href="{$url->postTrackbackStatsLink($prevpost)}"> {$prevpost->getTopic()}</a> &raquo; 
-    </div>
-  {/if}
-</div>
+
  <div class="post">
- <h2>{$locale->tr("trackbacks_for_article")} "<a href="{$url->postLink($post)}">{$post->getTopic()}</a>"</h2>
+ <h2>{$locale->tr("trackbacks_for_article")} <a href="{$url->postLink($post)}">{$post->getTopic()}</a></h2>
   <div class="entry">
     {foreach from=$trackbacks item=trackback}
      <a href="{$trackback->getUrl()}">{$trackback->getTitle()}</a><br/>

Modified: templates/branches/lifetype-1.2/unported/kubrick/style.css
===================================================================
--- templates/branches/lifetype-1.2/unported/kubrick/style.css	2007-02-22 21:13:26 UTC (rev 4831)
+++ templates/branches/lifetype-1.2/unported/kubrick/style.css	2007-02-22 21:19:08 UTC (rev 4832)
@@ -14,13 +14,6 @@
 
 	The CSS, XHTML and design is released under GPL:
 	http://www.opensource.org/licenses/gpl-license.php
-	
-
-	*** REGARDING IMAGES ***
-	All CSS that involves the use of images, can be found in the 'index.php' file.
-	This is to ease installation inside subdirectories of a server.
-
-	Have fun, and don't be afraid to contact me if you have questions.
 */
 
  input, textarea
@@ -464,22 +457,36 @@
 select {
 	width: 130px;
 	}
+	
+fieldset {
+	background-color: #f8f8f8;
+	border-top: 1px solid #ddd;
+	border-bottom: 1px solid #ddd;
+	border-left: none;
+	border-right: none;
+	padding: 10px 10px 10px 35px;
+}
+#CommentForm div {
+    margin-bottom:10px;
 
-#commentform input {
-	width: 170px;
-	padding: 2px;
-	margin: 5px 5px 1px 0;
-	}
+}
 
-#commentform textarea {
-	width: 100%;
-	padding: 2px;
-	}
+#CommentForm input {
+	width: 75%;
+}
+#CommentForm textarea {
+	width: 75%;
+}
 
-#commentform #submit {
-	margin: 0;
-	float: right;
-	}
+#CommentForm label {
+    width: 100%;
+    display:block;
+}
+
+#Submit input {
+    width:auto;
+
+}
 /* End Form Elements */
 
 
@@ -646,7 +653,7 @@
 	But you'll look sweet upon the seat of a bicycle built for two." */
 	
 .pager {
-	clear:all;
+	clear:both;
 	text-align: center;
 	margin-bottom: 20px;
 	margin-top: 20px;
@@ -654,7 +661,7 @@
 	padding-top: 10px;
 	padding-bottom: 10px;
 }
-.pager a, .pager a:link, .pager a:href, .pager a:hover {
+.pager a, .pager a:link, .pager a:active, .pager a:hover {
  text-decoration: none;
  border: 0px;
 }



More information about the pLog-svn mailing list