Add a second style where we use unordered lists instead of a <select>.
It's hacky, but works. Switch between styles using Admin > Settings > Advanced and changing albumtree.style between "select" and "list".
This commit is contained in:
parent
1b4ca32228
commit
091357a9d2
@ -26,9 +26,10 @@ class albumtree_block_Core {
|
||||
$block = new Block();
|
||||
switch ($block_id) {
|
||||
case "albumtree":
|
||||
$style = module::get_var("albumtree", "style", "select");
|
||||
$block->css_id = "g-albumtree";
|
||||
$block->title = t("Album Tree");
|
||||
$block->content = new View("albumtree_block.html");
|
||||
$block->content = new View("albumtree_block_{$style}.html");
|
||||
$block->content->root = item::root();
|
||||
break;
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
name = "Album Tree"
|
||||
description = "Provides a block in the sidebar with quick links to all other albums."
|
||||
version = 1
|
||||
version = 2
|
||||
|
Reference in New Issue
Block a user