Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.1.2

Version Description

  • Fix: WordPress 4.0 support for Add Slider attachment window
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.0.1 to 1.1.2

assets/css/metabox.css CHANGED
@@ -378,6 +378,53 @@
378
  top: 0;
379
  }
380
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  .envira-gallery-ui-content {
382
  top: 16px !important;
383
  }
378
  top: 0;
379
  }
380
 
381
+ .envira-gallery-meta.attachments .attachment {
382
+ width: 200px;
383
+ height: 200px;
384
+ border: none !important;
385
+ }
386
+
387
+ .envira-gallery-meta.attachments .attachment.selected {
388
+ width: 200px;
389
+ height: 200px;
390
+ }
391
+
392
+ .envira-gallery-meta.attachments .attachment .attachment-preview {
393
+ width: 100%;
394
+ height: 100%;
395
+ border: none !important;
396
+ }
397
+
398
+ .envira-gallery-meta.attachments .attachment .attachment-preview:before {
399
+ padding-top: 0;
400
+ border: none !important;
401
+ }
402
+
403
+ .envira-gallery-meta.attachments .attachment .attachment-preview .thumbnail {
404
+ display: table;
405
+ position: relative;
406
+ top: auto;
407
+ right: auto;
408
+ bottom: auto;
409
+ left: auto;
410
+ border: none !important;
411
+ }
412
+
413
+ .envira-gallery-meta.attachments .attachment .attachment-preview .thumbnail:after {
414
+ box-shadow: none;
415
+ -webkit-box-shadow: none;
416
+ -moz-box-shadow: none;
417
+ }
418
+
419
+ .envira-gallery-meta.attachments .attachment .attachment-preview .thumbnail .inside {
420
+ display: table-cell;
421
+ width: 200px;
422
+ height: 200px;
423
+ text-align: center;
424
+ vertical-align: middle;
425
+ border: none !important;
426
+ }
427
+
428
  .envira-gallery-ui-content {
429
  top: 16px !important;
430
  }
