mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-31 16:59:22 -04:00
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:
committed by
Tim Almdal
parent
b1f9eb1d12
commit
1a587fd016
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user