More changes to standardize with the new sidebar api
This commit is contained in:
parent
c625e416b2
commit
6941aa8fa7
@ -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"));
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user