summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r--modules/gallery/helpers/album.php10
-rw-r--r--modules/gallery/helpers/gallery_block.php16
-rw-r--r--modules/gallery/helpers/gallery_event.php2
-rw-r--r--modules/gallery/helpers/graphics.php2
-rw-r--r--modules/gallery/helpers/item.php2
-rw-r--r--modules/gallery/helpers/log.php8
-rw-r--r--modules/gallery/helpers/message.php10
-rw-r--r--modules/gallery/helpers/movie.php2
-rw-r--r--modules/gallery/helpers/photo.php4
-rw-r--r--modules/gallery/helpers/site_status.php10
-rw-r--r--modules/gallery/helpers/theme.php14
11 files changed, 40 insertions, 40 deletions
diff --git a/modules/gallery/helpers/album.php b/modules/gallery/helpers/album.php
index 65868cf2..72a79a75 100644
--- a/modules/gallery/helpers/album.php
+++ b/modules/gallery/helpers/album.php
@@ -92,7 +92,7 @@ class album_Core {
}
static function get_add_form($parent) {
- $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddAlbumForm"));
+ $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "g-add-album-form"));
$group = $form->group("add_album")
->label(t("Add an album to %album_title", array("album_title" => $parent->title)));
$group->input("title")->label(t("Title"));
@@ -114,7 +114,7 @@ class album_Core {
}
static function get_edit_form($parent) {
- $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gEditAlbumForm"));
+ $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "g-edit-album-form"));
$form->hidden("_method")->value("put");
$group = $form->group("edit_item")->label(t("Edit Album"));
@@ -141,14 +141,14 @@ class album_Core {
$group->hidden("slug")->value($parent->slug);
}
- $sort_order = $group->group("sort_order", array("id" => "gAlbumSortOrder"))
+ $sort_order = $group->group("sort_order", array("id" => "g-album-sort-order"))
->label(t("Sort Order"));
- $sort_order->dropdown("column", array("id" => "gAlbumSortColumn"))
+ $sort_order->dropdown("column", array("id" => "g-album-sort-column"))
->label(t("Sort by"))
->options(album::get_sort_order_options())
->selected($parent->sort_column);
- $sort_order->dropdown("direction", array("id" => "gAlbumSortDirection"))
+ $sort_order->dropdown("direction", array("id" => "g-album-sort-direction"))
->label(t("Order"))
->options(array("ASC" => t("Ascending"),
"DESC" => t("Descending")))
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php
index f2cb8ded..5d49a9de 100644
--- a/modules/gallery/helpers/gallery_block.php
+++ b/modules/gallery/helpers/gallery_block.php
@@ -32,13 +32,13 @@ class gallery_block_Core {
$block = new Block();
switch($block_id) {
case "welcome":
- $block->css_id = "gWelcome";
+ $block->css_id = "g-welcome";
$block->title = t("Welcome to Gallery 3");
$block->content = new View("admin_block_welcome.html");
break;
case "photo_stream":
- $block->css_id = "gPhotoStream";
+ $block->css_id = "g-photo-stream";
$block->title = t("Photo Stream");
$block->content = new View("admin_block_photo_stream.html");
$block->content->photos =
@@ -46,7 +46,7 @@ class gallery_block_Core {
break;
case "log_entries":
- $block->css_id = "gLogEntries";
+ $block->css_id = "g-log-entries";
$block->title = t("Log Entries");
$block->content = new View("admin_block_log_entries.html");
$block->content->entries = ORM::factory("log")
@@ -54,7 +54,7 @@ class gallery_block_Core {
break;
case "stats":
- $block->css_id = "gStats";
+ $block->css_id = "g-stats";
$block->title = t("Gallery Stats");
$block->content = new View("admin_block_stats.html");
$block->content->album_count =
@@ -63,7 +63,7 @@ class gallery_block_Core {
break;
case "platform_info":
- $block->css_id = "gPlatform";
+ $block->css_id = "g-platform";
$block->title = t("Platform Information");
$block->content = new View("admin_block_platform.html");
if (is_readable("/proc/loadavg")) {
@@ -75,14 +75,14 @@ class gallery_block_Core {
break;
case "project_news":
- $block->css_id = "gProjectNews";
+ $block->css_id = "g-project-news";
$block->title = t("Gallery Project News");
$block->content = new View("admin_block_news.html");
$block->content->feed = feed::parse("http://gallery.menalto.com/node/feed", 3);
break;
case "block_adder":
- $block->css_id = "gBlockAdder";
+ $block->css_id = "g-block-adder";
$block->title = t("Dashboard Content");
$block->content = self::get_add_block_form();
}
@@ -92,7 +92,7 @@ class gallery_block_Core {
static function get_add_block_form() {
$form = new Forge("admin/dashboard/add_block", "", "post",
- array("id" => "gAddDashboardBlockForm"));
+ array("id" => "g-add-dashboard-block-form"));
$group = $form->group("add_block")->label(t("Add Block"));
$group->dropdown("id")->label(t("Available Blocks"))
->options(block_manager::get_available_admin_blocks());
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index c01f4135..290d7d12 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -281,7 +281,7 @@ class gallery_event_Core {
->id("delete")
->label($delete_title)
->css_class("ui-icon-trash")
- ->css_id("gQuickDelete")
+ ->css_id("g-quick-delete")
->url(url::site("quick/form_delete/$item->id?csrf=$csrf&page_type=$page_type")));
}
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index f9b88638..ecddd86b 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -249,7 +249,7 @@ class graphics_Core {
"%count of your photos are out of date. <a %attrs>Click here to fix them</a>",
$count,
array("attrs" => html::mark_clean(sprintf(
- 'href="%s" class="g-dialogLink"',
+ 'href="%s" class="g-dialog-link"',
url::site("admin/maintenance/start/gallery_task::rebuild_dirty_images?csrf=__CSRF__"))))),
"graphics_dirty");
}
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php
index 588c08d4..084bbc15 100644
--- a/modules/gallery/helpers/item.php
+++ b/modules/gallery/helpers/item.php
@@ -130,7 +130,7 @@ class item_Core {
$page_type = "photo";
}
$form = new Forge(
- "quick/delete/$item->id?page_type=$page_type", "", "post", array("id" => "gConfirmDelete"));
+ "quick/delete/$item->id?page_type=$page_type", "", "post", array("id" => "g-confirm-delete"));
$form->hidden("_method")->value("put");
$group = $form->group("confirm_delete")->label(t("Confirm Deletion"));
$group->submit("")->value(t("Delete"));
diff --git a/modules/gallery/helpers/log.php b/modules/gallery/helpers/log.php
index 451f985a..c8e94b45 100644
--- a/modules/gallery/helpers/log.php
+++ b/modules/gallery/helpers/log.php
@@ -93,16 +93,16 @@ class log_Core {
static function severity_class($severity) {
switch($severity) {
case self::SUCCESS:
- return "gSuccess";
+ return "g-success";
case self::INFO:
- return "gInfo";
+ return "g-info";
case self::WARNING:
- return "gWarning";
+ return "g-warning";
case self::ERROR:
- return "gError";
+ return "g-error";
}
}
}
diff --git a/modules/gallery/helpers/message.php b/modules/gallery/helpers/message.php
index af3b96cc..0d638571 100644
--- a/modules/gallery/helpers/message.php
+++ b/modules/gallery/helpers/message.php
@@ -81,7 +81,7 @@ class message_Core {
$buf[] = "<li class=\"" . self::severity_class($msg[1]) . "\">$msg[0]</li>";
}
if ($buf) {
- return "<ul id=\"gMessage\">" . implode("", $buf) . "</ul>";
+ return "<ul id=\"g-action-status\">" . implode("", $buf) . "</ul>";
}
}
@@ -93,16 +93,16 @@ class message_Core {
static function severity_class($severity) {
switch($severity) {
case self::SUCCESS:
- return "gSuccess";
+ return "g-success";
case self::INFO:
- return "gInfo";
+ return "g-info";
case self::WARNING:
- return "gWarning";
+ return "g-warning";
case self::ERROR:
- return "gError";
+ return "g-error";
}
}
}
diff --git a/modules/gallery/helpers/movie.php b/modules/gallery/helpers/movie.php
index 6c8c6c88..2190fc94 100644
--- a/modules/gallery/helpers/movie.php
+++ b/modules/gallery/helpers/movie.php
@@ -129,7 +129,7 @@ class movie_Core {
}
static function get_edit_form($movie) {
- $form = new Forge("movies/$movie->id", "", "post", array("id" => "gEditMovieForm"));
+ $form = new Forge("movies/$movie->id", "", "post", array("id" => "g-edit-movie-form"));
$form->hidden("_method")->value("put");
$group = $form->group("edit_item")->label(t("Edit Movie"));
$group->input("title")->label(t("Title"))->value($movie->title);
diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php
index 065d2d31..692f7111 100644
--- a/modules/gallery/helpers/photo.php
+++ b/modules/gallery/helpers/photo.php
@@ -138,7 +138,7 @@ class photo_Core {
}
static function get_add_form($parent) {
- $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddPhotoForm"));
+ $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "g-add-photo-form"));
$group = $form->group("add_photo")->label(
t("Add Photo to %album_title", array("album_title" => $parent->title)));
$group->input("title")->label(t("Title"));
@@ -157,7 +157,7 @@ class photo_Core {
}
static function get_edit_form($photo) {
- $form = new Forge("photos/$photo->id", "", "post", array("id" => "gEditPhotoForm"));
+ $form = new Forge("photos/$photo->id", "", "post", array("id" => "g-edit-photo-form"));
$form->hidden("_method")->value("put");
$group = $form->group("edit_item")->label(t("Edit Photo"));
$group->input("title")->label(t("Title"))->value($photo->title);
diff --git a/modules/gallery/helpers/site_status.php b/modules/gallery/helpers/site_status.php
index 6d47e565..b7c6de9a 100644
--- a/modules/gallery/helpers/site_status.php
+++ b/modules/gallery/helpers/site_status.php
@@ -105,7 +105,7 @@ class site_status_Core {
}
if ($buf) {
- return "<ul id=\"gSiteStatus\">" . implode("", $buf) . "</ul>";
+ return "<ul id=\"g-site-status\">" . implode("", $buf) . "</ul>";
}
}
@@ -117,16 +117,16 @@ class site_status_Core {
static function severity_class($severity) {
switch($severity) {
case self::SUCCESS:
- return "gSuccess";
+ return "g-success";
case self::INFO:
- return "gInfo";
+ return "g-info";
case self::WARNING:
- return "gWarning";
+ return "g-warning";
case self::ERROR:
- return "gError";
+ return "g-error";
}
}
}
diff --git a/modules/gallery/helpers/theme.php b/modules/gallery/helpers/theme.php
index b46a2c14..fb8f7ca7 100644
--- a/modules/gallery/helpers/theme.php
+++ b/modules/gallery/helpers/theme.php
@@ -40,22 +40,22 @@ class theme_Core {
}
static function get_edit_form_admin() {
- $form = new Forge("admin/theme_options/save/", "", null, array("id" =>"gThemeOptionsForm"));
+ $form = new Forge("admin/theme_options/save/", "", null, array("id" =>"g-theme-options-form"));
$group = $form->group("edit_theme");
- $group->input("page_size")->label(t("Items per page"))->id("gPageSize")
+ $group->input("page_size")->label(t("Items per page"))->id("g-page-size")
->rules("required|valid_digit")
->value(module::get_var("gallery", "page_size"));
- $group->input("thumb_size")->label(t("Thumbnail size (in pixels)"))->id("gThumbSize")
+ $group->input("thumb_size")->label(t("Thumbnail size (in pixels)"))->id("g-thumb-size")
->rules("required|valid_digit")
->value(module::get_var("gallery", "thumb_size"));
- $group->input("resize_size")->label(t("Resized image size (in pixels)"))->id("gResizeSize")
+ $group->input("resize_size")->label(t("Resized image size (in pixels)"))->id("g-resize-size")
->rules("required|valid_digit")
->value(module::get_var("gallery", "resize_size"));
- $group->textarea("header_text")->label(t("Header text"))->id("gHeaderText")
+ $group->textarea("header_text")->label(t("Header text"))->id("g-header-text")
->value(module::get_var("gallery", "header_text"));
- $group->textarea("footer_text")->label(t("Footer text"))->id("gFooterText")
+ $group->textarea("footer_text")->label(t("Footer text"))->id("g-footer-text")
->value(module::get_var("gallery", "footer_text"));
- $group->checkbox("show_credits")->label(t("Show site credits"))->id("gFooterText")
+ $group->checkbox("show_credits")->label(t("Show site credits"))->id("g-footer-text")
->checked(module::get_var("gallery", "show_credits"));
$group->submit("")->value(t("Save"));
return $form;