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 {
|
.dtree {
|
||||||
|
font-size: 1.05em;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.dtree img {
|
.dtree img {
|
||||||
@ -370,7 +371,7 @@ function albumSelect_goToNode(nodeId) {
|
|||||||
document.location = new String('main.php?g2_itemId=__ID__').replace('__ID__', nodeId);
|
document.location = new String('main.php?g2_itemId=__ID__').replace('__ID__', nodeId);
|
||||||
}
|
}
|
||||||
var albumTree = new dTree('albumTree');
|
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 = {
|
albumTree.icon = {
|
||||||
root : albumTree_images + 'base.gif',
|
root : albumTree_images + 'base.gif',
|
||||||
folder : albumTree_images + 'folder.gif',
|
folder : albumTree_images + 'folder.gif',
|
||||||
@ -394,12 +395,12 @@ albumTree.config.closeSameLevel = false;
|
|||||||
albumTree.config.cookiePath = '<?= item::root()->url() ?>';
|
albumTree.config.cookiePath = '<?= item::root()->url() ?>';
|
||||||
albumTree.config.cookieDomain = '';
|
albumTree.config.cookieDomain = '';
|
||||||
{ var pf = '<?= item::root()->url() ?>';
|
{ var pf = '<?= item::root()->url() ?>';
|
||||||
<?
|
<?php
|
||||||
function addtree($album){
|
function addtree($album){
|
||||||
?>
|
?>
|
||||||
albumTree.add(<?= $album->id -1 ?>, <?= $album->parent_id -1 ?>, "<?= html::purify($album->title) ?>", pf+'<?= $album->relative_url() ?>');
|
albumTree.add(<?= $album->id -1 ?>, <?= $album->parent_id -1 ?>, "<?= html::purify($album->title) ?>", pf+'<?= $album->relative_url() ?>');
|
||||||
<?
|
<?php
|
||||||
foreach ($album->viewable()->children(null, null, array(array("tag_album", "=", "album"))) as $child){
|
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
||||||
addtree($child);
|
addtree($child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<ul class="treealbumnav">
|
<ul class="treealbumnav">
|
||||||
<?
|
<?php
|
||||||
function makelist($album,$level){
|
function makelist($album,$level){
|
||||||
//print out the list item
|
//print out the list item
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?= item::root()->url() ?><?= $album->relative_url() ?>"><?= str_repeat(" ", $level) ?><?= html::purify($album->title) ?></a>
|
<a href="<?= item::root()->url() ?><?= $album->relative_url() ?>"><?= str_repeat(" ", $level) ?><?= html::purify($album->title) ?></a>
|
||||||
</li>
|
</li>
|
||||||
<?
|
<?php
|
||||||
//recurse over the children, and print their list items as well
|
//recurse over the children, and print their list items as well
|
||||||
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
||||||
makelist($child,$level+1);
|
makelist($child,$level+1);
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
<select onchange="window.location=this.value">
|
<select onchange="window.location=this.value">
|
||||||
<?
|
<?php
|
||||||
function makeselect($album, $level){
|
function makeselect($album, $level){
|
||||||
//print out the list item as a select option
|
//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>
|
<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
|
//recurse over the children, and print their list items as well
|
||||||
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child){
|
||||||
makeselect($child,$level+1);
|
makeselect($child,$level+1);
|
||||||
|