aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-12-23 05:22:19 +0000
committerrvelices <rv-github@modusoptimus.com>2010-12-23 05:22:19 +0000
commit732eb6bfba05cd1969fb5898e5bc50c978b2ff0b (patch)
treeb22ddf13d45e1515f81c7406f7248d68b62df238 /admin
parent2a49b76ae10cb7bcef5145f3a96151e0d62848a9 (diff)
removed unused files / code / css; shorter code
git-svn-id: http://piwigo.org/svn/trunk@8247 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions.php19
-rw-r--r--admin/themes/default/menubar.css1
-rw-r--r--admin/themes/default/picture.css122
-rw-r--r--admin/themes/default/theme.css1
4 files changed, 18 insertions, 125 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index a82cf5265..44d32f5dd 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -2054,4 +2054,21 @@ function get_fckb_tag_ids($raw_tags)
return $tag_ids;
}
-?>
+
+/** returns the argument_ids array with new sequenced keys based on related
+ * names. Sequence is not case sensitive.
+ * Warning: By definition, this function breaks original keys
+ */
+function order_by_name($element_ids,$name)
+{
+ $ordered_element_ids = array();
+ foreach ($element_ids as $k_id => $element_id)
+ {
+ $key = strtolower($name[$element_id]) .'-'. $name[$element_id] .'-'. $k_id;
+ $ordered_element_ids[$key] = $element_id;
+ }
+ ksort($ordered_element_ids);
+ return $ordered_element_ids;
+}
+
+?> \ No newline at end of file
diff --git a/admin/themes/default/menubar.css b/admin/themes/default/menubar.css
deleted file mode 100644
index c0c51db29..000000000
--- a/admin/themes/default/menubar.css
+++ /dev/null
@@ -1 +0,0 @@
-/* menubar.css is no longer used in admin because menubar is always active in admin so it is layout */ \ No newline at end of file
diff --git a/admin/themes/default/picture.css b/admin/themes/default/picture.css
deleted file mode 100644
index 13b0ca6ef..000000000
--- a/admin/themes/default/picture.css
+++ /dev/null
@@ -1,122 +0,0 @@
-
-/* Maybe some cleanup has to be done there TODO */
-#imageHeaderBar {
- padding-top: 2px;
- padding-bottom: 2px;
- margin-top: 4px;
- overflow: hidden;
- width: 100%;
-}
-
-#imageHeaderBar .browsePath {
- float: left;
- margin-left: 10px;
-}
-
-#imageHeaderBar .imageNumber {
- float: right;
- margin-right: 10px;
-}
-
-#imageHeaderBar H2 {
- text-align: center;
- padding: 0;
- clear: both;
-}
-
-#imageToolBar {
- text-align: center;
- position: relative;
- clear: both;
- margin-bottom: 4px;
- padding: 0;
-}
-
-#imageToolBar {
- height: 28px;
-}
-#imageToolBar A, #imageToolBar IMG {
- display: block;
- border: none;
- margin: 0; padding: 0;
-}
-#imageToolBar A { width: 48px; }
-#imageToolBar IMG { margin: 2px auto; }
-#imageToolBar .randomButtons A { float: left; }
-#imageToolBar .navButtons A { float: right; }
-
-#theImage {
- clear: left;
-}
-
-#theImage>IMG {
- display: block;
- margin: 0 auto;
-}
-
-#theImage IMG {
- border-width: 3px;
- border-style: solid;
-}
-
-.navThumb {
- margin-top: 2px;
-}
-#thumbPrev {
- float: left;
-}
-
-#thumbNext {
- float: right;
-}
-
-#linkPrev {
- margin-right: 10px;
- margin-left: 5px;
-}
-
-#linkNext {
- margin-right: 5px;
- margin-left: 10px;
-}
-
-TABLE.infoTable .value {
- text-align: left;
-}
-
-TABLE.infoTable .label {
- font-weight: bold;
- text-align: right;
- padding-right: 0.5em;
-}
-
-TABLE.infoTable TD.value UL {
- margin: 0;
- padding: 0 0 0 1.5em;
- list-style-type: square;
-}
-
-#comments {
- text-align: left;
-}
-
-#comments .comment {
- margin: 1em 0;
-}
-
-#comments P {
- margin: 0 0.5em 0 1em;
-}
-
-#comments .author {
- font-weight: bold;
-}
-
-#thePicturePage #comments BLOCKQUOTE {
- margin: 0.5em 1em 1em 4em;
-}
-
-#comments P.userCommentDelete {
- float: right;
- margin: 0 0.5em 0 0;
-}
diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css
index 3283e29a5..1bf492124 100644
--- a/admin/themes/default/theme.css
+++ b/admin/themes/default/theme.css
@@ -1,6 +1,5 @@
/* template css */
-/*@import "menubar.css";*/
@import "content.css";
@import "thumbnails.css";
@import "default-layout.css";