Rename "theme_3nids" to "3nids" in module vars.
This commit is contained in:
parent
1447920592
commit
9a7f7ff22d
@ -41,13 +41,13 @@ class Admin_theme_3nids_Controller extends Admin_Controller {
|
|||||||
// Input box for the Maps API Key
|
// Input box for the Maps API Key
|
||||||
$form->input("title")
|
$form->input("title")
|
||||||
->label(t("item title : parent or item."))
|
->label(t("item title : parent or item."))
|
||||||
->value(module::get_var("theme_3nids", "title"));
|
->value(module::get_var("3nids", "title"));
|
||||||
$form->input("description")
|
$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."))
|
->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")
|
$form->input("photo_size")
|
||||||
->label(t("Photo size: resize or full."))
|
->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.
|
// Add a save button to the form.
|
||||||
$form->submit("SaveSettings")->value(t("Save"));
|
$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");
|
$photo_size = Input::instance()->post("photo_size");
|
||||||
|
|
||||||
// Save Settings.
|
// Save Settings.
|
||||||
module::set_var("theme_3nids", "description", $description);
|
module::set_var("3nids", "description", $description);
|
||||||
module::set_var("theme_3nids", "title", $title);
|
module::set_var("3nids", "title", $title);
|
||||||
module::set_var("theme_3nids", "photo_size", $photo_size);
|
module::set_var("3nids", "photo_size", $photo_size);
|
||||||
|
|
||||||
// Display a success message and redirect back to the TagsMap admin page.
|
// Display a success message and redirect back to the TagsMap admin page.
|
||||||
message::success(t("Your Settings Have Been Saved."));
|
message::success(t("Your Settings Have Been Saved."));
|
||||||
|
@ -25,7 +25,7 @@ class Photo_3nids_Controller extends Items_Controller {
|
|||||||
|
|
||||||
$view = new Theme_View("photo_3nids.html", "other", "page");
|
$view = new Theme_View("photo_3nids.html", "other", "page");
|
||||||
$view->item = $item;
|
$view->item = $item;
|
||||||
$photo_size = module::get_var("theme_3nids","photo_size");
|
$photo_size = module::get_var("3nids","photo_size");
|
||||||
if ($photo_size == "full"){
|
if ($photo_size == "full"){
|
||||||
$view->item_url = $item->file_url();
|
$view->item_url = $item->file_url();
|
||||||
} else {
|
} else {
|
||||||
|
@ -58,12 +58,12 @@ class 3nids_Core {
|
|||||||
$rel = " rel=\"fancygroup\" ";
|
$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 = "";
|
$fancymodule = "";
|
||||||
if (module::is_active("exif")) {
|
if (module::is_active("exif")) {
|
||||||
$fancymodule .= "exif::" . url::site("exif/show/{$item->id}") . ";;";
|
$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}") .
|
$fancymodule .= "comment::" . url::site("comments_3nids?item_id={$item->id}") .
|
||||||
";;comment_count::" . comment_3nids::count($item) . ";;";
|
";;comment_count::" . comment_3nids::count($item) . ";;";
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ class theme_3nids_event_Core {
|
|||||||
// Add a link to the TagsMap admin page to the Content menu.
|
// Add a link to the TagsMap admin page to the Content menu.
|
||||||
$menu->get("content_menu")
|
$menu->get("content_menu")
|
||||||
->append(Menu::factory("link")
|
->append(Menu::factory("link")
|
||||||
->id("theme_3nids")
|
->id("3nids")
|
||||||
->label(t("Theme 3nids Settings"))
|
->label(t("Theme 3nids Settings"))
|
||||||
->url(url::site("admin/theme_3nids")));
|
->url(url::site("admin/theme_3nids")));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user