Commit 5c250868 authored by Francois Marier's avatar Francois Marier
Browse files

templates: replace $smarty. variable with dwoo's $.



Thanks to Ruslan Kabalin for finding most of these!

(eduforge #3443)
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent e03eb2c3
......@@ -18,7 +18,7 @@
<tr>
<th><label>{str tag=tags}</label></th>
<td>
<input name="{$prefix}_edit_tags" size="40" id="{$prefix}_edit_tags" value="{foreach from=$fileinfo->tags item=tag name=tags}{if !$smarty.foreach.tags.first}, {/if}{$tag}{/foreach}" />
<input name="{$prefix}_edit_tags" size="40" id="{$prefix}_edit_tags" value="{foreach from=$fileinfo->tags item=tag name=tags}{if !$.foreach.tags.first}, {/if}{$tag}{/foreach}" />
<span>{contextualhelp plugintype='artefact' pluginname='file' section='tags'}</span>
</td>
</tr>
......
{foreach from=$path item=f name=path}
{if !$smarty.foreach.path.first}/ {/if}<a href="{$querybase}folder={$f->id}{if $owner}&owner={$owner}{if $ownerid}&ownerid={$ownerid}{/if}{/if}" class="changefolder">{$f->title|str_shorten_text:34|escape}</a>
{if !$.foreach.path.first}/ {/if}<a href="{$querybase}folder={$f->id}{if $owner}&owner={$owner}{if $ownerid}&ownerid={$ownerid}{/if}{/if}" class="changefolder">{$f->title|str_shorten_text:34|escape}</a>
{/foreach}
......@@ -13,7 +13,7 @@
{if $item->artefacts}
<div>
<strong>{str tag="artefacts" section="view"}:</strong>
{foreach from=$item->artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$item->id}" class="link-artefacts">{$artefact.title|escape}</a>{if !$smarty.foreach.artefacts.last}, {/if}{/foreach}
{foreach from=$item->artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$item->id}" class="link-artefacts">{$artefact.title|escape}</a>{if !$.foreach.artefacts.last}, {/if}{/foreach}
</div>
{/if}
</td>
......
......@@ -35,9 +35,9 @@
{else}
<select name="institution_requested" id="institution_requested">
{/if}
<option value="all"{if !$smarty.request.institution} selected="selected"{/if}>{str tag=All}</option>
<option value="all"{if !$.request.institution} selected="selected"{/if}>{str tag=All}</option>
{foreach from=$institutions item=i}
<option value="{$i->name|escape}"{if $i->name == $smarty.request.institution}" selected="selected"{/if}>{$i->displayname|escape}</option>
<option value="{$i->name|escape}"{if $i->name == $.request.institution}" selected="selected"{/if}>{$i->displayname|escape}</option>
{/foreach}
</select>
</span>
......
{if $searchable}<ul class="artefactchooser-tabs">
<li{if !$smarty.request.s} class="current"{/if}><a href="{$browseurl}">{str tag=Browse section=view}</a></li>
<li{if $smarty.request.s} class="current"{/if}><a href="{$searchurl}">{str tag=Search section=view}</a></li>
<li{if !$.request.s} class="current"{/if}><a href="{$browseurl}">{str tag=Browse section=view}</a></li>
<li{if $.request.s} class="current"{/if}><a href="{$searchurl}">{str tag=Search section=view}</a></li>
</ul>{/if}
<div id="artefactchooser-body">
<div class="cb artefactchooser-splitter">
<div id="artefactchooser-searchform"{if !$smarty.request.s} class="hidden"{/if}> {* Use a smarty var, not smarty.request *}
<label><input type="text" class="text" id="artefactchooser-searchfield" name="search" value="{$smarty.request.search|escape}" tabindex="42">
<div id="artefactchooser-searchform"{if !$.request.s} class="hidden"{/if}> {* Use a smarty var, not smarty.request *}
<label><input type="text" class="text" id="artefactchooser-searchfield" name="search" value="{$.request.search|escape}" tabindex="42">
<input type="hidden" name="s" value="1">
<input type="submit" class="submit" id="artefactchooser-searchsubmit" name="action_acsearch_id_{$blockinstance|escape}" value="&raquo;" tabindex="42"></label>
</div>
......
<h3><a href="{$WWWROOT}group/view.php?id={$group->id|escape}">{$group->name|escape}</a></h3>
<h6>{foreach name=admins from=$group->admins item=id}<a href="{$WWWROOT}user/view.php?id={$id|escape}">{$id|display_name|escape}</a>{if !$smarty.foreach.admins.last}, {/if}{/foreach}</h6>
<h6>{foreach name=admins from=$group->admins item=id}<a href="{$WWWROOT}user/view.php?id={$id|escape}">{$id|display_name|escape}</a>{if !$.foreach.admins.last}, {/if}{/foreach}</h6>
{$group->description}
<div>{str tag="memberslist" section="group"}
{foreach name=members from=$group->members item=member}
<a href="{$WWWROOT}user/view.php?id={$member->id|escape}">{$member->name|escape}</a>{if !$smarty.foreach.members.last}, {/if}
<a href="{$WWWROOT}user/view.php?id={$member->id|escape}">{$member->name|escape}</a>{if !$.foreach.members.last}, {/if}
{/foreach}
{if $group->membercount > 3}<a href="{$WWWROOT}group/members.php?id={$group->id|escape}">...</a>{/if}
</div>
......
<ul>
<li><label>{str tag=groupadmins section=group}:</label> {foreach name=admins from=$group->admins item=id}
<img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$id|escape}" alt="">
<a href="{$WWWROOT}user/view.php?id={$id|escape}">{$id|display_name|escape}</a>{if !$smarty.foreach.admins.last}, {/if}
<a href="{$WWWROOT}user/view.php?id={$id|escape}">{$id|display_name|escape}</a>{if !$.foreach.admins.last}, {/if}
{/foreach}</li>
<li><label>{str tag=Created section=group}:</label> {$group->ctime}</li>
<li><span><label>{str tag=Members section=group}:</label> {$membercount}&nbsp;</span>
......
......@@ -2,7 +2,7 @@
<span class="pagniation prev"><a href="{$url}&amp;offset={$limit*$prev}">{str tag=prevpage}</a></span>
{/if}
{foreach from=$pagenumbers item=i name=pagenumbers}
{if !$smarty.foreach.pagenumbers.first && $prevpagenum < $i-1}...{/if}
{if !$.foreach.pagenumbers.first && $prevpagenum < $i-1}...{/if}
<span class="pagniation{if $i == $page} selected{/if}"><a href="{$url}&amp;offset={$i*$limit}">{$i+1}</a></span>
{assign var='prevpagenum' value=$i}
{/foreach}
......
......@@ -21,12 +21,12 @@
<div class="rbuttons"><a class="btn edit-tag{if !$tag} hidden{/if}" href="{$WWWROOT}edittags.php?tag={$tag|urlencode}">{str tag=editthistag}</a></div>
<div id="results_sort" class="fl">{str tag=sortresultsby}
{foreach from=$results->sortcols item=sortfield name=sortcols}
<a href="{$results->baseurl}&type={$results->filter}&sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$smarty.foreach.sortcols.last} <span class="sep">|</span> {/if}
<a href="{$results->baseurl}&type={$results->filter}&sort={$sortfield}"{if $results->sort == $sortfield} class="selected"{/if}>{str tag=$sortfield}</a>{if !$.foreach.sortcols.last} <span class="sep">|</span> {/if}
{/foreach}
</div>
<div id="results_filter" class="fr">{str tag=filterresultsby}
{foreach from=$results->filtercols key=filtername item=filterdisplay name=filtercols}
<a href="{$results->baseurl}&sort={$results->sort}&type={$filtername}"{if $results->filter == $filtername} class="selected"{/if}>{$filterdisplay}</a>{if !$smarty.foreach.filtercols.last} <span class="sep">|</span> {/if}
<a href="{$results->baseurl}&sort={$results->sort}&type={$filtername}"{if $results->filter == $filtername} class="selected"{/if}>{$filterdisplay}</a>{if !$.foreach.filtercols.last} <span class="sep">|</span> {/if}
{/foreach}
</div>
<table id="results" class="tablerenderer fullwidth">
......
......@@ -39,7 +39,7 @@
<h4><a href="{$WWWROOT}view/blocks.php?id={$view.id}" id="editthisview">{str tag ="editthisview" section="view"}</a></h4>
{if $view.artefacts}
<div class="videsc">{str tag="artefacts" section="view"}:
{foreach from=$view.artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$view.id}" id="link-artefacts">{$artefact.title|escape}</a>{if !$smarty.foreach.artefacts.last}, {/if}{/foreach}</div>
{foreach from=$view.artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$view.id}" id="link-artefacts">{$artefact.title|escape}</a>{if !$.foreach.artefacts.last}, {/if}{/foreach}</div>
{/if}
</div>
{/if}
......@@ -61,7 +61,7 @@
<a href="{$WWWROOT}group/view.php?id={$accessgroup.id}">{$accessgroup.name|escape}</a>{if $accessgroup.role} ({$accessgroup.roledisplay}){/if}
{elseif $accessgroup.accesstype == 'user'}
<a href="{$WWWROOT}user/view.php?id={$accessgroup.id}">{$accessgroup.id|display_name|escape}</a>
{/if}{/strip}{if !$smarty.foreach.artefacts.last}, {/if}
{/if}{/strip}{if !$.foreach.artefacts.last}, {/if}
{/foreach}
{if $view.template}<br>{str tag=thisviewmaybecopied section=view}{/if}
</div>
......
......@@ -15,7 +15,7 @@
{if $view.description && $view.artefacts}<br>{/if}
{if $view.artefacts}
<strong>{str tag="artefacts" section="view"}:</strong>
{foreach from=$view.artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$view.id}" class="link-artefacts">{$artefact.title|escape}</a>{if !$smarty.foreach.artefacts.last}, {/if}{/foreach}
{foreach from=$view.artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$view.id}" class="link-artefacts">{$artefact.title|escape}</a>{if !$.foreach.artefacts.last}, {/if}{/foreach}
{/if}
{if $view.template}
<a href="">{str tag=copythisview section=view}</a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment