WD Instagram Feed – Instagram Gallery - Version 1.0.5

Version Description

Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

css/notices.css CHANGED
@@ -6,6 +6,21 @@
6
  padding: 10px 40px 10px 125px;
7
  position: relative;
8
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  .wd-admin-notice a {
10
  color: #10738B;
11
  }
@@ -37,6 +52,12 @@
37
  font-weight: normal;
38
  margin: 5px 0;
39
  }
 
 
 
 
 
 
40
  .wd-notice-body:after {
41
  clear: both;
42
  content: "";
@@ -51,4 +72,16 @@
51
  }
52
  .wd-blue {
53
  color: #10738B;
54
- }
 
 
 
 
 
 
 
 
 
 
 
 
6
  padding: 10px 40px 10px 125px;
7
  position: relative;
8
  }
9
+ .wd-admin-notice-promo {
10
+ background: #fff;
11
+ border-top: 4px;
12
+ display: block;
13
+ min-height: 68px;
14
+ padding: 10px 40px 0px 10px;
15
+ margin: 10px 0;
16
+ position: relative;
17
+ }
18
+
19
+ .wd-admin-notice-promo:after{
20
+ content: '';
21
+ display: table;
22
+ clear: both;
23
+ }
24
  .wd-admin-notice a {
25
  color: #10738B;
26
  }
52
  font-weight: normal;
53
  margin: 5px 0;
54
  }
55
+ .wd-close-promo{
56
+ position: absolute;
57
+ top: 5px;
58
+ right: 5px;
59
+ }
60
+
61
  .wd-notice-body:after {
62
  clear: both;
63
  content: "";
72
  }
