Eliminate temporary variables by passing the $item into the view and

making API calls on the item.

Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
This commit is contained in:
Bharat Mediratta
2009-07-02 20:11:03 +08:00
committed by Tim Almdal
parent b1f9eb1d12
commit 1a587fd016
2 changed files with 5 additions and 7 deletions

View File

@@ -7,17 +7,17 @@
});
</script>
<div id="gServerAdd">
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($album_title))) ?></h1>
<h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($item->title))) ?></h1>
<p id="gDescription"><?= t("Photos will be added to album:") ?></p>
<ul class="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<? foreach ($item->parents() as $parent): ?>
<li><?= p::clean($parent->title) ?></li>
<? endforeach ?>
<li class="active"><?= p::clean($album_title) ?></li>
<li class="active"><?= p::clean($item->title) ?></li>
</ul>
<?= form::open($action, array("method" => "post")) ?>
<?= form::open(url::abs_site("__ARGS__/{$id}__TASK_ID__?csrf=$csrf"), array("method" => "post")) ?>
<div id="gServerAddTree" >
<?= $tree ?>
</div>