From 5040adebb5c4e1e491fbb6c3b98783f5809020a3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 22 Apr 2011 16:30:37 -0700 Subject: Totally revamp the G2 Import UI to make it sexxxy. Fixes #1683. --- modules/g2_import/views/admin_g2_import.html.php | 162 ++++++++++++++--------- 1 file changed, 98 insertions(+), 64 deletions(-) (limited to 'modules/g2_import/views') diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php index cb13363a..20b243d5 100644 --- a/modules/g2_import/views/admin_g2_import.html.php +++ b/modules/g2_import/views/admin_g2_import.html.php @@ -5,20 +5,43 @@

-
- -
- -
- -
-

-
    -
  • - $version)) ?> + +
    +
      +
    • + +
    • +
    • + +
    • +
    • + +
    • +
    +
    + +
    +
    + +
      +
    • + $g2_version)) ?>
    • -
    • +
    • Using the same value will speed up your import.", array("g2_pixels" => $g2_sizes["thumb"]["size"], "g3_pixels" => $thumb_size, @@ -27,73 +50,84 @@ -
    • +
    • Using the same value will speed up your import.", - array("g2_pixels" => $g2_sizes["resize"]["size"], - "g3_pixels" => $resize_size, - "url" => html::mark_clean(url::site("admin/theme_options")))) ?> + array("g2_pixels" => $g2_sizes["resize"]["size"], + "g3_pixels" => $resize_size, + "url" => html::mark_clean(url::site("admin/theme_options")))) ?>
    • -
    • - -

      - , - , - , - , - , - , - -

      +
    • + + $t[0], "t1" => $t[1], "t2" => $t[2], + "t3" => $t[3], "t4" => $t[4], "t5" => $t[5])) ?>
    • -
    + +
  • + + $t[0], "t1" => $t[1], "t2" => $t[2], + "t3" => $t[3], "t4" => $t[4], "t5" => $t[5])) ?> +
  • + +

">

+
+
+
    +
  • + Review permissions!") ?> +
  • +
  • + +
  • +
  • +

    + +

    -
    -
    -

    -
      -
    • - Review permissions after your import is done.") ?> -
    • -
    • - -
    • -
    • - notification, search and exif modules during your import will make it go faster.") ?> -
    • -
    • - %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")) ?> -
    • -
    -
    -
    - -
    -
    -

    -

    - -

    - - -
    - + RewriteRule ^(.*)$ [QSA,L,R=301] + </IfModule> + +
  • +
-- cgit v1.2.3 From 07c266b973cd65d44bb769c19d86b1245ed2c9e5 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 23 Apr 2011 07:20:58 -0700 Subject: Enable autocomplete for the embed path. Fixes #1687. --- modules/g2_import/controllers/admin_g2_import.php | 12 ++++++++++++ modules/g2_import/views/admin_g2_import.html.php | 13 +++++++++++++ 2 files changed, 25 insertions(+) (limited to 'modules/g2_import/views') diff --git a/modules/g2_import/controllers/admin_g2_import.php b/modules/g2_import/controllers/admin_g2_import.php index 55a75a3b..cf68d911 100644 --- a/modules/g2_import/controllers/admin_g2_import.php +++ b/modules/g2_import/controllers/admin_g2_import.php @@ -94,6 +94,18 @@ class Admin_g2_import_Controller extends Admin_Controller { print $view; } + public function autocomplete() { + $directories = array(); + $path_prefix = Input::instance()->get("q"); + foreach (glob("{$path_prefix}*") as $file) { + if (is_dir($file) && !is_link($file)) { + $directories[] = $file; + } + } + + print implode("\n", $directories); + } + private function _get_import_form() { $embed_path = module::get_var("g2_import", "embed_path", ""); $form = new Forge( diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php index 20b243d5..1094524f 100644 --- a/modules/g2_import/views/admin_g2_import.html.php +++ b/modules/g2_import/views/admin_g2_import.html.php @@ -1,4 +1,17 @@ +css("jquery.autocomplete.css") ?> +script("jquery.autocomplete.js") ?> + +

-- cgit v1.2.3 From bb23e28035293174f935345178f32638c09d0421 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Sat, 23 Apr 2011 10:28:39 -0400 Subject: Remove enumeration unordered list class, it's no longer needed. --- modules/g2_import/views/admin_g2_import.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/g2_import/views') diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php index 20b243d5..fb2b58c9 100644 --- a/modules/g2_import/views/admin_g2_import.html.php +++ b/modules/g2_import/views/admin_g2_import.html.php @@ -36,7 +36,7 @@

-
    +
    • $g2_version)) ?>
    • -- cgit v1.2.3