WD Instagram Feed – Instagram Gallery - Version 1.3.23

Version Description

Fixed: Lightbox next/previous buttons do not display.

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 WD Instagram Feed – Instagram Gallery
Version 1.3.23
Comparing to
See all releases

Code changes from version 1.3.22 to 1.3.23

frontend/models/WDIModelGalleryBox.php CHANGED
@@ -1,23 +1,10 @@
1
  <?php
2
 
3
  class WDIModelGalleryBox {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
- ////////////////////////////////////////////////////////////////////////////////////////
14
- // Constructor & Destructor //
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
  public function __construct() {
17
  }
18
- ////////////////////////////////////////////////////////////////////////////////////////
19
- // Public Methods //
20
- ////////////////////////////////////////////////////////////////////////////////////////
21
  public function get_theme_row_data($id) {
22
  global $wpdb;
23
  if ($id) {
@@ -26,14 +13,17 @@ class WDIModelGalleryBox {
26
  else {
27
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . WDI_THEME_TABLE .' WHERE default_theme="%d"', 1));
28
  }
29
-
 
30
  return WDILibrary::objectToArray($row);
31
  }
32
- public function get_feed_row_data($id) {
33
- global $wpdb;
34
- $row = $this->check_settings($wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . WDI_FEED_TABLE . ' WHERE id="%d"', $id)));
35
- return WDILibrary::objectToArray($row);
36
- }
 
 
37
  public function get_option_row_data() {
38
  global $wpdb;
39
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdi_option WHERE id="%d"', 1));
@@ -77,12 +67,6 @@ public function get_feed_row_data($id) {
77
  return $row;
78
  }
79
 
80
- ////////////////////////////////////////////////////////////////////////////////////////
81
- // Getters & Setters //
82
- ////////////////////////////////////////////////////////////////////////////////////////
83
- ////////////////////////////////////////////////////////////////////////////////////////
84
- // Private Methods //
85
- ////////////////////////////////////////////////////////////////////////////////////////
86
  private function check_settings($settings){
87
  $settings = WDILibrary::objectToArray($settings);
88
  if(isset($settings['feed_users']) && count(explode(',', $settings['feed_users']))>1){
@@ -122,7 +106,6 @@ public function get_feed_row_data($id) {
122
  $settings['popup_enable_info'] = '0';
123
  }
124
 
125
-
126
  if(isset($settings['show_likes']) && $settings['show_likes'] == '1'){
127
  $settings['show_likes'] = '0';
128
  }
@@ -137,7 +120,4 @@ public function get_feed_row_data($id) {
137
  $settings = WDILibrary::arrayToObject($settings);
138
  return $settings;
139
  }
140
- ////////////////////////////////////////////////////////////////////////////////////////
141
- // Listeners //
142
- ////////////////////////////////////////////////////////////////////////////////////////
143
  }
1
  <?php
2
 
3
  class WDIModelGalleryBox {
4
+
 
 
 
 
 
 
 
 
 
 
 
5
  public function __construct() {
6
  }
7
+
 
 
8
  public function get_theme_row_data($id) {
9
  global $wpdb;
10
  if ($id) {
13
  else {
14
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . WDI_THEME_TABLE .' WHERE default_theme="%d"', 1));
15
  }
16
+ // Replaces old DB value with new one.
17
+ $row->lightbox_rl_btn_style = 'tenweb-i-chevron';
18
  return WDILibrary::objectToArray($row);
19
  }
20
+
21
+ public function get_feed_row_data($id) {
22
+ global $wpdb;
23
+ $row = $this->check_settings($wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . WDI_FEED_TABLE . ' WHERE id="%d"', $id)));
24
+ return WDILibrary::objectToArray($row);
25
+ }
26
+
27
  public function get_option_row_data() {
28
  global $wpdb;
29
  $row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdi_option WHERE id="%d"', 1));
67
  return $row;
68
  }
69
 
 
 
 
 
 
 
70
  private function check_settings($settings){
71
  $settings = WDILibrary::objectToArray($settings);
72
  if(isset($settings['feed_users']) && count(explode(',', $settings['feed_users']))>1){
106
  $settings['popup_enable_info'] = '0';
107
  }
108
 
 
109
  if(isset($settings['show_likes']) && $settings['show_likes'] == '1'){
110
  $settings['show_likes'] = '0';
111
  }
120
  $settings = WDILibrary::arrayToObject($settings);
121
  return $settings;
122
  }
 
 
 
