update albumtree
BIN
modules/albumtree/images/base.gif
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
modules/albumtree/images/folder.gif
Executable file
After Width: | Height: | Size: 372 B |
BIN
modules/albumtree/images/folderopen.gif
Executable file
After Width: | Height: | Size: 376 B |
BIN
modules/albumtree/images/imgfolder.gif
Executable file
After Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 69 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 67 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 66 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 64 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 66 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 85 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 85 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 861 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 870 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 89 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 88 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 88 B |
@ -345,6 +345,7 @@ if (!Array.prototype.pop) {
|
||||
|--------------------------------------------------*/
|
||||
|
||||
.dtree {
|
||||
font-size: 1.05em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.dtree img {
|
||||
@ -370,7 +371,7 @@ function albumSelect_goToNode(nodeId) {
|
||||
document.location = new String('main.php?g2_itemId=__ID__').replace('__ID__', nodeId);
|
||||
}
|
||||
var albumTree = new dTree('albumTree');
|
||||
var albumTree_images = 'https://gallery315.dajavous.com/modules/albumtree/images/'
|
||||
var albumTree_images = '<?= item::root()->url() ?>modules/albumtree/images/'
|
||||
albumTree.icon = {
|
||||
root : albumTree_images + 'base.gif',
|
||||
folder : albumTree_images + 'folder.gif',
|
||||
@ -394,12 +395,12 @@ albumTree.config.closeSameLevel = false;
|
||||
albumTree.config.cookiePath = '<?= item::root()->url() ?>';
|
||||
albumTree.config.cookieDomain = '';
|
||||
{ var pf = '<?= item::root()->url() ?>';
|
||||
<?
|
||||
<?php
|
||||
function addtree($album){
|
||||
?>
|
||||
albumTree.add(<?= $album->id -1 ?>, <?= $album->parent_id -1 ?>, "<?= html::purify($album->title) ?>", pf+'<?= $album->relative_url() ?>');
|
||||
<?
|
||||
foreach ($album->viewable()->children(null, null, array(array("tag_album", "=", "album"))) as $child){
|
||||
<?php
|
||||
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
||||
addtree($child);
|
||||
}
|
||||
}
|
||||
|
@ -10,14 +10,14 @@
|
||||
</style>
|
||||
|
||||
<ul class="treealbumnav">
|
||||
<?
|
||||
<?php
|
||||
function makelist($album,$level){
|
||||
//print out the list item
|
||||
?>
|
||||
<li>
|
||||
<a href="<?= item::root()->url() ?><?= $album->relative_url() ?>"><?= str_repeat(" ", $level) ?><?= html::purify($album->title) ?></a>
|
||||
</li>
|
||||
<?
|
||||
<?php
|
||||
//recurse over the children, and print their list items as well
|
||||
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
||||
makelist($child,$level+1);
|
||||
|
@ -1,11 +1,11 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<select onchange="window.location=this.value">
|
||||
<?
|
||||
<?php
|
||||
function makeselect($album, $level){
|
||||
//print out the list item as a select option
|
||||
?>
|
||||
<option value="<?= item::root()->url() ?><?= $album->relative_url() ?>"><?= str_repeat(" ", $level) ?><?= html::purify($album->title) ?></option>
|
||||
<?
|
||||
<?php
|
||||
//recurse over the children, and print their list items as well
|
||||
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
||||
makeselect($child,$level+1);
|
||||
|