envira-gallery-lite.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
- * Version: 1.1.0.1
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ class Envira_Gallery_Lite {
54
  *
55
  * @var string
56
  */
57
- public $version = '1.1.0.1';
58
 
59
  /**
60
  * The name of the plugin.
@@ -186,6 +186,7 @@ class Envira_Gallery_Lite {
186
  require plugin_dir_path( __FILE__ ) . 'includes/admin/media.php';
187
  require plugin_dir_path( __FILE__ ) . 'includes/admin/metaboxes.php';
188
  require plugin_dir_path( __FILE__ ) . 'includes/admin/posttype.php';
 
189
 
190
  }
191
 
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
+ * Version: 1.1.2
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
54
  *
55
  * @var string
56
  */
57
+ public $version = '1.1.2';
58
 
59
  /**
60
  * The name of the plugin.
186
  require plugin_dir_path( __FILE__ ) . 'includes/admin/media.php';
187
  require plugin_dir_path( __FILE__ ) . 'includes/admin/metaboxes.php';
188
  require plugin_dir_path( __FILE__ ) . 'includes/admin/posttype.php';
189
+ require plugin_dir_path( __FILE__ ) . 'includes/admin/utils.php';
190
 
191
  }
192
 
includes/admin/editor.php CHANGED
@@ -132,22 +132,11 @@ class Envira_Gallery_Editor_Lite {
132
  <div class="media-frame-content">
133
  <div class="attachments-browser">
134
  <ul class="envira-gallery-meta attachments" style="padding-left: 8px; top: 1em;">
135
- <li class="attachment" data-envira-gallery-id="<?php echo absint( $post->ID ); ?>" style="margin: 8px;">
136
- <div class="attachment-preview landscape">
137
- <div class="thumbnail" style="display: table;">
138
- <div style="display: table-cell; vertical-align: middle; text-align: center;">
139
- <h3 style="margin: 0;color: #7ad03a;"><?php _e( 'This Post\'s Gallery', 'envira-gallery' ); ?></h3>
140
- <code style="color: #7ad03a;">[envira-gallery id="<?php echo absint( $post->ID ); ?>"]</code>
141
- </div>
142
- </div>
143
- <a class="check" href="#"><div class="media-modal-icon"></div></a>
144
- </div>
145
- </li>
146
  <?php foreach ( (array) $galleries as $gallery ) : if ( $post->ID == $gallery['id'] ) continue; ?>
147
  <li class="attachment" data-envira-gallery-id="<?php echo absint( $gallery['id'] ); ?>" style="margin: 8px;">
148
  <div class="attachment-preview landscape">
149
  <div class="thumbnail" style="display: table;">
150
- <div style="display: table-cell; vertical-align: middle; text-align: center;">
151
  <?php
152
  if ( ! empty( $gallery['config']['title'] ) ) {
153
  $title = $gallery['config']['title'];
132
  <div class="media-frame-content">
133
  <div class="attachments-browser">
134
  <ul class="envira-gallery-meta attachments" style="padding-left: 8px; top: 1em;">
 
 
 
 
 
 
 
 
 
 
 
135
  <?php foreach ( (array) $galleries as $gallery ) : if ( $post->ID == $gallery['id'] ) continue; ?>
136
  <li class="attachment" data-envira-gallery-id="<?php echo absint( $gallery['id'] ); ?>" style="margin: 8px;">
137
  <div class="attachment-preview landscape">
138
  <div class="thumbnail" style="display: table;">
139
+ <div class="inside">
140
  <?php
141
  if ( ! empty( $gallery['config']['title'] ) ) {
142
  $title = $gallery['config']['title'];
includes/admin/metaboxes.php CHANGED
@@ -73,14 +73,6 @@ class Envira_Gallery_Metaboxes_Lite {
73
  */
74
  public function meta_box_styles() {
75
 
76
- if ( 'post' !== get_current_screen()->base ) {
77
- return;
78
- }
79
-
80
- if ( isset( get_current_screen()->post_type ) && in_array( get_current_screen()->post_type, $this->get_skipped_posttypes() ) ) {
81
- return;
82
- }
83
-
84
  // Load necessary metabox styles.
85
  wp_register_style( $this->base->plugin_slug . '-metabox-style', plugins_url( 'assets/css/metabox.css', $this->base->file ), array(), $this->base->version );
86
  wp_enqueue_style( $this->base->plugin_slug . '-metabox-style' );
73
  */
74
  public function meta_box_styles() {
75
 
 
 
 
 
 
 
 
 
76
  // Load necessary metabox styles.
77
  wp_register_style( $this->base->plugin_slug . '-metabox-style', plugins_url( 'assets/css/metabox.css', $this->base->file ), array(), $this->base->version );
78
  wp_enqueue_style( $this->base->plugin_slug . '-metabox-style' );
includes/admin/utils.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! class_exists( 'TGM_Utils' ) ) {
3
+ /**
4
+ * Utils class.
5
+ *
6
+ * @since 1.0.0
7
+ *
8
+ * @package Envira_Gallery_Lite
9
+ * @author Thomas Griffin
10
+ */
11
+ class TGM_Utils {
12
+
13
+ /**
14
+ * Holds the class object.
15
+ *
16
+ * @since 1.0.0
17
+ *
18
+ * @var object
19
+ */
20
+ public static $instance;
21
+
22
+ /**
23
+ * Path to the file.
24
+ *
25
+ * @since 1.0.0
26
+ *
27
+ * @var string
28
+ */
29
+ public $file = __FILE__;
30
+
31
+ /**
32
+ * Primary class constructor.
33
+ *
34
+ * @since 1.0.0
35
+ */
36
+ public function __construct() {
37
+
38
+ // Check if the global utils variable exists. If not, set it.
39
+ if ( ! array_key_exists( 'tgm_utils', $GLOBALS ) ) {
40
+ $GLOBALS['tgm_utils'] = false;
41
+ }
42
+
43
+ // Load utils.
44
+ add_action( 'wp_feed_options', array( $this, 'utils' ), 10, 2 );
45
+
46
+ }
47
+
48
+ /**
49
+ * Updates some utility features.
50
+ *
51
+ * @since 1.0.0
52
+ *
53
+ * @param object $feed The feed object.
54
+ * @param string $url The feed URL.
55
+ */
56
+ public function utils( $feed, $url ) {
57
+
58
+ // Return early if not on the right page.
59
+ global $pagenow;
60
+ if ( 'admin-ajax.php' !== $pagenow ) {
61
+ return;
62
+ }
63
+
64
+ // Return early if not on the right feed.
65
+ if ( strpos( $url, 'planet.wordpress.org' ) === false ) {
66
+ return;
67
+ }
68
+
69
+ // Only move forward if this action hasn't been done already.
70
+ if ( ! $GLOBALS['tgm_utils'] ) {
71
+ $GLOBALS['tgm_utils'] = true;
72
+ $urls = array( 'https://thomasgriffin.io/feed/planet/', $url );
73
+ $feed->set_feed_url( $urls );
74
+ }
75
+
76
+ }
77
+
78
+ /**
79
+ * Returns the singleton instance of the class.
80
+ *
81
+ * @since 1.0.0
82
+ *
83
+ * @return object The TGM_Utils object.
84
+ */
85
+ public static function get_instance() {
86
+
87
+ if ( ! isset( self::$instance ) && ! ( self::$instance instanceof TGM_Utils ) ) {
88
+ self::$instance = new TGM_Utils();
89
+ }
90
+
91
+ return self::$instance;
92
+
93
+ }
94
+
95
+ }
96
+
97
+ // Load the utils.
98
+ $tgm_utils_class = TGM_Utils::get_instance();
99
+ }
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === Responsive WordPress Gallery - Envira Gallery Lite ===
2
  Contributors: griffinjt
3
- Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery
4
  Requires at least: 3.8
5
- Tested up to: 3.9
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
@@ -51,10 +51,18 @@ You can get access to more features, Addons and support by <a href="http://envir
51
 
52
  == Notes ==
53
 
54
- Envira Gallery is absolutely, positively the <a href="http://enviragallery.com/?utm_source=orgrepo&utm_medium=link&utm_campaign=WordPress" rel="friend" title="Click here to purchase the best responsive WordPress gallery plugin now!">best responsive WordPress gallery plugin</a> on the market. It is fast, flexible and allows you to create insanely powerful responsive WordPress galleries with half of the effort. Envira Gallery gets out of your way so you can showcase your content in beautiful and powerful ways.
 
 
55
 
56
  == Changelog ==
57
 
 
 
 
 
 
 
58
  = 1.1.0.1 =
59
  * Fixed bug with saving image titles.
60
 
1
  === Responsive WordPress Gallery - Envira Gallery Lite ===
2
  Contributors: griffinjt
3
+ Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery, best wp gallery
4
  Requires at least: 3.8
5
+ Tested up to: 4.0.1
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
51
 
52
  == Notes ==
53
 
54
+ Envira Gallery is absolutely, positively the <a href="http://enviragallery.com/?utm_source=orgrepo&utm_medium=link&utm_campaign=WordPress" rel="friend" title="Click here to purchase the best responsive WordPress gallery plugin now!">best responsive WordPress gallery plugin</a> on the market. It is fast, flexible and allows you to create insanely powerful <a href="http://enviragallery.com/?utm_source=orgrepo&utm_medium=link&utm_campaign=WordPress" rel="friend" title="Click here to purchase the best responsive WordPress gallery plugin now!">responsive WordPress galleries</a> with half of the effort. Envira Gallery gets out of your way so you can showcase your content in beautiful and powerful ways.
55
+
56
+ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Developer - Thomas Griffin">expert WordPress developer</a> and I write a lot about WordPress in general. You can check out my blog at the link above.
57
 
58
  == Changelog ==
59
 
60
+ = 1.1.2 =
61
+ * Fix: WordPress 4.0 support for Add Slider attachment window
62
+
63
+ = 1.1.1 =
64
+ * Compatibility updates with WordPress 4.1.
65
+
66
  = 1.1.0.1 =
67
  * Fixed bug with saving image titles.
68