]> git.mjollnir.org Git - s9y.git/commitdiff
backport
authorgarvinhicking <garvinhicking>
Mon, 20 Feb 2006 10:14:23 +0000 (10:14 +0000)
committergarvinhicking <garvinhicking>
Mon, 20 Feb 2006 10:14:23 +0000 (10:14 +0000)
templates/carl_contest/entries.tpl
templates/carl_contest/entries_summary.tpl
templates/competition/entries.tpl
templates/contest/entries.tpl
templates/default/entries.tpl
templates/kubrick/entries.tpl
templates/wp/entries.tpl

index be7f51388c22e46ef12b7b7462c1628388cfda78..1b518783c311858ae0b622936ef9461f06ec4f99 100644 (file)
@@ -14,9 +14,9 @@
        <div class='serendipity_entryFooter'>
                {if $entry.categories}
             <span class="serendipity_entryIcon">
-            {foreach from=$entry.categories item="category"}
-                {if $category.category_icon}
-                    <a href="{$category.category_link}"><img class="serendipity_entryIcon" title="{$category.category_name|@escape}{$category.category_description|@emptyPrefix}" alt="{$category.category_name|@escape}" src="{$category.category_icon}" /></a>
+            {foreach from=$entry.categories item="entry_category"}
+                {if $entry_category.category_icon}
+                    <a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
                 {/if}
             {/foreach}
             </span>
                        {if $is_single_entry}
                        {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
                        {if $entry.categories}
-                       {$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">                                              {$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
+                       {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">                                          {$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                 {/if}
                        <br />
                        {else}<a href="{$entry.link}">{$entry.title|@default:$entry.body|truncate:40:" ..."}</a> {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
                 {if $entry.categories}
-                   {$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
+                   {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                 {/if}
                 {if $dategroup.is_sticky}
                     {$CONST.ON}
index 621528b658640a6a07e84419edd41fcb1078eaec..cbeac8cb2e9211ed3d2af52d7d4105c93cecfdf0 100644 (file)
@@ -5,7 +5,7 @@
     {foreach from=$entries item="entries"}
         {foreach from=$entries.entries item="entry"}
             <div class="archive_summary"><h4 class="archive_summary_title">{$entry.id} - <a href="{$entry.link}">{$entry.title|truncate:80:" ..."}</a></h4>
-{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}. {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {if $entry.categories} {$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{/foreach}{/if}</div>
+{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}. {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {if $entry.categories} {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{/foreach}{/if}</div>
        {/foreach}
     {/foreach}
 
index af9eb521ea035d03979d556829a602c98e05ef5d..717826c57b367f24f25be6b77d00849ae6826f3a 100644 (file)
@@ -17,9 +17,9 @@
             {if $entry.categories}
 <!--
             <span class="serendipity_entryIcon">
-            {foreach from=$entry.categories item="category"}
-                {if $category.category_icon}
-                    <a href="{$category.category_link}"><img class="serendipity_entryIcon" title="{$category.category_name|@escape}{$category.category_description|@emptyPrefix}" alt="{$category.category_name|@escape}" src="{$category.category_icon}" /></a>
+            {foreach from=$entry.categories item="entry_category"}
+                {if $entry_category.category_icon}
+                    <a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
                 {/if}
             {/foreach}
             </span>
@@ -41,7 +41,7 @@
             <div class='serendipity_entryFooter'>
                 {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
                 {if $entry.categories}
-                   {$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
+                   {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                 {/if}
 
                 {if $dategroup.is_sticky}
index e67123a44a8e3b8314c530d028047186a2440127..0aab05215cceb71e44125147486f527550da27fa 100644 (file)
@@ -16,7 +16,7 @@
         <div class="serendipity_title_footer">
             <span class="serendipity_footer_postedby">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a></span>
             {if $entry.categories}
-            <span class="serendipity_footer_categories">{$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}</span>
+            <span class="serendipity_footer_categories">{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}</span>
             {/if}
 
             <span class="serendipity_footer_posted">
@@ -53,9 +53,9 @@
         <div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
             {if $entry.categories}
             <span class="serendipity_entryIcon">
-            {foreach from=$entry.categories item="category"}
-                {if $category.category_icon}
-                    <a href="{$category.category_link}"><img class="serendipity_entryIcon" title="{$category.category_name|@escape}{$category.category_description|@emptyPrefix}" alt="{$category.category_name|@escape}" src="{$category.category_icon}" /></a>
+            {foreach from=$entry.categories item="entry_category"}
+                {if $entry_category.category_icon}
+                    <a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
                 {/if}
             {/foreach}
             </span>
index 04a1ef5b27fd4d0c5603b8d9f861d51e45517131..05da044f4255a7a9d0a8ec6d95577329b39c2bf1 100644 (file)
@@ -15,9 +15,9 @@
         <div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
             {if $entry.categories}
             <span class="serendipity_entryIcon">
-            {foreach from=$entry.categories item="category"}
-                {if $category.category_icon}
-                    <a href="{$category.category_link}"><img class="serendipity_entryIcon" title="{$category.category_name|@escape}{$category.category_description|@emptyPrefix}" alt="{$category.category_name|@escape}" src="{$category.category_icon}" /></a>
+            {foreach from=$entry.categories item="entry_category"}
+                {if $entry_category.category_icon}
+                    <a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
                 {/if}
             {/foreach}
             </span>
@@ -38,7 +38,7 @@
             <div class='serendipity_entryFooter'>
                 {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
                 {if $entry.categories}
-                   {$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
+                   {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                 {/if}
 
                 {if $dategroup.is_sticky}
index 32239e6ffbaf44b9155c075dcfadf4091552824c..da13f62f3cd294b33220a74750fabde584f94cd1 100644 (file)
@@ -9,9 +9,9 @@
 
             {if $entry.categories}
             <span class="categoryIcon">
-            {foreach from=$entry.categories item="category"}
-                {if $category.category_icon}
-                    <a href="{$category.category_link}"><img class="categoryIcon" title="{$category.category_name|@escape}{$category.category_description|@emptyPrefix}" alt="{$category.category_name|@escape}" src="{$category.category_icon}" /></a>
+            {foreach from=$entry.categories item="entry_category"}
+                {if $entry_category.category_icon}
+                    <a href="{$entry_category.category_link}"><img class="categoryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
                 {/if}
             {/foreach}
             </span>
@@ -34,7 +34,7 @@
 
                                {$CONST.ENTRY_POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} {$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {$CONST.AT} {$entry.timestamp|@formatTime:"%H:%M"}.
                 {if $entry.categories}
-                   {$CONST.FILED_UNDER} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}.
+                   {$CONST.FILED_UNDER} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}.
                 {/if}
                 {if $entry.allow_comments}
                     {$CONST.LEAVE_RESPONSE|sprintf:'<a href="#serendipity_CommentForm">':'</a>':"<a href=\"$entry[link]\">":'</a>'}
@@ -48,7 +48,7 @@
                 {else}
                 {$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a>
                 {if $entry.categories}
-                   {$CONST.IN} {foreach from=$entry.categories item="category" name="categories"}<a href="{$category.category_link}">{$category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
+                   {$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
                 {/if}
 
                 {if $dategroup.is_sticky}
index cec28cc4c7ceb6d48ac18d51efe53080144b25bb..6e1525f15319ddb8b102d2c512f3079dbfd06251 100644 (file)
@@ -12,8 +12,8 @@
         <h3 class="storytitle" id="post-{$entry.id}"><a href="{$entry.link}" rel="bookmark" title="Permanent Link: {$entry.title}">{$entry.title}</a></h3>
 
         <div class="meta">Filed under:
-          <ul class="post-categories">{foreach from=$entry.categories item="category"}
-            <li><a title="View all posts in {$category.category_name}" href="{$serendipityHTTPPath}{$serendipityRewritePrefix}{$CONST.PATH_CATEGORIES}/{$category.category_id}-{$category.category_name|@makeFilename}">{$category.category_name}</a></li>
+          <ul class="post-categories">{foreach from=$entry.categories item="entry_category"}
+            <li><a title="View all posts in {$entry_category.category_name}" href="{$serendipityHTTPPath}{$serendipityRewritePrefix}{$CONST.PATH_CATEGORIES}/{$entry_category.category_id}-{$entry_category.category_name|@makeFilename}">{$entry_category.category_name}</a></li>
           {/foreach}</ul>
           &#8212; {$entry.author} @ {$entry.timestamp|@formatTime:'%I:%M %p'}
         </div>