73
  .wd-blue {
74
  color: #10738B;
75
+ }
76
+
77
+ .wd_hny{
78
+ background: url("../images/hny.jpg") no-repeat;
79
+ background-position: center;
80
+ background-size: 800px 200px;
81
+ height: 200px;
82
+ max-width: 100%;
83
+ }
84
+ .wd_hny a{
85
+ display: block;
86
+ height: 100%;
87
+ }
frontend/models/WDIModelGalleryBox.php CHANGED
@@ -86,7 +86,8 @@ public function get_feed_row_data($id) {
86
  private function check_settings($settings){
87
  $settings = WDILibrary::objectToArray($settings);
88
  if(isset($settings['feed_users']) && count(explode(',', $settings['feed_users']))>1){
89
- $settings['feed_users'] = explode(',', $settings['feed_users'])[0];
 
90
  };
91
  if(isset($settings['theme_id']) && intval($settings['theme_id']) > 1){
92
  $settings['theme_id'] = '1';
86
  private function check_settings($settings){
87
  $settings = WDILibrary::objectToArray($settings);
88
  if(isset($settings['feed_users']) && count(explode(',', $settings['feed_users']))>1){
89
+ $settings['feed_users'] = explode(',', $settings['feed_users']);
90
+ $settings['feed_users'] = $settings['feed_users'][0];
91
  };
92
  if(isset($settings['theme_id']) && intval($settings['theme_id']) > 1){
93
  $settings['theme_id'] = '1';
images/hny.jpg ADDED
Binary file
instagram-wd.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Instagram Feed WD
4
  Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
5
  Description: WD Instagram 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.0.4
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GPLv2 or later
@@ -20,7 +20,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
20
  //define("wdi",'wdi');
21
  define('WDI_FEED_TABLE','wdi_feeds');
22
  define('WDI_THEME_TABLE','wdi_themes');
23
- define('WDI_VERSION','1.0.4');
24
  define('WDI_IS_PRO','false');
25
 
26
 
3
  Plugin Name: Instagram Feed WD
4
  Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
5
  Description: WD Instagram 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.0.5
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GPLv2 or later
20
  //define("wdi",'wdi');
21
  define('WDI_FEED_TABLE','wdi_feeds');
22
  define('WDI_THEME_TABLE','wdi_themes');
23
+ define('WDI_VERSION','1.0.5');
24
  define('WDI_IS_PRO','false');
25
 
26
 
instagram-wdi-notices.php CHANGED
@@ -64,6 +64,8 @@ class WDI_Notices {
64
  $current_date = current_time("n/j/Y");
65
  $start = (isset($admin_notices[$slug]['start']) ? $admin_notices[$slug]['start'] : $current_date);
66
  $start = date("n/j/Y", strtotime($start));
 
 
67
  $date_array = explode('/', $start);
68
  $interval = (isset($admin_notices[$slug]['int']) ? $admin_notices[$slug]['int'] : 0);
69
  $date_array[1] += $interval;
@@ -91,13 +93,27 @@ class WDI_Notices {
91
  // Get remaining query string
92
  $query_str = esc_url(add_query_arg($this->prefix . '_admin_notice_ignore', $slug));
93
  // Admin notice display output
94
- echo '<div class="update-nag wd-admin-notice">
 
95
  <div class="' . $this->prefix . '-notice-logo"></div>
96
  <p class="wd-notice-title">' . $admin_display_title . '</p>
97
  <p class="wd-notice-body">' . $admin_display_msg . '</p>
98
  <ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
99
  <a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
100
  </div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  $this->notice_spam += 1;
102
  $output_css = true;
103
  }
@@ -195,7 +211,8 @@ class WDI_Notices {
195
  public function wd_admin_notices() {
196
  $two_week_review_ignore = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'two_week_review'));
197
  $two_week_review_temp = add_query_arg(array($this->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'wd_int' => 14));
198
-
 
199
  $notices['two_week_review'] = array(
200
  'title' => __('Leave A Review?', $this->prefix),
201
  'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $this->prefix), $this->plugin_name),
@@ -215,6 +232,16 @@ class WDI_Notices {
215
  <li><span class="dashicons dashicons-dismiss"></span><a href="' . $one_week_support . '">' . __('Never show again', $this->prefix) . '</a></li>',
216
  'int' => 7
217
  );
 
 
 
 
 
 
 
 
 
 
218
  $this->admin_notice($notices);
219
  }
220
  }
64
  $current_date = current_time("n/j/Y");
65
  $start = (isset($admin_notices[$slug]['start']) ? $admin_notices[$slug]['start'] : $current_date);
66
  $start = date("n/j/Y", strtotime($start));
67
+ $end = ( isset( $admin_notices[ $slug ]['end'] ) ? $admin_notices[ $slug ]['end'] : $start );
68
+ $end = date( "n/j/Y", strtotime( $end ) );
69
  $date_array = explode('/', $start);
70
  $interval = (isset($admin_notices[$slug]['int']) ? $admin_notices[$slug]['int'] : 0);
71
  $date_array[1] += $interval;
93
  // Get remaining query string
94
  $query_str = esc_url(add_query_arg($this->prefix . '_admin_notice_ignore', $slug));
95
  // Admin notice display output
96
+ if ( strpos( $slug, 'promo' ) === false ) {
97
+ echo '<div class="update-nag wd-admin-notice">
98
  <div class="' . $this->prefix . '-notice-logo"></div>
99
  <p class="wd-notice-title">' . $admin_display_title . '</p>
100
  <p class="wd-notice-body">' . $admin_display_msg . '</p>
101
  <ul class="wd-notice-body wd-blue">' . $admin_display_link . '</ul>
102
  <a href="' . $query_str . '" class="dashicons dashicons-dismiss"></a>
103
  </div>';
104
+ }
105
+ else{
106
+ if ( strtotime( $end ) >= strtotime( $current_date ) ) {
107
+ echo '<div class=" wd-admin-notice-promo">';
108
+ echo $admin_display_msg;
109
+ echo '<ul class="wd-notice-body-promo wd-blue">
110
+ ' . $admin_display_link . '
111
+ </ul>';
112
+ echo '<a href="' . $query_str . '" class="dashicons dashicons-dismiss wd-close-promo"></a>';
113
+ echo '</div>';
114
+ }
115
+ }
116
+
117
  $this->notice_spam += 1;
118
  $output_css = true;
119
  }
211
  public function wd_admin_notices() {
212
  $two_week_review_ignore = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'two_week_review'));
213
  $two_week_review_temp = add_query_arg(array($this->prefix . '_admin_notice_temp_ignore' => 'two_week_review', 'wd_int' => 14));
214
+ $promo_close = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'new_year_promo') );
215
+
216
  $notices['two_week_review'] = array(
217
  'title' => __('Leave A Review?', $this->prefix),
218
  'msg' => sprintf(__('We hope you\'ve enjoyed using WordPress %s! Would you consider leaving us a review on WordPress.org?', $this->prefix), $this->plugin_name),
232
  <li><span class="dashicons dashicons-dismiss"></span><a href="' . $one_week_support . '">' . __('Never show again', $this->prefix) . '</a></li>',
233
  'int' => 7
234
  );
235
+ $notices['new_year_promo'] = array(
236
+ 'title' => __('Hey! How\'s It Going?', $this->prefix),
237
+ 'msg' => '<div class="wd_hny"><a href="https://web-dorado.com/products/wordpress-instagram-feed-wd.html?source=promo" target="_blank"></a></div>',
238
+ 'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __( 'Never show again' ,$this->prefix) . '</a></li>',
239
+ 'start' => '2015-12-31',
240
+ 'end' => '2016-01-01',
241
+ 'int' => 0
242
+ );
243
+
244
+
245
  $this->admin_notice($notices);
246
  }
