[pLog-svn] r1452 - templates/trunk/outback

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Sun Mar 13 01:58:54 GMT 2005


Author: jondaley
Date: 2005-03-13 01:58:53 +0000 (Sun, 13 Mar 2005)
New Revision: 1452

Added:
   templates/trunk/outback/error.gif
   templates/trunk/outback/searchresults.template
Modified:
   templates/trunk/outback/album.template
   templates/trunk/outback/albums.template
   templates/trunk/outback/error.template
   templates/trunk/outback/panel.template
   templates/trunk/outback/post.template
   templates/trunk/outback/resource.template
   templates/trunk/outback/style.css
Log:
missed this one the first time through. copied blorange files. fixed up calendar. this template also suffers from the human_condition problem of it looks junky if the posts are shorter than the side panel.

Modified: templates/trunk/outback/album.template
===================================================================
--- templates/trunk/outback/album.template	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/album.template	2005-03-13 01:58:53 UTC (rev 1452)
@@ -100,4 +100,5 @@
 
 </div>
 
+{include file="$blogtemplate/panel.template"}
 {include file="$blogtemplate/footer.template"}

Modified: templates/trunk/outback/albums.template
===================================================================
--- templates/trunk/outback/albums.template	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/albums.template	2005-03-13 01:58:53 UTC (rev 1452)
@@ -22,4 +22,5 @@
  </div>
 {/foreach}
 </div>
+{include file="$blogtemplate/panel.template"}
 {include file="$blogtemplate/footer.template"}

Added: templates/trunk/outback/error.gif
===================================================================
(Binary files differ)


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

Modified: templates/trunk/outback/error.template
===================================================================
--- templates/trunk/outback/error.template	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/error.template	2005-03-13 01:58:53 UTC (rev 1452)
@@ -10,7 +10,7 @@
         </div>
         
         <div class="storycontent">
-            <img src="{$url->getUrl("/imgs/error.gif")}" height="32" width="32" alt="Error"/>
+            <img src="{$url->getTemplateFile("error.gif")}" height="32" width="32" alt="Error"/>
             {$locale->tr($message)}
         </div>    
     </div>

Modified: templates/trunk/outback/panel.template
===================================================================
--- templates/trunk/outback/panel.template	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/panel.template	2005-03-13 01:58:53 UTC (rev 1452)
@@ -1,8 +1,16 @@
 
 <div id="menu">
 <ul>
-    <li id="wordpress">
-    {$locale->tr("menu")}
+    <li id="search">{$locale->tr("search")}
+	   <form name="search_form" method="post"
+	   	      action="{$url->getIndexUrl()}">
+	      <input type="text" name="searchTerms" value="" size="14" /><br/>
+		  <input type="hidden" name="op" value="Search" />
+		  <input type="hidden" name="blogId" value="{$blog->getId()}"/>
+   </form>
+    </li>
+
+    <li id="wordpress">{$locale->tr("menu")}
     <ul>
      <li><a href="{$url->albumLink()}">{$locale->tr("albums")}</a></li>
     </ul> 

Modified: templates/trunk/outback/post.template
===================================================================
--- templates/trunk/outback/post.template	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/post.template	2005-03-13 01:58:53 UTC (rev 1452)
@@ -6,7 +6,13 @@
 {assign var=postCategory value=$post->getCategory()}
 {assign var=postText value=$post->getText()}
 <div class="meta">