123
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram
4
  Requires at least: 3.9
5
  Requires PHP: 5.2
6
  Tested up to: 5.3
7
- Stable tag: 1.3.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -506,6 +506,9 @@ Please make sure you don't have any important information before you proceed.
506
 
507
  == Changelog ==
508
 
 
 
 
509
  = 1.3.22 =
510
  Improved: Do not use Font Awesome.
511
  Fixed: Do not show username(no user) for hashtags.
4
  Requires at least: 3.9
5
  Requires PHP: 5.2
6
  Tested up to: 5.3
7
+ Stable tag: 1.3.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
506
 
507
  == Changelog ==
508
 
509
+ = 1.3.23 =
510
+ Fixed: Lightbox next/previous buttons do not display.
511
+
512
  = 1.3.22 =
513
  Improved: Do not use Font Awesome.
514
  Fixed: Do not show username(no user) for hashtags.
templates/default-themes.php CHANGED
@@ -50,9 +50,6 @@ function wdi_get_default_themes(){
50
  'users_text_font_size' => '18px',
51
  'users_text_font_style' => 'normal',
52
  'user_description_font_size' =>'14px',
53
-
54
-
55
-
56
  'lightbox_overlay_bg_color'=>'#25292c',
57
  'lightbox_overlay_bg_transparent'=>'90',
58
  'lightbox_bg_color'=>'#ffffff',
50
  'users_text_font_size' => '18px',
51
  'users_text_font_style' => 'normal',
52
  'user_description_font_size' =>'14px',
 
 
 
53
  'lightbox_overlay_bg_color'=>'#25292c',
54
  'lightbox_overlay_bg_transparent'=>'90',
55
  'lightbox_bg_color'=>'#ffffff',
wd-instagram-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: 10Web Social Photo Feed
4
  Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin
5
  Description: 10Web Social Photo Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
6
- Version: 1.3.22
7
  Author: 10Web
8
  Author URI: https://10Web.io/plugins/?utm_source=instagram_feed&utm_medium=free_plugin
9
  License: GPLv2 or later
@@ -21,7 +21,7 @@ define("WDI_META", "_" . WDI_VAR . "_meta");
21
  //define("wdi",'wdi');
22
  define('WDI_FEED_TABLE', 'wdi_feeds');
23
  define('WDI_THEME_TABLE', 'wdi_themes');
24
- define('WDI_VERSION', '1.3.22');
25
  define('WD_WDI_PREFIX', 'wdi' );
26
  define('WDI_IS_PRO', false );
27
  $wdi_minify = ( isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true" ) ? FALSE : TRUE;
3
  Plugin Name: 10Web Social Photo Feed
4
  Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin
5
  Description: 10Web Social Photo Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
6
+ Version: 1.3.23
7
  Author: 10Web
8
  Author URI: https://10Web.io/plugins/?utm_source=instagram_feed&utm_medium=free_plugin
9
  License: GPLv2 or later
21
  //define("wdi",'wdi');
22
  define('WDI_FEED_TABLE', 'wdi_feeds');
23
  define('WDI_THEME_TABLE', 'wdi_themes');
24
+ define('WDI_VERSION', '1.3.23');
25
  define('WD_WDI_PREFIX', 'wdi' );
26
  define('WDI_IS_PRO', false );
27
  $wdi_minify = ( isset($_GET['wdi_no_minify']) && $_GET['wdi_no_minify'] == "true" ) ? FALSE : TRUE;
wd/includes/subscribe.php CHANGED
@@ -90,7 +90,7 @@ class TenWebLibSubscribe
90
  add_option($wd_options->prefix . "_subscribe_done", "1", '', 'no');
91
  }
92
 
93
- //wp_safe_redirect($wd_options->after_subscribe);
94
  }
95
  }
96
  }
90
  add_option($wd_options->prefix . "_subscribe_done", "1", '', 'no');
91
  }
92
 
93
+ wp_safe_redirect($wd_options->after_subscribe);
94
  }
95
  }
96
  }