2009-04-03 00:50:43 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-10-04 00:27:22 -06:00
|
|
|
<li class="g-organize-album ui-icon-left <?= access::can("edit", $album) ? "" : "g-view-only" ?>"
|
2009-08-29 16:33:22 -07:00
|
|
|
ref="<?= $album->id ?>">
|
2009-08-29 10:00:47 -07:00
|
|
|
<span class="ui-icon ui-icon-minus">
|
|
|
|
|
</span>
|
2009-10-04 00:27:22 -06:00
|
|
|
<span class="g-organize-album-text <?= $selected && $album->id == $selected->id ? "selected" : "" ?>"
|
2009-08-30 14:35:27 -07:00
|
|
|
ref="<?= $album->id ?>">
|
2009-08-30 18:27:40 -07:00
|
|
|
<?= html::clean($album->title) ?>
|
2009-08-29 10:00:47 -07:00
|
|
|
</span>
|
2009-08-29 16:33:22 -07:00
|
|
|
<ul>
|
|
|
|
|
<? foreach ($album->children(null, 0, array("type" => "album")) as $child): ?>
|
2009-09-10 10:28:43 -07:00
|
|
|
<? if ($selected && $child->contains($selected)): ?>
|
2009-08-30 14:35:27 -07:00
|
|
|
<?= View::factory("organize_tree.html", array("selected" => $selected, "album" => $child)); ?>
|
|
|
|
|
<? else: ?>
|
2009-10-04 00:27:22 -06:00
|
|
|
<li class="g-organize-album ui-icon-left <?= access::can("edit", $child) ? "" : "g-view-only" ?>"
|
2009-08-29 16:33:22 -07:00
|
|
|
ref="<?= $child->id ?>">
|
|
|
|
|
<span class="ui-icon ui-icon-plus">
|
2009-08-29 10:00:47 -07:00
|
|
|
</span>
|
2009-10-04 00:27:22 -06:00
|
|
|
<span class="g-organize-album-text" 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>
|
2009-08-30 14:35:27 -07:00
|
|
|
<? endif ?>
|
2009-08-29 10:00:47 -07:00
|
|
|
<? endforeach ?>
|
2009-08-06 06:33:17 -07:00
|
|
|
</ul>
|
2009-08-05 10:26:11 -07:00
|
|
|
</li>
|
2009-08-29 16:33:22 -07:00
|
|
|
|