summaryrefslogtreecommitdiff
path: root/modules/organize/views/organize_tree.html.php
blob: d64410d8696b405552c62740588b17b19a7e2946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php defined("SYSPATH") or die("No direct script access.") ?>
<li class="gOrganizeBranch ui-icon-left" ref="<?= $album->id ?>">

  <div id="gOrganizeBranch-<?= $album->id ?>" ref="<?= $album->id ?>"
       class="<?= $selected ? "gBranchSelected" : "" ?> gBranchText">
    <span id="gOrganizeIcon-<?= $album->id ?>" ref="<?= $album->id ?>"
          class="ui-icon <?= $album_icon ?>">
    </span>
    <?= p::clean($album->title) ?>
  </div>
  <? if (empty($children)): ?>
    <div id="gOrganizeChildren-<?= $album->id ?>"></div>
  <? else: ?>
    <ul id="gOrganizeChildren-<?= $album->id ?>"
       class="<?= $album_icon == "ui-icon-plus" ? "gBranchCollapsed" : "" ?>">
      <? foreach ($children as $child): ?>
        <?= $child ?>
      <? endforeach ?>
    </ul>
  <? endif ?>
</li>