Rename and fix up some indentation.
This commit is contained in:
parent
2080cc531e
commit
b5414d7aa5
@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
class Admin_three_nids_Controller extends Admin_Controller {
|
||||
class Admin_Three_Nids_Controller extends Admin_Controller {
|
||||
public function index() {
|
||||
// Generate a new admin page.
|
||||
$view = new Admin_View("admin.html");
|
||||
@ -26,13 +26,11 @@ class Admin_three_nids_Controller extends Admin_Controller {
|
||||
|
||||
// Generate a form for Google Maps Settings.
|
||||
$view->content->theme_form = $this->_get_three_nids_form();
|
||||
|
||||
|
||||
// Display the page.
|
||||
print $view;
|
||||
}
|
||||
|
||||
|
||||
private function _get_three_nids_form() {
|
||||
// Make a new form for inputing information associated with google maps.
|
||||
$form = new Forge("admin/three_nids/savethree_nidsprefs", "", "post",
|
||||
@ -40,14 +38,14 @@ class Admin_three_nids_Controller extends Admin_Controller {
|
||||
|
||||
// Input box for the Maps API Key
|
||||
$form->input("title")
|
||||
->label(t("item title : parent or item."))
|
||||
->value(module::get_var("three_nids", "title"));
|
||||
->label(t("item title : parent or item."))
|
||||
->value(module::get_var("three_nids", "title"));
|
||||
$form->input("description")
|
||||
->label(t("item description : tags or item or parent or nothing. If item description chosen and not available, then parent description is used."))
|
||||
->value(module::get_var("three_nids", "description"));
|
||||
->label(t("item description : tags or item or parent or nothing. If item description chosen and not available, then parent description is used."))
|
||||
->value(module::get_var("three_nids", "description"));
|
||||
$form->input("photo_size")
|
||||
->label(t("Photo size: resize or full."))
|
||||
->value(module::get_var("three_nids", "photo_size"));
|
||||
->label(t("Photo size: resize or full."))
|
||||
->value(module::get_var("three_nids", "photo_size"));
|
||||
|
||||
// Add a save button to the form.
|
||||
$form->submit("SaveSettings")->value(t("Save"));
|
||||
@ -55,7 +53,7 @@ class Admin_three_nids_Controller extends Admin_Controller {
|
||||
// Return the newly generated form.
|
||||
return $form;
|
||||
}
|
||||
|
||||
|
||||
public function savethree_nidsprefs() {
|
||||
// Save information associated with Google Maps to the database.
|
||||
|
||||
@ -66,7 +64,7 @@ class Admin_three_nids_Controller extends Admin_Controller {
|
||||
$description = Input::instance()->post("description");
|
||||
$title = Input::instance()->post("title");
|
||||
$photo_size = Input::instance()->post("photo_size");
|
||||
|
||||
|
||||
// Save Settings.
|
||||
module::set_var("three_nids", "description", $description);
|
||||
module::set_var("three_nids", "title", $title);
|
Reference in New Issue
Block a user