1
0

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:
Bharat Mediratta 2010-12-17 17:08:19 -08:00
parent 1b4ca32228
commit 091357a9d2
3 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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