1
0

More changes to standardize with the new sidebar api

This commit is contained in:
Tim Almdal 2009-10-01 06:17:10 -07:00
parent c625e416b2
commit 6941aa8fa7
2 changed files with 38 additions and 49 deletions

View File

@ -20,7 +20,17 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class <?= $module ?>_block {
static function get($block_id) {
static function get_site_list() {
return array(
"<?= "{$module}_site" ?>" => t("<?= $name ?> Sidebar Block"));
}
static function get_admin_list() {
return array(
"<?= "{$module}_admin" ?>" => t("<?= $name ?> Dashboard Block"));
}
static function get($block_id, $theme) {
$block = new Block();
switch ($block_id) {
case "<?= "{$module}_admin" ?>":
@ -40,14 +50,4 @@ class <?= $module ?>_block {
}
return $block;
}
static function get_site_list() {
return array(
"<?= "{$module}_site" ?>" => t("<?= $name ?> Sidebar Block"));
}
static function get_admin_list() {
return array(
"<?= "{$module}_admin" ?>" => t("<?= $name ?> Dashboard Block"));
}
}

View File

@ -19,17 +19,6 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class <?= $module ?>_theme {
static function sidebar_blocks($theme) {
$block = new Block();
$block->css_id = "g<?= $css_id ?>";
$block->title = t("<?= $name ?>");
$block->content = new View("<?= $module ?>_block.html");
$block->content->item = ORM::factory("item", 1);
return $block;
}
<? if (!empty($callbacks["album_blocks"])): ?>
static function album_blocks($theme) {
}