Easy Image Gallery - Version 1.0.5

Version Description

  • Tweak: The plugin's options page has been moved to settings -> media
  • Tweak: Renamed the 'thumbnail_image_size' filter name to be 'easy_image_gallery_thumbnail_image_size' so it's unique to the plugin
  • Tweak: Renamed the 'linked_image_size' filter name to be 'easy_image_gallery_linked_image_size' so it's unique to the plugin
Download this release

Release Info

Developer sumobi
Plugin Icon 128x128 Easy Image Gallery
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

easy-image-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easy Image Gallery
4
  Plugin URI: http://sumobi.com/shop/easy-image-gallery/
5
  Description: An easy to use image gallery with drag & drop re-ordering
6
- Version: 1.0.4
7
  Author: Andrew Munro, Sumobi
8
  Author URI: http://sumobi.com
9
  License: GPL-2.0+
@@ -54,14 +54,13 @@ if ( !class_exists( 'Easy_Image_Gallery' ) ) {
54
  define( 'EASY_IMAGE_GALLERY_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
55
 
56
  if ( ! defined( 'EASY_IMAGE_GALLERY_VERSION' ) )
57
- define( 'EASY_IMAGE_GALLERY_VERSION', '1.0.4' );
58
 
59
  if ( ! defined( 'EASY_IMAGE_GALLERY_INCLUDES' ) )
60
  define( 'EASY_IMAGE_GALLERY_INCLUDES', EASY_IMAGE_GALLERY_DIR . trailingslashit( 'includes' ) );
61
 
62
  }
63
 
64
-
65
  /**
66
  * Loads the initial files needed by the plugin.
67
  *
@@ -76,8 +75,6 @@ if ( !class_exists( 'Easy_Image_Gallery' ) ) {
76
 
77
  }
78
 
79
-
80
-
81
  }
82
  }
83
 
3
  Plugin Name: Easy Image Gallery
4
  Plugin URI: http://sumobi.com/shop/easy-image-gallery/
5
  Description: An easy to use image gallery with drag & drop re-ordering
6
+ Version: 1.0.5
7
  Author: Andrew Munro, Sumobi
8
  Author URI: http://sumobi.com
9
  License: GPL-2.0+
54
  define( 'EASY_IMAGE_GALLERY_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
55
 
56
  if ( ! defined( 'EASY_IMAGE_GALLERY_VERSION' ) )
57
+ define( 'EASY_IMAGE_GALLERY_VERSION', '1.0.5' );
58
 
59
  if ( ! defined( 'EASY_IMAGE_GALLERY_INCLUDES' ) )
60
  define( 'EASY_IMAGE_GALLERY_INCLUDES', EASY_IMAGE_GALLERY_DIR . trailingslashit( 'includes' ) );
61
 
62
  }
63
 
 
64
  /**
65
  * Loads the initial files needed by the plugin.
66
  *
75
 
76
  }
77
 
 
 
78
  }
79
  }
80
 
includes/admin-page.php CHANGED
@@ -1,42 +1,4 @@
1
  <?php
2
- /**
3
- * Admin options
4
- *
5
- * @since 1.0
6
- */
7
- function easy_image_gallery_menu() {
8
- add_plugins_page( __( 'Easy Image Gallery', 'easy-image-gallery' ), __( 'Easy Image Gallery', 'easy-image-gallery' ), 'manage_options', 'easy-image-gallery', 'easy_image_gallery_admin_page' );
9
- }
10
- add_action( 'admin_menu', 'easy_image_gallery_menu' );
11
-
12
-
13
- /**
14
- * Admin page
15
- *
16
- * @since 1.0
17
- */
18
-
19
- function easy_image_gallery_admin_page() { ?>
20
- <div class="wrap">
21
- <?php screen_icon( 'plugins' ); ?>
22
- <h2><?php _e( 'Easy Image Gallery', 'easy-image-gallery' ); ?></h2>
23
-
24
- <form action="options.php" method="POST">
25
-
26
- <?php settings_errors(); ?>
27
-
28
- <?php settings_fields( 'my-settings-group' ); ?>
29
-
30
- <?php do_settings_sections( 'easy-image-gallery-settings' ); ?>
31
-
32
- <?php submit_button(); ?>
33
- </form>
34
-
35
- </div>
36
- <?php
37
- }
38
-
39
-
40
  /**
41
  * Admin init
42
  *
@@ -44,14 +6,16 @@ function easy_image_gallery_admin_page() { ?>
44
  */
45
  function easy_image_gallery_admin_init() {
46
 
47
- register_setting( 'my-settings-group', 'easy-image-gallery', 'easy_image_gallery_settings_sanitize' );
 
48
 
49
  // sections
50
  add_settings_section( 'general', __( 'General', 'easy-image-gallery' ), '', 'easy-image-gallery-settings' );
51
 
52
  // settings
53
- add_settings_field( 'lightbox', __( 'Lightbox', 'easy-image-gallery' ), 'lightbox_callback', 'easy-image-gallery-settings', 'general' );
54
- add_settings_field( 'post-types', __( 'Post Types', 'easy-image-gallery' ), 'post_types_callback', 'easy-image-gallery-settings', 'general' );
 
55
 
56
  }
57
  add_action( 'admin_init', 'easy_image_gallery_admin_init' );
@@ -113,7 +77,6 @@ function post_types_callback() {
113
 
114
  }
115
 
116
-
117
  /**
118
  * Sanitization
119
  *
@@ -141,11 +104,10 @@ function easy_image_gallery_settings_sanitize( $input ) {
141
 
142
 
143
 
144
- return apply_filters( 'sandbox_theme_validate_input_examples', $output, $input );
145
 
146
  }
147
 
148
-
149
  /**
150
  * Action Links
151
  *
@@ -157,4 +119,4 @@ function easy_image_gallery_plugin_action_links( $links ) {
157
  array_unshift( $links, $settings_link );
158
 
159
  return $links;
160
- }
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /**
3
  * Admin init
4
  *
6
  */
7
  function easy_image_gallery_admin_init() {
8
 
9
+
10
+ register_setting( 'media', 'easy-image-gallery', 'easy_image_gallery_settings_sanitize' );
11
 
12
  // sections
13
  add_settings_section( 'general', __( 'General', 'easy-image-gallery' ), '', 'easy-image-gallery-settings' );
14
 
15
  // settings
16
+ add_settings_field( 'header', '<h3 class="title">' . __( 'Easy Image Gallery', 'easy-image-gallery' ) . '</h3>', '', 'media', 'default' );
17
+ add_settings_field( 'lightbox', __( 'Lightbox', 'easy-image-gallery' ), 'lightbox_callback', 'media', 'default' );
18
+ add_settings_field( 'post-types', __( 'Post Types', 'easy-image-gallery' ), 'post_types_callback', 'media', 'default' );
19
 
20
  }
21
  add_action( 'admin_init', 'easy_image_gallery_admin_init' );
77
 
78
  }
