Moved user options to separate page, modularized the settings page code so that it can be re-used to simplify and standardize user settings in the same manner as global settings
This commit is contained in:
@ -27,11 +27,10 @@ class Home extends Extension
|
||||
$counters[ucfirst($name)] = $name;
|
||||
}
|
||||
|
||||
$sb = new SetupBlock("Home Page");
|
||||
$sb = $event->panel->create_new_block("Home Page");
|
||||
$sb->add_longtext_option("home_links", 'Page Links (Use BBCode, leave blank for defaults)');
|
||||
$sb->add_longtext_option("home_text", "<br>Page Text:<br>");
|
||||
$sb->add_choice_option("home_counter", $counters, "<br>Counter: ");
|
||||
$event->panel->add_block($sb);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user