= t("Compares your installed module version against the ones stored in the GitHub and GalleryModules.") ?>
@@ -16,7 +16,7 @@
= t("Green = Your version is newer than the GitHub ") ?>
= t("Orange = Your file version is newer than the installed version ") ?>
= t("Pink = Your installed version is newer than file version ") ?>
-
= t("Outbound Status: " . $Google . " - GitHub Status: " . $GitHub . " ") ?>
+
= t("Outbound Status: " . $Google . " - GitHub Status: " . $GitHub . " - Execution Time: " . $ExecutionTime . " s ") ?>
" class="submit" /> if($update_time == ""){ echo " - Last Scan: Unknown";}else{ echo " - Last Scan: ".$update_time;} ?>
diff --git a/3.1/modules/pages/controllers/admin_pages.php b/3.1/modules/pages/controllers/admin_pages.php
new file mode 100644
index 00000000..cbf8ce6e
--- /dev/null
+++ b/3.1/modules/pages/controllers/admin_pages.php
@@ -0,0 +1,271 @@
+page_title = t("Manage pages");
+ $view->content = new View("admin_pages.html");
+ $query = ORM::factory("static_page");
+ $view->content->pages = $query->order_by("name", "ASC")->find_all();
+ $view->content->form = $this->get_prefs_form();
+ print $view;
+ }
+
+ public function createpage() {
+ // Display a form for creating a new page.
+ $view = new Admin_View("admin.html");
+ $view->page_title = t("Create page");
+ $view->content = new View("admin_pages_new.html");
+ $view->content->form = $this->get_new_page_form();
+ print $view;
+ }
+
+ public function editpage($id) {
+ // Display a form for editing an existing page.
+ $existing_page = ORM::factory("static_page", $id);
+ $view = new Admin_View("admin.html");
+ $view->page_title = t("Edit page");
+ $view->content = new View("admin_pages_new.html");
+ $view->content->form = $this->get_edit_page_form($existing_page);
+ print $view;
+ }
+
+ public function savepage() {
+ // Save a page to the database.
+
+ access::verify_csrf();
+
+ // Store form values into variables.
+ $page_id = Input::instance()->post("page_id");
+ $page_name = urlencode(trim(Input::instance()->post("page_name")));
+ $page_title = Input::instance()->post("page_title");
+ $page_code = Input::instance()->post("page_code");
+ $display_menu = Input::instance()->post("display_menu");
+
+ // If $page_id is set, update an existing page.
+ if (isset($page_id)) {
+ $update_page = ORM::factory("static_page", $page_id);
+ $update_page->title = $page_title;
+ $update_page->html_code = $page_code;
+ $update_page->display_menu = $display_menu;
+ $update_page->save();
+ message::success(t("Page %page_name updated", array("page_name" => $update_page->name)));
+ log::success("pages", t("Page %page_name updated", array("page_name" => $update_page->name)));
+ url::redirect("admin/pages");
+ } else {
+
+ // If $page_id is not set, we are dealing with a new page.
+ // Check and make sure a page with the same names doesn't already exist.
+ $existing_page = ORM::factory("static_page")
+ ->where("name", "=", $page_name)
+ ->find_all();
+
+ // If the page doesn't exist, save it to the database.
+ if (count($existing_page) == 0) {
+ $new_page = ORM::factory("static_page");
+ $new_page->name = $page_name;
+ $new_page->title = $page_title;
+ $new_page->html_code = $page_code;
+ $new_page->display_menu = $display_menu;
+ $new_page->save();
+ message::success(t("Page %page_name created", array("page_name" => $page_name)));
+ log::success("pages", t("Page %page_name created", array("page_name" => $page_name)));
+ url::redirect("admin/pages");
+ } else {
+
+ // If the page does exist, ask the user if they want to overwrite the old page with the new one.
+ message::error(t("Page %page_name already exists, press Save again to overwrite.", array("page_name" => $page_name)));
+ $view = new Admin_View("admin.html");
+ $view->page_title = t("Edit page");
+ $view->content = new View("admin_pages_new.html");
+ $view->content->form = $this->get_overwrite_page_form($existing_page[0]->id, $page_name, $page_title, $page_code, $display_menu);
+ print $view;
+ }
+ }
+ }
+
+ public function form_delete($id) {
+ // Display a form asking the user if they want to delete a page.
+ $one_page = ORM::factory("static_page", $id);
+ if ($one_page->loaded()) {
+ print $this->get_delete_form($one_page);
+ }
+ }
+
+ public function delete($id) {
+ // Delete the specified page.
+
+ access::verify_csrf();
+
+ // Make sure $id belongs to an actual page.
+ $one_page = ORM::factory("static_page", $id);
+ if (!$one_page->loaded()) {
+ throw new Kohana_404_Exception();
+ }
+
+ // If the form validates, delete the specified page.
+ $form = $this->get_delete_form($one_page);
+ if ($form->validate()) {
+ $name = $one_page->name;
+ $one_page->delete();
+ message::success(t("Deleted page %page_name", array("page_name" => $name)));
+ log::success("pages", t("Deleted page %page_name", array("page_name" => $name)));
+ json::reply(array("result" => "success", "location" => url::site("admin/pages")));
+ } else {
+ print $form;
+ }
+ }
+
+ public function form_rename($id) {
+ // Display a form to allow the user to rename a page.
+ $one_page = ORM::factory("static_page", $id);
+ if ($one_page->loaded()) {
+ print InPlaceEdit::factory(urldecode($one_page->name))
+ ->action("admin/pages/rename/$id")
+ ->render();
+ }
+ }
+
+ public function rename($id) {
+ // Rename an existing page.
+ access::verify_csrf();
+
+ // Make sure the page specified by $id exists.
+ $one_page = ORM::factory("static_page", $id);
+ if (!$one_page->loaded()) {
+ throw new Kohana_404_Exception();
+ }
+
+ $in_place_edit = InPlaceEdit::factory($one_page->name)
+ ->action("admin/pages/rename/$one_page->id")
+ ->rules(array("required", "length[1,64]"));
+
+ // If the form validates, and if the new name doesn't already exist, rename the page.
+ if ($in_place_edit->validate()) {
+ $old_name = $one_page->name;
+ $new_name = urlencode(trim($in_place_edit->value()));
+ $new_name_exists = ORM::factory("static_page")->where("name", "=", $new_name)->find_all();
+ if (count($new_name_exists) == 0) {
+ $one_page->name = $new_name;
+ $one_page->save();
+ $message = t("Renamed page
%old_name to
%new_name ",
+ array("old_name" => $old_name, "new_name" => $new_name));
+ message::success($message);
+ log::success("pages", $message);
+ json::reply(array("result" => "success", "location" => url::site("admin/pages")));
+ } else {
+ json::reply(array("result" => "error", "form" => (string)$in_place_edit->render()));
+ }
+ } else {
+ json::reply(array("result" => "error", "form" => (string)$in_place_edit->render()));
+ }
+ }
+
+ static function get_delete_form($one_page) {
+ // Generate a new form asking the user if they want to delete a page.
+ $form = new Forge("admin/pages/delete/$one_page->id", "", "post", array("id" => "g-delete-pages-form"));
+ $group = $form->group("delete_page")
+ ->label(t("Really delete page %page_name?", array("page_name" => $one_page->name)));
+ $group->submit("")->value(t("Delete Page"));
+ return $form;
+ }
+
+ private function get_new_page_form() {
+ // Generate a form for creating a new page.
+ $form = new Forge("admin/pages/savepage", "", "post",
+ array("id" => "g-pages-admin-form"));
+
+ $pages_group = $form->group("new_page");
+ $pages_group->input("page_name")
+ ->label(t("Name"));
+ $pages_group->input("page_title")
+ ->label(t("Title"));
+ $pages_group->textarea("page_code")
+ ->label(t("HTML Code"));
+ $pages_group->checkbox("display_menu")
+ ->label(t("Display in menu?"))
+ ->checked(false);
+ $pages_group->submit("save_page")
+ ->value(t("Save"));
+
+ return $form;
+ }
+
+ private function get_overwrite_page_form($id, $name, $title, $html_code, $display_menu) {
+ // Generate a form for overwriting an existing page.
+ $form = new Forge("admin/pages/savepage", "", "post",
+ array("id" => "g-pages-admin-form"));
+
+ $pages_group = $form->group("new_page");
+ $pages_group->hidden("page_id")
+ ->value($id);
+ $pages_group->input("page_name")
+ ->label(t("Name"))
+ ->readonly()
+ ->value($name);
+ $pages_group->input("page_title")
+ ->label(t("Title"))
+ ->value($title);
+ $pages_group->textarea("page_code")
+ ->label(t("HTML Code"))
+ ->value($html_code);
+ $pages_group->checkbox("display_menu")
+ ->label(t("Display in menu?"))
+ ->checked($display_menu);
+ $pages_group->submit("save_page")
+ ->value(t("Save"));
+
+ return $form;
+ }
+
+ private function get_edit_page_form($existing_page) {
+ // Generate a form for editing an existing page. Reuse the overwrite form for as it's basically the same thing.
+ return ($this->get_overwrite_page_form($existing_page->id, $existing_page->name, $existing_page->title, $existing_page->html_code, $existing_page->display_menu));
+ }
+
+ private function get_prefs_form() {
+ // Generate a form for global preferences.
+ $form = new Forge("admin/pages/saveprefs", "", "post",
+ array("id" => "g-pages-admin-form"));
+
+ $pages_group = $form->group("preferences")->label(t("Settings"));
+ $pages_group->checkbox("display_sidebar")
+ ->label(t("Hide sidebar on Pages?"))
+ ->checked(module::get_var("pages", "show_sidebar"));
+ $pages_group->submit("save_prefs")
+ ->value(t("Save"));
+
+ return $form;
+ }
+
+ public function saveprefs() {
+ // Save a preferences to the database.
+
+ access::verify_csrf();
+
+ // Save form variables.
+ module::set_var("pages", "show_sidebar", Input::instance()->post("display_sidebar"));
+
+ // Display message and load main pages admin screen.
+ message::success(t("Your settings have been saved."));
+ url::redirect("admin/pages");
+ }
+}
diff --git a/3.1/modules/pages/controllers/pages.php b/3.1/modules/pages/controllers/pages.php
new file mode 100644
index 00000000..8b0f7c2d
--- /dev/null
+++ b/3.1/modules/pages/controllers/pages.php
@@ -0,0 +1,42 @@
+where("name", "=", $page_name)
+ ->find_all();
+
+ // If it doesn't exist, display a 404 error.
+ if (count($existing_page) == 0) {
+ throw new Kohana_404_Exception();
+ }
+
+ // Display the page.
+ $template = new Theme_View("page.html", "other", "Pages");
+ $template->page_title = t("Gallery :: ") . $existing_page[0]->title;
+ $template->content = new View("pages_display.html");
+ $template->content->title = $existing_page[0]->title;
+ $template->content->body = $existing_page[0]->html_code;
+ print $template;
+ }
+}
diff --git a/3.1/modules/pages/css/jHtmlArea.css b/3.1/modules/pages/css/jHtmlArea.css
new file mode 100644
index 00000000..641ea291
--- /dev/null
+++ b/3.1/modules/pages/css/jHtmlArea.css
@@ -0,0 +1,48 @@
+div.jHtmlArea { display: inline block; border: solid 1px #ccc; }
+div.jHtmlArea div { padding: 0px; margin: 0px; }
+div.jHtmlArea .ToolBar { }
+div.jHtmlArea .ToolBar ul { border: solid 0px #ccc; margin: 1px; padding: 1px; position:relative; display: inline; background: #fff url(../images/jHtmlArea_Toolbar_Group_BG.png) repeat-x;}
+div.jHtmlArea .ToolBar ul li { list-style-type: none; float: left; border: none; padding: 1px; margin: 1px; }
+div.jHtmlArea .ToolBar ul li:hover { border: solid 1px #ccc; background: #ddd url(../images/jHtmlArea_Toolbar_Group__Btn_Select_BG.png); padding: 0; }
+div.jHtmlArea .ToolBar ul li a { display: block; width: 16px; height: 16px; background: url(../images/jHtmlArea.png) no-repeat -16px -500px; border: none; cursor: pointer; padding: 0px; }
+div.jHtmlArea .ToolBar ul li a.highlighted { border: solid 1px #aaa; background-color: #bbb; padding: 0; }
+div.jHtmlArea .ToolBar ul li.separator {height: 16px; margin: 0 2px 0 3px; border-left: 1px solid #ccc;}
+div.jHtmlArea .ToolBar ul li.separator:hover { padding: 1px; background-color: #fff; border-top:none; border-bottom:none; border-right:none;}
+
+div.jHtmlArea .ToolBar ul li a:hover { }
+div.jHtmlArea .ToolBar ul li a.bold { background-position: 0 0; }
+div.jHtmlArea .ToolBar ul li a.italic { background-position: -16px 0; }
+div.jHtmlArea .ToolBar ul li a.underline { background-position: -32px 0; }
+div.jHtmlArea .ToolBar ul li a.strikethrough { background-position: -48px 0; }
+div.jHtmlArea .ToolBar ul li a.link { background-position: -64px 0; }
+div.jHtmlArea .ToolBar ul li a.unlink { background-position: -80px 0; }
+div.jHtmlArea .ToolBar ul li a.orderedlist { background-position: -96px 0; }
+div.jHtmlArea .ToolBar ul li a.unorderedlist { background-position: -112px 0; }
+div.jHtmlArea .ToolBar ul li a.image { background-position: -128px 0; }
+div.jHtmlArea .ToolBar ul li a.cut { background-position: -144px 0; }
+div.jHtmlArea .ToolBar ul li a.copy { background-position: -160px 0; }
+div.jHtmlArea .ToolBar ul li a.paste { background-position: -176px 0; }
+
+div.jHtmlArea .ToolBar ul li a.html { background-position: -192px 0; opacity:0.6; filter:alpha(opacity=60);}
+div.jHtmlArea .ToolBar ul li a.html.highlighted { opacity:1.0; filter:alpha(opacity=100);}
+
+div.jHtmlArea .ToolBar ul li a.h1 { background-position: 0 -16px;}
+div.jHtmlArea .ToolBar ul li a.h2 { background-position: -16px -16px;}
+div.jHtmlArea .ToolBar ul li a.h3 { background-position: -32px -16px;}
+div.jHtmlArea .ToolBar ul li a.h4 { background-position: -48px -16px;}
+div.jHtmlArea .ToolBar ul li a.h5 { background-position: -64px -16px;}
+div.jHtmlArea .ToolBar ul li a.h6 { background-position: -80px -16px;}
+div.jHtmlArea .ToolBar ul li a.subscript { background-position: -96px -16px;}
+div.jHtmlArea .ToolBar ul li a.superscript { background-position: -112px -16px;}
+div.jHtmlArea .ToolBar ul li a.indent { background-position: -128px -16px;}
+div.jHtmlArea .ToolBar ul li a.outdent { background-position: -144px -16px;}
+div.jHtmlArea .ToolBar ul li a.horizontalrule { background-position: -160px -16px;}
+div.jHtmlArea .ToolBar ul li a.p { background-position: -176px -16px;}
+
+
+div.jHtmlArea .ToolBar ul li a.justifyleft { background-position: 0 -32px;}
+div.jHtmlArea .ToolBar ul li a.justifycenter { background-position: -16px -32px;}
+div.jHtmlArea .ToolBar ul li a.justifyright { background-position: -32px -32px;}
+div.jHtmlArea .ToolBar ul li a.increasefontsize { background-position: -48px -32px;}
+div.jHtmlArea .ToolBar ul li a.decreasefontsize { background-position: -64px -32px;}
+div.jHtmlArea .ToolBar ul li a.forecolor { background-position: -80px -32px;}
\ No newline at end of file
diff --git a/3.1/modules/pages/helpers/pages_block.php b/3.1/modules/pages/helpers/pages_block.php
new file mode 100644
index 00000000..089dd12b
--- /dev/null
+++ b/3.1/modules/pages/helpers/pages_block.php
@@ -0,0 +1,57 @@
+ t("Pages Links"));
+ }
+
+ static function get($block_id, $theme) {
+ $block = "";
+
+ switch ($block_id) {
+ case "pages_block":
+
+ // Create a new block with a list of all Pages and their links.
+
+ // Query the database for all existing pages.
+ // If at least one page exists, display the sidebar block.
+ $query = ORM::factory("static_page");
+ $pages = $query->order_by("title", "ASC")->find_all();
+ if (count($pages) > 0) {
+
+ // Loop through each page and generate an HTML list of their links and titles.
+ $content = "
";
+ foreach ($pages as $one_page) {
+ $content .= "name) . "\">" . $one_page->title . " ";
+ }
+ $content .= " ";
+
+ // Make a new sidebar block.
+ $block = new Block();
+ $block->css_id = "g-pages";
+ $block->title = t("Pages");
+ $block->content = new View("pages_sidebar.html");
+ $block->content->links = $content;
+ }
+ break;
+ }
+ return $block;
+ }
+}
diff --git a/3.1/modules/pages/helpers/pages_event.php b/3.1/modules/pages/helpers/pages_event.php
new file mode 100644
index 00000000..9e37aa8b
--- /dev/null
+++ b/3.1/modules/pages/helpers/pages_event.php
@@ -0,0 +1,44 @@
+get("settings_menu")
+ ->append(Menu::factory("link")
+ ->id("pages")
+ ->label(t("Pages Settings"))
+ ->url(url::site("admin/pages")));
+ }
+
+ static function site_menu($menu, $theme) {
+ $menu_pages = ORM::factory("static_page")
+ ->where("display_menu", "=", true)
+ ->order_by("title", "DESC")
+ ->find_all();
+ if (count($menu_pages) > 0) {
+ foreach ($menu_pages as $one_page) {
+ $menu->add_after("home", Menu::factory("link")
+ ->id("pages-" . $one_page->id)
+ ->label($one_page->title)
+ ->url(url::site("pages/show/" . $one_page->name)));
+ }
+ }
+ }
+}
diff --git a/3.1/modules/pages/helpers/pages_installer.php b/3.1/modules/pages/helpers/pages_installer.php
new file mode 100644
index 00000000..cd1f1546
--- /dev/null
+++ b/3.1/modules/pages/helpers/pages_installer.php
@@ -0,0 +1,44 @@
+query("CREATE TABLE IF NOT EXISTS {static_pages} (
+ `id` int(9) NOT NULL auto_increment,
+ `name` varchar(255) default NULL,
+ `title` varchar(255) default NULL,
+ `html_code` text default NULL,
+ `display_menu` boolean default 0,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY(`name`))
+ DEFAULT CHARSET=utf8;");
+
+ // Set the module version number.
+ module::set_version("pages", 2);
+ }
+ static function upgrade($version) {
+ $db = Database::instance();
+ if ($version == 1) {
+ $db->query("ALTER TABLE {static_pages} ADD COLUMN `display_menu` boolean default 0");
+ module::set_version("pages", $version = 2);
+ }
+ }
+}
diff --git a/3.1/modules/pages/helpers/pages_theme.php b/3.1/modules/pages/helpers/pages_theme.php
new file mode 100644
index 00000000..ec57a2ce
--- /dev/null
+++ b/3.1/modules/pages/helpers/pages_theme.php
@@ -0,0 +1,27 @@
+script("jHtmlArea-0.7.0.js") .
+ $theme->css("jHtmlArea.css");
+ }
+}
+
\ No newline at end of file
diff --git a/3.1/modules/pages/images/jHtmlArea.png b/3.1/modules/pages/images/jHtmlArea.png
new file mode 100644
index 00000000..54c66a10
Binary files /dev/null and b/3.1/modules/pages/images/jHtmlArea.png differ
diff --git a/3.1/modules/pages/images/jHtmlArea_Toolbar_Group_BG.png b/3.1/modules/pages/images/jHtmlArea_Toolbar_Group_BG.png
new file mode 100644
index 00000000..bcfb0545
Binary files /dev/null and b/3.1/modules/pages/images/jHtmlArea_Toolbar_Group_BG.png differ
diff --git a/3.1/modules/pages/images/jHtmlArea_Toolbar_Group__Btn_Select_BG.png b/3.1/modules/pages/images/jHtmlArea_Toolbar_Group__Btn_Select_BG.png
new file mode 100644
index 00000000..4287b5b8
Binary files /dev/null and b/3.1/modules/pages/images/jHtmlArea_Toolbar_Group__Btn_Select_BG.png differ
diff --git a/3.1/modules/pages/js/jHtmlArea-0.7.0.js b/3.1/modules/pages/js/jHtmlArea-0.7.0.js
new file mode 100644
index 00000000..d1e360c4
--- /dev/null
+++ b/3.1/modules/pages/js/jHtmlArea-0.7.0.js
@@ -0,0 +1,403 @@
+/*
+* jHtmlArea 0.7.0 - WYSIWYG Html Editor jQuery Plugin
+* Copyright (c) 2009 Chris Pietschmann
+* http://jhtmlarea.codeplex.com
+* Licensed under the Microsoft Reciprocal License (Ms-RL)
+* http://jhtmlarea.codeplex.com/license
+*/
+(function($) {
+ $.fn.htmlarea = function(opts) {
+ if (opts && typeof (opts) === "string") {
+ var args = [];
+ for (var i = 1; i < arguments.length; i++) { args.push(arguments[i]); }
+ var htmlarea = jHtmlArea(this[0]);
+ var f = htmlarea[opts];
+ if (f) { return f.apply(htmlarea, args); }
+ }
+ return this.each(function() { jHtmlArea(this, opts); });
+ };
+ var jHtmlArea = window.jHtmlArea = function(elem, options) {
+ if (elem.jquery) {
+ return jHtmlArea(elem[0]);
+ }
+ if (elem.jhtmlareaObject) {
+ return elem.jhtmlareaObject;
+ } else {
+ return new jHtmlArea.fn.init(elem, options);
+ }
+ };
+ jHtmlArea.fn = jHtmlArea.prototype = {
+
+ // The current version of jHtmlArea being used
+ jhtmlarea: "0.7.0",
+
+ init: function(elem, options) {
+ if (elem.nodeName.toLowerCase() === "textarea") {
+ var opts = $.extend({}, jHtmlArea.defaultOptions, options);
+ elem.jhtmlareaObject = this;
+
+ var textarea = this.textarea = $(elem);
+ var container = this.container = $("
").addClass("jHtmlArea").width(textarea.width()).insertAfter(textarea);
+
+ var toolbar = this.toolbar = $("
").addClass("ToolBar").appendTo(container);
+ priv.initToolBar.call(this, opts);
+
+ var iframe = this.iframe = $("
").height(textarea.height());
+ iframe.width(textarea.width() - ($.browser.msie ? 0 : 4));
+ var htmlarea = this.htmlarea = $("
").append(iframe);
+
+ container.append(htmlarea).append(textarea.hide());
+
+ priv.initEditor.call(this, opts);
+ priv.attachEditorEvents.call(this);
+
+ // Fix total height to match TextArea
+ iframe.height(iframe.height() - toolbar.height());
+ toolbar.width(textarea.width() - 2);
+
+ if (opts.loaded) { opts.loaded.call(this); }
+ }
+ },
+ dispose: function() {
+ this.textarea.show().insertAfter(this.container);
+ this.container.remove();
+ this.textarea[0].jhtmlareaObject = null;
+ },
+ execCommand: function(a, b, c) {
+ this.iframe[0].contentWindow.focus();
+ this.editor.execCommand(a, b || false, c || null);
+ this.updateTextArea();
+ },
+ ec: function(a, b, c) {
+ this.execCommand(a, b, c);
+ },
+ queryCommandValue: function(a) {
+ this.iframe[0].contentWindow.focus();
+ return this.editor.queryCommandValue(a);
+ },
+ qc: function(a) {
+ return this.queryCommandValue(a);
+ },
+ getSelectedHTML: function() {
+ if ($.browser.msie) {
+ return this.getRange().htmlText;
+ } else {
+ var elem = this.getRange().cloneContents();
+ return $("
").append($(elem)).html();
+ }
+ },
+ getSelection: function() {
+ if ($.browser.msie) {
+ //return (this.editor.parentWindow.getSelection) ? this.editor.parentWindow.getSelection() : this.editor.selection;
+ return this.editor.selection;
+ } else {
+ return this.iframe[0].contentDocument.defaultView.getSelection();
+ }
+ },
+ getRange: function() {
+ var s = this.getSelection();
+ if (!s) { return null; }
+ //return (s.rangeCount > 0) ? s.getRangeAt(0) : s.createRange();
+ return (s.getRangeAt) ? s.getRangeAt(0) : s.createRange();
+ },
+ html: function(v) {
+ if (v) {
+ this.pastHTML(v);
+ } else {
+ return toHtmlString();
+ }
+ },
+ pasteHTML: function(html) {
+ this.iframe[0].contentWindow.focus();
+ var r = this.getRange();
+ if ($.browser.msie) {
+ r.pasteHTML(html);
+ } else if ($.browser.mozilla) {
+ r.deleteContents();
+ r.insertNode($((html.indexOf("<") != 0) ? $("
").append(html) : html)[0]);
+ } else { // Safari
+ r.deleteContents();
+ r.insertNode($(this.iframe[0].contentWindow.document.createElement("span")).append($((html.indexOf("<") != 0) ? "
" + html + " " : html))[0]);
+ }
+ r.collapse(false);
+ r.select();
+ },
+ cut: function() {
+ this.ec("cut");
+ },
+ copy: function() {
+ this.ec("copy");
+ },
+ paste: function() {
+ this.ec("paste");
+ },
+ bold: function() { this.ec("bold"); },
+ italic: function() { this.ec("italic"); },
+ underline: function() { this.ec("underline"); },
+ strikeThrough: function() { this.ec("strikethrough"); },
+ image: function(url) {
+ if ($.browser.msie && !url) {
+ this.ec("insertImage", true);
+ } else {
+ this.ec("insertImage", false, (url || prompt("Image URL:", "http://")));
+ }
+ },
+ removeFormat: function() {
+ this.ec("removeFormat", false, []);
+ this.unlink();
+ },
+ link: function() {
+ if ($.browser.msie) {
+ this.ec("createLink", true);
+ } else {
+ this.ec("createLink", false, prompt("Link URL:", "http://"));
+ }
+ },
+ unlink: function() { this.ec("unlink", false, []); },
+ orderedList: function() { this.ec("insertorderedlist"); },
+ unorderedList: function() { this.ec("insertunorderedlist"); },
+ superscript: function() { this.ec("superscript"); },
+ subscript: function() { this.ec("subscript"); },
+
+ p: function() {
+ this.formatBlock("
");
+ },
+ h1: function() {
+ this.heading(1);
+ },
+ h2: function() {
+ this.heading(2);
+ },
+ h3: function() {
+ this.heading(3);
+ },
+ h4: function() {
+ this.heading(4);
+ },
+ h5: function() {
+ this.heading(5);
+ },
+ h6: function() {
+ this.heading(6);
+ },
+ heading: function(h) {
+ this.formatBlock($.browser.msie ? "Heading " + h : "h" + h);
+ },
+
+ indent: function() {
+ this.ec("indent");
+ },
+ outdent: function() {
+ this.ec("outdent");
+ },
+
+ insertHorizontalRule: function() {
+ this.ec("insertHorizontalRule", false, "ht");
+ },
+
+ justifyLeft: function() {
+ this.ec("justifyLeft");
+ },
+ justifyCenter: function() {
+ this.ec("justifyCenter");
+ },
+ justifyRight: function() {
+ this.ec("justifyRight");
+ },
+
+ increaseFontSize: function() {
+ if ($.browser.msie) {
+ this.ec("fontSize", false, this.qc("fontSize") + 1);
+ } else if ($.browser.safari) {
+ this.getRange().surroundContents($(this.iframe[0].contentWindow.document.createElement("span")).css("font-size", "larger")[0]);
+ } else {
+ this.ec("increaseFontSize", false, "big");
+ }
+ },
+ decreaseFontSize: function() {
+ if ($.browser.msie) {
+ this.ec("fontSize", false, this.qc("fontSize") - 1);
+ } else if ($.browser.safari) {
+ this.getRange().surroundContents($(this.iframe[0].contentWindow.document.createElement("span")).css("font-size", "smaller")[0]);
+ } else {
+ this.ec("decreaseFontSize", false, "small");
+ }
+ },
+
+ forecolor: function(c) {
+ this.ec("foreColor", false, c || prompt("Enter HTML Color:", "#"));
+ },
+
+ formatBlock: function(v) {
+ this.ec("formatblock", false, v || null);
+ },
+
+ showHTMLView: function() {
+ this.updateTextArea();
+ this.textarea.show();
+ this.htmlarea.hide();
+ $("ul li:not(li:has(a.html))", this.toolbar).hide();
+ $("ul:not(:has(:visible))", this.toolbar).hide();
+ $("ul li a.html", this.toolbar).addClass("highlighted");
+ },
+ hideHTMLView: function() {
+ this.updateHtmlArea();
+ this.textarea.hide();
+ this.htmlarea.show();
+ $("ul", this.toolbar).show();
+ $("ul li", this.toolbar).show().find("a.html").removeClass("highlighted");
+ },
+ toggleHTMLView: function() {
+ (this.textarea.is(":hidden")) ? this.showHTMLView() : this.hideHTMLView();
+ },
+
+ toHtmlString: function() {
+ return this.editor.body.innerHTML;
+ },
+ toString: function() {
+ return this.editor.body.innerText;
+ },
+
+ updateTextArea: function() {
+ this.textarea.val(this.toHtmlString());
+ },
+ updateHtmlArea: function() {
+ this.editor.body.innerHTML = this.textarea.val();
+ }
+ };
+ jHtmlArea.fn.init.prototype = jHtmlArea.fn;
+
+ jHtmlArea.defaultOptions = {
+ toolbar: [
+ ["html"], ["bold", "italic", "underline", "strikethrough", "|", "subscript", "superscript"],
+ ["increasefontsize", "decreasefontsize"],
+ ["orderedlist", "unorderedlist"],
+ ["indent", "outdent"],
+ ["justifyleft", "justifycenter", "justifyright"],
+ ["link", "unlink", "image", "horizontalrule"],
+ ["p", "h1", "h2", "h3", "h4", "h5", "h6"],
+ ["cut", "copy", "paste"]
+ ],
+ css: null,
+ toolbarText: {
+ bold: "Bold", italic: "Italic", underline: "Underline", strikethrough: "Strike-Through",
+ cut: "Cut", copy: "Copy", paste: "Paste",
+ h1: "Heading 1", h2: "Heading 2", h3: "Heading 3", h4: "Heading 4", h5: "Heading 5", h6: "Heading 6", p: "Paragraph",
+ indent: "Indent", outdent: "Outdent", horizontalrule: "Insert Horizontal Rule",
+ justifyleft: "Left Justify", justifycenter: "Center Justify", justifyright: "Right Justify",
+ increasefontsize: "Increase Font Size", decreasefontsize: "Decrease Font Size", forecolor: "Text Color",
+ link: "Insert Link", unlink: "Remove Link", image: "Insert Image",
+ orderedlist: "Insert Ordered List", unorderedlist: "Insert Unordered List",
+ subscript: "Subscript", superscript: "Superscript",
+ html: "Show/Hide HTML Source View"
+ }
+ };
+ var priv = {
+ toolbarButtons: {
+ strikethrough: "strikeThrough", orderedlist: "orderedList", unorderedlist: "unorderedList",
+ horizontalrule: "insertHorizontalRule",
+ justifyleft: "justifyLeft", justifycenter: "justifyCenter", justifyright: "justifyRight",
+ increasefontsize: "increaseFontSize", decreasefontsize: "decreaseFontSize",
+ html: function(btn) {
+ this.toggleHTMLView();
+ }
+ },
+ initEditor: function(options) {
+ var edit = this.editor = this.iframe[0].contentWindow.document;
+ edit.designMode = 'on';
+ edit.open();
+ edit.write(this.textarea.val());
+ edit.close();
+ if (options.css) {
+ var e = edit.createElement('link'); e.rel = 'stylesheet'; e.type = 'text/css'; e.href = options.css; edit.getElementsByTagName('head')[0].appendChild(e);
+ }
+ },
+ initToolBar: function(options) {
+ var that = this;
+
+ var menuItem = function(className, altText, action) {
+ return $("
").append($("
").addClass(className).attr("title", altText).click(function() { action.call(that, $(this)); }));
+ };
+
+ function addButtons(arr) {
+ var ul = $("
").appendTo(that.toolbar);
+ for (var i = 0; i < arr.length; i++) {
+ var e = arr[i];
+ if ((typeof (e)).toLowerCase() === "string") {
+ if (e === "|") {
+ ul.append($('
'));
+ } else {
+ var f = (function(e) {
+ // If button name exists in priv.toolbarButtons then call the "method" defined there, otherwise call the method with the same name
+ var m = priv.toolbarButtons[e] || e;
+ if ((typeof (m)).toLowerCase() === "function") {
+ return function(btn) { m.call(this, btn); };
+ } else {
+ return function() { this[m](); this.editor.body.focus(); };
+ }
+ })(e.toLowerCase());
+ var t = options.toolbarText[e.toLowerCase()];
+ ul.append(menuItem(e.toLowerCase(), t || e, f));
+ }
+ } else {
+ ul.append(menuItem(e.css, e.text, e.action));
+ }
+ }
+ };
+ if (options.toolbar.length !== 0 && priv.isArray(options.toolbar[0])) {
+ for (var i = 0; i < options.toolbar.length; i++) {
+ addButtons(options.toolbar[i]);
+ }
+ } else {
+ addButtons(options.toolbar);
+ }
+ },
+ attachEditorEvents: function() {
+ var t = this;
+
+ var fnHA = function() {
+ t.updateHtmlArea();
+ };
+
+ this.textarea.click(fnHA).
+ keyup(fnHA).
+ keydown(fnHA).
+ mousedown(fnHA).
+ blur(fnHA);
+
+
+
+ var fnTA = function() {
+ t.updateTextArea();
+ };
+
+ $(this.editor.body).click(fnTA).
+ keyup(fnTA).
+ keydown(fnTA).
+ mousedown(fnTA).
+ blur(fnTA);
+
+ $('form').submit(function() { t.toggleHTMLView(); t.toggleHTMLView(); });
+ //$(this.textarea[0].form).submit(function() { //this.textarea.closest("form").submit(function() {
+
+
+ // Fix for ASP.NET Postback Model
+ if (window.__doPostBack) {
+ var old__doPostBack = __doPostBack;
+ window.__doPostBack = function() {
+ if (t) {
+ if (t.toggleHTMLView) {
+ t.toggleHTMLView();
+ t.toggleHTMLView();
+ }
+ }
+ return old__doPostBack.apply(window, arguments);
+ };
+ }
+
+ },
+ isArray: function(v) {
+ return v && typeof v === 'object' && typeof v.length === 'number' && typeof v.splice === 'function' && !(v.propertyIsEnumerable('length'));
+ }
+ };
+})(jQuery);
\ No newline at end of file
diff --git a/3.1/modules/pages/models/static_page.php b/3.1/modules/pages/models/static_page.php
new file mode 100644
index 00000000..b5519123
--- /dev/null
+++ b/3.1/modules/pages/models/static_page.php
@@ -0,0 +1,21 @@
+
+
+
+ $pages_per_column = $pages->count()/5 ?>
+ $column_page_count = 0 ?>
+
+
+
= t("Manage pages") ?>
+ = $form; ?>
+
+
+
+ = t2("There is one page", "There are %count pages", $pages->count()) ?>
+ ">=t("Add new page") ?>
+
+
+
+ foreach ($pages as $i => $one_page): ?>
+ $current_letter = strtoupper(mb_substr($one_page->name, 0, 1)) ?>
+
+ if ($i == 0): /* first letter */ ?>
+ = html::clean($current_letter) ?>
+
+ elseif ($last_letter != $current_letter): /* new letter */ ?>
+
+ if ($column_page_count > $pages_per_column): /* new column */ ?>
+ $column_page_count = 0 ?>
+
+
+ endif ?>
+ = html::clean($current_letter) ?>
+
+
+
+
+
+
diff --git a/3.1/modules/pages/views/admin_pages_new.html.php b/3.1/modules/pages/views/admin_pages_new.html.php
new file mode 100644
index 00000000..b7b59532
--- /dev/null
+++ b/3.1/modules/pages/views/admin_pages_new.html.php
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
= $theme->page_title ?>
+
+ =$form ?>
+
+
diff --git a/3.1/modules/pages/views/pages_display.html.php b/3.1/modules/pages/views/pages_display.html.php
new file mode 100644
index 00000000..7f704624
--- /dev/null
+++ b/3.1/modules/pages/views/pages_display.html.php
@@ -0,0 +1,26 @@
+
+ if (module::get_var("pages", "show_sidebar")) : ?>
+
+ endif ?>
+
+
= $title ?>
+
+ =$body ?>
+
+
diff --git a/3.1/modules/pages/views/pages_sidebar.html.php b/3.1/modules/pages/views/pages_sidebar.html.php
new file mode 100644
index 00000000..af959fa7
--- /dev/null
+++ b/3.1/modules/pages/views/pages_sidebar.html.php
@@ -0,0 +1,2 @@
+
+= $links ?>
diff --git a/3.1/modules/tagsinalbum/helpers/tagsinalbum_block.php b/3.1/modules/tagsinalbum/helpers/tagsinalbum_block.php
index cb28053c..10ebfe97 100644
--- a/3.1/modules/tagsinalbum/helpers/tagsinalbum_block.php
+++ b/3.1/modules/tagsinalbum/helpers/tagsinalbum_block.php
@@ -29,12 +29,26 @@ class tagsinalbum_block_Core {
case "tagsinalbum":
if (($theme->item) && ($theme->item->is_album())) {
$item = $theme->item;
- $all_tags = ORM::factory("tag")
+
+ // Create an ORM query for finding one instance of each tag
+ // used by children in the current album.
+ $tags_model = ORM::factory("tag")
->join("items_tags", "items_tags.tag_id", "tags.id")
->join("items", "items.id", "items_tags.item_id", "LEFT")
->where("items.parent_id", "=", $item->id)
- ->order_by("tags.id", "ASC")
- ->find_all();
+ ->order_by("tags.name", "ASC")
+ ->group_by("tags.id");
+
+ // Limit $all_tags to the first X tags if max_display_tags is set,
+ // else populate it with all tags used by this album's children.
+ $all_tags = "";
+ if (module::get_var("tagsinalbum", "max_display_tags") > 0) {
+ $all_tags = $tags_model->find_all(module::get_var("tagsinalbum", "max_display_tags"));
+ } else {
+ $all_tags = $tags_model->find_all();
+ }
+
+ // If this album has children that are tagged, display those tags.
if (count($all_tags) > 0) {
$block = new Block();
$block->css_id = "g-tags-in-album-block";
diff --git a/3.1/modules/tagsinalbum/module.info b/3.1/modules/tagsinalbum/module.info
index 6966c3e5..cc732774 100644
--- a/3.1/modules/tagsinalbum/module.info
+++ b/3.1/modules/tagsinalbum/module.info
@@ -1,7 +1,7 @@
name = "Tags In Album"
description = "Creates a sidebar block to display tags used by photos and videos in the current album."
version = 2
-author_name = ""
-author_url = ""
+author_name = "rWatcher"
+author_url = "http://codex.gallery2.org/User:RWatcher"
info_url = "http://codex.gallery2.org/Gallery3:Modules:tagsinalbum"
-discuss_url = "http://gallery.menalto.com/forum_module_tagsinalbum"
+discuss_url = "http://gallery.menalto.com/node/99171"
diff --git a/3.1/modules/tagsinalbum/views/tagsinalbum_sidebar.html.php b/3.1/modules/tagsinalbum/views/tagsinalbum_sidebar.html.php
index 6c8b1dff..8d9e0910 100644
--- a/3.1/modules/tagsinalbum/views/tagsinalbum_sidebar.html.php
+++ b/3.1/modules/tagsinalbum/views/tagsinalbum_sidebar.html.php
@@ -1,33 +1,11 @@
- // Create an array to store the tag names and urls in.
- $display_tags = array();
-
- // Loop through all tags in the album, copying their
- // names and urls into the array and skipping duplicates.
- $last_tagid = "";
- foreach ($all_tags as $one_tag) {
- if ($last_tagid != $one_tag->id) {
- $tag = ORM::factory("tag", $one_tag->id);
- $display_tags[] = array(html::clean($tag->name), $tag->url());
- $last_tagid = $one_tag->id;
- }
- if (module::get_var("tagsinalbum", "max_display_tags") > 0) {
- if (count($display_tags) == module::get_var("tagsinalbum", "max_display_tags")) {
- break;
- }
- }
- }
-
- // Sort the array.
- asort($display_tags);
-
- // Print out the list of tags as clickable links.
+ // Loop through each tag in $all_tags, and display it as a link.
$not_first = 0;
- foreach ($display_tags as $one_tag) {
+ foreach ($all_tags as $one_tag) {
if ($not_first++ > 0) {
print ", ";
}
- print "
" . $one_tag[0] . " ";
+ print "
url() . "\">" . html::clean($one_tag->name) . " ";
}
?>
diff --git a/3.1/themes/browny_admin_wind/css/screen-rtl.css b/3.1/themes/browny_admin_wind/css/screen-rtl.css
new file mode 100644
index 00000000..d9b26b1e
--- /dev/null
+++ b/3.1/themes/browny_admin_wind/css/screen-rtl.css
@@ -0,0 +1,401 @@
+/**
+ * Gallery 3 Browny Admin Wind Theme Right-to-Left Screen Styles
+ */
+
+.rtl {
+ direction: rtl;
+}
+
+#g-header,
+#g-content,
+#g-sidebar,
+#g-footer,
+caption,
+th,
+#g-dialog,
+.g-context-menu li a,
+.g-message-box li,
+#g-site-status li {
+ text-align: right;
+}
+
+.g-text-right {
+ text-align: left;
+}
+
+/* Lists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-text li,
+.g-text li {
+ margin-left: 0;
+ margin-right: 1em;
+}
+
+/* Messages ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-error,
+.g-info,
+.g-success,
+.g-warning,
+#g-add-photos-status .g-success,
+#g-add-photos-status .g-error {
+ background-position: center right;
+ padding-right: 30px !important;
+}
+
+form li.g-error,
+form li.g-info,
+form li.g-success,
+form li.g-warning {
+ padding-right: 0 !important;
+}
+
+.g-left,
+.g-inline li,
+#g-content #g-album-grid .g-item,
+.sf-menu li,
+.g-breadcrumbs li,
+.g-paginator li,
+.g-buttonset li,
+.ui-icon-left .ui-icon,
+.g-short-form li,
+form ul ul li,
+input[type="submit"],
+input[type="reset"],
+input.checkbox,
+input[type=checkbox],
+input.radio,
+input[type=radio] {
+ float: right;
+}
+
+.g-right,
+.ui-icon-right .ui-icon {
+ float: left;
+}
+
+.g-inline li {
+ margin-right: 1em;
+}
+
+.g-inline li.g-first {
+ margin-right: 0;
+}
+
+.g-breadcrumbs li {
+ background: transparent url('../images/ico-separator-rtl.gif') no-repeat scroll right center;
+ padding: 1em 18px 1em 8px;
+}
+
+.g-breadcrumbs .g-first {
+ background: none;
+ padding-right: 0;
+}
+
+input.checkbox,
+input[type="checkbox"],
+input.radio,
+input[type="radio"] {
+ margin-right: 0;
+ margin-left: .4em;
+}
+
+#g-add-comment {
+ right: inherit;
+ left: 0;
+}
+
+.ui-icon-left .ui-icon {
+ margin-left: .2em;
+}
+
+.ui-icon-right .ui-icon {
+ margin-right: .2em;
+}
+
+.g-group h4 {
+ padding: .5em .5em .5em 0;
+}
+
+.g-group .g-user {
+ padding: .2em .5em 0 0;
+}
+
+/* RTL Corner radius ~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-buttonset .ui-corner-tl {
+ -moz-border-radius-topleft: 0;
+ -webkit-border-top-left-radius: 0;
+ border-top-left-radius: 0;
+ -moz-border-radius-topright: 5px !important;
+ -webkit-border-top-right-radius: 5px !important;
+ border-top-right-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-tr {
+ -moz-border-radius-topright: 0;
+ -webkit-border-top-right-radius: 0;
+ border-top-right-radius: 0;
+ -moz-border-radius-topleft: 5px !important;
+ -webkit-border-top-left-radius: 5px !important;
+ border-top-left-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-bl {
+ -moz-border-radius-bottomleft: 0;
+ -webkit-border-bottom-left-radius: 0;
+ border-bottom-left-radius: 0;
+ -moz-border-radius-bottomright: 5px !important;
+ -webkit-border-bottom-right-radius: 5px !important;
+ border-bottom-right-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-br {
+ -moz-border-radius-bottomright: 0;
+ -webkit-border-bottom-right-radius: 0;
+ border-bottom-right-radius: 0;
+ -moz-border-radius-bottomleft: 5px !important;
+ -webkit-border-bottom-left-radius: 5px !important;
+ border-bottom-left-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-right,
+.ui-progressbar .ui-corner-right {
+ -moz-border-radius-topright: 0;
+ -webkit-border-top-right-radius: 0;
+ border-top-right-radius: 0;
+ -moz-border-radius-topleft: 5px !important;
+ -webkit-border-top-left-radius: 5px !important;
+ border-top-left-radius: 5px !important;
+ -moz-border-radius-bottomright: 0;
+ -webkit-border-bottom-right-radius: 0;
+ border-bottom-right-radius: 0;
+ -moz-border-radius-bottomleft: 5px !important;
+ -webkit-border-bottom-left-radius: 5px !important;
+ border-bottom-left-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-left,
+.ui-progressbar .ui-corner-left {
+ -moz-border-radius-topleft: 0;
+ -webkit-border-top-left-radius: 0;
+ border-top-left-radius: 0;
+ -moz-border-radius-topright: 5px !important;
+ -webkit-border-top-right-radius: 5px !important;
+ border-top-right-radius: 5px !important;
+ -moz-border-radius-bottomleft: 0;
+ -webkit-border-bottom-left-radius: 0;
+ border-bottom-left-radius: 0;
+ -moz-border-radius-bottomright: 5px !important;
+ -webkit-border-bottom-right-radius: 5px !important;
+ border-bottom-right-radius: 5px !important;
+}
+
+/* RTL Superfish ~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.sf-menu a {
+ border-left: none;
+ border-right:1px solid #fff;
+}
+
+.sf-menu a.sf-with-ul {
+ padding-left: 2.25em;
+ padding-right: 1em;
+}
+
+.sf-sub-indicator {
+ left: .75em !important;
+ right: auto;
+ background: url('../../../lib/superfish/images/arrows-ffffff-rtl.png') no-repeat -10px -100px;
+}
+
+a > .sf-sub-indicator {
+ top: .8em;
+ background-position: -10px -100px;
+}
+
+a:focus > .sf-sub-indicator,
+a:hover > .sf-sub-indicator,
+a:active > .sf-sub-indicator,
+li:hover > a > .sf-sub-indicator,
+li.sfHover > a > .sf-sub-indicator {
+ background-position: 0 -100px;
+}
+
+.sf-menu ul .sf-sub-indicator {
+ background-position: 0 0;
+}
+
+.sf-menu ul a > .sf-sub-indicator {
+ background-position: -10px 0;
+}
+
+.sf-menu ul a:focus > .sf-sub-indicator,
+.sf-menu ul a:hover > .sf-sub-indicator,
+.sf-menu ul a:active > .sf-sub-indicator,
+.sf-menu ul li:hover > a > .sf-sub-indicator,
+.sf-menu ul li.sfHover > a > .sf-sub-indicator {
+ background-position: 0 0;
+}
+
+.sf-menu li:hover ul,
+.sf-menu li.sfHover ul {
+ right: 0;
+ left: auto;
+}
+
+ul.sf-menu li li:hover ul,
+ul.sf-menu li li.sfHover ul {
+ right: 12em;
+ left: auto;
+}
+ul.sf-menu li li li:hover ul,
+ul.sf-menu li li li.sfHover ul {
+ right: 12em;
+ left: auto;
+}
+
+.sf-shadow ul {
+ background: url('../../../lib/superfish/images/shadow.png') no-repeat bottom left;
+ padding: 0 0 9px 8px;
+ border-top-right-radius: 0;
+ border-bottom-left-radius: 0;
+ -moz-border-radius-topright: 0;
+ -moz-border-radius-bottomleft: 0;
+ -webkit-border-top-right-radius: 0;
+ -webkit-border-bottom-left-radius: 0;
+ -moz-border-radius-topleft: 17px;
+ -moz-border-radius-bottomright: 17px;
+ -webkit-border-top-left-radius: 17px;
+ -webkit-border-bottom-right-radius: 17px;
+ border-top-left-radius: 17px;
+ border-bottom-right-radius: 17px;
+}
+
+/* RTL ThemeRoller ~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.ui-dialog .ui-dialog-titlebar {
+ padding: 0.5em 1em 0.3em 0.3em;
+}
+
+.ui-dialog .ui-dialog-title {
+ float: right;
+}
+
+.ui-dialog .ui-dialog-titlebar-close {
+ left: 0.3em;
+ right: auto;
+}
+
+.ui-tabs .ui-tabs-nav li {
+ float: right;
+}
+
+#g-content #g-album-grid .g-item,
+#g-site-theme,
+#g-admin-theme,
+.g-selected img,
+.g-available .g-block img,
+#g-content #g-photo-stream .g-item,
+li.g-group,
+#g-server-add-admin {
+ float: right;
+}
+
+#g-site-theme {
+ margin-right: 0;
+ margin-left: 1em;
+}
+
+#g-admin-graphics .g-available .g-block {
+ float: right;
+ margin-left: 1em;
+ margin-right: 0em;
+}
+
+#g-site-admin-menu {
+ left: auto;
+ right: 240px;
+}
+
+#g-header #g-login-menu {
+ float: left;
+}
+
+#g-header #g-login-menu li {
+ margin-left: 0;
+ padding-left: 0;
+ padding-right: 1.2em;
+}
+
+
+#g-sidebar .g-block-content {
+ padding-left: 0em;
+ padding-right: 1em;
+}
+
+.g-selected img,
+.g-available .g-block img {
+ margin: 0 0 1em 1em;
+}
+
+.g-button {
+ margin: 0 0 0 4px;
+}
+
+/* RTL paginator ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-paginator .g-info {
+ width: 35%;
+}
+
+.g-paginator .g-text-right {
+ margin-left: 0;
+}
+
+.g-paginator .ui-icon-seek-end {
+ background-position: -80px -160px;
+}
+
+.g-paginator .ui-icon-seek-next {
+ background-position: -48px -160px;
+}
+
+.g-paginator .ui-icon-seek-prev {
+ background-position: -32px -160px;
+}
+
+.g-paginator .ui-icon-seek-first {
+ background-position: -64px -160px;
+}
+
+#g-header #g-login-menu,
+#g-header #g-quick-search-form {
+ clear: left;
+ float: left;
+}
+
+#g-header #g-login-menu li {
+ margin-left: 0;
+ padding-left: 0;
+ padding-right: 1.2em;
+}
+
+#g-site-menu {
+ left: auto;
+ right: 240px;
+}
+
+#g-view-menu #g-slideshow-link {
+ background-image: url('../images/ico-view-slideshow-rtl.png');
+}
+
+#g-sidebar .g-block-content {
+ padding-right: 1em;
+ padding-left: 0;
+}
+
+#g-footer #g-credits li {
+ padding-left: 1.2em !important;
+ padding-right: 0;
+}
diff --git a/3.1/themes/browny_admin_wind/css/screen.css b/3.1/themes/browny_admin_wind/css/screen.css
index fbabbcc3..2d6b78c8 100644
--- a/3.1/themes/browny_admin_wind/css/screen.css
+++ b/3.1/themes/browny_admin_wind/css/screen.css
@@ -4,23 +4,30 @@
* @requires YUI reset, font, grids CSS
*
* Sheet organization:
- * 1) Basic HTML elements
- * 2) Reusable content blocks
- * 3) Page layout containers
- * 4) Content blocks in specific layout containers
- * 5) States and interactions
- * 6) Positioning and order
- * 7) Navigation and menus
- * 8) ThemeRoller
- * 9) jQuery and jQuery UI
- * 10) Right-to-left language styles
- * 11) More Browny
+ * 0) Pre Overrides
+ * 1) Basic HTML elements
+ * 2) Reusable content blocks
+ * 3) Page layout containers
+ * 4) Content blocks in specific layout containers
+ * 5) States and interactions
+ * 6) Positioning and order
+ * 7) Navigation and menus
+ * 8) jQuery and jQuery UI
+ * 9) More Browny
*
* @todo Review g-buttonset-vertical
*/
/** *******************************************************************
- * 1) Basic HTML elements
+ * 0) Pre Overrides
+ **********************************************************************/
+
+/* ThemeRoller overrides ~~~~~~~~~~~~~~ */
+
+@import "themeroller/ui.tabs.css";
+
+/** *******************************************************************
+ * 1) Basic HTML elements
**********************************************************************/
/* ~browny~ */
@@ -29,6 +36,13 @@ body, html {
font-family: 'Century gothic', Verdana, 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
+select,
+input,
+button,
+textarea {
+ font: 99% 'Century gothic', Verdana, Arial, Helvetica, Clean, sans-serif;
+}
+
p {
margin-bottom: 1em;
text-shadow: 0px 1px 1px #F7F5F0;
@@ -67,13 +81,6 @@ h3 {
font-size: 1.2em;
}
-select,
-input,
-button,
-textarea {
- font: 99% 'Century gothic', Verdana, Arial, Helvetica, Clean, sans-serif;
-}
-
#l10n-client h2 {
text-shadow: none;
}
@@ -104,7 +111,25 @@ a:hover,
text-decoration: none;
}
+/* Lists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+ul.g-text li,
+.g-text ul li {
+ list-style-type: disc;
+}
+
+ol.g-text li,
+.g-text ol li {
+ list-style-type: decimal;
+}
+
+.g-text li,
+.g-text li {
+ margin-left: 1em;
+}
+
/* Forms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
form {
margin: 0;
}
@@ -284,22 +309,6 @@ fieldset {
margin-bottom: 0;
}
-fieldset {
- margin-bottom: 1em;
-}
-
-#g-content form ul li {
- padding: .4em 0;
-}
-
-#g-dialog form {
- width: 270px;
-}
-
-#g-dialog fieldset {
- margin-bottom: 0;
-}
-
/* Tables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
table {
@@ -328,8 +337,22 @@ th {
white-space: nowrap;
}
+/* Text ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-text-small {
+ font-size: .8em;
+}
+
+.g-text-big {
+ font-size: 1.2em;
+}
+
+.g-text-right {
+ text-align: right;
+}
+
/** *******************************************************************
- * 2) Reusable content blocks
+ * 2) Reusable content blocks
*********************************************************************/
.g-block,
@@ -393,7 +416,8 @@ th {
.g-unavailable {
border-color: #999;
- opacity: 0.4;
+ color: black;
+ opacity: .6;
}
.g-info td {
@@ -401,10 +425,6 @@ th {
background-image: none;
}
-#g-maintenance-mode ul.g-message-block {
- margin-top: .5em;
-}
-
.g-success td {
background-color: transparent;
background-image: none;
@@ -427,15 +447,12 @@ th {
background-color: #fff;
}
-ul.enumeration li {
- list-style-type: disc;
- margin-left: 20px;
-}
-
/*** ******************************************************************
- * 3) Page layout containers
+ * 3) Page layout containers
*********************************************************************/
+
/* Dimension and scale ~~~~~~~~~~~~~~~~~~~ */
+
.g-one-quarter {
width: 25%;
}
@@ -512,7 +529,7 @@ ul.enumeration li {
}
/** *******************************************************************
- * 4) Content blocks in specific layout containers
+ * 4) Content blocks in specific layout containers
*********************************************************************/
/* Header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@@ -607,7 +624,7 @@ ul.enumeration li {
margin-right: 1em;
}
-/* Block admin ~~~~~~~~~~~~~~~~~~~~~~~~~ */
+/* Block admin ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-admin-blocks-list {
float: left;
@@ -633,12 +650,14 @@ ul.enumeration li {
padding: .3em .8em;
}
-/* In-line editing ~~~~~~~~~~~~~~~~~~~~ */
+/* In-line editing ~~~~~~~~~~~~~~~~~~~~~~ */
+
#g-in-place-edit-message {
background-color: #FFF;
}
-/* Language options ~~~~~~~~~~~~~~~~~~~~~~~~ */
+/* Language options ~~~~~~~~~~~~~~~~~~~~~ */
+
#g-share-translations-form fieldset {
border: 0px;
margin: 0px;
@@ -823,7 +842,7 @@ form .g-error {
}
/** *******************************************************************
- * 7) Navigation and menus
+ * 7) Navigation and menus
*********************************************************************/
/* Site Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@@ -840,16 +859,9 @@ form .g-error {
}
/** *******************************************************************
- * 8) ThemeRoller Theme
- **********************************************************************/
-/* ~browny~ */
-
-/* ThemeRoller overrides ~~~~~~~~~~~~~~ */
-@import "themeroller/ui.tabs.css";
-
-/** *******************************************************************
- * 9) jQuery and jQuery UI
+ * 8) jQuery and jQuery UI
*********************************************************************/
+
/* Generic block container ~~~~~~~~~~~~~~~ */
.g-block {
@@ -923,16 +935,16 @@ button {
display: inline-block;
}
-/* Status and validation messages ~~~~ */
+/* Status and validation messages ~~~~~~~~~ */
.g-message-block {
background-position: .4em .3em;
border: 1px solid #ccc;
padding: 0;
+ margin-bottom: 1em;
}
#g-action-status {
- margin-bottom: 1em;
}
#g-action-status li,
@@ -1002,7 +1014,7 @@ div#g-action-status {
width: 40%;
}
-/* Dialogs and panels ~~~~~~~~~~~~~~~~~~ */
+/* Dialogs and panels ~~~~~~~~~~~~~~~~~~~~ */
#g-dialog {
text-align: left;
@@ -1021,7 +1033,7 @@ div#g-action-status {
padding: 1em;
}
-/* Inline layout ~~~~~~~~~~ */
+/* Inline layout ~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-inline li {
float: left;
@@ -1033,19 +1045,20 @@ div#g-action-status {
margin-left: 0;
}
-/* Superfish menu overrides ~~~~~~~~~~~ */
+/* Superfish menu overrides ~~~~~~~~~~~~~~ */
+
.sf-menu ul {
- width: 12em;
+ width: 12em;
}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
- left: 12em;
+ left: 12em;
}
ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
- left: 12em;
+ left: 12em;
}
/* ~browny~ */
@@ -1061,13 +1074,13 @@ ul.sf-menu li li li.sfHover ul {
/* ~browny~ */
.sf-menu a {
- border-top: 1px solid #e0cbae;
+ border-top: 1px solid #e0cbae;
}
/* ~browny~ */
.sf-menu li {
- background: #d3b07e url('../images/ui-bg_highlight-soft_45_d3b07e_1x100.png') 50% 50% repeat-x;
- text-shadow: 0px 1px 1px #fff;
+ background: #d3b07e url('../images/ui-bg_highlight-soft_45_d3b07e_1x100.png') 50% 50% repeat-x;
+ text-shadow: 0px 1px 1px #fff;
}
/* ~browny~ */
@@ -1076,11 +1089,16 @@ ul.sf-menu li li li.sfHover ul {
.sf-menu a:focus,
.sf-menu a:hover,
.sf-menu a:active {
- background: #e0cbae;
+ background: #e0cbae;
}
/* jQuery UI Dialog ~~~~~~~~~~~~~~~~~~~ */
+.ui-widget-overlay {
+ background: #000;
+ opacity: .7;
+}
+
#g-admin-dashboard .ui-state-highlight,
#g-sidebar .ui-state-highlight {
height: 2em;
@@ -1109,317 +1127,17 @@ ul.sf-menu li li li.sfHover ul {
}
/** *******************************************************************
- * 10) Right to left styles
- *********************************************************************/
-
-.rtl {
- direction: rtl;
-}
-
-.rtl #g-header,
-.rtl #g-content,
-.rtl #g-sidebar,
-.rtl #g-footer,
-.rtl caption,
-.rtl th,
-.rtl #g-dialog,
-.rtl .g-context-menu li a,
-.rtl .g-message-box li,
-.rtl #g-site-status li {
- text-align: right;
-}
-
-.rtl .g-text-right {
- text-align: left;
-}
-
-.rtl .g-error,
-.rtl .g-info,
-.rtl .g-success,
-.rtl .g-warning,
-.rtl #g-add-photos-status .g-success,
-.rtl #g-add-photos-status .g-error {
- background-position: center right;
- padding-right: 30px !important;
-}
-
-.rtl form li.g-error,
-.rtl form li.g-info,
-.rtl form li.g-success,
-.rtl form li.g-warning {
- padding-right: 0 !important;
-}
-
-.rtl .g-left,
-.rtl .g-inline li,
-.rtl #g-content #g-album-grid .g-item,
-.rtl .sf-menu li,
-.rtl .g-breadcrumbs li,
-.rtl .g-paginator li,
-.rtl .g-buttonset li,
-.rtl .ui-icon-left .ui-icon,
-.rtl .g-short-form li,
-.rtl form ul ul li,
-.rtl input[type="submit"],
-.rtl input[type="reset"],
-.rtl input.checkbox,
-.rtl input[type=checkbox],
-.rtl input.radio,
-.rtl input[type=radio] {
- float: right;
-}
-
-.rtl .g-right,
-.rtl .ui-icon-right .ui-icon {
- float: left;
-}
-
-.rtl .g-inline li {
- margin-right: 1em;
-}
-
-.rtl .g-inline li.g-first {
- margin-right: 0;
-}
-
-.rtl .g-breadcrumbs li {
- background: transparent url('../images/ico-separator-rtl.gif') no-repeat scroll right center;
- padding: 1em 18px 1em 8px;
-}
-
-.rtl .g-breadcrumbs .g-first {
- background: none;
- padding-right: 0;
-}
-
-.rtl input.checkbox {
- margin-left: .4em;
-}
-
-.rtl #g-add-comment {
- right: inherit;
- left: 0;
-}
-
-.rtl .ui-icon-left .ui-icon {
- margin-left: .2em;
-}
-
-.rtl .ui-icon-right .ui-icon {
- margin-right: .2em;
-}
-
-/* RTL Corner radius ~~~~~~~~~~~~~~~~~~~~~~ */
-.rtl .g-buttonset .ui-corner-tl {
- -moz-border-radius-topleft: 0;
- -webkit-border-top-left-radius: 0;
- border-top-left-radius: 0;
- -moz-border-radius-topright: 5px !important;
- -webkit-border-top-right-radius: 5px !important;
- border-top-right-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-tr {
- -moz-border-radius-topright: 0;
- -webkit-border-top-right-radius: 0;
- border-top-right-radius: 0;
- -moz-border-radius-topleft: 5px !important;
- -webkit-border-top-left-radius: 5px !important;
- border-top-left-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-bl {
- -moz-border-radius-bottomleft: 0;
- -webkit-border-bottom-left-radius: 0;
- border-bottom-left-radius: 0;
- -moz-border-radius-bottomright: 5px !important;
- -webkit-border-bottom-right-radius: 5px !important;
- border-bottom-right-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-br {
- -moz-border-radius-bottomright: 0;
- -webkit-border-bottom-right-radius: 0;
- border-bottom-right-radius: 0;
- -moz-border-radius-bottomleft: 5px !important;
- -webkit-border-bottom-left-radius: 5px !important;
- border-bottom-left-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-right,
-.rtl .ui-progressbar .ui-corner-right {
- -moz-border-radius-topright: 0;
- -webkit-border-top-right-radius: 0;
- border-top-right-radius: 0;
- -moz-border-radius-topleft: 5px !important;
- -webkit-border-top-left-radius: 5px !important;
- border-top-left-radius: 5px !important;
- -moz-border-radius-bottomright: 0;
- -webkit-border-bottom-right-radius: 0;
- border-bottom-right-radius: 0;
- -moz-border-radius-bottomleft: 5px !important;
- -webkit-border-bottom-left-radius: 5px !important;
- border-bottom-left-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-left,
-.rtl .ui-progressbar .ui-corner-left {
- -moz-border-radius-topleft: 0;
- -webkit-border-top-left-radius: 0;
- border-top-left-radius: 0;
- -moz-border-radius-topright: 5px !important;
- -webkit-border-top-right-radius: 5px !important;
- border-top-right-radius: 5px !important;
- -moz-border-radius-bottomleft: 0;
- -webkit-border-bottom-left-radius: 0;
- border-bottom-left-radius: 0;
- -moz-border-radius-bottomright: 5px !important;
- -webkit-border-bottom-right-radius: 5px !important;
- border-bottom-right-radius: 5px !important;
-}
-
-/* RTL Superfish ~~~~~~~~~~~~~~~~~~~~~~~~~ */
-
-.rtl .sf-menu a {
- border-left: none;
- border-right:1px solid #fff;
-}
-
-.rtl .sf-menu a.sf-with-ul {
- padding-left: 2.25em;
- padding-right: 1em;
-}
-
-.rtl .sf-sub-indicator {
- left: .75em !important;
- right: auto;
- background: url('../../../lib/superfish/images/arrows-ffffff-rtl.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
-}
-.rtl a > .sf-sub-indicator { /* give all except IE6 the correct values */
- top: .8em;
- background-position: -10px -100px; /* use translucent arrow for modern browsers*/
-}
-/* apply hovers to modern browsers */
-.rtl a:focus > .sf-sub-indicator,
-.rtl a:hover > .sf-sub-indicator,
-.rtl a:active > .sf-sub-indicator,
-.rtl li:hover > a > .sf-sub-indicator,
-.rtl li.sfHover > a > .sf-sub-indicator {
- background-position: 0 -100px; /* arrow hovers for modern browsers*/
-}
-
-/* point right for anchors in subs */
-.rtl .sf-menu ul .sf-sub-indicator { background-position: 0 0; }
-.rtl .sf-menu ul a > .sf-sub-indicator { background-position: -10px 0; }
-/* apply hovers to modern browsers */
-.rtl .sf-menu ul a:focus > .sf-sub-indicator,
-.rtl .sf-menu ul a:hover > .sf-sub-indicator,
-.rtl .sf-menu ul a:active > .sf-sub-indicator,
-.rtl .sf-menu ul li:hover > a > .sf-sub-indicator,
-.rtl .sf-menu ul li.sfHover > a > .sf-sub-indicator {
- background-position: 0 0; /* arrow hovers for modern browsers*/
-}
-
-.rtl .sf-menu li:hover ul,
-.rtl .sf-menu li.sfHover ul {
- right: 0;
- left: auto;
-}
-
-.rtl ul.sf-menu li li:hover ul,
-.rtl ul.sf-menu li li.sfHover ul {
- right: 12em; /* match ul width */
- left: auto;
-}
-.rtl ul.sf-menu li li li:hover ul,
-.rtl ul.sf-menu li li li.sfHover ul {
- right: 12em; /* match ul width */
- left: auto;
-}
-
-/*** shadows for all but IE6 ***/
-.rtl .sf-shadow ul {
- background: url('../../../lib/superfish/images/shadow.png') no-repeat bottom left;
- padding: 0 0 9px 8px;
- border-top-right-radius: 0;
- border-bottom-left-radius: 0;
- -moz-border-radius-topright: 0;
- -moz-border-radius-bottomleft: 0;
- -webkit-border-top-right-radius: 0;
- -webkit-border-bottom-left-radius: 0;
- -moz-border-radius-topleft: 17px;
- -moz-border-radius-bottomright: 17px;
- -webkit-border-top-left-radius: 17px;
- -webkit-border-bottom-right-radius: 17px;
- border-top-left-radius: 17px;
- border-bottom-right-radius: 17px;
-}
-
-/* RTL ThemeRoller ~~~~~~~~~~~~~~~~~~~~~~~~ */
-
-.rtl .ui-dialog .ui-dialog-titlebar {
- padding: 0.5em 1em 0.3em 0.3em;
-}
-
-.rtl .ui-dialog .ui-dialog-title {
- float: right;
-}
-
-.rtl .ui-dialog .ui-dialog-titlebar-close {
- left: 0.3em;
- right: auto;
-}
-
-.rtl #g-content #g-album-grid .g-item,
-.rtl #g-site-theme,
-.rtl #g-admin-theme,
-.rtl .g-selected img,
-.rtl .g-available .g-block img,
-.rtl #g-content #g-photo-stream .g-item,
-.rtl li.g-group,
-.rtl #g-server-add-admin {
- float: right;
-}
-
-.rtl #g-admin-graphics .g-available .g-block {
- float: right;
- margin-left: 1em;
- margin-right: 0em;
-}
-
-.rtl #g-site-admin-menu {
- left: auto;
- right: 240px;
-}
-
-.rtl #g-header #g-login-menu {
- float: left;
-}
-
-.rtl #g-header #g-login-menu li {
- margin-left: 0;
- padding-left: 0;
- padding-right: 1.2em;
-}
-
-/* ~browny~ */
-.rtl .g-selected img,
-.rtl .g-available .g-block img {
- margin: 0 0 1em 1em;
-}
-
-/** *******************************************************************
- * 11) More Browny (Extra overrides for better Browny look)
+ * 9) More Browny (Extra overrides for better Browny look)
*********************************************************************/
/* /lib/gallery.common.css ~~~~~~~~~~~~ */
.g-success {
-background: #fcf9ce url('../images/ico-success.png') no-repeat .4em 50%
+ background: #fcf9ce url('../images/ico-success.png') no-repeat .4em 50%
}
.g-even {
- background: transparent;
+ background: transparent;
}
.g-odd {
diff --git a/3.1/themes/browny_admin_wind/images/ico-denied-inactive.png b/3.1/themes/browny_admin_wind/images/ico-denied-inactive.png
new file mode 100644
index 00000000..56db3ff5
Binary files /dev/null and b/3.1/themes/browny_admin_wind/images/ico-denied-inactive.png differ
diff --git a/3.1/themes/browny_admin_wind/images/ico-denied-passive.png b/3.1/themes/browny_admin_wind/images/ico-denied-passive.png
new file mode 100644
index 00000000..1e992230
Binary files /dev/null and b/3.1/themes/browny_admin_wind/images/ico-denied-passive.png differ
diff --git a/3.1/themes/browny_admin_wind/images/ico-denied.png b/3.1/themes/browny_admin_wind/images/ico-denied.png
new file mode 100644
index 00000000..08f24936
Binary files /dev/null and b/3.1/themes/browny_admin_wind/images/ico-denied.png differ
diff --git a/3.1/themes/browny_admin_wind/images/ico-lock.png b/3.1/themes/browny_admin_wind/images/ico-lock.png
new file mode 100644
index 00000000..2ebc4f6f
Binary files /dev/null and b/3.1/themes/browny_admin_wind/images/ico-lock.png differ
diff --git a/3.1/themes/browny_admin_wind/images/ico-success-passive.png b/3.1/themes/browny_admin_wind/images/ico-success-passive.png
new file mode 100644
index 00000000..7afba8cf
Binary files /dev/null and b/3.1/themes/browny_admin_wind/images/ico-success-passive.png differ
diff --git a/3.1/themes/browny_admin_wind/images/logo.png b/3.1/themes/browny_admin_wind/images/logo.png
index 6ffa889b..b430321b 100644
Binary files a/3.1/themes/browny_admin_wind/images/logo.png and b/3.1/themes/browny_admin_wind/images/logo.png differ
diff --git a/3.1/themes/browny_admin_wind/theme.info b/3.1/themes/browny_admin_wind/theme.info
index aaab699a..51566b56 100644
--- a/3.1/themes/browny_admin_wind/theme.info
+++ b/3.1/themes/browny_admin_wind/theme.info
@@ -1,10 +1,10 @@
name = "Browny Wind"
description = "The default Wind Admin theme with a browny style."
version = 1
-author = "Ma'moun M. Diraneyya"
+author = "Mamouneyya"
admin = 1
site = 0
-author_name = ""
+author_name = "Ma'moun Diraneyya"
author_url = ""
info_url = "http://codex.gallery2.org/Gallery3:Themes:browny_admin_wind"
-discuss_url = "http://gallery.menalto.com/forum_theme_browny_admin_wind"
+discuss_url = "http://gallery.menalto.com/node/95007"
diff --git a/3.1/themes/browny_admin_wind/views/admin.html.php b/3.1/themes/browny_admin_wind/views/admin.html.php
index c8041069..9a149149 100644
--- a/3.1/themes/browny_admin_wind/views/admin.html.php
+++ b/3.1/themes/browny_admin_wind/views/admin.html.php
@@ -1,9 +1,10 @@
-
+html_attributes() ?> xml:lang="en" lang="en">
+ $theme->start_combining("script,css") ?>
if ($page_title): ?>
= t("Gallery Admin: %page_title", array("page_title" => $page_title)) ?>
@@ -11,31 +12,46 @@
= t("Admin dashboard") ?>
endif ?>
-
" type="image/x-icon" />
+
"
+ type="image/x-icon" />
+
" />
+ = $theme->script("jquery.js") ?>
+ = $theme->script("jquery.form.js") ?>
+ = $theme->script("jquery-ui.js") ?>
+ = $theme->script("gallery.common.js") ?>
+ /* MSG_CANCEL is required by gallery.dialog.js */ ?>
+
+ = $theme->script("gallery.ajax.js") ?>
+ = $theme->script("gallery.dialog.js") ?>
+ = $theme->script("superfish/js/superfish.js") ?>
+ = $theme->script("jquery.scrollTo.js") ?>
+
+ = $theme->admin_head() ?>
+
+ /* Theme specific CSS/JS goes last so that it can override module CSS/JS */ ?>
+ = $theme->script("ui.init.js") ?>
= $theme->css("yui/reset-fonts-grids.css") ?>
= $theme->css("themeroller/ui.base.css") ?>
= $theme->css("superfish/css/superfish.css") ?>
= $theme->css("screen.css") ?>
+ if (locales::is_rtl()): ?>
+ = $theme->css("screen-rtl.css") ?>
+ endif; ?>
- = $theme->script("jquery.js") ?>
- = $theme->script("jquery.form.js") ?>
- = $theme->script("jquery-ui.js") ?>
- = $theme->script("gallery.common.js") ?>
- /* MSG_CANCEL is required by gallery.dialog.js */ ?>
-
- = $theme->script("gallery.ajax.js") ?>
- = $theme->script("gallery.dialog.js") ?>
- = $theme->script("superfish/js/superfish.js") ?>
- = $theme->script("ui.init.js") ?>
+
+ = $theme->get_combined("css") ?>
- = $theme->admin_head() ?>
+
+ = $theme->get_combined("script") ?>
body_attributes() ?>>
diff --git a/3.1/themes/browny_admin_wind/views/pager.html.php b/3.1/themes/browny_admin_wind/views/pager.html.php
deleted file mode 100644
index 5fff5845..00000000
--- a/3.1/themes/browny_admin_wind/views/pager.html.php
+++ /dev/null
@@ -1,44 +0,0 @@
-
- // See http://docs.kohanaphp.com/libraries/pagination ?>
-
diff --git a/3.1/themes/browny_admin_wind/views/paginator.html.php b/3.1/themes/browny_admin_wind/views/paginator.html.php
new file mode 100644
index 00000000..b46d9741
--- /dev/null
+++ b/3.1/themes/browny_admin_wind/views/paginator.html.php
@@ -0,0 +1,88 @@
+
+
+// This is a generic paginator for admin collections. Depending on the page type, there are
+// different sets of variables available. With this data, you can make a paginator that
+// lets you say "You're viewing photo 5 of 35", or "You're viewing photos 10 - 18 of 37"
+// for album views.
+
+//
+// Available variables for all page types:
+// $page_type - "collection", "item", or "other"
+// $page_subtype - "album", "movie", "photo", "tag", etc.
+// $previous_page_url - the url to the previous page, if there is one
+// $next_page_url - the url to the next page, if there is one
+// $total - the total number of photos in this album
+//
+// Available for the "collection" page types:
+// $page - what page number we're on
+// $max_pages - the maximum page number
+// $page_size - the page size
+// $first_page_url - the url to the first page, or null if we're on the first page
+// $last_page_url - the url to the last page, or null if we're on the last page
+// $first_visible_position - the position number of the first visible photo on this page
+// $last_visible_position - the position number of the last visible photo on this page
+//
+// Available for "item" page types:
+// $position - the position number of this photo
+//
+?>
+
+ if ($total): ?>
+
+
+ if ($page_type == "collection"): ?>
+ if (isset($first_page_url)): ?>
+
+ = t("First") ?>
+ else: ?>
+
+ = t("First") ?>
+ endif ?>
+ endif ?>
+
+ if (isset($previous_page_url)): ?>
+
+ = t("Previous") ?>
+ else: ?>
+
+ = t("Previous") ?>
+ endif ?>
+
+
+
+ if ($total): ?>
+ if ($page_type == "collection"): ?>
+ = /* @todo This message isn't easily localizable */
+ t2("Viewing %from_number of %count",
+ "Viewing %from_number - %to_number of %count",
+ $total,
+ array("from_number" => $first_visible_position,
+ "to_number" => $last_visible_position,
+ "count" => $total)) ?>
+ else: ?>
+ = t("%position of %total", array("position" => $position, "total" => $total)) ?>
+ endif ?>
+ endif ?>
+
+
+
+ if (isset($next_page_url)): ?>
+
+ = t("Next") ?>
+ else: ?>
+
+ = t("Next") ?>
+ endif ?>
+
+ if ($page_type == "collection"): ?>
+ if (isset($last_page_url)): ?>
+
+ = t("Last") ?>
+ else: ?>
+
+ = t("Last") ?>
+ endif ?>
+ endif ?>
+
+
+ endif ?>
\ No newline at end of file
diff --git a/3.1/themes/browny_wind/css/screen-rtl.css b/3.1/themes/browny_wind/css/screen-rtl.css
new file mode 100644
index 00000000..3a0ece7b
--- /dev/null
+++ b/3.1/themes/browny_wind/css/screen-rtl.css
@@ -0,0 +1,393 @@
+/**
+ * Gallery 3 Browny Wind Theme Right-to-Left Screen Styles
+ */
+
+.rtl {
+ direction: rtl;
+}
+
+#g-header,
+#g-content,
+#g-sidebar,
+#g-footer,
+caption,
+th,
+#g-dialog,
+.g-context-menu li a,
+.g-message-box li,
+#g-site-status li {
+ text-align: right;
+}
+
+.g-text-right {
+ text-align: left;
+}
+
+/* Lists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-text li,
+.g-text li {
+ margin-left: 0;
+ margin-right: 1em;
+}
+
+/* Messages ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-error,
+.g-info,
+.g-success,
+.g-warning,
+#g-add-photos-status .g-success,
+#g-add-photos-status .g-error {
+ background-position: center right;
+ padding-right: 30px !important;
+}
+
+form li.g-error,
+form li.g-info,
+form li.g-success,
+form li.g-warning {
+ padding-right: 0 !important;
+}
+
+.g-left,
+.g-inline li,
+#g-content #g-album-grid .g-item,
+.sf-menu li,
+.g-breadcrumbs li,
+.g-paginator li,
+.g-buttonset li,
+.ui-icon-left .ui-icon,
+.g-short-form li,
+form ul ul li,
+input[type="submit"],
+input[type="reset"],
+input.checkbox,
+input[type=checkbox],
+input.radio,
+input[type=radio] {
+ float: right;
+}
+
+.g-right,
+.ui-icon-right .ui-icon {
+ float: left;
+}
+
+.g-inline li {
+ margin-right: 1em;
+}
+
+.g-inline li.g-first {
+ margin-right: 0;
+}
+
+/* ~browny~ */
+.g-breadcrumbs li {
+ background: transparent url('../images/ico-separator-rtl.gif') no-repeat scroll right center;
+ padding: .5em 18px .5em 8px;
+}
+
+.g-breadcrumbs .g-first {
+ background: none;
+ padding-right: 0;
+}
+
+input.checkbox {
+ margin-left: .4em;
+}
+
+#g-add-comment {
+ right: inherit;
+ left: 0;
+}
+
+.ui-icon-left .ui-icon {
+ margin-left: .2em;
+}
+
+.ui-icon-right .ui-icon {
+ margin-right: .2em;
+}
+
+/* RTL Corner radius ~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-buttonset .ui-corner-tl {
+ -moz-border-radius-topleft: 0;
+ -webkit-border-top-left-radius: 0;
+ border-top-left-radius: 0;
+ -moz-border-radius-topright: 5px !important;
+ -webkit-border-top-right-radius: 5px !important;
+ border-top-right-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-tr {
+ -moz-border-radius-topright: 0;
+ -webkit-border-top-right-radius: 0;
+ border-top-right-radius: 0;
+ -moz-border-radius-topleft: 5px !important;
+ -webkit-border-top-left-radius: 5px !important;
+ border-top-left-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-bl {
+ -moz-border-radius-bottomleft: 0;
+ -webkit-border-bottom-left-radius: 0;
+ border-bottom-left-radius: 0;
+ -moz-border-radius-bottomright: 5px !important;
+ -webkit-border-bottom-right-radius: 5px !important;
+ border-bottom-right-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-br {
+ -moz-border-radius-bottomright: 0;
+ -webkit-border-bottom-right-radius: 0;
+ border-bottom-right-radius: 0;
+ -moz-border-radius-bottomleft: 5px !important;
+ -webkit-border-bottom-left-radius: 5px !important;
+ border-bottom-left-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-right,
+.ui-progressbar .ui-corner-right {
+ -moz-border-radius-topright: 0;
+ -webkit-border-top-right-radius: 0;
+ border-top-right-radius: 0;
+ -moz-border-radius-topleft: 5px !important;
+ -webkit-border-top-left-radius: 5px !important;
+ border-top-left-radius: 5px !important;
+ -moz-border-radius-bottomright: 0;
+ -webkit-border-bottom-right-radius: 0;
+ border-bottom-right-radius: 0;
+ -moz-border-radius-bottomleft: 5px !important;
+ -webkit-border-bottom-left-radius: 5px !important;
+ border-bottom-left-radius: 5px !important;
+}
+
+.g-buttonset .ui-corner-left,
+.ui-progressbar .ui-corner-left {
+ -moz-border-radius-topleft: 0;
+ -webkit-border-top-left-radius: 0;
+ border-top-left-radius: 0;
+ -moz-border-radius-topright: 5px !important;
+ -webkit-border-top-right-radius: 5px !important;
+ border-top-right-radius: 5px !important;
+ -moz-border-radius-bottomleft: 0;
+ -webkit-border-bottom-left-radius: 0;
+ border-bottom-left-radius: 0;
+ -moz-border-radius-bottomright: 5px !important;
+ -webkit-border-bottom-right-radius: 5px !important;
+ border-bottom-right-radius: 5px !important;
+}
+
+/* RTL Superfish ~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.sf-menu a {
+ border-left: none;
+ border-right:1px solid #fff;
+}
+
+.sf-menu a.sf-with-ul {
+ padding-left: 2.25em;
+ padding-right: 1em;
+}
+
+.sf-sub-indicator {
+ left: .75em !important;
+ right: auto;
+ background: url('../../../lib/superfish/images/arrows-ffffff-rtl.png') no-repeat -10px -100px;
+}
+
+a > .sf-sub-indicator {
+ top: .8em;
+ background-position: -10px -100px;
+}
+
+a:focus > .sf-sub-indicator,
+a:hover > .sf-sub-indicator,
+a:active > .sf-sub-indicator,
+li:hover > a > .sf-sub-indicator,
+li.sfHover > a > .sf-sub-indicator {
+ background-position: 0 -100px;
+}
+
+.sf-menu ul .sf-sub-indicator {
+ background-position: 0 0;
+}
+
+.sf-menu ul a > .sf-sub-indicator {
+ background-position: -10px 0;
+}
+
+.sf-menu ul a:focus > .sf-sub-indicator,
+.sf-menu ul a:hover > .sf-sub-indicator,
+.sf-menu ul a:active > .sf-sub-indicator,
+.sf-menu ul li:hover > a > .sf-sub-indicator,
+.sf-menu ul li.sfHover > a > .sf-sub-indicator {
+ background-position: 0 0;
+}
+
+.sf-menu li:hover ul,
+.sf-menu li.sfHover ul {
+ right: 0;
+ left: auto;
+}
+
+ul.sf-menu li li:hover ul,
+ul.sf-menu li li.sfHover ul {
+ right: 12em;
+ left: auto;
+}
+ul.sf-menu li li li:hover ul,
+ul.sf-menu li li li.sfHover ul {
+ right: 12em;
+ left: auto;
+}
+
+.sf-shadow ul {
+ background: url('../../../lib/superfish/images/shadow.png') no-repeat bottom left;
+ padding: 0 0 9px 8px;
+ border-top-right-radius: 0;
+ border-bottom-left-radius: 0;
+ -moz-border-radius-topright: 0;
+ -moz-border-radius-bottomleft: 0;
+ -webkit-border-top-right-radius: 0;
+ -webkit-border-bottom-left-radius: 0;
+ -moz-border-radius-topleft: 17px;
+ -moz-border-radius-bottomright: 17px;
+ -webkit-border-top-left-radius: 17px;
+ -webkit-border-bottom-right-radius: 17px;
+ border-top-left-radius: 17px;
+ border-bottom-right-radius: 17px;
+}
+
+/* RTL ThemeRoller ~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.ui-dialog .ui-dialog-titlebar {
+ padding: 0.5em 1em 0.3em 0.3em;
+}
+
+.ui-dialog .ui-dialog-title {
+ float: right;
+}
+
+.ui-dialog .ui-dialog-titlebar-close {
+ left: 0.3em;
+ right: auto;
+}
+
+.ui-tabs .ui-tabs-nav li {
+ float: right;
+}
+
+/* RTL paginator ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-paginator .g-info {
+ width: 35%;
+}
+
+.g-paginator .g-text-right {
+ margin-left: 0;
+}
+
+.g-paginator .ui-icon-seek-end {
+ background-position: -80px -160px;
+}
+
+.g-paginator .ui-icon-seek-next {
+ background-position: -48px -160px;
+}
+
+.g-paginator .ui-icon-seek-prev {
+ background-position: -32px -160px;
+}
+
+.g-paginator .ui-icon-seek-first {
+ background-position: -64px -160px;
+}
+
+#g-header #g-login-menu,
+#g-header #g-quick-search-form {
+ clear: left;
+ float: left;
+}
+
+#g-header #g-login-menu li {
+ margin-left: 0;
+ padding-left: 0;
+ padding-right: 1.2em;
+}
+
+#g-site-menu {
+ left: auto;
+ right: 240px;
+}
+
+#g-view-menu #g-slideshow-link {
+ background-image: url('../images/ico-view-slideshow-rtl.png');
+}
+
+#g-sidebar .g-block-content {
+ padding-right: 1em;
+ padding-left: 0;
+}
+
+#g-footer #g-credits li {
+ padding-left: 1.2em !important;
+ padding-right: 0;
+}
+
+/* Browny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+.g-even {
+ text-align: left;
+}
+
+.g-odd {
+ text-align: right;
+}
+
+.uploadifyQueueItem .cancel {
+ float: left;
+}
+
+#g-user-profile .g-block h2 {
+ padding-right: .8em;
+ padding-left: auto;
+}
+
+#g-user-profile .g-avatar {
+ float: right;
+ right: 0em;
+ left: auto;
+ margin: 0em .6em 0em 0em;
+}
+
+#g-user-profile #g-comment-detail .g-author a {
+ float: right;
+ right: 0em;
+ left: auto;
+ margin-left: .6em;
+ margin-right: 0em;
+}
+
+#g-user-profile #g-comment-detail div {
+ margin-right: 5em;
+ margin-left: 0em;
+}
+
+#g-user-profile h1 {
+ margin: 1.25em 4.4em 2em 0em;
+}
+
+#g-content #g-comments .g-avatar {
+ float: right;
+ margin-left: .4em;
+ margin-right: 0;
+}
+
+#g-calendar-grid {
+ padding-right: 8px;
+ padding-left: 0px;
+}
+
diff --git a/3.1/themes/browny_wind/css/screen.css b/3.1/themes/browny_wind/css/screen.css
index 01576252..1539dadb 100644
--- a/3.1/themes/browny_wind/css/screen.css
+++ b/3.1/themes/browny_wind/css/screen.css
@@ -4,21 +4,28 @@
* @requires YUI reset, font, grids CSS
*
* Sheet organization:
- * 1) Font sizes, base HTML elements
- * 2) Reusable content blocks
- * 3) Page layout containers
- * 4) Content blocks in specific layout containers
- * 5) States and interactions
- * 6) Positioning and order
- * 7) Navigation and menus
- * 8) ThemeRoller
- * 9) jQuery and jQuery UI
- * 10) Right-to-left language styles
- * 11) More Browny
+ * 0) Pre Overrides
+ * 1) Font sizes, base HTML elements
+ * 2) Reusable content blocks
+ * 3) Page layout containers
+ * 4) Content blocks in specific layout containers
+ * 5) States and interactions
+ * 6) Positioning and order
+ * 7) Navigation and menus
+ * 8) jQuery and jQuery UI
+ * 9) More Browny
*/
/** *******************************************************************
- * 1) Font sizes, base HTML elements
+ * 0) Pre Overrides
+ **********************************************************************/
+
+/* ThemeRoller overrides ~~~~~~~~~~~~~~ */
+
+@import "themeroller/ui.tabs.css";
+
+/** *******************************************************************
+ * 1) Font sizes, base HTML elements
**********************************************************************/
/* ~browny~ */
@@ -27,6 +34,25 @@ body, html {
font-family: 'Century gothic', Verdana, 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
+.ui-widget {
+ font-family: 'Century gothic', Verdana, 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
+}
+
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
+ font-family: 'Century gothic', Verdana, 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
+}
+
+#g-user-profile #g-comment-detail .g-author {
+ font-family: Cursive, Serif;
+}
+
+select,
+input,
+button,
+textarea {
+ font: 99% 'Century gothic', Verdana, Arial, Helvetica, Clean, sans-serif;
+}
+
p {
margin-bottom: 1em;
text-shadow: 0px 1px 1px #F7F5F0;
@@ -88,13 +114,6 @@ h3 {
font-size: .7em;
}
-select,
-input,
-button,
-textarea {
- font: 99% 'Century gothic', Verdana, Arial, Helvetica, Clean, sans-serif;
-}
-
#l10n-client h2 {
text-shadow: none;
}
@@ -132,7 +151,25 @@ a:hover,
padding-left: 32px;
}
+/* Lists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
+ul.g-text li,
+.g-text ul li {
+ list-style-type: disc;
+}
+
+ol.g-text li,
+.g-text ol li {
+ list-style-type: decimal;
+}
+
+.g-text li,
+.g-text li {
+ margin-left: 1em;
+}
+
/* Forms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
form {
margin: 0;
}
@@ -323,6 +360,7 @@ td {
}
/* Text ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
.g-text-small {
font-size: .8em;
}
@@ -336,7 +374,7 @@ td {
}
/** *******************************************************************
- * 2) Reusable content blocks
+ * 2) Reusable content blocks
*********************************************************************/
/* ~browny~ */
@@ -350,10 +388,11 @@ td {
}
/*** ******************************************************************
- * 3) Page layout containers
+ * 3) Page layout containers
*********************************************************************/
/* Dimension and scale ~~~~~~~~~~~~~~~~~~~ */
+
.g-one-quarter {
width: 25%;
}
@@ -422,7 +461,7 @@ td {
}
/** *******************************************************************
- * 4) Content blocks in specific layout containers
+ * 4) Content blocks in specific layout containers
*********************************************************************/
/* Header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@@ -550,7 +589,8 @@ td {
background-color: #fff;
}
-/* Permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+/* Permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
+
#g-edit-permissions-form td {
background-image: none;
}
@@ -663,11 +703,11 @@ tr.g-error td.g-error,
}
tr.g-success {
- background-image: none;
+ background-image: none;
}
tr.g-success td.g-success {
- background-image: url('../images/ico-success.png');
+ background-image: url('../images/ico-success.png');
}
.g-warning,
@@ -742,17 +782,20 @@ form .g-error {
.g-last {
}
+/* ~browny~ */
.g-even {
- background-color: #fff;
+ background-color: #BAAD8B;
+ text-align: right;
}
/* ~browny~ */
.g-odd {
background-color: #EDE4D5;
+ text-align: left;
}
/** *******************************************************************
- * 7) Navigation and menus
+ * 7) Navigation and menus
*********************************************************************/
/* Login menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@@ -854,16 +897,7 @@ form .g-error {
}
/** *******************************************************************
- * 8) ThemeRoller Theme
- **********************************************************************/
-/* ~browny~ */
-
-/* ThemeRoller overrides ~~~~~~~~~~~~~~~~~ */
-
-@import "themeroller/ui.tabs.css";
-
-/** *******************************************************************
- * 9) jQuery and jQuery UI
+ * 8) jQuery and jQuery UI
*********************************************************************/
/* Generic block container ~~~~~~~~~~~~~~~ */
@@ -878,18 +912,19 @@ form .g-error {
}
/* Superfish menu overrides ~~~~~~~~~~~~~~ */
+
.sf-menu ul {
- width: 12em;
+ width: 12em;
}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
- left: 12em;
+ left: 12em;
}
ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
- left: 12em;
+ left: 12em;
}
/* ~browny~ */
@@ -900,13 +935,13 @@ ul.sf-menu li li li.sfHover ul {
/* ~browny~ */
.sf-menu li {
- background: #d3b07e url('../images/ui-bg_highlight-soft_45_d3b07e_1x100.png') 50% 50% repeat-x;
- text-shadow: 0px 1px 1px #fff;
+ background: #d3b07e url('../images/ui-bg_highlight-soft_45_d3b07e_1x100.png') 50% 50% repeat-x;
+ text-shadow: 0px 1px 1px #fff;
}
/* ~browny~ */
.sf-menu a {
- border-top: 1px solid #e0cbae;
+ border-top: 1px solid #e0cbae;
}
/* ~browny~ */
@@ -917,19 +952,11 @@ ul.sf-menu li li li.sfHover ul {
/* ~browny~ */
.sf-menu li:hover, .sf-menu li.sfHover,
.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
- background: #e0cbae;
+ background: #e0cbae;
}
/* jQuery UI Dialog ~~~~~~~~~~~~~~~~~~~~~~ */
-.ui-widget {
- font-family: 'Century gothic', Verdana, 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
-}
-
-.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
- font-family: 'Century gothic', Verdana, 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
-}
-
.ui-widget-overlay {
background: #000;
opacity: .7;
@@ -998,11 +1025,11 @@ button {
.g-progress-bar {
height: 1em;
width: 100%;
- margin-top: .5em;
+ margin: .5em 0;
display: inline-block;
}
-/* Status and validation messages ~~~~ */
+/* Status and validation messages ~~~~~~~~ */
.g-message-block {
background-position: .4em .3em;
@@ -1082,7 +1109,7 @@ div#g-action-status {
width: 40%;
}
-/* Dialogs and panels ~~~~~~~~~~~~~~~~~~ */
+/* Dialogs and panels ~~~~~~~~~~~~~~~~~~~~ */
#g-dialog {
text-align: left;
@@ -1101,7 +1128,7 @@ div#g-action-status {
padding: 1em;
}
-/* Inline layout ~~~~~~~~~~ */
+/* Inline layout ~~~~~~~~~~~~~~~~~~~~~~~~ */
.g-inline li {
float: left;
@@ -1113,328 +1140,13 @@ div#g-action-status {
margin-left: 0;
}
-/** *******************************************************************
- * 10) Right to left language styles
- *********************************************************************/
-.rtl {
- direction: rtl;
-}
-
-.rtl #g-header,
-.rtl #g-content,
-.rtl #g-sidebar,
-.rtl #g-footer,
-.rtl caption,
-.rtl th,
-.rtl #g-dialog,
-.rtl .g-context-menu li a,
-.rtl .g-message-box li,
-.rtl #g-site-status li {
- text-align: right;
-}
-
-.rtl .g-text-right {
- text-align: left;
-}
-
-.rtl .g-error,
-.rtl .g-info,
-.rtl .g-success,
-.rtl .g-warning,
-.rtl #g-add-photos-status .g-success,
-.rtl #g-add-photos-status .g-error {
- background-position: center right;
- padding-right: 30px !important;
-}
-
-.rtl form li.g-error,
-.rtl form li.g-info,
-.rtl form li.g-success,
-.rtl form li.g-warning {
- padding-right: 0 !important;
-}
-
-.rtl .g-left,
-.rtl .g-inline li,
-.rtl #g-content #g-album-grid .g-item,
-.rtl .sf-menu li,
-.rtl .g-breadcrumbs li,
-.rtl .g-paginator li,
-.rtl .g-buttonset li,
-.rtl .ui-icon-left .ui-icon,
-.rtl .g-short-form li,
-.rtl form ul ul li,
-.rtl input[type="submit"],
-.rtl input[type="reset"],
-.rtl input.checkbox,
-.rtl input[type=checkbox],
-.rtl input.radio,
-.rtl input[type=radio] {
- float: right;
-}
-
-.rtl .g-right,
-.rtl .ui-icon-right .ui-icon {
- float: left;
-}
-
-.rtl .g-inline li {
- margin-right: 1em;
-}
-
-.rtl .g-inline li.g-first {
- margin-right: 0;
-}
-
-/* ~browny~ */
-.rtl .g-breadcrumbs li {
- background: transparent url('../images/ico-separator-rtl.gif') no-repeat scroll right center;
- padding: .5em 18px .5em 8px;
-}
-
-.rtl .g-breadcrumbs .g-first {
- background: none;
- padding-right: 0;
-}
-
-.rtl input.checkbox {
- margin-left: .4em;
-}
-
-.rtl #g-add-comment {
- right: inherit;
- left: 0;
-}
-
-.rtl .ui-icon-left .ui-icon {
- margin-left: .2em;
-}
-
-.rtl .ui-icon-right .ui-icon {
- margin-right: .2em;
-}
-
-/* RTL Corner radius ~~~~~~~~~~~~~~~~~~~~~~ */
-.rtl .g-buttonset .ui-corner-tl {
- -moz-border-radius-topleft: 0;
- -webkit-border-top-left-radius: 0;
- border-top-left-radius: 0;
- -moz-border-radius-topright: 5px !important;
- -webkit-border-top-right-radius: 5px !important;
- border-top-right-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-tr {
- -moz-border-radius-topright: 0;
- -webkit-border-top-right-radius: 0;
- border-top-right-radius: 0;
- -moz-border-radius-topleft: 5px !important;
- -webkit-border-top-left-radius: 5px !important;
- border-top-left-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-bl {
- -moz-border-radius-bottomleft: 0;
- -webkit-border-bottom-left-radius: 0;
- border-bottom-left-radius: 0;
- -moz-border-radius-bottomright: 5px !important;
- -webkit-border-bottom-right-radius: 5px !important;
- border-bottom-right-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-br {
- -moz-border-radius-bottomright: 0;
- -webkit-border-bottom-right-radius: 0;
- border-bottom-right-radius: 0;
- -moz-border-radius-bottomleft: 5px !important;
- -webkit-border-bottom-left-radius: 5px !important;
- border-bottom-left-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-right,
-.rtl .ui-progressbar .ui-corner-right {
- -moz-border-radius-topright: 0;
- -webkit-border-top-right-radius: 0;
- border-top-right-radius: 0;
- -moz-border-radius-topleft: 5px !important;
- -webkit-border-top-left-radius: 5px !important;
- border-top-left-radius: 5px !important;
- -moz-border-radius-bottomright: 0;
- -webkit-border-bottom-right-radius: 0;
- border-bottom-right-radius: 0;
- -moz-border-radius-bottomleft: 5px !important;
- -webkit-border-bottom-left-radius: 5px !important;
- border-bottom-left-radius: 5px !important;
-}
-
-.rtl .g-buttonset .ui-corner-left,
-.rtl .ui-progressbar .ui-corner-left {
- -moz-border-radius-topleft: 0;
- -webkit-border-top-left-radius: 0;
- border-top-left-radius: 0;
- -moz-border-radius-topright: 5px !important;
- -webkit-border-top-right-radius: 5px !important;
- border-top-right-radius: 5px !important;
- -moz-border-radius-bottomleft: 0;
- -webkit-border-bottom-left-radius: 0;
- border-bottom-left-radius: 0;
- -moz-border-radius-bottomright: 5px !important;
- -webkit-border-bottom-right-radius: 5px !important;
- border-bottom-right-radius: 5px !important;
-}
-
-/* RTL Superfish ~~~~~~~~~~~~~~~~~~~~~~~~~ */
-
-.rtl .sf-menu a {
- border-left: none;
- border-right:1px solid #fff;
-}
-
-.rtl .sf-menu a.sf-with-ul {
- padding-left: 2.25em;
- padding-right: 1em;
-}
-
-.rtl .sf-sub-indicator {
- left: .75em !important;
- right: auto;
- background: url('../../../lib/superfish/images/arrows-ffffff-rtl.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
-}
-.rtl a > .sf-sub-indicator { /* give all except IE6 the correct values */
- top: .8em;
- background-position: -10px -100px; /* use translucent arrow for modern browsers*/
-}
-/* apply hovers to modern browsers */
-.rtl a:focus > .sf-sub-indicator,
-.rtl a:hover > .sf-sub-indicator,
-.rtl a:active > .sf-sub-indicator,
-.rtl li:hover > a > .sf-sub-indicator,
-.rtl li.sfHover > a > .sf-sub-indicator {
- background-position: 0 -100px; /* arrow hovers for modern browsers*/
-}
-
-/* point right for anchors in subs */
-.rtl .sf-menu ul .sf-sub-indicator { background-position: 0 0; }
-.rtl .sf-menu ul a > .sf-sub-indicator { background-position: -10px 0; }
-/* apply hovers to modern browsers */
-.rtl .sf-menu ul a:focus > .sf-sub-indicator,
-.rtl .sf-menu ul a:hover > .sf-sub-indicator,
-.rtl .sf-menu ul a:active > .sf-sub-indicator,
-.rtl .sf-menu ul li:hover > a > .sf-sub-indicator,
-.rtl .sf-menu ul li.sfHover > a > .sf-sub-indicator {
- background-position: 0 0; /* arrow hovers for modern browsers*/
-}
-
-.rtl .sf-menu li:hover ul,
-.rtl .sf-menu li.sfHover ul {
- right: 0;
- left: auto;
-}
-
-.rtl ul.sf-menu li li:hover ul,
-.rtl ul.sf-menu li li.sfHover ul {
- right: 12em; /* match ul width */
- left: auto;
-}
-.rtl ul.sf-menu li li li:hover ul,
-.rtl ul.sf-menu li li li.sfHover ul {
- right: 12em; /* match ul width */
- left: auto;
-}
-
-/*** shadows for all but IE6 ***/
-.rtl .sf-shadow ul {
- background: url('../../../lib/superfish/images/shadow.png') no-repeat bottom left;
- padding: 0 0 9px 8px;
- border-top-right-radius: 0;
- border-bottom-left-radius: 0;
- -moz-border-radius-topright: 0;
- -moz-border-radius-bottomleft: 0;
- -webkit-border-top-right-radius: 0;
- -webkit-border-bottom-left-radius: 0;
- -moz-border-radius-topleft: 17px;
- -moz-border-radius-bottomright: 17px;
- -webkit-border-top-left-radius: 17px;
- -webkit-border-bottom-right-radius: 17px;
- border-top-left-radius: 17px;
- border-bottom-right-radius: 17px;
-}
-
-/* RTL ThemeRoller ~~~~~~~~~~~~~~~~~~~~~~~~ */
-
-.rtl .ui-dialog .ui-dialog-titlebar {
- padding: 0.5em 1em 0.3em 0.3em;
-}
-
-.rtl .ui-dialog .ui-dialog-title {
- float: right;
-}
-
-.rtl .ui-dialog .ui-dialog-titlebar-close {
- left: 0.3em;
- right: auto;
-}
-
-
-/* RTL paginator ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-
-.rtl .g-paginator .g-info {
- width: 35%;
-}
-
-.rtl .g-paginator .g-text-right {
- margin-left: 0;
-}
-
-.rtl .g-paginator .ui-icon-seek-end {
- background-position: -80px -160px;
-}
-
-.rtl .g-paginator .ui-icon-seek-next {
- background-position: -48px -160px;
-}
-
-.rtl .g-paginator .ui-icon-seek-prev {
- background-position: -32px -160px;
-}
-
-.rtl .g-paginator .ui-icon-seek-first {
- background-position: -64px -160px;
-}
-
-.rtl #g-header #g-login-menu,
-.rtl #g-header #g-quick-search-form {
- clear: left;
- float: left;
-}
-
-.rtl #g-header #g-login-menu li {
- margin-left: 0;
- padding-left: 0;
- padding-right: 1.2em;
-}
-
-.rtl #g-site-menu {
- left: auto;
- right: 240px;
-}
-
-.rtl #g-view-menu #g-slideshow-link {
- background-image: url('../images/ico-view-slideshow-rtl.png');
-}
-
-.rtl #g-sidebar .g-block-content {
- padding-right: 1em;
- padding-left: 0;
-}
-
-.rtl #g-footer #g-credits li {
- padding-left: 1.2em !important;
- padding-right: 0;
+/* Autocomplete ~~~~~~~~~~~~~~~~~~~~~~~~~ */
+.ac_loading {
+ background: white url('../images/loading-small.gif') right center no-repeat !important;
}
/** *******************************************************************
- * 11) More Browny (Extra overrides for better Browny look)
+ * 9) More Browny (Extra overrides for better Browny look)
*********************************************************************/
/* ~browny~ */
@@ -1461,10 +1173,6 @@ div#g-action-status {
background-color: #FAFAEB !important;
}
-.rtl .uploadifyQueueItem .cancel {
- float: left;
-}
-
.uploadifyQueue {
margin-top: 1em;
}
@@ -1497,10 +1205,6 @@ div#g-action-status {
margin-bottom: inherit;
}
-#g-user-profile #g-comment-detail .g-author {
- font-family: Cursive, Serif;
-}
-
#g-user-profile #g-comment-detail .g-author a {
float: left;
position: relative;
@@ -1520,35 +1224,6 @@ div#g-action-status {
margin-bottom: .5em;
}
-.rtl #g-user-profile .g-block h2 {
- padding-right: .8em;
- padding-left: auto;
-}
-
-.rtl #g-user-profile .g-avatar {
- float: right;
- right: 0em;
- left: auto;
- margin: 0em .6em 0em 0em;
-}
-
-.rtl #g-user-profile #g-comment-detail .g-author a {
- float: right;
- right: 0em;
- left: auto;
- margin-left: .6em;
- margin-right: 0em;
-}
-
-.rtl #g-user-profile #g-comment-detail div {
- margin-right: 5em;
- margin-left: 0em;
-}
-
-.rtl #g-user-profile h1 {
- margin: 1.25em 4.4em 2em 0em;
-}
-
/* Comments ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-content #g-comments .g-avatar {
@@ -1557,12 +1232,6 @@ div#g-action-status {
margin-left: 0;
}
-.rtl #g-content #g-comments .g-avatar {
- float: right;
- margin-left: .4em;
- margin-right: 0;
-}
-
/* Organize ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-organize {
@@ -1582,12 +1251,6 @@ div#g-action-status {
#g-exif-data {
font-size: .85em !important;
}
-.g-odd {
- background: #BAAD8B !important;
-}
-.g-even {
- background: #EDE4D5 !important;
-}
/* 3rd Party Modules ~~~~~~~~~~~~~~~~~~~~~ */
@@ -1602,11 +1265,6 @@ table.calendar td:hover {
background: #EDE4D5 !important;
}
-.rtl #g-calendar-grid {
- padding-right: 8px;
- padding-left: 0px;
-}
-
#g-view-menu #g-calendarview-link {
background-image: url('../images/ico-view-calendarview.png') !important;
}
@@ -1620,3 +1278,10 @@ table.calendar td:hover {
#g-view-menu #g-download-album-link {
background-image: url('../images/ico-view-downloadalbum.png');
}
+
+/* comment_block */
+.g-odd .g-thumbnail,
+.g-even .g-thumbnail {
+ margin-top: 3px;
+ margin-bottom: 3px;
+}
\ No newline at end of file
diff --git a/3.1/themes/browny_wind/js/ui.init.js b/3.1/themes/browny_wind/js/ui.init.js
index 2c67bf3a..3ee3e32e 100644
--- a/3.1/themes/browny_wind/js/ui.init.js
+++ b/3.1/themes/browny_wind/js/ui.init.js
@@ -82,7 +82,7 @@ $(document).ready(function() {
} else {
var sib_height = $(this).prev().height();
}
- if ($.browser.msie && $.browser.version >= 8) {
+ if ($.browser.msie && $.browser.version <= 8) {
sib_height = sib_height + 1;
}
$(this).css("height", sib_height);
diff --git a/3.1/themes/browny_wind/theme.info b/3.1/themes/browny_wind/theme.info
index 85a25c8f..8ec9f1a2 100644
--- a/3.1/themes/browny_wind/theme.info
+++ b/3.1/themes/browny_wind/theme.info
@@ -1,10 +1,10 @@
name = "Browny Wind"
description = "The default Wind theme with a browny style."
version = 1
-author = "Ma'moun M. Diraneyya"
+author = "Mamouneyya"
site = 1
admin = 0
-author_name = ""
+author_name = "Ma'moun Diraneyya"
author_url = ""
info_url = "http://codex.gallery2.org/Gallery3:Themes:browny_wind"
-discuss_url = "http://gallery.menalto.com/forum_theme_browny_wind"
+discuss_url = "http://gallery.menalto.com/node/95007"
diff --git a/3.1/themes/browny_wind/views/no_sidebar.html.php b/3.1/themes/browny_wind/views/no_sidebar.html.php
index a9eb0e3e..58c57256 100644
--- a/3.1/themes/browny_wind/views/no_sidebar.html.php
+++ b/3.1/themes/browny_wind/views/no_sidebar.html.php
@@ -1,6 +1,11 @@
- = t("No active sidebar blocks.") ?>
- ">= t("Add blocks") ?>
+
+ if (block_manager::get_active("site_sidebar")): ?>
+ = t("Active sidebar blocks have no content.") ?>
+ else: ?>
+ = t("No active sidebar blocks.") ?>
+ endif ?>
+ ">= t("configure blocks") ?>
diff --git a/3.1/themes/browny_wind/views/page.html.php b/3.1/themes/browny_wind/views/page.html.php
index 5e4040bd..f0ee5b5f 100644
--- a/3.1/themes/browny_wind/views/page.html.php
+++ b/3.1/themes/browny_wind/views/page.html.php
@@ -1,50 +1,43 @@
-
+html_attributes() ?> xml:lang="en" lang="en">
+ $theme->start_combining("script,css") ?>
if ($page_title): ?>
= $page_title ?>
else: ?>
if ($theme->item()): ?>
- if ($theme->item()->is_album()): ?>
- = t("Browse Album :: %album_title", array("album_title" => $theme->item()->title)) ?>
- elseif ($theme->item()->is_photo()): ?>
- = t("Photo :: %photo_title", array("photo_title" => $theme->item()->title)) ?>
- else: ?>
- = t("Movie :: %movie_title", array("movie_title" => $theme->item()->title)) ?>
- endif ?>
+ = $theme->item()->title ?>
elseif ($theme->tag()): ?>
- = t("Browse Tag :: %tag_title", array("tag_title" => $theme->tag()->name)) ?>
+ = t("Photos tagged with %tag_title", array("tag_title" => $theme->tag()->name)) ?>
else: /* Not an item, not a tag, no page_title specified. Help! */ ?>
- = t("Gallery") ?>
+ = item::root()->title ?>
endif ?>
endif ?>
-
" type="image/x-icon" />
- = $theme->css("yui/reset-fonts-grids.css") ?>
- = $theme->css("superfish/css/superfish.css") ?>
- = $theme->css("themeroller/ui.base.css") ?>
- = $theme->css("screen.css") ?>
-
+
"
+ type="image/x-icon" />
+
" />
if ($theme->page_type == "collection"): ?>
if ($thumb_proportion != 1): ?>
$new_width = round($thumb_proportion * 213) ?>
$new_height = round($thumb_proportion * 240) ?>
-
+
endif ?>
endif ?>
+
+ = $theme->script("json2-min.js") ?>
= $theme->script("jquery.js") ?>
= $theme->script("jquery.form.js") ?>
= $theme->script("jquery-ui.js") ?>
@@ -57,9 +50,8 @@
= $theme->script("gallery.dialog.js") ?>
= $theme->script("superfish/js/superfish.js") ?>
= $theme->script("jquery.localscroll.js") ?>
- = $theme->script("ui.init.js") ?>
- /* These are page specific, but if we put them before $theme->head() they get combined */ ?>
+ /* These are page specific but they get combined */ ?>
if ($theme->page_subtype == "photo"): ?>
= $theme->script("jquery.scrollTo.js") ?>
= $theme->script("gallery.show_full_size.js") ?>
@@ -68,6 +60,26 @@
endif ?>
= $theme->head() ?>
+
+ /* Theme specific CSS/JS goes last so that it can override module CSS/JS */ ?>
+ = $theme->script("ui.init.js") ?>
+ = $theme->css("yui/reset-fonts-grids.css") ?>
+ = $theme->css("superfish/css/superfish.css") ?>
+ = $theme->css("themeroller/ui.base.css") ?>
+ = $theme->css("screen.css") ?>
+ if (locales::is_rtl()): ?>
+ = $theme->css("screen-rtl.css") ?>
+ endif; ?>
+
+
+
+ = $theme->get_combined("css") ?>
+
+
+ = $theme->get_combined("script") ?>
body_attributes() ?>>
@@ -80,7 +92,7 @@
= $header_text ?>
else: ?>
for_html_attr() ?>">
- for_html_attr() ?>" src="= $theme->url("images/logo.png") ?>" />
+ for_html_attr() ?>" src="= url::file("lib/images/logo.png") ?>" />
endif ?>
= $theme->user_menu() ?>