[Jaws-commits] r9723 - in branches/0.8/jaws/html/gadgets/Blog: . templates

afz at jaws-project.com afz at jaws-project.com
Mon Oct 27 12:17:07 UTC 2008


Author: afz
Date: 2008-10-27 12:17:06 +0000 (Mon, 27 Oct 2008)
New Revision: 9723

Modified:
   branches/0.8/jaws/html/gadgets/Blog/HTML.php
   branches/0.8/jaws/html/gadgets/Blog/templates/Archive.html
Log:
uniform blog Archive.html template with other templates

Modified: branches/0.8/jaws/html/gadgets/Blog/HTML.php
===================================================================
--- branches/0.8/jaws/html/gadgets/Blog/HTML.php	2008-10-27 12:17:03 UTC (rev 9722)
+++ branches/0.8/jaws/html/gadgets/Blog/HTML.php	2008-10-27 12:17:06 UTC (rev 9723)
@@ -966,7 +966,7 @@
         $auxMonth = '';
         $this->SetTitle(_t('BLOG_ARCHIVE'));
         $tpl->SetBlock('archive');
-        $tpl->SetVariable('archive', _t('BLOG_ARCHIVE'));
+        $tpl->SetVariable('title', _t('BLOG_ARCHIVE'));
         if (!Jaws_Error::IsError($archiveEntries)) {
             $date = $GLOBALS['app']->loadDate();
             foreach ($archiveEntries as $entry) {

Modified: branches/0.8/jaws/html/gadgets/Blog/templates/Archive.html
===================================================================
--- branches/0.8/jaws/html/gadgets/Blog/templates/Archive.html	2008-10-27 12:17:03 UTC (rev 9722)
+++ branches/0.8/jaws/html/gadgets/Blog/templates/Archive.html	2008-10-27 12:17:06 UTC (rev 9723)
@@ -1,11 +1,17 @@
 <!-- BEGIN archive  -->
-<h1>{archive}</h1>
-	<!-- BEGIN month -->
-	<h2>{month} {year}</h2>
-	<!-- BEGIN record -->
-	<div class="entry">
-	<a href="{view-link}">{title}</a> <span class="comments">[{comments}]</span> <span class="date">{date}</span>
-	</div>
-	<!-- END record -->
-	<!-- END month -->
-<!-- END archive -->
+<div class="gadget blog_archive">
+  <h2>{title}</h2>
+  <div class="content">
+    <!-- BEGIN month -->
+    <h3>{month} {year}</h3>
+    <ul>
+      <!-- BEGIN record -->
+      <li>
+      <a href="{view-link}">{title}</a> <span class="comments">[{comments}]</span> <span class="date">{date}</span>
+      </li>
+      <!-- END record -->
+    </ul>
+    <!-- END month -->
+  </div>
+</div>
+<!-- END archive -->
\ No newline at end of file



More information about the Jaws-commits mailing list