mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
27 lines
1.0 KiB
PHP
27 lines
1.0 KiB
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<li class="g-organize-album ui-icon-left <?= access::can("edit", $album) ? "" : "g-view-only" ?>"
|
|
ref="<?= $album->id ?>">
|
|
<span class="ui-icon ui-icon-minus">
|
|
</span>
|
|
<span class="g-organize-album-text <?= $selected && $album->id == $selected->id ? "selected" : "" ?>"
|
|
ref="<?= $album->id ?>">
|
|
<?= html::clean($album->title) ?>
|
|
</span>
|
|
<ul>
|
|
<? foreach ($album->children(null, 0, array("type" => "album")) as $child): ?>
|
|
<? if ($selected && $child->contains($selected)): ?>
|
|
<?= View::factory("organize_tree.html", array("selected" => $selected, "album" => $child)); ?>
|
|
<? else: ?>
|
|
<li class="g-organize-album ui-icon-left <?= access::can("edit", $child) ? "" : "g-view-only" ?>"
|
|
ref="<?= $child->id ?>">
|
|
<span class="ui-icon ui-icon-plus"></span>
|
|
<span class="g-organize-album-text" ref="<?= $child->id ?>">
|
|
<?= html::clean($child->title) ?>
|
|
</span>
|
|
</li>
|
|
<? endif ?>
|
|
<? endforeach ?>
|
|
</ul>
|
|
</li>
|
|
|