diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php
index 0080b4ce..c73eda08 100644
--- a/modules/search/helpers/search.php
+++ b/modules/search/helpers/search.php
@@ -57,7 +57,7 @@ class search_Core {
list ($remaining) = search::stats();
if ($remaining) {
site_status::warning(
- t('Your search index needs to be updated.
Fix this now',
+ t('Your search index needs to be updated.
Fix this now',
array("url" => html::mark_clean(url::site("admin/maintenance/start/search_task::update_index?csrf=__CSRF__")))),
"search_index_out_of_date");
}
diff --git a/modules/server_add/js/server_add.js b/modules/server_add/js/server_add.js
index 50a8c36b..86bff079 100644
--- a/modules/server_add/js/server_add.js
+++ b/modules/server_add/js/server_add.js
@@ -21,7 +21,7 @@
self.run_add();
});
$("#gServerAddCloseButton", this.element).click(function(event) {
- $("#gDialog").dialog("close");
+ $("#g-dialog").dialog("close");
window.location.reload();
});
$("#gServerAddTree span.gDirectory", this.element).dblclick(function(event) {
@@ -33,7 +33,7 @@
$("#gServerAddTree span.gDirectory", this.element).dblclick(function(event) {
self.open_dir(event);
});
- $("#gDialog").bind("dialogclose", function(event, ui) {
+ $("#g-dialog").bind("dialogclose", function(event, ui) {
window.location.reload();
});
},
diff --git a/modules/tag/js/tag.js b/modules/tag/js/tag.js
index 52c695c6..ab3691a6 100644
--- a/modules/tag/js/tag.js
+++ b/modules/tag/js/tag.js
@@ -24,7 +24,7 @@ function closeEditInPlaceForms() {
$("#gRenameTagForm").parent().html($("#gRenameTagForm").parent().data("revert"));
li.height("");
$(".gEditable", li).bind("click", editInPlace);
- $(".gDialogLink", li).gallery_dialog();
+ $(".g-dialogLink", li).gallery_dialog();
}
}
diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php
index b7344cda..a4bd5d8f 100644
--- a/modules/tag/views/admin_tags.html.php
+++ b/modules/tag/views/admin_tags.html.php
@@ -50,7 +50,7 @@
= html::clean($tag->name) ?>
(= $tag->count ?>)
id") ?>"
- class="gDialogLink delete-link g-button">
+ class="g-dialogLink delete-link g-button">
= t("Delete this tag") ?>
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php
index 04e6efd6..e0dfac8e 100644
--- a/modules/user/helpers/group.php
+++ b/modules/user/helpers/group.php
@@ -86,6 +86,7 @@ class group_Core {
static function get_add_form_admin() {
$form = new Forge("admin/users/add_group", "", "post", array("id" => "gAddGroupForm"));
+ $form->set_attr('class', "g-narrow");
$form_group = $form->group("add_group")->label(t("Add Group"));
$form_group->input("name")->label(t("Name"))->id("gName");
$form_group->inputs["name"]->error_messages(
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php
index b9162b92..93c385a3 100644
--- a/modules/user/helpers/user.php
+++ b/modules/user/helpers/user.php
@@ -26,6 +26,7 @@
class user_Core {
static function get_edit_form($user) {
$form = new Forge("users/$user->id?_method=put", "", "post", array("id" => "gEditUserForm"));
+ $form->set_attr("class", "g-narrow");
$group = $form->group("edit_user")->label(t("Edit User: %name", array("name" => $user->name)));
$group->input("full_name")->label(t("Full Name"))->id("gFullName")->value($user->full_name);
self::_add_locale_dropdown($group, $user);
@@ -66,6 +67,7 @@ class user_Core {
static function get_add_form_admin() {
$form = new Forge("admin/users/add_user", "", "post", array("id" => "gAddUserForm"));
+ $form->set_attr('class', "g-narrow");
$group = $form->group("add_user")->label(t("Add User"));
$group->input("name")->label(t("Username"))->id("gUsername")
->error_messages("in_use", t("There is already a user with that username"));
@@ -112,6 +114,7 @@ class user_Core {
static function get_login_form($url) {
$form = new Forge($url, "", "post", array("id" => "gLoginForm"));
+ $form->set_attr('class', "g-narrow");
$group = $form->group("login")->label(t("Login"));
$group->input("name")->label(t("Username"))->id("gUsername")->class(null);
$group->password("password")->label(t("Password"))->id("gPassword")->class(null);
diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php
index 0741a932..a46e402f 100644
--- a/modules/user/views/admin_users.html.php
+++ b/modules/user/views/admin_users.html.php
@@ -28,7 +28,7 @@
{},
function(data) {
$("#group-" + group_id).html(data);
- $("#group-" + group_id + " .gDialogLink").gallery_dialog();
+ $("#group-" + group_id + " .g-dialogLink").gallery_dialog();
});
}
@@ -43,7 +43,7 @@
"
- class="gDialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
+ class="g-dialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
title="= t("Create a new user")->for_html_attr() ?>">
= t("Add a new user") ?>
@@ -89,7 +89,7 @@
= t("edit") ?>
if (user::active()->id != $user->id && !$user->guest): ?>
id") ?>"
- class="gDialogLink g-button ui-state-default ui-corner-all ui-icon-left">
+ class="g-dialogLink g-button ui-state-default ui-corner-all ui-icon-left">
= t("delete") ?>
else: ?>
for_html_attr() ?>"
@@ -105,7 +105,7 @@
"
- class="gDialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
+ class="g-dialogLink g-button g-right ui-icon-left ui-state-default ui-corner-all"
title="= t("Create a new group")->for_html_attr() ?>">
= t("Add a new group") ?>
diff --git a/modules/user/views/admin_users_group.html.php b/modules/user/views/admin_users_group.html.php
index 6f2496f8..e5c9fcee 100644
--- a/modules/user/views/admin_users_group.html.php
+++ b/modules/user/views/admin_users_group.html.php
@@ -4,11 +4,11 @@
if (!$group->special): ?>
id") ?>"
title="= t("Delete the %name group", array("name" => $group->name))->for_html_attr() ?>"
- class="gDialogLink g-button ui-state-default ui-corner-all">
+ class="g-dialogLink g-button ui-state-default ui-corner-all">
= t("delete") ?>
else: ?>
for_html_attr() ?>"
- class="gDialogLink g-button ui-state-disabled ui-corner-all ui-icon-left">
+ class="g-dialogLink g-button ui-state-disabled ui-corner-all ui-icon-left">
= t("delete") ?>
endif ?>
diff --git a/modules/user/views/login.html.php b/modules/user/views/login.html.php
index bb670d51..c814bbfa 100644
--- a/modules/user/views/login.html.php
+++ b/modules/user/views/login.html.php
@@ -11,7 +11,7 @@
= t('Logged in as %name', array('name' => html::mark_clean(
'
id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
- '" id="gUserProfileLink" class="gDialogLink">' .
+ '" id="gUserProfileLink" class="g-dialogLink">' .
html::clean($user->display_name()) . ''))) ?>
diff --git a/modules/user/views/login_ajax.html.php b/modules/user/views/login_ajax.html.php
index a7530134..d3364b46 100644
--- a/modules/user/views/login_ajax.html.php
+++ b/modules/user/views/login_ajax.html.php
@@ -1,12 +1,12 @@
-
endif ?>
diff --git a/themes/admin_wind/css/screen.css b/themes/admin_wind/css/screen.css
index 2679386b..24c63756 100644
--- a/themes/admin_wind/css/screen.css
+++ b/themes/admin_wind/css/screen.css
@@ -67,7 +67,7 @@ h3 {
a,
.gMenu a,
-#gDialog a,
+#g-dialog a,
.g-button,
.g-button:hover,
.g-button:active,
@@ -80,7 +80,7 @@ button.ui-state-hover {
}
a:hover,
-#gDialog a:hover {
+#g-dialog a:hover {
text-decoration: underline;
}
@@ -88,21 +88,6 @@ a:hover,
text-decoration: none;
}
-#gDialog .gCancel {
- clear: none;
- float: left;
- margin: .3em 1em;
-}
-
-#gForgotPasswordLink {
- float: right;
- font-size: .9em;
-}
-
-#gDialog .gCancel {
- float: left;
-}
-
/* Tables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
table {
@@ -782,7 +767,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
font-size: 0;
}
-.gDialogLoadingLarge {
+.g-dialogLoadingLarge {
background: url('../../../lib/images/loading-large.gif') no-repeat center center !important;
font-size: 0;
}
@@ -836,34 +821,6 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
opacity: .7;
}
-#gDialog {
- text-align: left;
-}
-
-#gDialog li {
- padding-left: 0;
-}
-
-#gDialog form input[type="text"],
-#gDialog form input[type="password"] {
- width: 100%;
-}
-
-#gDialog #gLoginForm,
-#gDialog #gAddUserForm,
-#gDialog #gAddGroupForm {
- margin: 0 auto;
- width: 270px;
-}
-
-#gDialog fieldset {
- border: none;
-}
-
-#gDialog legend {
- display: none;
-}
-
/* jQuery UI ThemeRoller buttons */
.gButtonSet {
@@ -1056,7 +1013,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
float: right;
}
-#gTaskLogDialog h1 {
+#gTaskLog-dialog h1 {
font-size: 1.1em;
}
@@ -1143,7 +1100,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
.rtl caption,
.rtl th,
-.rtl #gDialog {
+.rtl #g-dialog {
text-align: right;
}
@@ -1159,7 +1116,7 @@ li.gDefaultGroup h4, li.gDefaultGroup .gUser {
float: left;
}
-.rtl #gDialog .gCancel,
+.rtl #g-dialog .g-cancel,
.rtl form ul ul li,
.rtl input[type="submit"],
.rtl input[type="reset"],
diff --git a/themes/admin_wind/js/ui.init.js b/themes/admin_wind/js/ui.init.js
index d9b011bd..a603f87f 100644
--- a/themes/admin_wind/js/ui.init.js
+++ b/themes/admin_wind/js/ui.init.js
@@ -17,7 +17,7 @@ $(document).ready(function(){
$("#gMessage li").gallery_show_message();
// Initialize modal dialogs
- $(".gDialogLink").gallery_dialog();
+ $(".g-dialogLink").gallery_dialog();
// Initialize ajax links
$(".gAjaxLink").gallery_ajax();
diff --git a/themes/wind/css/fix-ie.css b/themes/wind/css/fix-ie.css
index 4c13764f..8899ec59 100644
--- a/themes/wind/css/fix-ie.css
+++ b/themes/wind/css/fix-ie.css
@@ -23,7 +23,7 @@ input.submit {
width: 110px;
}
-#gDialog a.gCancel {
+#g-dialog a.g-cancel {
display: inline-block !important;
float: none !important;
}
diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css
index 8f17e310..ec75d310 100644
--- a/themes/wind/css/screen.css
+++ b/themes/wind/css/screen.css
@@ -67,7 +67,7 @@ h3 {
a,
.gMenu a,
-#gDialog a,
+#g-dialog a,
.g-button,
.g-button:hover,
.g-button:active,
@@ -81,7 +81,7 @@ button.ui-state-hover {
}
a:hover,
-#gDialog a:hover {
+#g-dialog a:hover {
text-decoration: underline;
}
@@ -89,22 +89,7 @@ a:hover,
text-decoration: none;
}
-#gDialog .gCancel {
- clear: none;
- float: left;
- margin: .3em 1em;
-}
-
-#gForgotPasswordLink {
- float: right;
- font-size: .9em;
-}
-
-#gDialog .gCancel {
- float: left;
-}
-
-#gDialog #gMessage li {
+#g-dialog #gMessage li {
width: 400px;
white-space: normal;
padding-left: 32px;
@@ -685,13 +670,13 @@ form .gError,
font-weight: bold;
}
-#gDialog ul.gBreadcrumbs {
+#g-dialog ul.gBreadcrumbs {
clear: both;
margin-left: 0;
padding-left: 0;
}
-#gDialog .gBreadcrumbs li {
+#g-dialog .gBreadcrumbs li {
font-size: .9em;
}
@@ -822,7 +807,7 @@ form .gError,
font-size: 0;
}
-.gDialogLoadingLarge {
+.g-dialogLoadingLarge {
background: url('../../../lib/images/loading-large.gif') no-repeat center center !important;
font-size: 0;
}
@@ -850,38 +835,6 @@ form .gError,
opacity: .7;
}
-#gDialog {
- text-align: left;
-}
-
-#gDialog li {
- padding-left: 0;
-}
-
-#gDialog form input[type="text"],
-#gDialog form input[type="password"] {
- width: 100%;
-}
-
-#gDialog #gLoginForm,
-#gDialog #gAddUserForm,
-#gDialog #gAddGroupForm {
- margin: 0 auto;
- width: 270px;
-}
-
-#gDialog fieldset {
- border: none;
-}
-
-#gDialog legend {
- display: none;
-}
-
-#gDialog p {
- margin: 0;
-}
-
/* jQuery UI ThemeRoller buttons */
.gButtonSet {
@@ -1097,7 +1050,7 @@ form .gError,
.rtl caption,
.rtl th,
-.rtl #gDialog {
+.rtl #g-dialog {
text-align: right;
}
@@ -1109,7 +1062,7 @@ form .gError,
float: left;
}
-.rtl #gDialog .gCancel,
+.rtl #g-dialog .g-cancel,
.rtl form ul ul li,
.rtl input[type="submit"],
.rtl input[type="reset"],
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js
index 4a1962c0..4b3b4306 100644
--- a/themes/wind/js/ui.init.js
+++ b/themes/wind/js/ui.init.js
@@ -26,8 +26,8 @@ $(document).ready(function() {
$("#gMessage li").gallery_show_message();
// Initialize dialogs
- $("#gLoginLink").addClass("gDialogLink");
- $(".gDialogLink").gallery_dialog();
+ $("#gLoginLink").addClass("g-dialogLink");
+ $(".g-dialogLink").gallery_dialog();
// Initialize view menu
if ($("#gViewMenu").length) {
diff --git a/themes/wind/views/album.html.php b/themes/wind/views/album.html.php
index 01f7be50..fd647f81 100644
--- a/themes/wind/views/album.html.php
+++ b/themes/wind/views/album.html.php
@@ -30,7 +30,7 @@
if ($user->admin || access::can("add", $item)): ?>
$addurl = url::file("index.php/simple_uploader/app/$item->id") ?>
= t("There aren't any photos here yet! Add some.",
- array("attrs" => html::mark_clean("href=\"$addurl\" class=\"gDialogLink\""))) ?>
+ array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialogLink\""))) ?>
else: ?>
= t("There aren't any photos here yet!") ?>
endif; ?>
--
cgit v1.2.3
From 3e6ba7acc3291f2268cbe9c9bef0a492b557babb Mon Sep 17 00:00:00 2001
From: Chad Kieffer
Date: Sun, 4 Oct 2009 00:27:22 -0600
Subject: Renamed most, if not all css selectors from gName to g-name. Moved a
few shared images from wind to lib. Deleted unused images in the admin_wind.
This will likely break a few ajax features.
---
lib/gallery.common.css | 57 ++-
lib/gallery.common.js | 24 +-
lib/gallery.dialog.js | 4 +-
lib/gallery.panel.js | 24 +-
lib/gallery.show_full_size.js | 20 +-
lib/images/ico-separator.gif | Bin 0 -> 106 bytes
modules/akismet/helpers/akismet.php | 2 +-
modules/akismet/views/admin_akismet.html.php | 4 +-
modules/akismet/views/admin_akismet_stats.html.php | 6 +-
modules/comment/helpers/comment.php | 20 +-
modules/comment/helpers/comment_block.php | 2 +-
modules/comment/helpers/comment_event.php | 2 +-
modules/comment/helpers/comment_theme.php | 2 +-
modules/comment/js/comment.js | 26 +-
.../views/admin_block_recent_comments.html.php | 4 +-
modules/comment/views/admin_comments.html.php | 20 +-
modules/comment/views/comment.html.php | 6 +-
modules/comment/views/comments.html.php | 14 +-
modules/digibug/helpers/digibug_event.php | 7 +-
modules/digibug/js/digibug.js | 7 +-
modules/digibug/views/admin_digibug.html.php | 8 +-
modules/exif/helpers/exif.php | 2 +-
modules/exif/views/exif_dialog.html.php | 22 +-
modules/exif/views/exif_sidebar.html.php | 5 +-
modules/g2_import/controllers/admin_g2_import.php | 2 +-
modules/g2_import/helpers/g2_import.php | 6 +-
modules/g2_import/views/admin_g2_import.html.php | 18 +-
modules/gallery/controllers/admin_dashboard.php | 2 +-
modules/gallery/controllers/admin_languages.php | 2 +-
modules/gallery/controllers/l10n_client.php | 4 +-
modules/gallery/css/debug.css | 8 +-
modules/gallery/css/l10n_client.css | 28 +-
modules/gallery/helpers/album.php | 10 +-
modules/gallery/helpers/gallery_block.php | 16 +-
modules/gallery/helpers/gallery_event.php | 2 +-
modules/gallery/helpers/graphics.php | 2 +-
modules/gallery/helpers/item.php | 2 +-
modules/gallery/helpers/log.php | 8 +-
modules/gallery/helpers/message.php | 10 +-
modules/gallery/helpers/movie.php | 2 +-
modules/gallery/helpers/photo.php | 4 +-
modules/gallery/helpers/site_status.php | 10 +-
modules/gallery/helpers/theme.php | 14 +-
modules/gallery/js/albums_form_add.js | 20 +-
modules/gallery/js/l10n_client.js | 44 +-
modules/gallery/libraries/Admin_View.php | 2 +-
modules/gallery/libraries/Menu.php | 8 +-
modules/gallery/libraries/Theme_View.php | 6 +-
modules/gallery/models/item.php | 2 +-
modules/gallery/tests/DrawForm_Test.php | 12 +-
modules/gallery/tests/selenium/Add_Comment.html | 8 +-
modules/gallery/tests/selenium/Login.html | 8 +-
modules/gallery/tests/xss_data.txt | 62 +--
.../gallery/views/admin_advanced_settings.html.php | 8 +-
.../views/admin_block_photo_stream.html.php | 2 +-
modules/gallery/views/admin_dashboard.html.php | 22 +-
modules/gallery/views/admin_graphics.html.php | 10 +-
modules/gallery/views/admin_graphics_gd.html.php | 8 +-
.../views/admin_graphics_graphicsmagick.html.php | 6 +-
.../views/admin_graphics_imagemagick.html.php | 6 +-
modules/gallery/views/admin_graphics_none.html.php | 2 +-
modules/gallery/views/admin_languages.html.php | 12 +-
modules/gallery/views/admin_maintenance.html.php | 26 +-
.../views/admin_maintenance_show_log.html.php | 8 +-
.../gallery/views/admin_maintenance_task.html.php | 24 +-
modules/gallery/views/admin_modules.html.php | 4 +-
modules/gallery/views/admin_sidebar.html.php | 24 +-
.../gallery/views/admin_sidebar_blocks.html.php | 2 +-
modules/gallery/views/admin_theme_options.html.php | 2 +-
modules/gallery/views/admin_themes.html.php | 20 +-
modules/gallery/views/form.html.php | 4 +-
modules/gallery/views/l10n_client.html.php | 6 +-
modules/gallery/views/move_browse.html.php | 14 +-
modules/gallery/views/permissions_browse.html.php | 14 +-
modules/gallery/views/permissions_form.html.php | 10 +-
modules/gallery/views/simple_uploader.html.php | 28 +-
modules/gallery/views/welcome_message.html.php | 6 +-
.../gallery/views/welcome_message_loader.html.php | 4 +-
modules/image_block/helpers/image_block_block.php | 2 +-
.../image_block/views/image_block_block.html.php | 4 +-
modules/info/helpers/info_block.php | 2 +-
modules/info/views/info_block.html.php | 2 +-
.../notification/helpers/notification_event.php | 2 +-
modules/organize/css/organize.css | 50 +--
modules/organize/helpers/organize_event.php | 4 +-
modules/organize/js/organize.js | 84 ++--
modules/organize/views/organize_dialog.html.php | 28 +-
.../organize/views/organize_thumb_grid.html.php | 10 +-
modules/organize/views/organize_tree.html.php | 8 +-
modules/recaptcha/helpers/recaptcha.php | 2 +-
modules/recaptcha/helpers/recaptcha_event.php | 2 +-
modules/recaptcha/views/admin_recaptcha.html.php | 8 +-
modules/recaptcha/views/form_recaptcha.html.php | 4 +-
modules/rss/helpers/rss_block.php | 2 +-
modules/rss/views/rss_block.html.php | 2 +-
modules/search/helpers/search.php | 2 +-
modules/search/helpers/search_installer.php | 2 +-
modules/search/views/search.html.php | 12 +-
modules/search/views/search_link.html.php | 6 +-
.../server_add/controllers/admin_server_add.php | 2 +-
modules/server_add/js/admin.js | 2 +-
modules/server_add/js/server_add.js | 58 +--
modules/server_add/views/admin_server_add.html.php | 10 +-
modules/server_add/views/server_add_tree.html.php | 6 +-
.../views/server_add_tree_dialog.html.php | 26 +-
modules/slideshow/helpers/slideshow_event.php | 6 +-
modules/tag/helpers/tag.php | 6 +-
modules/tag/helpers/tag_block.php | 2 +-
modules/tag/js/tag.js | 38 +-
modules/tag/views/admin_tags.html.php | 14 +-
modules/tag/views/tag_block.html.php | 10 +-
modules/user/controllers/password.php | 10 +-
modules/user/helpers/group.php | 10 +-
modules/user/helpers/user.php | 52 +--
modules/user/helpers/user_block.php | 2 +-
modules/user/views/admin_users.html.php | 36 +-
modules/user/views/admin_users_group.html.php | 6 +-
modules/user/views/login.html.php | 8 +-
modules/user/views/user_languages_block.html.php | 4 +-
modules/watermark/helpers/watermark.php | 6 +-
modules/watermark/views/admin_watermarks.html.php | 8 +-
themes/admin_wind/css/fix-ie.css | 12 +-
themes/admin_wind/css/screen.css | 453 ++++++++++-----------
themes/admin_wind/images/avatar.jpg | Bin 914 -> 0 bytes
themes/admin_wind/images/ico-album.png | Bin 397 -> 0 bytes
themes/admin_wind/images/ico-print.png | Bin 989 -> 0 bytes
themes/admin_wind/images/ico-separator.gif | Bin 106 -> 0 bytes
themes/admin_wind/images/ico-view-comments.png | Bin 768 -> 0 bytes
themes/admin_wind/images/ico-view-fullsize.png | Bin 1046 -> 0 bytes
themes/admin_wind/images/ico-view-hybrid.png | Bin 494 -> 0 bytes
themes/admin_wind/images/ico-view-slideshow.png | Bin 960 -> 0 bytes
themes/admin_wind/js/ui.init.js | 38 +-
themes/admin_wind/views/admin.html.php | 20 +-
themes/admin_wind/views/block.html.php | 6 +-
themes/admin_wind/views/pager.html.php | 4 +-
themes/wind/css/fix-ie.css | 18 +-
themes/wind/css/screen.css | 432 +++++++++-----------
themes/wind/images/ico-separator.gif | Bin 106 -> 0 bytes
themes/wind/images/ico-view-hybrid.png | Bin 494 -> 0 bytes
themes/wind/js/ui.init.js | 72 ++--
themes/wind/views/album.html.php | 20 +-
themes/wind/views/block.html.php | 4 +-
themes/wind/views/dynamic.html.php | 12 +-
themes/wind/views/movie.html.php | 12 +-
themes/wind/views/no_sidebar.html.php | 2 +-
themes/wind/views/page.html.php | 22 +-
themes/wind/views/pager.html.php | 4 +-
themes/wind/views/photo.html.php | 18 +-
themes/wind/views/sidebar.html.php | 4 +-
149 files changed, 1278 insertions(+), 1317 deletions(-)
create mode 100644 lib/images/ico-separator.gif
delete mode 100644 themes/admin_wind/images/avatar.jpg
delete mode 100644 themes/admin_wind/images/ico-album.png
delete mode 100644 themes/admin_wind/images/ico-print.png
delete mode 100644 themes/admin_wind/images/ico-separator.gif
delete mode 100644 themes/admin_wind/images/ico-view-comments.png
delete mode 100644 themes/admin_wind/images/ico-view-fullsize.png
delete mode 100644 themes/admin_wind/images/ico-view-hybrid.png
delete mode 100644 themes/admin_wind/images/ico-view-slideshow.png
delete mode 100644 themes/wind/images/ico-separator.gif
delete mode 100644 themes/wind/images/ico-view-hybrid.png
(limited to 'themes/wind/js/ui.init.js')
diff --git a/lib/gallery.common.css b/lib/gallery.common.css
index 5768e1cf..c422fe6e 100644
--- a/lib/gallery.common.css
+++ b/lib/gallery.common.css
@@ -133,11 +133,11 @@ form .g-error {
.g-last {
}
-.g-even-row {
+.g-even {
background-color: #fff;
}
-.g-odd-row {
+.g-odd {
background-color: #eee;
}
@@ -211,7 +211,60 @@ form .g-error {
margin-bottom: .4em;
}
+/* Breadcrumbs ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-breadcrumbs {
+ padding: 0 20px;
+}
+
+.g-breadcrumbs li {
+ background: transparent url('images/ico-separator.gif') no-repeat scroll left center;
+ float: left;
+ padding: 10px 6px 10px 16px !important;
+}
+
+.g-breadcrumbs li.root {
+ background: transparent;
+}
+
+.g-breadcrumbs li a,
+.g-breadcrumbs li span {
+ display: block;
+}
+
+.g-breadcrumbs li.active,
+.g-breadcrumbs li.active span {
+ font-weight: bold;
+}
+
+#g-dialog ul.g-breadcrumbs {
+ clear: both;
+ margin-left: 0;
+ padding-left: 0;
+}
+
+#g-dialog .g-breadcrumbs li {
+ font-size: .9em;
+}
+
+/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
.g-pager {
+ clear: both;
+ margin: 0;
+ padding: 5px 0 !important;
+ width: 100%;
+}
+
+.g-pager li {
+ float: left;
+ margin: 0;
+ width: 30%;
+}
+
+.g-pager .g-info {
+ text-align: center;
+ width: 40%;
}
.g-list-horizontal {
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index 59482b22..f2de74ad 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -24,8 +24,8 @@
if (container == null) {
container = 'div';
}
- $(this).html("<" + container + " class=\"gValign\">" + $(this).html() + "" + container + ">");
- var el = $(this).children(container + ".gValign");
+ $(this).html("<" + container + " class=\"g-valign\">" + $(this).html() + "" + container + ">");
+ var el = $(this).children(container + ".g-valign");
var elh = $(el).height();
var ph = $(this).height();
var nh = (ph - elh) / 2;
@@ -47,21 +47,21 @@
/**
* Toggle the processing indicator, both large and small
- * @param elementID Target ID, including #, to apply .gLoadingSize
+ * @param elementID Target ID, including #, to apply .g-loading-size
*/
$.fn.gallery_show_loading = function() {
return this.each(function(i){
var size;
switch ($(this).attr("id")) {
case "#g-dialog":
- case "#gPanel":
- size = "Large";
+ case "#g-panel":
+ size = "large";
break;
default:
- size = "Small";
+ size = "small";
break;
}
- $(this).toggleClass("gLoading" + size);
+ $(this).toggleClass("g-loading" + size);
});
};
@@ -89,7 +89,7 @@
*/
$.fn.gallery_get_photo = function() {
var photo = $(this).find("img").filter(function() {
- return this.id.match(/gPhotoId-\d+/);
+ return this.id.match(/g-photoId-\d+/);
});
return photo;
};
@@ -124,8 +124,8 @@
};
$.fn.gallery_context_menu = function() {
- if ($(".gContextMenu li").length) {
- var hover_target = ".gContextMenu";
+ if ($(".g-context-menu li").length) {
+ var hover_target = ".g-context-menu";
var in_progress = 0;
$(hover_target + " *").removeAttr('title');
$(hover_target + " ul").hide();
@@ -133,8 +133,8 @@
function() {
if (in_progress == 0) {
$(this).find("ul").slideDown("fast", function() { in_progress = 1; });
- $(this).find(".g-dialogLink").gallery_dialog();
- $(this).find(".gAjaxLink").gallery_ajax();
+ $(this).find(".g-dialog-link").gallery_dialog();
+ $(this).find(".g-ajax-link").gallery_ajax();
}
},
function() {
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js
index a70200f9..c162ab2a 100644
--- a/lib/gallery.dialog.js
+++ b/lib/gallery.dialog.js
@@ -36,7 +36,7 @@
$("#g-dialog").dialog("open");
// Remove titlebar for progress dialogs or set title
- if ($("#g-dialog #gProgress").length) {
+ if ($("#g-dialog #g-progress").length) {
$(".ui-dialog-titlebar").remove();
} else if ($("#g-dialog h1").length) {
$("#g-dialog").dialog('option', 'title', $("#g-dialog h1:eq(0)").html());
@@ -61,7 +61,7 @@
dialogWidth = size.width() - 100;
// Set the iframe width and height
$("#g-dialog iframe").width("100%").height(size.height() - 100);
- } else if ($("#g-dialog .g-dialogPanel").length) {
+ } else if ($("#g-dialog .g-dialog-panel").length) {
dialogWidth = size.width() - 100;
$("#g-dialog").dialog("option", "height", size.height() - 100);
} else if (childWidth == "" || childWidth > 300) {
diff --git a/lib/gallery.panel.js b/lib/gallery.panel.js
index 6115297d..8530dd9f 100644
--- a/lib/gallery.panel.js
+++ b/lib/gallery.panel.js
@@ -8,7 +8,7 @@
var parent = $(element).parent().parent();
var sHref = $(element).attr("href");
var parentClass = $(parent).attr("class");
- var ePanel = " |
";
+ var ePanel = " |
";
// We keep track of the open vs. closed state by looking to see if there'
// an orig_text attr. If that attr is missing, then the panel is closed
@@ -16,12 +16,12 @@
var should_open = !$(element).attr("orig_text");
// Close any open panels and reset their button text
- if ($("#gPanel").length) {
- $("#gPanel").slideUp("slow").remove();
- $.each($(".gPanelLink"),
+ if ($("#g-panel").length) {
+ $("#g-panel").slideUp("slow").remove();
+ $.each($(".g-panel-link"),
function() {
if ($(this).attr("orig_text")) {
- $(this).children(".gButtonText").text($(this).attr("orig_text"));
+ $(this).children(".g-button-text").text($(this).attr("orig_text"));
$(this).attr("orig_text", "");
}
}
@@ -30,15 +30,15 @@
if (should_open) {
$(parent).after(ePanel);
- $("#gPanel td").html(sHref);
+ $("#g-panel td").html(sHref);
$.get(sHref, function(data) {
- $("#gPanel td").html(data);
+ $("#g-panel td").html(data);
self._ajaxify_panel();
if ($(element).attr("open_text")) {
- $(element).attr("orig_text", $(element).children(".gButtonText").text());
- $(element).children(".gButtonText").text($(element).attr("open_text"));
+ $(element).attr("orig_text", $(element).children(".g-button-text").text());
+ $(element).children(".g-button-text").text($(element).attr("open_text"));
}
- $("#gPanel").addClass(parentClass).show().slideDown("slow");
+ $("#g-panel").addClass(parentClass).show().slideDown("slow");
});
}
@@ -48,11 +48,11 @@
_ajaxify_panel: function () {
var self = this;
- $("#gPanel td form").ajaxForm({
+ $("#g-panel td form").ajaxForm({
dataType: "json",
success: function(data) {
if (data.form) {
- $("#gPanel td form").replaceWith(data.form);
+ $("#g-panel td form").replaceWith(data.form);
self._ajaxify_panel();
}
if (data.result == "success") {
diff --git a/lib/gallery.show_full_size.js b/lib/gallery.show_full_size.js
index 360ecdc2..49dc620a 100644
--- a/lib/gallery.show_full_size.js
+++ b/lib/gallery.show_full_size.js
@@ -7,7 +7,7 @@
var height = $(document).height();
var size = $.gallery_get_viewport_size();
- $("body").append('' +
- '

');
$().click(function() {
- $("#gFullsizeOverlay*").remove();
- $("#gFullsize").remove();
+ $("#g-fullsize-overlay*").remove();
+ $("#g-fullsize").remove();
});
$().bind("keypress", function() {
- $("#gFullsizeOverlay*").remove();
- $("#gFullsize").remove();
+ $("#g-fullsize-overlay*").remove();
+ $("#g-fullsize").remove();
});
$(window).resize(function() {
- $("#gFullsizeOverlay").width($(document).width()).height($(document).height());
+ $("#g-fullsize-overlay").width($(document).width()).height($(document).height());
image_size = $.gallery_auto_fit_window(image_width, image_height);
- $("#gFullsize").height(image_size.height)
+ $("#g-fullsize").height(image_size.height)
.width(image_size.width)
.css("top", image_size.top)
.css("left", image_size.left);
- $("#gFullSizeImage").height(image_size.height).width(image_size.width);
+ $("#g-fullsize-image").height(image_size.height).width(image_size.width);
});
};
})(jQuery);
diff --git a/lib/images/ico-separator.gif b/lib/images/ico-separator.gif
new file mode 100644
index 00000000..3de2d0d3
Binary files /dev/null and b/lib/images/ico-separator.gif differ
diff --git a/modules/akismet/helpers/akismet.php b/modules/akismet/helpers/akismet.php
index acd5cb3e..43549ffa 100644
--- a/modules/akismet/helpers/akismet.php
+++ b/modules/akismet/helpers/akismet.php
@@ -21,7 +21,7 @@ class akismet_Core {
public static $test_mode = TEST_MODE;
static function get_configure_form() {
- $form = new Forge("admin/akismet", "", "post", array("id" => "gConfigureAkismetForm"));
+ $form = new Forge("admin/akismet", "", "post", array("id" => "g-configure-akismet-form"));
$group = $form->group("configure_akismet")->label(t("Configure Akismet"));
$group->input("api_key")->label(t("API Key"))->value(module::get_var("akismet", "api_key"));
$group->api_key->error_messages("invalid", t("The API key you provided is invalid."));
diff --git a/modules/akismet/views/admin_akismet.html.php b/modules/akismet/views/admin_akismet.html.php
index 009d8810..22c60c97 100644
--- a/modules/akismet/views/admin_akismet.html.php
+++ b/modules/akismet/views/admin_akismet.html.php
@@ -1,5 +1,5 @@
-
+
= t("Akismet Spam Filtering") ?>
= t("Akismet is a free, automated spam filtering service. In order to use it, you need to sign up for a Wordpress.com API Key, which is also free. Your comments will be automatically relayed to Akismet.com where they'll be scanned for spam. Spam messages will be flagged accordingly and hidden from your vistors until you approve or delete them.",
@@ -8,7 +8,7 @@
if ($valid_key): ?>
-
+
= t("Your API Key is valid. Your comments will be filtered!") ?>
endif ?>
diff --git a/modules/akismet/views/admin_akismet_stats.html.php b/modules/akismet/views/admin_akismet_stats.html.php
index 41bad15b..32908ba0 100644
--- a/modules/akismet/views/admin_akismet_stats.html.php
+++ b/modules/akismet/views/admin_akismet_stats.html.php
@@ -1,11 +1,11 @@
-
-
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php
index f74a8644..7b2332a8 100644
--- a/modules/comment/helpers/comment.php
+++ b/modules/comment/helpers/comment.php
@@ -65,12 +65,12 @@ class comment_Core {
}
static function get_add_form($item) {
- $form = new Forge("comments", "", "post", array("id" => "gAddCommentForm"));
+ $form = new Forge("comments", "", "post", array("id" => "g-comment-form"));
$group = $form->group("add_comment")->label(t("Add comment"));
- $group->input("name") ->label(t("Name")) ->id("gAuthor");
- $group->input("email") ->label(t("Email (hidden)")) ->id("gEmail");
- $group->input("url") ->label(t("Website (hidden)"))->id("gUrl");
- $group->textarea("text")->label(t("Comment")) ->id("gText");
+ $group->input("name") ->label(t("Name")) ->id("g-author");
+ $group->input("email") ->label(t("Email (hidden)")) ->id("g-email");
+ $group->input("url") ->label(t("Website (hidden)"))->id("g-url");
+ $group->textarea("text")->label(t("Comment")) ->id("g-text");
$group->hidden("item_id")->value($item->id);
module::event("comment_add_form", $form);
$group->submit("")->value(t("Add"));
@@ -90,12 +90,12 @@ class comment_Core {
static function get_edit_form($comment) {
$form = new Forge("comments/{$comment->id}?_method=put", "", "post",
- array("id" => "gEditCommentForm"));
+ array("id" => "g-edit-comment-form"));
$group = $form->group("edit_comment")->label(t("Edit comment"));
- $group->input("name") ->label(t("Author")) ->id("gAuthor");
- $group->input("email") ->label(t("Email (hidden)")) ->id("gEmail");
- $group->input("url") ->label(t("Website (hidden)"))->id("gUrl");
- $group->textarea("text")->label(t("Comment")) ->id("gText");
+ $group->input("name") ->label(t("Author")) ->id("g-author");
+ $group->input("email") ->label(t("Email (hidden)")) ->id("g-email");
+ $group->input("url") ->label(t("Website (hidden)"))->id("g-url");
+ $group->textarea("text")->label(t("Comment")) ->id("g-text");
$group->submit("")->value(t("Edit"));
$group->text = $comment->text;
diff --git a/modules/comment/helpers/comment_block.php b/modules/comment/helpers/comment_block.php
index b989be6b..c00c6c51 100644
--- a/modules/comment/helpers/comment_block.php
+++ b/modules/comment/helpers/comment_block.php
@@ -26,7 +26,7 @@ class comment_block_Core {
$block = new Block();
switch ($block_id) {
case "recent_comments":
- $block->css_id = "gRecentComments";
+ $block->css_id = "g-recent-comments";
$block->title = t("Recent Comments");
$block->content = new View("admin_block_recent_comments.html");
$block->content->comments =
diff --git a/modules/comment/helpers/comment_event.php b/modules/comment/helpers/comment_event.php
index 0234aea9..2199eb7f 100644
--- a/modules/comment/helpers/comment_event.php
+++ b/modules/comment/helpers/comment_event.php
@@ -36,7 +36,7 @@ class comment_event_Core {
->id("comments")
->label(t("View comments on this item"))
->url("#comments")
- ->css_id("gCommentsLink"));
+ ->css_id("g-comments-link"));
}
static function item_index_data($item, $data) {
diff --git a/modules/comment/helpers/comment_theme.php b/modules/comment/helpers/comment_theme.php
index e9b402f6..10c855db 100644
--- a/modules/comment/helpers/comment_theme.php
+++ b/modules/comment/helpers/comment_theme.php
@@ -25,7 +25,7 @@ class comment_theme_Core {
static function photo_bottom($theme) {
$block = new Block;
- $block->css_id = "gComments";
+ $block->css_id = "g-comments";
$block->title = t("Comments");
$block->anchor = "comments";
diff --git a/modules/comment/js/comment.js b/modules/comment/js/comment.js
index 6e985626..96370fb1 100644
--- a/modules/comment/js/comment.js
+++ b/modules/comment/js/comment.js
@@ -1,43 +1,43 @@
$("document").ready(function() {
- $("#gAddCommentButton").click(function(event) {
+ $("#g-admin-comment-button").click(function(event) {
event.preventDefault();
- if (!$("#gAddCommentForm").length) {
+ if (!$("#g-comment-form").length) {
$.get($(this).attr("href"),
{},
function(data) {
- $("#gCommentDetail").append(data);
+ $("#g-comment-detail").append(data);
ajaxify_comment_form();
});
}
});
- $("#gNoComments").click(function(event) {
+ $("#g-no-comments").click(function(event) {
event.preventDefault();
- if (!$("#gAddCommentForm").length) {
+ if (!$("#g-comment-form").length) {
$.get($(this).attr("href"),
{},
function(data) {
- $("#gCommentDetail").append(data);
+ $("#g-comment-detail").append(data);
ajaxify_comment_form();
});
- $("#gNoCommentsYet").remove();
+ $("#g-no-comments-yet").remove();
}
});
});
function ajaxify_comment_form() {
- $("#gComments form").ajaxForm({
+ $("#g-comments form").ajaxForm({
dataType: "json",
success: function(data) {
if (data.form) {
- $("#gComments form").replaceWith(data.form);
+ $("#g-comments form").replaceWith(data.form);
ajaxify_comment_form();
}
if (data.result == "success") {
$.get(data.resource, function(data, textStatus) {
- $("#gComments .gBlockContent ul:first").append("
"+data+"");
- $("#gComments .gBlockContent ul:first li:last").effect("highlight", {color: "#cfc"}, 8000);
- $("#gAddCommentForm").hide(2000).remove();
- $("#gNoCommentsYet").hide(2000);
+ $("#g-comments .g-block-content ul:first").append("
"+data+"");
+ $("#g-comments .g-block-content ul:first li:last").effect("highlight", {color: "#cfc"}, 8000);
+ $("#g-comment-form").hide(2000).remove();
+ $("#g-no-comments-yet").hide(2000);
});
}
}
diff --git a/modules/comment/views/admin_block_recent_comments.html.php b/modules/comment/views/admin_block_recent_comments.html.php
index ca0d1c0b..7941e02d 100644
--- a/modules/comment/views/admin_block_recent_comments.html.php
+++ b/modules/comment/views/admin_block_recent_comments.html.php
@@ -1,9 +1,9 @@
foreach ($comments as $i => $comment): ?>
- - ">
+
- ">
"
- class="gAvatar"
+ class="g-avatar"
alt="= html::clean_attribute($comment->author_name()) ?>"
width="32"
height="32" />
diff --git a/modules/comment/views/admin_comments.html.php b/modules/comment/views/admin_comments.html.php
index 82de378c..0e8dd525 100644
--- a/modules/comment/views/admin_comments.html.php
+++ b/modules/comment/views/admin_comments.html.php
@@ -6,7 +6,7 @@
$.get(set_state_url.replace("__STATE__", state).replace("__ID__", id),
{},
function() {
- $("#gComment-" + id).slideUp();
+ $("#g-comment-" + id).slideUp();
update_menu();
});
}
@@ -18,7 +18,7 @@
$.get(delete_url.replace("__ID__", id),
{},
function() {
- $("#gComment-" + id).slideUp();
+ $("#g-comment-" + id).slideUp();
update_menu();
});
}
@@ -27,18 +27,18 @@
$.get(= html::js_string(url::site("admin/comments/menu_labels")) ?>, {},
function(data) {
for (var i = 0; i < data.length; i++) {
- $("#gAdminCommentsMenu li:eq(" + i + ") a").html(data[i]);
+ $("#g-admin-comments-menu li:eq(" + i + ") a").html(data[i]);
}
},
"json");
}
-