WD Instagram Feed – Instagram Gallery - Version 1.1.7

Version Description

New: Featured themes admin page
Fixed: Javascript error in hashtag feed

Download this release

Release Info

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

Code changes from version 1.1.6 to 1.1.7

WDIFeaturedThemes.php ADDED
@@ -0,0 +1,302 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WDIFeaturedThemes {
4
+
5
+
6
+ private $slug = 'wd-instagram-feed';
7
+ private $lang_slug = 'wdi';
8
+
9
+ private $image_url = '';
10
+ private $demo_url = 'http://themedemo.web-dorado.com/';
11
+ private $site_url = 'https://web-dorado.com/wordpress-themes/';
12
+
13
+ public function __construct() {
14
+ $this->image_url = WDI_URL . "/images/featured_themes/";
15
+
16
+ }
17
+
18
+ ////////////////////////////////////////////////////////////////////////////////////////
19
+ // Public Methods //
20
+ ////////////////////////////////////////////////////////////////////////////////////////
21
+
22
+ public function display() {
23
+ ?>
24
+
25
+ <style>
26
+ @import url(https://fonts.googleapis.com/css?family=Oswald);
27
+
28
+ #main_featured_themes_page #featured-themes-list {
29
+ position:relative;
30
+ margin:0px auto;
31
+ height:auto;
32
+ display:table;
33
+ list-style:none;
34
+ text-align: center;
35
+ width: 100%;
36
+ }
37
+ #main_featured_themes_page #featured-themes-list li {
38
+ display: inline-table;
39
+ width: 300px;
40
+ margin: 20px 10px 0px 10px;
41
+ background: #FFFFFF;
42
+ border-right: 3px solid #E5E5E5;
43
+ border-bottom: 3px solid #E5E5E5;
44
+ position: relative;
45
+ }
46
+ @media screen and (min-width: 1600px) {
47
+ #main_featured_themes_page #featured-themes-list li {
48
+ width:400px;
49
+ }
50
+
51
+ }
52
+ #main_featured_themes_page .theme_img img {
53
+ max-width: 100%;
54
+ }
55
+ #main_featured_themes_page .theme_img {
56
+ display: inline-block;
57
+ overflow: hidden;
58
+ outline: 1px solid #D6D1D1;
59
+ position:relative;
60
+ /*height: 168px; */
61
+ }
62
+ #main_featured_themes_page #featured-themes-list li .title {
63
+ width: 91%;
64
+ text-align: center;
65
+ margin: 0 auto;
66
+ }
67
+ #main_featured_themes_page {
68
+ font-family: Oswald;
69
+ }
70
+ #main_featured_themes_page #featured-themes-list li .title .heading {
71
+ display: block;
72
+ position: relative;
73
+ font-size: 17px;
74
+ color: #666666;
75
+ margin: 13px 0px 13px 0px;
76
+ text-transform: uppercase;
77
+ }
78
+ #main_featured_themes_page #featured-themes-list li .title p {
79
+ font-size:14px;
80
+ color:#444;
81
+ margin-left:20px;
82
+ }
83
+ #main_featured_themes_page #featured-themes-list li .description {
84
+ height:130px;
85
+ width: 90%;
86
+ margin: 0 auto;
87
+ }
88
+ #main_featured_themes_page #featured-themes-list li .description p {
89
+ text-align: center;
90
+ width: 100%;
91
+ color: #666666;
92
+ font-family: "Open Sans",sans-serif;
93
+ font-size: 14px;
94
+ }
95
+ #main_featured_themes_page #featured-themes-list li .links {
96
+ border-top: 1px solid #d8d8d8;
97
+ width: 90%;
98
+ margin: 0 auto;
99
+ font-size: 14px;
100
+ line-height: 40px;
101
+ font-weight: bolder;
102
+ text-align: center;
103
+ padding-top: 9px;
104
+ padding-bottom: 12px;
105
+ }
106
+ #main_featured_themes_page .page_header h1 {
107
+ margin: 0px;
108
+ font-family: Segoe UI;
109
+ padding-bottom: 15px;
110
+ color: rgb(111, 111, 111);
111
+ font-size: 24px;
112
+ text-align:center;
113
+ }
114
+ #main_featured_themes_page .page_header {
115
+ height: 40px;
116
+ padding: 22px 0px 0px 0px;
117
+ margin-bottom: 15px;
118
+ /*border-bottom: rgb(111, 111, 111) solid 1px;*/
119
+ }
120
+ #main_featured_themes_page #featured-themes-list li a {
121
+ outline: none;
122
+ line-height: 29px;
123
+ text-decoration: none;
124
+ color: #134d68;
125
+ font-family: "Open Sans",sans-serif;
126
+ text-shadow: 1px 0;
127
+ display: inline-block;
128
+ font-size: 15px;
129
+ }
130
+ #main_featured_themes_page #featured-themes-list li a.demo {
131
+ color: #ffffff;
132
+ background: #F47629;
133
+ border-radius: 3px;
134
+ width: 76px;
135
+ text-align:center;
136
+ margin-right: 12px;
137
+ }
138
+ #main_featured_themes_page #featured-themes-list li a.download {
139
+ padding-right: 30px;
140
+ background:url(<?php echo $this->image_url; ?>down.png) no-repeat right;
141
+ }
142
+ #main_featured_themes_page .featured_header{
143
+ background: #11465F;
144
+ border-right: 3px solid #E5E5E5;
145
+ border-bottom: 3px solid #E5E5E5;
146
+ position: relative;
147
+ padding: 20px 0;
148
+ }
149
+ #main_featured_themes_page .featured_header .try-now {
150
+ text-align: center;
151
+ }
152
+ #main_featured_themes_page .featured_header .try-now span {
153
+ display: inline-block;
154
+ padding: 7px 16px;
155
+ background: #F47629;
156
+ border-radius: 10px;
157
+ color: #ffffff;
158
+ font-size: 23px;
159
+ }
160
+ #main_featured_themes_page .featured_container {
161
+ position: relative;
162
+ width: 90%;
163
+ margin: 15px auto 0px auto;
164
+ }
165
+ #main_featured_themes_page .featured_container .old_price{
166
+ color: rgba(180, 180, 180, 0.3);
167
+ text-decoration: line-through;
168
+ font-family: Oswald;
169
+ }
170
+ #main_featured_themes_page .featured_container .get_themes{
171
+ color: #FFFFFF;
172
+ height: 85px;
173
+ margin: 0;
174
+ background-size: 95% 100%;
175
+ background-position: center;
176
+ line-height: 60px;
177
+ font-size: 45px;
178
+ text-align: center;
179
+ letter-spacing: 3px;
180
+ }
181
+ #main_featured_themes_page .featured_header h1{
182
+ font-size: 45px;
183
+ text-align: center;
184
+ color: #ffffff;
185
+ letter-spacing: 3px;
186
+ line-height: 10px;
187
+ }
188
+ #main_featured_themes_page .featured_header a{
189
+ text-decoration: none;
190
+ }
191
+ @media screen and (max-width: 1035px) {
192
+ #main_featured_themes_page .featured_header h1{
193
+ font-size: 37px;
194
+ line-height: 0;
195
+ }
196
+ }
197
+ @media screen and (max-width: 835px) {
198
+ #main_featured_themes_page .get_themes span{
199
+ display: none;
200
+ }
201
+ }
202
+ @media screen and (max-width: 435px) {
203
+ #main_featured_themes_page .featured_header h1 {
204
+ font-size: 20px;
205
+ line-height: 17px;
206
+ }
207
+ }
208
+ </style>
209
+
210
+ <?php
211
+ $WDWThemes = array(
212
+ "business_elite" => array(
213
+ "title" => "Business Elite",
214
+ "description" => __("Business Elite is a robust parallax theme for business websites. The theme uses smooth transitions and many functional sections.",$this->lang_slug),
215
+ "link" => "business-elite.html",
216
+ "demo" => "theme-businesselite",
217
+ "image" => "business_elite.jpg"
218
+ ),
219
+ "portfolio" => array(
220
+ "title" => "Portfolio Gallery",
221
+ "description" => __("Portfolio Gallery helps to display images using various color schemes and layouts combined with elegant fonts and content parts.",$this->lang_slug),
222
+ "link" => "portfolio-gallery.html",
223
+ "demo" => "theme-portfoliogallery",
224
+ "image" => "portfolio_gallery.jpg"
225
+ ),
226
+ "sauron" => array(
227
+ "title" => "Sauron",
228
+ "description" => __("Sauron is a multipurpose parallax theme, which uses multiple interactive sections designed for the client-engagement.",$this->lang_slug),
229
+ "link" => "sauron.html",
230
+ "demo" => "theme-sauron",
231
+ "image" => "sauron.jpg"
232
+ ),
233
+ "business_world" => array(
234
+ "title" => "Business World",
235
+ "description" => __("Business World is an innovative WordPress theme great for Business websites.",$this->lang_slug),
236
+ "link" => "business-world.html",
237
+ "demo" => "theme-businessworld",
238
+ "image" => "business_world.jpg"
239
+ ),
240
+ "best_magazine" => array(
241
+ "title" => "Best Magazine",
242
+ "description" => __("Best Magazine is an ultimate selection when you are dealing with multi-category news websites.",$this->lang_slug),
243
+ "link" => "best-magazine.html",
244
+ "demo" => "theme-bestmagazine",
245
+ "image" => "best_magazine.jpg"
246
+ ),
247
+ "magazine" => array(
248
+ "title" => "News Magazine",
249
+ "description" => __("Magazine theme is a perfect solution when creating news and informational websites. It comes with a wide range of layout options.",$this->lang_slug),
250
+ "link" => "news-magazine.html",
251
+ "demo" => "theme-newsmagazine",
252
+ "image" => "news_magazine.jpg"
253
+ )
254
+ );
255
+ ?>
256
+ <div id="main_featured_themes_page">
257
+ <div class="featured_container">
258
+ <div class="page_header">
259
+ <h1><?php echo __("Featured Themes",$this->lang_slug); ?></h1>
260
+ </div>
261
+ <div class="featured_header">
262
+ <a target="_blank" href="https://web-dorado.com/wordpress-themes.html?source=<?php echo $this->slug; ?>">
263
+ <h1><?php echo __("WORDPRESS THEMES",$this->lang_slug); ?></h1>
264
+ <h2 class="get_themes"><?php echo __("ALL FOR $40 ONLY ",$this->lang_slug); ?><span>- <?php echo __("SAVE 80%",$this->lang_slug); ?></span></h2>
265
+ <div class="try-now">
266
+ <span><?php echo __("TRY NOW",$this->lang_slug); ?></span>
267
+ </div>
268
+ </a>
269
+ </div>
270
+ <ul id="featured-themes-list">
271
+ <?php foreach($WDWThemes as $key=>$WDWTheme) : ?>
272
+ <li class="<?php echo $key; ?>">
273
+ <div class="theme_img">
274
+ <img src="<?php echo $this->image_url . $WDWTheme["image"]; ?>">
275
+ </div>
276
+ <div class="title">
277
+ <h3 class="heading"><?php echo $WDWTheme["title"]; ?></h3>
278
+ </div>
279
+ <div class="description">
280
+ <p><?php echo $WDWTheme["description"]; ?></p>
281
+ </div>
282
+ <div class="links">
283
+ <a target="_blank" href="<?php echo $this->demo_url . $WDWTheme["demo"]."?source=".$this->slug; ?>" class="demo"><?php echo __("Demo",$this->lang_slug); ?></a>
284
+ <a target="_blank" href="<?php echo $this->site_url . $WDWTheme["link"]."?source=".$this->slug; ?>" class="download"><?php echo __("Free Download",$this->lang_slug); ?></a>
285
+ </div>
286
+ </li>
287
+ <?php endforeach; ?>
288
+ </ul>
289
+ </div>
290
+ </div>
291
+ <?php }
292
+
293
+ ////////////////////////////////////////////////////////////////////////////////////////
294
+ // Getters & Setters //
295
+ ////////////////////////////////////////////////////////////////////////////////////////
296
+ ////////////////////////////////////////////////////////////////////////////////////////
297
+ // Private Methods //
298
+ ////////////////////////////////////////////////////////////////////////////////////////
299
+ ////////////////////////////////////////////////////////////////////////////////////////
300
+ // Listeners //
301
+ ////////////////////////////////////////////////////////////////////////////////////////
302
+ }
images/featured_themes/best_magazine.jpg ADDED
Binary file
images/featured_themes/business_elite.jpg ADDED
Binary file
images/featured_themes/business_world.jpg ADDED
Binary file
images/featured_themes/down.png ADDED
Binary file
images/featured_themes/news_magazine.jpg ADDED
Binary file
images/featured_themes/portfolio_gallery.jpg ADDED
Binary file
images/featured_themes/sauron.jpg ADDED
Binary file
js/wdi_instagram.js CHANGED
@@ -164,10 +164,10 @@ function WDIInstagram(args) {
164
  var instagram = this,
165
  noArgument = false,
166
  successFlag = false,
167
- statusCode = this.statusCode;
168
  errorFlag = false,
169
  argFlag = false,
170
- filter = this.getFilter('getTagRecentMedia');
171
 
172
  baseUrl = 'https://api.instagram.com/v1/tags/' + tagname + '/media/recent?access_token=' + getAccessToken();
173
 
164
  var instagram = this,
165
  noArgument = false,
166
  successFlag = false,
167
+ statusCode = this.statusCode,
168
  errorFlag = false,
169
  argFlag = false,
170
+ filter = this.getFilter('getTagRecentMedia'),
171
 
172
  baseUrl = 'https://api.instagram.com/v1/tags/' + tagname + '/media/recent?access_token=' + getAccessToken();
173
 
readme.txt CHANGED
@@ -3,12 +3,12 @@ Contributors: webdorado, progmastery
3
  Donate link: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
4
  Tags: : custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, Instagram wall, lightbox, photos
5
  Requires at least: 3.9
6
- Tested up to: 4.5
7
- Stable tag: 1.1.6
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
 
@@ -107,6 +107,10 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = 1.1.6 =
111
  Change: Added compatibility with "All in one SEO pack" and other plugins running shortcodes in page head
112
 
3
  Donate link: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
4
  Tags: : custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, Instagram wall, lightbox, photos
5
  Requires at least: 3.9
6
+ Tested up to: 4.6
7
+ Stable tag: 1.1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Instagram Feed WD plugin is a user-friendly tool for displaying user or hashtag-based feeds on your website with only few clicks.
12
 
13
  == Description ==
14
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.1.7 =
111
+ New: Featured themes admin page
112
+ Fixed: Javascript error in hashtag feed
113
+
114
  = 1.1.6 =
115
  Change: Added compatibility with "All in one SEO pack" and other plugins running shortcodes in page head
116
 
wd-instagram-feed.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.1.6
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.1.6');
24
  define('WDI_IS_PRO','false');
25
 
26
 
@@ -153,6 +153,7 @@ function WDI_instagram_menu() {
153
  add_submenu_page('wdi_feeds',__('Feeds',"wdi"),__('Feeds',"wdi"),'manage_options','wdi_feeds','WDI_instagram_feeds_page');
154
  add_submenu_page('wdi_feeds',__('Themes',"wdi"),__('Themes',"wdi"),'manage_options','wdi_themes','WDI_instagram_themes_page');
155
  add_submenu_page('wdi_feeds',__('Settings',"wdi"),__('Settings',"wdi"),'manage_options','wdi_settings','WDI_instagram_settings_page');
 
156
  add_submenu_page('wdi_feeds',__('Buy Pro',"wdi"),__('Buy Pro',"wdi"),'manage_options','wdi_licensing','WDI_instagram_licensing_page');
157
  }
158
 
@@ -199,6 +200,13 @@ function WDI_instagram_licensing_page(){
199
  $controller = new $controller_class();
200
  $controller->execute();
201
  }
 
 
 
 
 
 
 
202
  function WDI_instagram_uninstall_page(){
203
 
204
  require_once(WDI_DIR . '/framework/WDILibrary.php');
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.1.7
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.1.7');
24
  define('WDI_IS_PRO','false');
25
 
26
 
153
  add_submenu_page('wdi_feeds',__('Feeds',"wdi"),__('Feeds',"wdi"),'manage_options','wdi_feeds','WDI_instagram_feeds_page');
154
  add_submenu_page('wdi_feeds',__('Themes',"wdi"),__('Themes',"wdi"),'manage_options','wdi_themes','WDI_instagram_themes_page');
155
  add_submenu_page('wdi_feeds',__('Settings',"wdi"),__('Settings',"wdi"),'manage_options','wdi_settings','WDI_instagram_settings_page');
156
+ add_submenu_page('wdi_feeds',__('Featured Themes',"wdi"),__('Featured Themes',"wdi"),'manage_options','wdi_featured_themes','wdi_featured_themes');
157
  add_submenu_page('wdi_feeds',__('Buy Pro',"wdi"),__('Buy Pro',"wdi"),'manage_options','wdi_licensing','WDI_instagram_licensing_page');
158
  }
159
 
200
  $controller = new $controller_class();
201
  $controller->execute();
202
  }
203
+
204
+ function wdi_featured_themes(){
205
+ require_once(WDI_DIR . '/WDIFeaturedThemes.php');
206
+ $controller = new WDIFeaturedThemes();
207
+ $controller->display();
208
+ }
209
+
210
  function WDI_instagram_uninstall_page(){
211
 
212
  require_once(WDI_DIR . '/framework/WDILibrary.php');