mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-10 20:39:09 -04:00
30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<li class="gOrganizeAlbum ui-icon-left <?= access::can("edit", $album) ? "" : "gViewOnly" ?>"
|
|
ref="<?= $album->id ?>">
|
|
<span class="ui-icon ui-icon-minus">
|
|
</span>
|
|
<span class="gOrganizeAlbumText
|
|
<?= $selected && $album->id == $selected->id ? "selected" : "" ?>
|
|
"
|
|
ref="<?= $album->id ?>">
|
|
<?= p::clean($album->title) ?>
|
|
</span>
|
|
<ul>
|
|
<? foreach ($album->children(null, 0, array("type" => "album")) as $child): ?>
|
|
<? if ($selected && $child->is_descendant($selected)): ?>
|
|
<?= View::factory("organize_tree.html", array("selected" => $selected, "album" => $child)); ?>
|
|
<? else: ?>
|
|
<li class="gOrganizeAlbum ui-icon-left <?= access::can("edit", $child) ? "" : "gViewOnly" ?>"
|
|
ref="<?= $child->id ?>">
|
|
<span class="ui-icon ui-icon-plus">
|
|
</span>
|
|
<span class="gOrganizeAlbumText" ref="<?= $child->id ?>">
|
|
<?= p::clean($child->title) ?>
|
|
</span>
|
|
</li>
|
|
<? endif ?>
|
|
<? endforeach ?>
|
|
</ul>
|
|
</li>
|
|
|