-<ul class="post-categories"><li><a href="{$url->categoryLink($postCategory)}" title="{$postCategory->getName()}">{$postCategory->getName()}</a></li></ul>
+
+  {foreach name=categories from=$post->getCategories() item=postCategory} 
+    <a href="{$url->categoryLink($postCategory)}"
+		   title="{$postCategory->getName()}">
+		   {$postCategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+  {/foreach}
+
  &#8212; {$locale->tr("posted_by")} {$postOwner->getUsername()} @ {$locale->formatDate($postDate,"%H:%M")}
 </div>
 <div class="storycontent">

Modified: templates/trunk/outback/resource.template
===================================================================
--- templates/trunk/outback/resource.template	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/resource.template	2005-03-13 01:58:53 UTC (rev 1452)
@@ -54,4 +54,5 @@
    <a href="javascript:history.go(-1);">{$locale->tr("back")}</a>
   </p>
 </div>
+{include file="$blogtemplate/panel.template"}
 {include file="$blogtemplate/footer.template"}

Added: templates/trunk/outback/searchresults.template
===================================================================
--- templates/trunk/outback/searchresults.template	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/searchresults.template	2005-03-13 01:58:53 UTC (rev 1452)
@@ -0,0 +1,21 @@
+{include file="$blogtemplate/header.template"}
+<div id="content">
+   <h2>{$locale->tr("search_results")}: {foreach from=$searchterms item=term}{$term} {/foreach}</h2>
+   <p>
+    {foreach from=$searchresults item=result}
+     <div class="searchresult">
+      {assign var=article value=$result->getArticle()}
+      <a href="{$url->postPermalink($article)}"><h3><b>{$article->getTopic()}</b></h3></a>
+     <div align="right">{foreach name=categories from=$article->getCategories() item=postcategory}
+       <a href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>{if !$smarty.foreach.categories.last}, {/if}
+     {/foreach}</div>
+      <p>
+      {$article->getText()|strip_tags|truncate:300:"...":false}
+      </p>
+     </div>
+     <br/>
+    {/foreach}
+   </p> 
+</div>
+{include file="$blogtemplate/panel.template"}
+{include file="$blogtemplate/footer.template"}

Modified: templates/trunk/outback/style.css
===================================================================
--- templates/trunk/outback/style.css	2005-03-13 01:44:32 UTC (rev 1451)
+++ templates/trunk/outback/style.css	2005-03-13 01:58:53 UTC (rev 1452)
@@ -27,7 +27,7 @@
 
 
 #content {
-	margin:30px 240px 0 3em;
+	margin:0px 240px 0 3em;
 	padding-bottom: 40px;
 }
 
@@ -268,23 +268,29 @@
 	border-bottom: 1px solid #809080;
 }
 
-.calendar {
-	border: 1px solid #AB8350;
+#calendar {
 	empty-cells: show;
-	font-size: 14px;
 	margin: 0;
-	width: 90%;
+	width: 130px;
 	background-color:#FCF6DD;
 }
+.calMonthHeader, .calMonthNav{
+	color: #000;
+	font: 10px Verdana, Arial, serif;
+	padding-top:10px;
+	text-align: center;
+}
 
-.calendarHeaderNext {
-	padding-right: 10px;
-	text-align: right;
+#calendar .calMonthForward, #calendar .calMonthForward>a{
+	padding-left: 5px;
+	text-align: center;
+	border:0px;
 }
 
-.calendarHeaderPrev {
-	padding-left: 10px;
-	text-align: left;
+#calendar .calMonthBackward, #calendar .calMonthBackward>a{
+	padding-right: 5px;
+	text-align: center;
+	border:0px;
 }
 
 .calDayLink {
@@ -292,37 +298,25 @@
 	text-decoration: none;
 }
 
-.calendar a:hover {
+#calendar a:hover {
 	background: #D8DFB3;
 	color: #333;
 }
 
-.calendarHeader {
-	color: #AB8350;
-	font-size: 15px;
-	font-weight:bold;
-	text-align: left;
-	padding-bottom:3px;
-}
-
-.calendar td {
-	color: #BCC493;
+#calendar td {
+	color: #000;
 	font: normal 12px 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
 	letter-spacing: normal;
-	padding: 2px 0;
+	padding: 0px;
 	text-align: center;
 }
 
-.calendar td.pad:hover {
+#calendar td.pad:hover {
 	background: #D8DFB3;
 }
 
-.calendar td:hover, .calendarToday {
+#calendar td:hover, #calendar .calMonthToday {
 	background: #D8DFB3;
 	color: #667553;
 }
 
-.calendarHeader {
-	font-style: normal;
-	text-transform: capitalize;
-}




More information about the pLog-svn mailing list