247
  }
readme.txt CHANGED
@@ -4,12 +4,12 @@ Donate link: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
4
  Tags: : custom instagram Feed, instagram, instagram account, instagram feed, instagram photos, instagram plugin, instagram posts, instagram stream, instagram wall, mobile instagram, responsive instagram, gallery, hashtag, images, photos, shortcode, widget ,Grid instagram view, instagram gallery, instagram images, instagram page, instagram plugin, instagram responsive, instagram touch, Instagram widgets, lightbox instagram, lightbox, feed
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website.
12
-
13
  == Description ==
14
 
15
  [WordPress WD Instagram Feed ](https://web-dorado.com/products/wordpress-instagram-feed-wd.html)
@@ -19,19 +19,19 @@ WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based f
19
 
20
  https://www.youtube.com/watch?v=ijdrpkVAfEw
21
 
22
- Have you ever wanted to display images from Instagram on your webpages? Is simple integration not enough for your WordPress website? Do you want to display composite feeds of hashtags and users? Do you prefer to show instagram content with your custom styling? Have you ever thought it will be cool to repost your Instagram feed to WP blog? Instagram Feed WD is your best solution with its user-friendly management and easy set up.
23
 
24
- Instagram Feed WD allows displaying Instagram feeds based on public Instagram accounts and hashtags. You can create mixed feeds based on multiple accounts, multiple hashtags or any combination of both with Pro version. The plugin uses 4 layouts - 2 layouts for smaller thumbnail display (Thumbnail and Masonry) and 2 for larger images (Blog Style and Image Browser). Thumbnail view displays images with their metadata (Pro): caption, number of likes and comments. Image Browser displays single image with navigation possibility, metadata (Pro): image caption, number of likes and comments. Masonry (Pro) layout displays images in beautiful masonry view combining the image and its metadata (Pro). Blog Style (Pro) layout combines large image with its data similar creating a blog style display. All the layouts can display feed username and its metadata (bio, number of posts and followers).
25
 
26
- Images can be redirected to Instagram or opened in a lightbox. You can set sorting for the images (date, likes, comments, random) as well as define the order (ascending/descending). In case of combined feeds you can use front-end filtering by clicking on specific hashtag or username. The lightbox display images as a slideshow with different transition effects (Pro). In the Pro version, media caption, comments, social share buttons and filmstrip also can be shown in the lightbox, making it an elegant advanced tool for viewing Instagram feed.
27
 
28
  Theme section (available with Pro version) allows to customize colors, sizes and display styles. Each layout uses its own theme which makes this section even more compelling.
29
 
30
- No feed data is stored in the database. All the images, videos (Pro), captions and comments are retrieved directly from the Instagram in the front-end, which makes the plugin fast and very easy to use.
31
 
32
 
33
  ###IMPORTANT:
34
- If you think you found a bug in Instagram Feed WD or have any problem/question concerning the plugin, please check out [Support Forum](https://web-dorado.com/forum/wordpress-instagram-feed-wd.html) in our website. If you do not find a solution here, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
35
 
36
 
37
  = Instagram Feed main features include: =
@@ -102,6 +102,9 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
102
 
103
  == Changelog ==
104
 
 
 
 
105
  = 1.0.4 =
106
  Fixed: Bug in layout
107
 
4
  Tags: : custom instagram Feed, instagram, instagram account, instagram feed, instagram photos, instagram plugin, instagram posts, instagram stream, instagram wall, mobile instagram, responsive instagram, gallery, hashtag, images, photos, shortcode, widget ,Grid instagram view, instagram gallery, instagram images, instagram page, instagram plugin, instagram responsive, instagram touch, Instagram widgets, lightbox instagram, lightbox, feed
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ This Instagram plugin is a user-friendly tool for displaying user or hashtag-based feeds on your website with only few clicks.
12
+
13
  == Description ==
14
 
15
  [WordPress WD Instagram Feed ](https://web-dorado.com/products/wordpress-instagram-feed-wd.html)
19
 
20
  https://www.youtube.com/watch?v=ijdrpkVAfEw
21
 
22
+ Have you ever wanted to display images from Instagram on your webpages? Is simple integration not enough for your WordPress website? Do you want to display composite feeds of hashtags and users? Do you prefer to show instagram content with your custom styling? Have you ever thought it will be cool to repost your Instagram feed to WP blog? Instagram Feed WD is your best solution with its user-friendly management and easy set up. It is simply the most useful and functional WordPress Instagram plugin.
23
 
24
+ Instagram Feed WD allows displaying Instagram feeds based on public Instagram accounts and hashtags. You can create mixed feeds based on multiple accounts, multiple hashtags or any combination of both with Pro version. WordPress Instagram plugin uses 4 layouts - 2 layouts for smaller thumbnail display (Thumbnail and Masonry) and 2 for larger images (Blog Style and Image Browser). Thumbnail view displays images with their metadata (Pro): caption, number of likes and comments. Image Browser displays single image with navigation possibility, metadata (Pro): image caption, number of likes and comments. Masonry (Pro) layout displays images in beautiful masonry view combining the image and its metadata (Pro). Blog Style (Pro) layout combines large image with its data similar creating a blog style display. All the layouts can display feed username and its metadata (bio, number of posts and followers).
25
 
26
+ Images can be redirected to Instagram or opened in a lightbox. You can set sorting for the images (date, likes, comments, random) as well as define the order (ascending/descending). In case of combined feeds you can use front-end filtering by clicking on specific hashtag or username. The lightbox display images as a slideshow with different transition effects (Pro). In Pro version of this Instagram plugin media caption, comments, social share buttons and filmstrip also can be shown in the lightbox, making it an elegant advanced tool for viewing Instagram feed.
27
 
28
  Theme section (available with Pro version) allows to customize colors, sizes and display styles. Each layout uses its own theme which makes this section even more compelling.
29
 
30
+ No feed data is stored in the database. All the images, videos (Pro), captions and comments are retrieved directly from the Instagram in the front-end, which makes this WordPress Instagram plugin fast and very easy to use.
31
 
32
 
33
  ###IMPORTANT:
34
+ If you think you found a bug in Instagram Feed WD or have any problem/question concerning this Instagram plugin, please check out [Support Forum](https://web-dorado.com/forum/wordpress-instagram-feed-wd.html) in our website. If you do not find a solution here, do not hesitate to [click here to contact us](https://web-dorado.com/support/contact-us.html).
35
 
36
 
37
  = Instagram Feed main features include: =
102
 
103
  == Changelog ==
104
 
105
+ =1.0.5=
106
+ New: New year promo
107
+
108
  = 1.0.4 =
109
  Fixed: Bug in layout
110