Files
gallery3/modules/organize/views/organize_tree.html.php
T

28 lines
1.0 KiB
PHP
Raw Normal View History

<?php defined("SYSPATH") or die("No direct script access.") ?>
<li class="gOrganizeAlbum ui-icon-left <?= access::can("edit", $album) ? "" : "gViewOnly" ?>"
ref="<?= $album->id ?>">
2009-08-29 10:00:47 -07:00
<span class="ui-icon ui-icon-minus">
</span>
2009-08-30 15:54:56 -07:00
<span class="gOrganizeAlbumText <?= $selected && $album->id == $selected->id ? "selected" : "" ?>"
ref="<?= $album->id ?>">
2009-08-30 18:27:40 -07:00
<?= html::clean($album->title) ?>
2009-08-29 10:00:47 -07:00
</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="gOrganizeAlbum ui-icon-left <?= access::can("edit", $child) ? "" : "gViewOnly" ?>"
ref="<?= $child->id ?>">
<span class="ui-icon ui-icon-plus">
2009-08-29 10:00:47 -07:00
</span>
<span class="gOrganizeAlbumText" ref="<?= $child->id ?>">
2009-08-30 18:27:40 -07:00
<?= html::clean($child->title) ?>
2009-08-29 10:00:47 -07:00
</span>
</li>
<? endif ?>
2009-08-29 10:00:47 -07:00
<? endforeach ?>
</ul>
</li>