1
0

Rename "theme_3nids" to "3nids" in module vars.

This commit is contained in:
Bharat Mediratta 2009-11-27 15:21:05 -08:00
parent 1447920592
commit 9a7f7ff22d
4 changed files with 10 additions and 10 deletions

View File

@ -41,13 +41,13 @@ class Admin_theme_3nids_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("theme_3nids", "title"));
->value(module::get_var("3nids", "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("theme_3nids", "description"));
->value(module::get_var("3nids", "description"));
$form->input("photo_size")
->label(t("Photo size: resize or full."))
->value(module::get_var("theme_3nids", "photo_size"));
->value(module::get_var("3nids", "photo_size"));
// Add a save button to the form.
$form->submit("SaveSettings")->value(t("Save"));
@ -68,9 +68,9 @@ class Admin_theme_3nids_Controller extends Admin_Controller {
$photo_size = Input::instance()->post("photo_size");
// Save Settings.
module::set_var("theme_3nids", "description", $description);
module::set_var("theme_3nids", "title", $title);
module::set_var("theme_3nids", "photo_size", $photo_size);
module::set_var("3nids", "description", $description);
module::set_var("3nids", "title", $title);
module::set_var("3nids", "photo_size", $photo_size);
// Display a success message and redirect back to the TagsMap admin page.
message::success(t("Your Settings Have Been Saved."));

View File

@ -25,7 +25,7 @@ class Photo_3nids_Controller extends Items_Controller {
$view = new Theme_View("photo_3nids.html", "other", "page");
$view->item = $item;
$photo_size = module::get_var("theme_3nids","photo_size");
$photo_size = module::get_var("3nids","photo_size");
if ($photo_size == "full"){
$view->item_url = $item->file_url();
} else {

View File

@ -58,12 +58,12 @@ class 3nids_Core {
$rel = " rel=\"fancygroup\" ";
}
if ($item->is_photo() || ($item->is_movie()) && module::is_active("theme_3nids")){
if ($item->is_photo() || ($item->is_movie()) && module::is_active("3nids")){
$fancymodule = "";
if (module::is_active("exif")) {
$fancymodule .= "exif::" . url::site("exif/show/{$item->id}") . ";;";
}
if (module::is_active("comment") && module::is_active("theme_3nids")) {
if (module::is_active("comment") && module::is_active("3nids")) {
$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$item->id}") .
";;comment_count::" . comment_3nids::count($item) . ";;";
}

View File

@ -22,7 +22,7 @@ class theme_3nids_event_Core {
// Add a link to the TagsMap admin page to the Content menu.
$menu->get("content_menu")
->append(Menu::factory("link")
->id("theme_3nids")
->id("3nids")
->label(t("Theme 3nids Settings"))
->url(url::site("admin/theme_3nids")));
}