79
 
 
80
  /**
81
  * Sanitization
82
  *
104
 
105
 
106
 
107
+ return apply_filters( 'easy_image_gallery_settings_sanitize', $output, $input );
108
 
109
  }
110
 
 
111
  /**
112
  * Action Links
113
  *
119
  array_unshift( $links, $settings_link );
120
 
121
  return $links;
122
+ }
includes/template-functions.php CHANGED
@@ -318,10 +318,10 @@ function easy_image_gallery() {
318
  $classes = array( 'popup' );
319
 
320
  // get original image
321
- $image_link = wp_get_attachment_image_src( $attachment_id, apply_filters( 'linked_image_size', 'large' ) );
322
  $image_link = $image_link[0];
323
 
324
- $image = wp_get_attachment_image( $attachment_id, apply_filters( 'thumbnail_image_size', 'thumbnail' ), '', array( 'alt' => trim( strip_tags( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) ) ) ) );
325
 
326
  $image_caption = get_post( $attachment_id )->post_excerpt ? get_post( $attachment_id )->post_excerpt : '';
327
 
318
  $classes = array( 'popup' );
319
 
320
  // get original image
321
+ $image_link = wp_get_attachment_image_src( $attachment_id, apply_filters( 'easy_image_gallery_linked_image_size', 'large' ) );
322
  $image_link = $image_link[0];
323
 
324
+ $image = wp_get_attachment_image( $attachment_id, apply_filters( 'easy_image_gallery_thumbnail_image_size', 'thumbnail' ), '', array( 'alt' => trim( strip_tags( get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ) ) ) ) );
325
 
326
  $image_caption = get_post( $attachment_id )->post_excerpt ? get_post( $attachment_id )->post_excerpt : '';
327
 
languages/default.mo DELETED
Binary file
languages/{default.po → easy-image-gallery.pot} RENAMED
@@ -1,40 +1,42 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Easy Image Gallery\n"
4
- "POT-Creation-Date: 2013-07-05 20:00+1200\n"
5
- "PO-Revision-Date: 2013-07-05 20:00+1200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Sumobi <andrew@sumobi.com>\n"
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.5\n"
12
- "X-Poedit-KeywordsList: __;_e;esc_attr_e\n"
13
  "X-Poedit-Basepath: .\n"
 
14
  "X-Poedit-SearchPath-0: ..\n"
15
 
16
- #: ../includes/admin-page.php:8 ../includes/admin-page.php:22
17
- msgid "Easy Image Gallery"
18
  msgstr ""
19
 
20
- #: ../includes/admin-page.php:50
21
- msgid "General"
22
  msgstr ""
23
 
24
- #: ../includes/admin-page.php:53
25
  msgid "Lightbox"
26
  msgstr ""
27
 
28
- #: ../includes/admin-page.php:54
29
  msgid "Post Types"
30
  msgstr ""
31
 
32
- #: ../includes/admin-page.php:81
33
  #, php-format
34
  msgid "Please note: fancyBox requires a %s for commercial use"
35
  msgstr ""
36
 
37
- #: ../includes/admin-page.php:156
38
  msgid "Settings"
39
  msgstr ""
40
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Easy Image Gallery\n"
4
+ "POT-Creation-Date: 2014-01-31 14:44+1200\n"
5
+ "PO-Revision-Date: 2014-01-31 14:44+1200\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Sumobi <andrew@sumobi.com>\n"
8
+ "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.3\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../includes/admin-page.php:13
19
+ msgid "General"
20
  msgstr ""
21
 
22
+ #: ../includes/admin-page.php:16
23
+ msgid "Easy Image Gallery"
24
  msgstr ""
25
 
26
+ #: ../includes/admin-page.php:17
27
  msgid "Lightbox"
28
  msgstr ""
29
 
30
+ #: ../includes/admin-page.php:18
31
  msgid "Post Types"
32
  msgstr ""
33
 
34
+ #: ../includes/admin-page.php:45
35
  #, php-format
36
  msgid "Please note: fancyBox requires a %s for commercial use"
37
  msgstr ""
38
 
39
+ #: ../includes/admin-page.php:118
40
  msgid "Settings"
41
  msgstr ""
42
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: sumobi
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EFUPMPEZPGW7L
4
  Tags: image gallery, image, galleries, simple, easy, sumobi
5
  Requires at least: 3.5
6
- Tested up to: 3.6
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -33,7 +33,7 @@ Features:
33
 
34
  = Usage =
35
 
36
- Galleries are automatically appended to the bottom of your post/page unless you use the shortcode below. Using the shortcode will give you finer control over placement within the content area.
37
 
38
  = Note =
39
 
@@ -78,7 +78,7 @@ If you use the template tag above, you will need remove the default content filt
78
 
79
  1. Upload the entire `easy-image-gallery` folder to the `/wp-content/plugins/` directory, or just upload the ZIP package via 'Plugins > Add New > Upload' in your WP Admin
80
  1. Activate Easy Image Gallery from the 'Plugins' page in WordPress
81
- 1. Configure the plugin's settings from plugins > Easy Image Gallery
82
  1. Create a gallery on any post or page from the added 'Image Gallery' metabox.
83
 
84
  == Screenshots ==
@@ -92,13 +92,31 @@ If you use the template tag above, you will need remove the default content filt
92
 
93
  == Frequently Asked Questions ==
94
 
 
 
 
 
95
  = How can I add another Lightbox script to the plugin? =
96
 
97
  [Read This](http://sumobi.com/how-to-add-any-lightbox-script-to-the-easy-image-gallery-plugin "How to add another lightbox script to Easy Image Gallery")
98
 
 
 
 
 
 
 
 
 
99
 
100
  == Changelog ==
101
 
 
 
 
 
 
 
102
  = 1.0.4 =
103
 
104
  * Fix: Images now use the image's caption rather than title field
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EFUPMPEZPGW7L
4
  Tags: image gallery, image, galleries, simple, easy, sumobi
5
  Requires at least: 3.5
6
+ Tested up to: 3.9 alpha
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
33
 
34
  = Usage =
35
 
36
+ Galleries are automatically appended to the bottom of your post/page unless you use the shortcode below. Using the shortcode will give you finer control over placement within the content area. Plugin settings are located under Settings -> Media
37
 
38
  = Note =
39
 
78
 
79
  1. Upload the entire `easy-image-gallery` folder to the `/wp-content/plugins/` directory, or just upload the ZIP package via 'Plugins > Add New > Upload' in your WP Admin
80
  1. Activate Easy Image Gallery from the 'Plugins' page in WordPress
81
+ 1. Configure the plugin's settings from Settings -> Media
82
  1. Create a gallery on any post or page from the added 'Image Gallery' metabox.
83
 
84
  == Screenshots ==
92
 
93
  == Frequently Asked Questions ==
94
 
95
+ = Where are the plugin's settings? =
96
+
97
+ In your WordPress admin under Settings -> Media
98
+
99
  = How can I add another Lightbox script to the plugin? =
100
 
101
  [Read This](http://sumobi.com/how-to-add-any-lightbox-script-to-the-easy-image-gallery-plugin "How to add another lightbox script to Easy Image Gallery")
102
 
103
+ = How can I use a different thumbnail size for each post type? =
104
+
105
+ [Read This](http://sumobi.com/different-thumbnail-sizes-for-each-post-type-with-easy-image-gallery/ "Different thumbnail sizes for each post type with Easy Image Gallery")
106
+
107
+ == Upgrade Notice ==
108
+
109
+ = 1.1.5 =
110
+ Plugin settings now located under Settings -> Media, plus some minor tweaks to filter names
111
 
112
  == Changelog ==
113
 
114
+ = 1.0.5 =
115
+
116
+ * Tweak: The plugin's options page has been moved to settings -> media
117
+ * Tweak: Renamed the 'thumbnail_image_size' filter name to be 'easy_image_gallery_thumbnail_image_size' so it's unique to the plugin
118
+ * Tweak: Renamed the 'linked_image_size' filter name to be 'easy_image_gallery_linked_image_size' so it's unique to the plugin
119
+
120
  = 1.0.4 =
121
 
122
  * Fix: Images now use the image's caption rather than title field