Merge pull request #660 from virtualtam/fix/template/loop
Cleanup: explicitely loop over PHP variables in templates
This commit is contained in:
commit
209aa96e7e
9 changed files with 12 additions and 12 deletions
|
@ -42,10 +42,10 @@
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
{if="$linksToDisplay"}
|
{if="$linksToDisplay"}
|
||||||
{loop="cols"}
|
{loop="$cols"}
|
||||||
{if="isset($value[0])"}
|
{if="isset($value[0])"}
|
||||||
<div id="daily_col{$counter+1}">
|
<div id="daily_col{$counter+1}">
|
||||||
{loop="value"}
|
{loop="$value"}
|
||||||
{$link=$value}
|
{$link=$value}
|
||||||
<div class="dailyEntry">
|
<div class="dailyEntry">
|
||||||
<div class="dailyEntryPermalink">
|
<div class="dailyEntryPermalink">
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{if="$link.tags"}
|
{if="$link.tags"}
|
||||||
<div class="dailyEntryTags">
|
<div class="dailyEntryTags">
|
||||||
{loop="link.taglist"}
|
{loop="$link.taglist"}
|
||||||
{$value} -
|
{$value} -
|
||||||
{/loop}
|
{/loop}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<link>{$absurl}</link>
|
<link>{$absurl}</link>
|
||||||
<pubDate>{$rssdate}</pubDate>
|
<pubDate>{$rssdate}</pubDate>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
{loop="links"}
|
{loop="$links"}
|
||||||
<h3><a href="{$value.url}">{$value.title}</a></h3>
|
<h3><a href="{$value.url}">{$value.title}</a></h3>
|
||||||
<small>{if="!$hide_timestamps"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}<br>
|
<small>{if="!$hide_timestamps"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}<br>
|
||||||
{$value.url}</small><br>
|
{$value.url}</small><br>
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
Do Not Edit! -->{ignore}The RainTPL loop is formatted to avoid generating extra newlines{/ignore}
|
Do Not Edit! -->{ignore}The RainTPL loop is formatted to avoid generating extra newlines{/ignore}
|
||||||
<TITLE>{$pagetitle}</TITLE>
|
<TITLE>{$pagetitle}</TITLE>
|
||||||
<H1>Shaarli export of {$selection} bookmarks on {$date}</H1>
|
<H1>Shaarli export of {$selection} bookmarks on {$date}</H1>
|
||||||
<DL><p>{loop="links"}
|
<DL><p>{loop="$links"}
|
||||||
<DT><A HREF="{$value.url}" ADD_DATE="{$value.timestamp}" PRIVATE="{$value.private}" TAGS="{$value.taglist}">{$value.title}</A>{if="$value.description"}{$eol}<DD>{$value.description}{/if}{/loop}
|
<DT><A HREF="{$value.url}" ADD_DATE="{$value.timestamp}" PRIVATE="{$value.private}" TAGS="{$value.taglist}">{$value.title}</A>{if="$value.description"}{$eol}<DD>{$value.description}{/if}{/loop}
|
||||||
</DL><p>
|
</DL><p>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</author>
|
</author>
|
||||||
<id>{$index_url}</id>
|
<id>{$index_url}</id>
|
||||||
<generator>Shaarli</generator>
|
<generator>Shaarli</generator>
|
||||||
{loop="links"}
|
{loop="$links"}
|
||||||
<entry>
|
<entry>
|
||||||
<title>{$value.title}</title>
|
<title>{$value.title}</title>
|
||||||
{if="$usepermalinks"}
|
{if="$usepermalinks"}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<!-- PubSubHubbub Discovery -->
|
<!-- PubSubHubbub Discovery -->
|
||||||
<atom:link rel="hub" href="{$pubsubhub_url}" />
|
<atom:link rel="hub" href="{$pubsubhub_url}" />
|
||||||
{/if}
|
{/if}
|
||||||
{loop="links"}
|
{loop="$links"}
|
||||||
<item>
|
<item>
|
||||||
<title>{$value.title}</title>
|
<title>{$value.title}</title>
|
||||||
<guid isPermaLink="{if="$usepermalinks"}true{else}false{/if}">{$value.guid}</guid>
|
<guid isPermaLink="{if="$usepermalinks"}true{else}false{/if}">{$value.guid}</guid>
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<ul>
|
<ul>
|
||||||
{loop="links"}
|
{loop="$links"}
|
||||||
<li{if="$value.class"} class="{$value.class}"{/if}>
|
<li{if="$value.class"} class="{$value.class}"{/if}>
|
||||||
<a id="{$value.shorturl}"></a>
|
<a id="{$value.shorturl}"></a>
|
||||||
<div class="thumbnail">{$value.url|thumbnail}</div>
|
<div class="thumbnail">{$value.url|thumbnail}</div>
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
<a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
|
<a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
|
||||||
{if="$value.tags"}
|
{if="$value.tags"}
|
||||||
<div class="linktaglist">
|
<div class="linktaglist">
|
||||||
{loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
|
{loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
{if="!empty($plugin_errors) && isLoggedIn()"}
|
{if="!empty($plugin_errors) && isLoggedIn()"}
|
||||||
<ul class="errors">
|
<ul class="errors">
|
||||||
{loop="plugin_errors"}
|
{loop="$plugin_errors"}
|
||||||
<li>{$value}</li>
|
<li>{$value}</li>
|
||||||
{/loop}
|
{/loop}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<div id="picwall_container">
|
<div id="picwall_container">
|
||||||
{loop="linksToDisplay"}
|
{loop="$linksToDisplay"}
|
||||||
<div class="picwall_pictureframe">
|
<div class="picwall_pictureframe">
|
||||||
{$value.thumbnail}<a href="{$value.real_url}"><span class="info">{$value.title}</span></a>
|
{$value.thumbnail}<a href="{$value.real_url}"><span class="info">{$value.title}</span></a>
|
||||||
{loop="$value.picwall_plugin"}
|
{loop="$value.picwall_plugin"}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="cloudtag">
|
<div id="cloudtag">
|
||||||
{loop="tags"}
|
{loop="$tags"}
|
||||||
<span class="count">{$value.count}</span><a
|
<span class="count">{$value.count}</span><a
|
||||||
href="?searchtags={$key|urlencode}" style="font-size:{$value.size}em;">{$key}</a>
|
href="?searchtags={$key|urlencode}" style="font-size:{$value.size}em;">{$key}</a>
|
||||||
{loop="$value.tag_plugin"}
|
{loop="$value.tag_plugin"}
|
||||||
|
|
Loading…
Reference in a new issue