From 5cd34160af2fa1d4499d98aaa807712995082a20 Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Wed, 8 Sep 2010 21:34:16 -0700
Subject: [PATCH] Remove unnecessary g2_import CSS (which we were loading on
every page -- doh!) and replace it with a new "enumeration" list style in the
admin_wind CSS. Reshuffle the page a little bit to make it look cleaner.
---
modules/g2_import/css/g2_import.css | 30 -----
modules/g2_import/helpers/g2_import_theme.php | 28 -----
.../g2_import/views/admin_g2_import.html.php | 113 +++++++++---------
themes/admin_wind/css/screen.css | 5 +
4 files changed, 63 insertions(+), 113 deletions(-)
delete mode 100644 modules/g2_import/css/g2_import.css
delete mode 100644 modules/g2_import/helpers/g2_import_theme.php
diff --git a/modules/g2_import/css/g2_import.css b/modules/g2_import/css/g2_import.css
deleted file mode 100644
index d53564d7..00000000
--- a/modules/g2_import/css/g2_import.css
+++ /dev/null
@@ -1,30 +0,0 @@
-#g-admin-g2-import-notes {
- padding-bottom: 20px;
-}
-
-#g-admin-g2-import-details {
- padding-top: 20px;
-}
-
-#g-admin-g2-import-details .g-warning {
- margin-top: 4px;
-}
-
-#g-admin-g2-import-details .g-info {
- padding: 2px;
- border: 1px solid #999;
- margin-bottom: 10px;
-}
-
-#g-admin-g2-import-notes p,
-#g-admin-g2-import-details .g-info p {
- padding: 0;
- margin: 0;
-}
-
-#g-admin-g2-import-notes ul li,
-#g-admin-g2-import .g-info ul li {
- padding-left: 0;
- margin-left: 20px;
- list-style-type: disc;
-}
diff --git a/modules/g2_import/helpers/g2_import_theme.php b/modules/g2_import/helpers/g2_import_theme.php
deleted file mode 100644
index 788253f9..00000000
--- a/modules/g2_import/helpers/g2_import_theme.php
+++ /dev/null
@@ -1,28 +0,0 @@
-css("g2_import.css");
- }
-
- static function admin_head($theme) {
- $theme->css("g2_import.css");
- }
-}
\ No newline at end of file
diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php
index 7a6f88ce..a1ee53f6 100644
--- a/modules/g2_import/views/admin_g2_import.html.php
+++ b/modules/g2_import/views/admin_g2_import.html.php
@@ -6,27 +6,10 @@
if (g2_import::is_initialized()): ?>
= t("Import") ?>
@@ -51,37 +34,35 @@
"url" => html::mark_clean(url::site("admin/theme_options")))) ?>
endif ?>
-
-
-
+
= t("Your Gallery 2 has the following importable data in it") ?>
-
-
- -
- = t2("1 user", "%count users", $g2_stats["users"]) ?>
-
- -
- = t2("1 group", "%count groups", $g2_stats["groups"]) ?>
-
- -
- = t2("1 album", "%count albums", $g2_stats["albums"]) ?>
-
- -
- = t2("1 photo", "%count photos", $g2_stats["photos"]) ?>
-
- -
- = t2("1 movie", "%count movies", $g2_stats["movies"]) ?>
-
- -
- = t2("1 comment", "%count comments", $g2_stats["comments"]) ?>
-
- -
- = t2("1 tagged photo/movie/album",
- "%count tagged photos/movies/albums", $g2_stats["tags"]) ?>
-
-
-
+
+ -
+ = t2("1 user", "%count users", $g2_stats["users"]) ?>
+
+ -
+ = t2("1 group", "%count groups", $g2_stats["groups"]) ?>
+
+ -
+ = t2("1 album", "%count albums", $g2_stats["albums"]) ?>
+
+ -
+ = t2("1 photo", "%count photos", $g2_stats["photos"]) ?>
+
+ -
+ = t2("1 movie", "%count movies", $g2_stats["movies"]) ?>
+
+ -
+ = t2("1 comment", "%count comments", $g2_stats["comments"]) ?>
+
+ -
+ = t2("1 tagged photo/movie/album",
+ "%count tagged photos/movies/albums", $g2_stats["tags"]) ?>
+
+
+
+
-
-
= t("Migrating from Gallery 2") ?>
-
- = t("Once your migration is complete, put this block at the top of your gallery2/.htaccess file and all Gallery 2 urls will be redirected to Gallery 3") ?>
-
+
+
+
= t("Notes") ?>
+
+ -
+ = t("Gallery 3 does not support per-user / per-item permissions. Review permissions after your import is done.") ?>
+
+ -
+ = t("The only supported file formats are JPG, PNG and GIF, FLV and MP4. Other formats will be skipped.") ?>
+
+ -
+ = t("Deactivating the notification, search and exif modules during your import will make it go faster.") ?>
+
+ -
+ = t("The eAccelerator and XCache PHP performance extensions are known to cause issues. If you're using either of those and are having problems, please disable them while you do your import. Add the following lines:
%lines
to gallery3/.htaccess and remove them when the import is done.", array("lines" => "\n\n php_value eaccelerator.enable 0\n php_value xcache.cacher off\n php_value xcache.optimizer off\n\n")) ?>
+
+
+
+
-
diff --git a/themes/admin_wind/css/screen.css b/themes/admin_wind/css/screen.css
index eda79b97..0d891149 100644
--- a/themes/admin_wind/css/screen.css
+++ b/themes/admin_wind/css/screen.css
@@ -222,6 +222,11 @@ th {
background-color: #fff;
}
+ul.enumeration li {
+ list-style-type: disc;
+ margin-left: 20px;
+}
+
/*** ******************************************************************
* 3) Page layout containers
*********************************************************************/