[pLog-svn] r755 - in plugins/trunk/feedreader: class/action templates

oscar at devel.plogworld.net oscar at devel.plogworld.net
Tue Jan 18 19:56:12 GMT 2005


Author: oscar
Date: 2005-01-18 19:56:11 +0000 (Tue, 18 Jan 2005)
New Revision: 755

Added:
   plugins/trunk/feedreader/templates/feedlist.template
Removed:
   plugins/trunk/feedreader/templates/main.template
Modified:
   plugins/trunk/feedreader/class/action/feedreaderaction.class.php
Log:
renamed main.template to feedlist.template and changed the code accordingly


Modified: plugins/trunk/feedreader/class/action/feedreaderaction.class.php
===================================================================
--- plugins/trunk/feedreader/class/action/feedreaderaction.class.php	2005-01-18 16:40:34 UTC (rev 754)
+++ plugins/trunk/feedreader/class/action/feedreaderaction.class.php	2005-01-18 19:56:11 UTC (rev 755)
@@ -22,7 +22,7 @@
 			$feeds = $feedData->getBlogFeeds( $this->_blogInfo->getId());
 			
 			// show the list with the categories available
-			$this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "feedreader", "main" );
+			$this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "feedreader", "feedlist" );
 			$this->_view->setValue( "mylinkscategories", $blogLinksCategories );
 			$this->_view->setValue( "feeds", $feeds );
 			

Added: plugins/trunk/feedreader/templates/feedlist.template
===================================================================
--- plugins/trunk/feedreader/templates/feedlist.template	2005-01-18 16:40:34 UTC (rev 754)
+++ plugins/trunk/feedreader/templates/feedlist.template	2005-01-18 19:56:11 UTC (rev 755)
@@ -0,0 +1,37 @@
+{include file="$admintemplatepath/header.template"}
+{include file="$admintemplatepath/navigation.template" showOpt=feedReader title=$locale->tr("feedReader")}
+<div id="list">
+<table class="info">
+ <thead>
+  <tr>
+   <th style="width:20px;">{$locale->tr("read")}</th>
+   <th style="width:430px;">{$locale->tr("name")}</th>
+   <th style="widht:300px";>{$locale->tr("last_read")}</th>
+  </tr>
+ </thead>
+ <tbody>
+ {foreach from=$feeds item=feed}
+   {assign var=link value=$feed->getMyLink()}
+   {if $link->getRssFeed() != ""}
+    <td><a href="?op=readFeed&amp;feedId={$link->getId()}"><img src="imgs/rss_logo_small.gif" style="border:0px;" alt="Read" /></td>
+    {else}
+     <td>&nbsp;</td>
+    {/if}
+    <td class="col_highlighted">
+     <a href="{$link->getUrl()}" title="{$link->getDescription()}">{$link->getName()}</a><br/>
+    </td>
+    <td>
+     {assign var=lastRead value=$feed->getLastRead()}
+     {if $lastRead == ""}
+      <i>{$locale->tr("never_read")}</i>
+     {else} 
+      {$locale->formatDate($lastRead)}
+     {/if} 
+    </td>
+   </tr>
+ {/foreach}
+</tbody>
+</table>
+</div>
+{include file="$admintemplatepath/footernavigation.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Deleted: plugins/trunk/feedreader/templates/main.template
===================================================================
--- plugins/trunk/feedreader/templates/main.template	2005-01-18 16:40:34 UTC (rev 754)
+++ plugins/trunk/feedreader/templates/main.template	2005-01-18 19:56:11 UTC (rev 755)
@@ -1,37 +0,0 @@
-{include file="$admintemplatepath/header.template"}
-{include file="$admintemplatepath/navigation.template" showOpt=feedReader title=$locale->tr("feedReader")}
-<div id="list">
-<table class="info">
- <thead>
-  <tr>
-   <th style="width:20px;">{$locale->tr("read")}</th>
-   <th style="width:400px;">{$locale->tr("name")}</th>
-   <th style="widht:300px";>{$locale->tr("url")}</th>
-  </tr>
- </thead>
- <tbody>
- {foreach from=$feeds item=feed}
-   {assign var=link value=$feed->getMyLink()}
-   {if $link->getRssFeed() != ""}
-    <td><a href="?op=readFeed&amp;feedId={$link->getId()}"><img src="imgs/rss_logo_small.gif" style="border:0px;" alt="Read" /></td>
-    {else}
-     <td>&nbsp;</td>
-    {/if}
-    <td>
-     <a href="{$link->getUrl()}" title="{$link->getDescription()}">{$link->getName()}</a><br/>
-    </td>
-    <td>
-     {assign var=lastRead value=$feed->getLastRead()}
-     {if $lastRead == ""}
-      <i>not read yet</i>
-     {else} 
-      {$locale->formatDate($lastRead)}
-     {/if} 
-    </td>
-   </tr>
- {/foreach}
-</tbody>
-</table>
-</div>
-{include file="$admintemplatepath/footernavigation.template"}
-{include file="$admintemplatepath/footer.template"}
\ No newline at end of file




More information about the pLog-svn mailing list