summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-11 05:07:41 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-11 05:07:41 -0700
commit0098ef05c3dafd8b6a8357e004cbe10ebcf0c51b (patch)
treebe83f2a62cfb4d39d33401c6170969b483346f1e
parent954ab5a5051edb67eca8ae74283a80a226e39672 (diff)
parent4132d6c55ed91ca66607680bc44775c4ba650da6 (diff)
Merge branch 'master' of git@github.com:/gallery/gallery3
-rw-r--r--modules/exif/helpers/exif.php2
-rw-r--r--modules/exif/helpers/exif_task.php6
-rw-r--r--modules/gallery/css/quick.css12
-rw-r--r--modules/gallery/helpers/gallery_menu.php3
-rw-r--r--modules/gallery/js/quick.js11
-rw-r--r--modules/gallery/libraries/Menu.php2
-rw-r--r--themes/default/css/screen.css18
-rw-r--r--themes/default/js/ui.init.js8
8 files changed, 45 insertions, 17 deletions
diff --git a/modules/exif/helpers/exif.php b/modules/exif/helpers/exif.php
index b0e7e93f..20ecd0cb 100644
--- a/modules/exif/helpers/exif.php
+++ b/modules/exif/helpers/exif.php
@@ -163,7 +163,7 @@ class exif_Core {
list ($remaining) = exif::stats();
if ($remaining) {
site_status::warning(
- t('Your EXIF index needs to be updated. <a href="%url" class="gDialogLink">Fix this now</a>',
+ t('Your Exif index needs to be updated. <a href="%url" class="gDialogLink">Fix this now</a>',
array("url" => url::site("admin/maintenance/start/exif_task::update_index?csrf=__CSRF__"))),
"exif_index_out_of_date");
}
diff --git a/modules/exif/helpers/exif_task.php b/modules/exif/helpers/exif_task.php
index 6929b797..f3e77975 100644
--- a/modules/exif/helpers/exif_task.php
+++ b/modules/exif/helpers/exif_task.php
@@ -28,12 +28,12 @@ class exif_task_Core {
list ($remaining, $total, $percent) = exif::stats();
return array(Task_Definition::factory()
->callback("exif_task::update_index")
- ->name(t("Extract EXIF data"))
+ ->name(t("Extract Exif data"))
->description($remaining
? t2("1 photo needs to be scanned",
"%count (%percent%) of your photos need to be scanned",
$remaining, array("percent" => (100 - $percent)))
- : t("EXIF data is up-to-date"))
+ : t("Exif data is up-to-date"))
->severity($remaining ? log::WARNING : log::SUCCESS));
}
@@ -57,7 +57,7 @@ class exif_task_Core {
$completed++;
exif::extract($item);
- $message[] = t("Updated EXIF meta data for '%title'",
+ $message[] = t("Updated Exif meta data for '%title'",
array("title" => p::purify($item->title)));
}
diff --git a/modules/gallery/css/quick.css b/modules/gallery/css/quick.css
index 02f9953e..0e45eac2 100644
--- a/modules/gallery/css/quick.css
+++ b/modules/gallery/css/quick.css
@@ -1,3 +1,12 @@
+#gQuickPane {
+ position: absolute;
+ top: 0;
+ left: 0;
+ text-align: center;
+ width: 100%;
+ height: auto;
+}
+
.gItem:hover {
background-color: #cfdeff;
}
@@ -12,6 +21,9 @@
background: #000;
border-bottom: 1px solid #ccc;
opacity: 0.9;
+ position: absolute;
+ top: 0;
+ left: 0;
}
#gQuickPane a {
diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php
index bffb7696..b6f763b8 100644
--- a/modules/gallery/helpers/gallery_menu.php
+++ b/modules/gallery/helpers/gallery_menu.php
@@ -97,7 +97,8 @@ class gallery_menu_Core {
static function thumb($menu, $theme, $item) {
$menu->append(Menu::factory("submenu")
->id("options_menu")
- ->label(t("Options")));
+ ->label(t("Options"))
+ ->css_class("gThumbMenu"));
}
static function photo($menu, $theme) {
diff --git a/modules/gallery/js/quick.js b/modules/gallery/js/quick.js
index 4ebdac47..32e34ef3 100644
--- a/modules/gallery/js/quick.js
+++ b/modules/gallery/js/quick.js
@@ -13,16 +13,7 @@ var show_quick = function() {
var quick = $(this).find(".gQuick");
$("#gQuickPane").remove();
cont.append("<div id=\"gQuickPane\"></div>");
- var img = cont.find(".gThumbnail,.gResize");
- var pos = cont.position();
- $("#gQuickPane").css({
- "position": "absolute",
- "top": pos.top,
- "left": pos.left,
- "text-align": "center",
- "width": cont.innerWidth() + 1,
- "height": "auto"
- }).hide();
+ $("#gQuickPane").hide();
cont.hover(function() {}, hide_quick);
$.get(
quick.attr("href"),
diff --git a/modules/gallery/libraries/Menu.php b/modules/gallery/libraries/Menu.php
index 6d0881ce..d37be7d3 100644
--- a/modules/gallery/libraries/Menu.php
+++ b/modules/gallery/libraries/Menu.php
@@ -207,7 +207,7 @@ class Menu_Core extends Menu_Element {
public function __toString() {
$html = $this->is_root ? "<ul class=\"gMenu\">" :
- "<li><a href=#>$this->label</a><ul class=\"gMenu\">";
+ "<li title=\"$this->label\"><a href=\"#\">$this->label</a><ul class=\"gMenu\">";
$html .= implode("\n", $this->elements);
$html .= $this->is_root ? "</ul>" : "</ul></li>";
return $html;
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 842a1491..2310f40b 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -460,6 +460,7 @@ form .gError,
height: 240px;
overflow: hidden;
padding: 14px 8px;
+ position: relative;
text-align: center;
width: 213px;
}
@@ -487,7 +488,7 @@ form .gError,
}
#gContent #gPhoto {
-
+ position: relative;
}
#gContent #gItem .gFullSizeLink img {
@@ -581,6 +582,21 @@ form .gError,
margin-bottom: 0;
}
+/* Thumb Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.gItem .gMenu {
+ bottom: 0;
+ margin-bottom: -2px;
+ position: absolute;
+ right: 0;
+}
+
+.gItem .gMenu li {
+ font-weight: normal !important;
+}
+
+/* View Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
#gViewMenu {
margin-bottom: 1em;
}
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js
index 9d9d3079..29e04d5e 100644
--- a/themes/default/js/ui.init.js
+++ b/themes/default/js/ui.init.js
@@ -36,6 +36,14 @@ $(document).ready(function() {
$(dialogLinks[i]).bind("click", handleDialogEvent);
}
+ // gThumbMenu
+ if ($(".gItem .gMenu").length) {
+ $(".gItem .gMenu").removeClass("sf-menu");
+ $(".gItem .gMenu span").removeClass("sf-sub-indicator");
+ $(".gItem .gMenu span").addClass("ui-icon ui-icon-triangle-1-n");
+ $(".gItem .gMenu li:first-child").addClass("ui-icon-right ui-corner-top ui-state-default");
+ }
+
// Initialize view menu
if ($("#gViewMenu").length) {
$("#gViewMenu ul").removeClass("gMenu").removeClass("sf-menu");