[pLog-svn] r1444 - templates/trunk/blorange
jondaley at devel.plogworld.net
jondaley at devel.plogworld.net
Sun Mar 13 00:21:20 GMT 2005
Author: jondaley
Date: 2005-03-13 00:21:19 +0000 (Sun, 13 Mar 2005)
New Revision: 1444
Added:
templates/trunk/blorange/searchresults.template
Modified:
templates/trunk/blorange/panel.template
Log:
added search
Modified: templates/trunk/blorange/panel.template
===================================================================
--- templates/trunk/blorange/panel.template 2005-03-13 00:17:59 UTC (rev 1443)
+++ templates/trunk/blorange/panel.template 2005-03-13 00:21:19 UTC (rev 1444)
@@ -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>
Added: templates/trunk/blorange/searchresults.template
===================================================================
--- templates/trunk/blorange/searchresults.template 2005-03-13 00:17:59 UTC (rev 1443)
+++ templates/trunk/blorange/searchresults.template 2005-03-13 00:21:19 UTC (rev 1444)
@@ -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"}
More information about the pLog-svn
mailing list