Instagram Gallery - Version 2.5.2

Version Description

  • Fix. Instagram Feed Gallery admin menu capability
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 Instagram Gallery
Version 2.5.2
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.2

Files changed (3) hide show
  1. includes/settings.php +47 -51
  2. insta-gallery.php +2 -2
  3. readme.txt +8 -1
includes/settings.php CHANGED
@@ -20,56 +20,52 @@ if (!class_exists('QLIGG_Settings')) {
20
  function settings_header() {
21
 
22
  global $submenu;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
 
 
24
  if (isset($submenu[QLIGG_DOMAIN])) {
25
- $welcome_menu_items = $submenu[QLIGG_DOMAIN];
26
- }
27
-
28
- if (is_array($welcome_menu_items)) {
29
- ?>
30
- <div class="qlwrap wrap about-wrap full-width-layout">
31
-
32
- <h1><?php echo esc_html(QLIGG_PLUGIN_NAME); ?></h1>
33
-
34
- <p class="about-text"><?php printf(esc_html__('Thanks for using %s! We will do our absolute best to support you and fix all the issues.', 'insta-gallery'), QLIGG_PLUGIN_NAME); ?></p>
35
-
36
- <p class="about-text">
37
- <?php printf('<a href="%s" target="_blank">%s</a>', QLIGG_DEMO_URL, esc_html__('Check out our demo', 'insta-gallery')); ?></a>
38
- </p>
39
-
40
- <?php printf('<a href="%s" target="_blank"><div style="
41
- background: #006bff url(%s) no-repeat;
42
- background-position: top center;
43
- background-size: 130px 130px;
44
- color: #fff;
45
- font-size: 14px;
46
- text-align: center;
47
- font-weight: 600;
48
- margin: 5px 0 0;
49
- padding-top: 120px;
50
- height: 40px;
51
- display: inline-block;
52
- width: 140px;
53
- position: absolute;
54
- top: 0;
55
- right: 0;
56
- " class="ql-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=qligg_admin', plugins_url('/assets/img/quadlayers.jpg', QLIGG_PLUGIN_FILE), esc_html__('QuadLayers', 'insta-gallery')); ?>
57
-
58
- </div>
59
- <div class="qlwrap wrap about-wrap full-width-layout">
60
- <h2 class="nav-tab-wrapper">
61
- <?php
62
- foreach ($welcome_menu_items as $welcome_menu_item) {
63
- if (strpos($welcome_menu_item[2], '.php') !== false)
64
- continue;
65
- ?>
66
- <a href="<?php echo admin_url('admin.php?page=' . esc_attr($welcome_menu_item[2])); ?>" class="nav-tab<?php echo (isset($_GET['page']) && $_GET['page'] == $welcome_menu_item[2]) ? ' nav-tab-active' : ''; ?>"><?php echo wp_kses_post($welcome_menu_item[0]); ?></a>
67
  <?php
68
- }
69
- ?>
70
- </h2>
71
- </div>
72
- <?php
 
 
 
 
 
 
 
73
  }
74
  }
75
 
@@ -136,10 +132,10 @@ if (!class_exists('QLIGG_Settings')) {
136
  }
137
 
138
  function add_menu() {
139
- add_menu_page('Instagram Gallery', 'Instagram Gallery', 'manage_options', QLIGG_DOMAIN, array($this, 'settings_welcome'), 'dashicons-camera');
140
- add_submenu_page(QLIGG_DOMAIN, esc_html__('Welcome', 'insta-gallery'), esc_html__('Welcome', 'insta-gallery'), 'manage_options', QLIGG_DOMAIN, array($this, 'settings_welcome'));
141
- add_submenu_page(QLIGG_DOMAIN, esc_html__('Account', 'insta-gallery'), esc_html__('Account', 'insta-gallery'), 'edit_posts', QLIGG_DOMAIN . '_token', array($this, 'settings_token'));
142
- add_submenu_page(QLIGG_DOMAIN, esc_html__('Feeds', 'insta-gallery'), esc_html__('Feeds', 'insta-gallery'), 'edit_posts', QLIGG_DOMAIN . '_feeds', array($this, 'settings_feeds'));
143
  add_submenu_page(QLIGG_DOMAIN, esc_html__('Premium', 'insta-gallery'), sprintf('<i class="dashicons dashicons-awards"></i> %s', esc_html__('Premium', 'insta-gallery')), 'edit_posts', QLIGG_DOMAIN . '_premium', array($this, 'settings_premium'));
144
  }
145
 
20
  function settings_header() {
21
 
22
  global $submenu;
23
+ ?>
24
+ <div class="wrap about-wrap full-width-layout qlwrap">
25
+
26
+ <h1><?php echo esc_html(QLIGG_PLUGIN_NAME); ?></h1>
27
+
28
+ <p class="about-text"><?php printf(esc_html__('Thanks for using %s! We will do our absolute best to support you and fix all the issues.', 'insta-gallery'), QLIGG_PLUGIN_NAME); ?></p>
29
+
30
+ <p class="about-text">
31
+ <?php printf('<a href="%s" target="_blank">%s</a>', QLIGG_DEMO_URL, esc_html__('Check out our demo', 'wp-whatsapp-chat')); ?></a>
32
+ </p>
33
+
34
+ <?php printf('<a href="%s" target="_blank"><div style="
35
+ background: #006bff url(%s) no-repeat;
36
+ background-position: top center;
37
+ background-size: 130px 130px;
38
+ color: #fff;
39
+ font-size: 14px;
40
+ text-align: center;
41
+ font-weight: 600;
42
+ margin: 5px 0 0;
43
+ padding-top: 120px;
44
+ height: 40px;
45
+ display: inline-block;
46
+ width: 140px;
47
+ " class="wp-badge">%s</div></a>', 'https://quadlayers.com/?utm_source=qligg_admin', plugins_url('/assets/img/quadlayers.jpg', QLIGG_PLUGIN_FILE), esc_html__('QuadLayers', 'wp-whatsapp-chat')); ?>
48
 
49
+ </div>
50
+ <?php
51
  if (isset($submenu[QLIGG_DOMAIN])) {
52
+ if (is_array($submenu[QLIGG_DOMAIN])) {
53
+ ?>
54
+ <div class="wrap about-wrap full-width-layout qlwrap">
55
+ <h2 class="nav-tab-wrapper">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  <?php
57
+ foreach ($submenu[QLIGG_DOMAIN] as $tab) {
58
+ if (strpos($tab[2], '.php') !== false)
59
+ continue;
60
+ ?>
61
+ <a href="<?php echo admin_url('admin.php?page=' . esc_attr($tab[2])); ?>" class="nav-tab<?php echo (isset($_GET['page']) && $_GET['page'] == $tab[2]) ? ' nav-tab-active' : ''; ?>"><?php echo $tab[0]; ?></a>
62
+ <?php
63
+ }
64
+ ?>
65
+ </h2>
66
+ </div>
67
+ <?php
68
+ }
69
  }
70
  }
71
 
132
  }
133
 
134
  function add_menu() {
135
+ add_menu_page(QLIGG_PLUGIN_NAME, str_replace('Feed ', '', QLIGG_PLUGIN_NAME), 'edit_posts', QLIGG_DOMAIN, array($this, 'settings_welcome'), 'dashicons-camera');
136
+ add_submenu_page(QLIGG_DOMAIN, esc_html__('Welcome', 'insta-gallery'), esc_html__('Welcome', 'insta-gallery'), 'edit_posts', QLIGG_DOMAIN, array($this, 'settings_welcome'));
137
+ add_submenu_page(QLIGG_DOMAIN, esc_html__('Account', 'insta-gallery'), esc_html__('Account', 'insta-gallery'), 'manage_options', QLIGG_DOMAIN . '_token', array($this, 'settings_token'));
138
+ add_submenu_page(QLIGG_DOMAIN, esc_html__('Feeds', 'insta-gallery'), esc_html__('Feeds', 'insta-gallery'), 'manage_options', QLIGG_DOMAIN . '_feeds', array($this, 'settings_feeds'));
139
  add_submenu_page(QLIGG_DOMAIN, esc_html__('Premium', 'insta-gallery'), sprintf('<i class="dashicons dashicons-awards"></i> %s', esc_html__('Premium', 'insta-gallery')), 'edit_posts', QLIGG_DOMAIN . '_premium', array($this, 'settings_premium'));
140
  }
141
 
insta-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Instagram Feed Gallery
4
  * Plugin URI: https://quadlayers.com/portfolio/instagram-gallery/
5
  * Description: Display beautifull and responsive galleries on your website from your Instagram feed account.
6
- * Version: 2.5.0
7
  * Author: Quadlayers
8
  * Author URI: https://quadlayers.com
9
  * License: GPL-2.0+
@@ -18,7 +18,7 @@ if (!defined('QLIGG_PLUGIN_NAME')) {
18
  define('QLIGG_PLUGIN_NAME', 'Instagram Feed Gallery');
19
  }
20
  if (!defined('QLIGG_PLUGIN_VERSION')) {
21
- define('QLIGG_PLUGIN_VERSION', '2.5.0');
22
  }
23
  if (!defined('QLIGG_PLUGIN_FILE')) {
24
  define('QLIGG_PLUGIN_FILE', __FILE__);
3
  * Plugin Name: Instagram Feed Gallery
4
  * Plugin URI: https://quadlayers.com/portfolio/instagram-gallery/
5
  * Description: Display beautifull and responsive galleries on your website from your Instagram feed account.
6
+ * Version: 2.5.2
7
  * Author: Quadlayers
8
  * Author URI: https://quadlayers.com
9
  * License: GPL-2.0+
18
  define('QLIGG_PLUGIN_NAME', 'Instagram Feed Gallery');
19
  }
20
  if (!defined('QLIGG_PLUGIN_VERSION')) {
21
+ define('QLIGG_PLUGIN_VERSION', '2.5.2');
22
  }
23
  if (!defined('QLIGG_PLUGIN_FILE')) {
24
  define('QLIGG_PLUGIN_FILE', __FILE__);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/portfolio/instagram-gallery/
4
  Tags: instagram, instagram feed, instagram widget, instagram gallery, instagram pictures, gallery widget, pictures, carousel slider, image gallery, image slider
5
  Requires at least: 4.6
6
  Tested up to: 5.2.2
7
- Stable tag: 2.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,6 +91,13 @@ There may be some other plugins(like: fancybox, elementor) which also uses image
91
 
92
  == Changelog ==
93
 
 
 
 
 
 
 
 
94
  = 2.5.0 =
95
  * Fix. Instagram Feed Gallery CSS optimized
96
  * Fix. Instagram Feed Gallery new option to reset feed cache
4
  Tags: instagram, instagram feed, instagram widget, instagram gallery, instagram pictures, gallery widget, pictures, carousel slider, image gallery, image slider
5
  Requires at least: 4.6
6
  Tested up to: 5.2.2
7
+ Stable tag: 2.5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 2.5.2 =
95
+ * Fix. Instagram Feed Gallery admin menu capability
96
+
97
+ = 2.5.1 =
98
+ * Fix. Instagram Feed Gallery renamed in admin menu
99
+ * Fix. Instagram Feed Gallery RTL to support for admin badge
100
+
101
  = 2.5.0 =
102
  * Fix. Instagram Feed Gallery CSS optimized
103
  * Fix. Instagram Feed Gallery new option to reset feed cache