WD Instagram Feed – Instagram Gallery - Version 1.3.21

Version Description

Added: Ask a question button.

Download this release

Release Info

Developer 10web
Plugin Icon 128x128 WD Instagram Feed – Instagram Gallery
Version 1.3.21
Comparing to
See all releases

Code changes from version 1.3.20 to 1.3.21

admin/views/WDIViewFeeds_wdi.php CHANGED
@@ -36,25 +36,10 @@ class WDIViewFeeds_wdi
36
  'duplicate_all' => __('Duplicate', 'wdi'),
37
  'delete_all' => __('Delete', 'wdi'),
38
  );
 
 
39
  ?>
40
  <div class="wrap">
41
- <h2 class="wdi_page_title"></h2>
42
- <div class="update-nag notice wd-notice wdi_help_bar_wrap">
43
- <span class="wdi_help_bar_text">
44
- <?php _e('This section allows you to create, edit and delete Feeds.', "wd-instagram-feed"); ?>
45
- <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
46
- href="https://help.10web.io/hc/en-us/articles/360016497251-Creating-Instagram-Feed?utm_source=instagram_feed&utm_medium=free_plugin"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
47
- </span>
48
- <div class="wdi_hb_buy_pro">
49
- <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
50
- <img src="<?php echo WDI_URL; ?>/images/i_support.png" >
51
- <?php _e("Support Forum", "gmwd"); ?>
52
- </a>
53
- <a class="wdi_update_pro_link" target="_blank" href="https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin">
54
- <?php _e("UPGRADE TO PREMIUM VERSION", "wd-instagram-feed"); ?>
55
- </a>
56
- </div>
57
- </div>
58
  <form class="" id="wdi_feed_form" method="post" action="admin.php?page=wdi_feeds" >
59
  <?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
60
  <input type="hidden" id="wdi_access_token" name="access_token"
@@ -505,23 +490,9 @@ public function genarateFeedViews()
505
  if(isset($feed_row['liked_feed'])) {
506
  $feed_row['liked_feed'] = 'userhash';
507
  }
 
 
508
  ?>
509
- <div class="update-nag notice wd-notice wdi_help_bar_wrap">
510
- <span class="wdi_help_bar_text">
511
- <?php _e('Here You Can Change Feed Parameters.', "wd-instagram-feed"); ?>
512
- <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
513
- href="https://help.10web.io/hc/en-us/articles/360016497251-Creating-Instagram-Feed?utm_source=instagram_feed&utm_medium=free_plugin"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
514
- </span>
515
- <div class="wdi_hb_buy_pro">
516
- <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
517
- <img src="<?php echo WDI_URL; ?>/images/i_support.png" >
518
- <?php _e("Support Forum", "gmwd"); ?>
519
- </a>
520
- <a class="wdi_update_pro_link" target="_blank" href="https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin">
521
- <?php _e("UPGRADE TO PREMIUM VERSION", "wd-instagram-feed"); ?>
522
- </a>
523
- </div>
524
- </div>
525
  <div class="wrap">
526
  <h2 class="wdi-h2-message"></h2>
527
  <form method="post" action="admin.php?page=wdi_feeds" id='wdi_save_feed'>
36
  'duplicate_all' => __('Duplicate', 'wdi'),
37
  'delete_all' => __('Delete', 'wdi'),
38
  );
39
+
40
+ WDILibrary::topbar();
41
  ?>
42
  <div class="wrap">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  <form class="" id="wdi_feed_form" method="post" action="admin.php?page=wdi_feeds" >
44
  <?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
45
  <input type="hidden" id="wdi_access_token" name="access_token"
490
  if(isset($feed_row['liked_feed'])) {
491
  $feed_row['liked_feed'] = 'userhash';
492
  }
493
+
494
+ WDILibrary::topbar();
495
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
496
  <div class="wrap">
497
  <h2 class="wdi-h2-message"></h2>
498
  <form method="post" action="admin.php?page=wdi_feeds" id='wdi_save_feed'>
admin/views/WDIViewLicensing_wdi.php CHANGED
@@ -24,15 +24,9 @@ class WDIViewLicensing_wdi {
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display() {
26
  ?>
 
27
  <div class="wrap">
28
- <div class="update-nag notice wd-notice wdi_help_bar_wrap">
29
- <div class="wdi_hb_buy_pro">
30
- <a class="wdi_update_pro_link" target="_blank" href="https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin">
31
- <?php _e("UPGRADE TO PREMIUM VERSION", "wd-instagram-feed"); ?>
32
- </a>
33
- </div>
34
- </div>
35
-
36
  <div id="featurs_tables">
37
  <div id="featurs_table1">
38
  <span>WordPress 4.0+ <?php _e("ready", 'wd-instagram-feed'); ?></span>
@@ -132,7 +126,16 @@ class WDIViewLicensing_wdi {
132
  <li><?php _e("Delete Instagram Feed plugin.", 'wd-instagram-feed'); ?></li>
133
  <li><?php _e("Install the downloaded commercial version of the plugin.", 'wd-instagram-feed'); ?></li>
134
  </ol>
 
 
 
 
 
 
 
135
  </div>
 
 
136
  </div>
137
  <?php
138
  }
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display() {
26
  ?>
27
+
28
  <div class="wrap">
29
+
 
 
 
 
 
 
 
30
  <div id="featurs_tables">
31
  <div id="featurs_table1">
32
  <span>WordPress 4.0+ <?php _e("ready", 'wd-instagram-feed'); ?></span>
126
  <li><?php _e("Delete Instagram Feed plugin.", 'wd-instagram-feed'); ?></li>
127
  <li><?php _e("Install the downloaded commercial version of the plugin.", 'wd-instagram-feed'); ?></li>
128
  </ol>
129
+
130
+ <div class="wdi_hb_buy_pro">
131
+ <a class="wdi_update_pro_link" target="_blank" href="https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin">
132
+ <?php _e("UPGRADE TO PREMIUM VERSION", "wd-instagram-feed"); ?>
133
+ </a>
134
+ </div>
135
+
136
  </div>
137
+
138
+
139
  </div>
140
  <?php
141
  }
admin/views/WDIViewSettings_wdi.php CHANGED
@@ -34,25 +34,11 @@ class WDIViewSettings_wdi{
34
  }
35
  </script>
36
  <?php
37
- }
 
38
  ?>
39
  <div class="wrap">
40
- <div class="update-nag notice wd-notice wdi_help_bar_wrap">
41
- <span class="wdi_help_bar_text">
42
- <?php _e('This section allows you to set API parameters.', "wd-instagram-feed"); ?>
43
- <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
44
- href="https://help.10web.io/hc/en-us/articles/360016277532-Configuring-Instagram-Access-Token?utm_source=instagram_feed&utm_medium=free_plugin"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
45
- </span>
46
- <div class="wdi_hb_buy_pro">
47
- <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
48
- <img src="<?php echo WDI_URL; ?>/images/i_support.png" >
49
- <?php _e("Support Forum", "gmwd"); ?>
50
- </a>
51
- <a class="wdi_update_pro_link" target="_blank" href="https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin">
52
- <?php _e("UPGRADE TO PREMIUM VERSION", "wd-instagram-feed"); ?>
53
- </a>
54
- </div>
55
- </div>
56
  <h1 id="settings_wdi_title"><?php _e('Instagram Settings', "wd-instagram-feed"); ?></h1>
57
  <form method="post" action="options.php" class="wdi_settings_form">
58
  <input type="hidden"id="wdi_user_id" name="<?php echo WDI_OPT.'[wdi_user_id]' ?>">
34
  }
35
  </script>
36
  <?php
37
+ }
38
+ WDILibrary::topbar();
39
  ?>
40
  <div class="wrap">
41
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  <h1 id="settings_wdi_title"><?php _e('Instagram Settings', "wd-instagram-feed"); ?></h1>
43
  <form method="post" action="options.php" class="wdi_settings_form">
44
  <input type="hidden"id="wdi_user_id" name="<?php echo WDI_OPT.'[wdi_user_id]' ?>">
admin/views/WDIViewThemes_wdi.php CHANGED
@@ -9,24 +9,9 @@ class WDIViewThemes_wdi {
9
  }
10
 
11
  public function display() {
 
12
  ?>
13
  <div class="wrap">
14
- <div class="update-nag notice wd-notice wdi_help_bar_wrap">
15
- <span class="wdi_help_bar_text">
16
- <?php _e('This section allows you to create, edit and delete Themes.', "wd-instagram-feed"); ?>
17
- <a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" class="wdi_hb_t_link" target="_blank"
18
- href="https://help.10web.io/hc/en-us/articles/360016277832?utm_source=instagram_feed&utm_medium=free_plugin"><?php _e('Read More in User Guide', "wd-instagram-feed"); ?></a>
19
- </span>
20
- <div class="wdi_hb_buy_pro">
21
- <a class="wdi_support_link" href="https://wordpress.org/support/plugin/wd-instagram-feed" target="_blank">
22
- <img src="<?php echo WDI_URL; ?>/images/i_support.png" >
23
- <?php _e("Support Forum", "gmwd"); ?>
24
- </a>
25
- <a class="wdi_update_pro_link" target="_blank" href="https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin">
26
- <?php _e("UPGRADE TO PREMIUM VERSION", "wd-instagram-feed"); ?>
27
- </a>
28
- </div>
29
- </div>
30
  <div class="wdi_pro_notice"> <?php _e("This is free version, Customizing themes is available only in premium version","wd-instagram-feed"); ?> </div>
31
  <?php
32
  $this->buildFreeThemeDemo();
9
  }
10
 
11
  public function display() {
12
+ WDILibrary::topbar();
13
  ?>
14
  <div class="wrap">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <div class="wdi_pro_notice"> <?php _e("This is free version, Customizing themes is available only in premium version","wd-instagram-feed"); ?> </div>
16
  <?php
17
  $this->buildFreeThemeDemo();
css/pricing.css ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wrap h1.head-notice {
2
+ height: 0;
3
+ padding: 0;
4
+ visibility: hidden;
5
+ }
6
+
7
+ /* Top bar start */
8
+ .topbar-container * {
9
+ font-family: Roboto;
10
+ }
11
+
12
+ .topbar-container {
13
+ display: flex;
14
+ flex-direction: row;
15
+ justify-content: flex-end;
16
+ margin: 20px 0 20px 0;
17
+ font-family: Roboto;
18
+ }
19
+ .topbar-container * {
20
+ box-sizing: border-box;
21
+ }
22
+ .topbar-container .topbar {
23
+ background-color: #FFFFFF;
24
+ border: 1px solid #D0D0D080;
25
+ border-radius: 7px;
26
+ color: #000000;
27
+ padding: 10px;
28
+ }
29
+
30
+ .topbar_cont {
31
+ display: flex;
32
+ }
33
+
34
+ .topbar-container .topbar.topbar_support_forum {
35
+ background-color: #4786FF;
36
+ margin-left: 20px;
37
+ }
38
+
39
+ .topbar-container .topbar.topbar_support_forum:hover {
40
+ background-color: #3077FF;
41
+ opacity:1
42
+ }
43
+
44
+ .topbar-content {
45
+ display: flex;
46
+ justify-content: space-between;
47
+ flex: auto;
48
+ margin: 0 20px 0 0;
49
+ padding: 10px 15px;
50
+ height: 60px;
51
+ }
52
+ .topbar-links {
53
+ color: #000000;
54
+ display: flex;
55
+ flex-direction: column;
56
+ justify-content: space-around;
57
+ font-size: 18px;
58
+ font-weight: 300;
59
+ margin: 0 0 0 2px;
60
+ height: 60px;
61
+ }
62
+ .topbar-links-container {
63
+ display: flex;
64
+ justify-content: space-around;
65
+ height: 80%;
66
+ }
67
+ .topbar-links-item {
68
+ display: flex;
69
+ flex: 1;
70
+ align-self: center;
71
+ justify-content: center;
72
+ width: 170px;
73
+ line-height: 50px;
74
+ }
75
+ .topbar-links * {
76
+ font-size: 18px;
77
+ }
78
+ .topbar-links a,
79
+ .topbar-links a:focus {
80
+ align-self: center;
81
+ box-shadow: none;
82
+ color: #000000;
83
+ text-decoration: none;
84
+ }
85
+
86
+ .topbar-links a.topbar_support_forum {
87
+ color: #fff;
88
+ }
89
+
90
+ .topbar-links a.topbar_support_forum .help_icon {
91
+ margin-right: 10px;
92
+ }
93
+
94
+ .topbar-links a:hover {
95
+ opacity: 0.5;
96
+ text-decoration: none;
97
+ }
98
+ .topbar-separator {
99
+ background-color: #C2C2C280;
100
+ width: 1px;
101
+ height: 100%;
102
+ }
103
+ .topbar-content-title {
104
+ color: #0C4D68;
105
+ font-size: 16px;
106
+ font-weight: 700;
107
+ line-height: 22px;
108
+ text-transform: uppercase;
109
+ }
110
+ .topbar-content-body {
111
+ font-size: 15px;
112
+ font-weight: 300;
113
+ line-height: 20px;
114
+ }
115
+ .topbar-content-container {
116
+ display: flex;
117
+ flex-direction: column;
118
+ }
119
+ .topbar-content-button-container,
120
+ .free-message-button-container {
121
+ align-self: center;
122
+ }
123
+ .topbar-upgrade-button,
124
+ .topbar-upgrade-button:focus {
125
+ background-color: #29B311;
126
+ border-radius: 20px;
127
+ box-shadow: none;
128
+ color: #FFFFFF;
129
+ font-size: 14px;
130
+ padding: 5px 44px;
131
+ text-decoration: none;
132
+ text-transform: uppercase;
133
+ }
134
+ .topbar-upgrade-button:hover {
135
+ text-decoration: none;
136
+ color: #FFFFFFCC;
137
+ }
138
+ @media screen and (max-width: 1366px) {
139
+ .topbar-links {
140
+ font-size: 15px;
141
+ }
142
+ .topbar-content-title {
143
+ font-size: 15px;
144
+ }
145
+ .topbar-content-body {
146
+ font-size: 13px;
147
+ }
148
+ }
149
+ @media screen and (max-width: 1285px) {
150
+ .topbar-container {
151
+ flex-direction: column;
152
+ }
153
+ .topbar-links,
154
+ .topbar-content {
155
+ margin: 0 0 10px 0;
156
+ width: 100%;
157
+ }
158
+ .topbar-content {
159
+ flex-direction: column;
160
+ height: auto;
161
+ }
162
+ .topbar-content-container,
163
+ .topbar-content-container * {
164
+ align-self: center;
165
+ padding-bottom: 4px;
166
+ }
167
+ }
168
+
169
+ @media screen and (max-width: 450px) {
170
+ .topbar_cont {
171
+ display: block;
172
+ }
173
+
174
+ .topbar-container .topbar.topbar_support_forum {
175
+ margin-left: 0px;
176
+ }
177
+ }
178
+
179
+ /* Top bar end */
css/wdi_backend.css CHANGED
@@ -615,8 +615,8 @@ border: 1px solid rgb(185, 185, 185);
615
  text-decoration: none;
616
  }
617
  .wdi_hb_buy_pro{
618
- float:right;
619
  padding:0;
 
620
  }
621
 
622
  .wdi_hb_buy_pro a,
615
  text-decoration: none;
616
  }
617
  .wdi_hb_buy_pro{
 
618
  padding:0;
619
+ margin-top: 50px;
620
  }
621
 
622
  .wdi_hb_buy_pro a,
framework/WDILibrary.php CHANGED
@@ -1171,4 +1171,101 @@ class WDILibrary {
1171
 
1172
  return false;
1173
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1174
  }
1171
 
1172
  return false;
1173
  }
1174
+
1175
+ /**
1176
+ * Generate top bar.
1177
+ *
1178
+ * @return string Top bar html.
1179
+ */
1180
+ public static function topbar() {
1181
+ $page = isset($_GET['page']) ? esc_html($_GET['page']) : '';
1182
+ $user_guide_link = 'https://help.10web.io/hc/en-us/articles/';
1183
+ $show_guide_link = true;
1184
+ $description = "";
1185
+ switch ($page) {
1186
+ case 'wdi_feeds': {
1187
+ $user_guide_link .= '360016497251-Creating-Instagram-Feed';
1188
+ $description .= __('This section allows you to create, edit and delete Feeds.', WD_WDI_PREFIX);
1189
+ break;
1190
+ }
1191
+ case 'wdi_themes': {
1192
+ $user_guide_link .= '360016277832';
1193
+ $description .= __('This section allows you to create, edit and delete Themes.', WD_WDI_PREFIX);
1194
+ break;
1195
+ }
1196
+ case 'wdi_settings': {
1197
+ $user_guide_link .= '360016277532-Configuring-Instagram-Access-Token';
1198
+ $description .= __('This section allows you to set API parameters.', WD_WDI_PREFIX);
1199
+ break;
1200
+ }
1201
+ default: {
1202
+ return '';
1203
+ break;
1204
+ }
1205
+ }
1206
+ $user_guide_link .= '?utm_source=instagram_feed&amp;utm_medium=free_plugin';
1207
+ $support_forum_link = 'https://wordpress.org/support/plugin/wd-instagram-feed/#new-post';
1208
+ $premium_link = 'https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&amp;utm_medium=free_plugin';
1209
+ wp_enqueue_style(WD_WDI_PREFIX . '-roboto');
1210
+ wp_enqueue_style(WD_WDI_PREFIX . '-pricing');
1211
+ ob_start();
1212
+ ?>
1213
+ <div class="wrap">
1214
+ <h1 class="head-notice">&nbsp;</h1>
1215
+ <div class="topbar-container">
1216
+ <?php
1217
+ if ( !WDI_IS_PRO ) {
1218
+ ?>
1219
+ <div class="topbar topbar-content">
1220
+ <div class="topbar-content-container">
1221
+ <div class="topbar-content-title">
1222
+ <?php _e('Instagram Feed by 10Web Premium', WD_WDI_PREFIX); ?>
1223
+ </div>
1224
+ <div class="topbar-content-body">
1225
+ <?php echo $description; ?>
1226
+ </div>
1227
+ </div>
1228
+ <div class="topbar-content-button-container">
1229
+ <a href="<?php echo $premium_link; ?>" target="_blank" class="topbar-upgrade-button"><?php _e( 'Upgrade',WD_WDI_PREFIX ); ?></a>
1230
+ </div>
1231
+ </div>
1232
+ <?php
1233
+ }
1234
+ ?>
1235
+ <div class="topbar_cont">
1236
+ <?php
1237
+ if ( $show_guide_link ) {
1238
+ ?>
1239
+ <div class="topbar topbar-links">
1240
+ <div class="topbar-links-container">
1241
+ <a href="<?php echo $user_guide_link; ?>" target="_blank" class="topbar_user_guid">
1242
+ <div class="topbar-links-item">
1243
+ <?php _e('User guide', WD_WDI_PREFIX); ?>
1244
+ </div>
1245
+ </a>
1246
+ </div>
1247
+ </div>
1248
+ <?php
1249
+ }
1250
+ if ( !WDI_IS_PRO ) {
1251
+ ?>
1252
+ <div class="topbar topbar-links topbar_support_forum">
1253
+ <div class="topbar-links-container">
1254
+ <a href="<?php echo $support_forum_link; ?>" target="_blank" class="topbar_support_forum">
1255
+ <div class="topbar-links-item">
1256
+ <img src="<?php echo WDI_URL . '/images/help.svg'; ?>" class="help_icon" />
1257
+ <?php _e('Ask a question', WD_WDI_PREFIX); ?>
1258
+ </div>
1259
+ </a>
1260
+ </div>
1261
+ </div>
1262
+ <?php
1263
+ }
1264
+ ?>
1265
+ </div>
1266
+ </div>
1267
+ </div>
1268
+ <?php
1269
+ echo ob_get_clean();
1270
+ }
1271
  }
images/help.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-64 -64)"><path class="a" d="M73.5,64A9.5,9.5,0,1,0,83,73.5,9.5,9.5,0,0,0,73.5,64Zm0,17.388A7.888,7.888,0,1,1,81.388,73.5,7.89,7.89,0,0,1,73.5,81.388Z"/><path class="a" d="M357.759,276.863a3.676,3.676,0,0,0-4.733,0A2.891,2.891,0,0,0,352,279.054v.161a.17.17,0,0,0,.17.17h1.018a.17.17,0,0,0,.17-.17v-.161a2.07,2.07,0,0,1,4.071,0,1.716,1.716,0,0,1-1.19,1.542,2.37,2.37,0,0,0-1.1.867,2.427,2.427,0,0,0-.422,1.376v.456a.17.17,0,0,0,.17.17H355.9a.17.17,0,0,0,.17-.17v-.481a1.025,1.025,0,0,1,.655-.95,3.061,3.061,0,0,0,2.059-2.81,2.882,2.882,0,0,0-1.024-2.191Zm-3.215,8.807a.848.848,0,1,0,.848-.848A.848.848,0,0,0,354.545,285.67Z" transform="translate(-281.893 -207.504)"/></g></svg>
js/wdi_admin.js CHANGED
@@ -21,6 +21,8 @@ jQuery(document).ready(function() {
21
  });
22
 
23
  });
 
 
24
 
25
  /*Feeds page*/
26
  wdi_controller.bindSaveFeedEvent();
21
  });
22
 
23
  });
24
+ debugger;
25
+ jQuery('#wdi_ask_question').parent().attr('target','_blank');
26
 
27
  /*Feeds page*/
28
  wdi_controller.bindSaveFeedEvent();
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.2
7
- Stable tag: 1.3.20
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.20 =
510
  Fixed: Security issues
511
 
4
  Requires at least: 3.9
5
  Requires PHP: 5.2
6
  Tested up to: 5.2
7
+ Stable tag: 1.3.21
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.21 =
510
+ Added: Ask a question button.
511
+
512
  = 1.3.20 =
513
  Fixed: Security issues
514
 
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.20
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.20');
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;
@@ -442,6 +442,16 @@ function WDI_instagram_menu() {
442
 
443
  add_submenu_page($parent_slug,__('Premium Version',"wd-instagram-feed"),__('Premium Version',"wd-instagram-feed"),$min_feeds_capability,'wdi_licensing','WDI_instagram_licensing_page');
444
  add_submenu_page("",__('Uninstall',"wd-instagram-feed"),__('Uninstall',"wd-instagram-feed"),'manage_options','wdi_uninstall','WDI_instagram_uninstall_page');
 
 
 
 
 
 
 
 
 
 
445
  }
446
  }
447
 
@@ -573,6 +583,10 @@ function wdi_load_scripts($hook){
573
  ));
574
  }
575
 
 
 
 
 
576
 
577
  }
578
 
@@ -918,28 +932,13 @@ function wdi_token_error_flag_notice(){
918
  }
919
  }
920
 
921
- function wdi_add_plugin_meta_links($meta_fields, $file){
922
-
923
- if(plugin_basename(__FILE__) == $file) {
924
-
925
- $meta_fields[] = "<a href='https://wordpress.org/support/plugin/wd-instagram-feed/' target='_blank'>Support Forum</a>";
926
  $meta_fields[] = "<a href='https://wordpress.org/support/plugin/wd-instagram-feed/reviews#new-post' target='_blank' title='Rate'>
927
- <i class='wdi-rate-stars'>"
928
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
929
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
930
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
931
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
932
- . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
933
- . "</i></a>";
934
-
935
  $stars_color = "#ffb900";
936
-
937
- echo "<style>"
938
- . ".wdi-rate-stars{display:inline-block;color:" . $stars_color . ";position:relative;top:3px;}"
939
- . ".wdi-rate-stars svg{fill:" . $stars_color . ";}"
940
- . ".wdi-rate-stars svg:hover{fill:" . $stars_color . "}"
941
- . ".wdi-rate-stars svg:hover ~ svg{fill:none;}"
942
- . "</style>";
943
  }
944
 
945
  return $meta_fields;
@@ -1002,4 +1001,22 @@ if ( !WDI_IS_PRO ) {
1002
  'page_url' => admin_url('admin.php?page=tenweb_menu'), // Redirect to URL after activating the plugin.
1003
  );
1004
  new TWBanner($tw_banner_params);
1005
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.21
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.21');
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;
442
 
443
  add_submenu_page($parent_slug,__('Premium Version',"wd-instagram-feed"),__('Premium Version',"wd-instagram-feed"),$min_feeds_capability,'wdi_licensing','WDI_instagram_licensing_page');
444
  add_submenu_page("",__('Uninstall',"wd-instagram-feed"),__('Uninstall',"wd-instagram-feed"),'manage_options','wdi_uninstall','WDI_instagram_uninstall_page');
445
+
446
+ /* Custom link to wordpress.org*/
447
+ global $submenu;
448
+ $url = 'https://wordpress.org/support/plugin/wd-instagram-feed/#new-post';
449
+ $submenu[$parent_slug][] = array(
450
+ '<div id="wdi_ask_question">' . __('Ask a question', 'wd-instagram-feed') . '</div>',
451
+ 'manage_options',
452
+ $url
453
+ );
454
+
455
  }
456
  }
457
 
583
  ));
584
  }
585
 
586
+ wp_register_style(WD_WDI_PREFIX . '-roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
587
+ wp_register_style(WD_WDI_PREFIX . '-pricing', WDI_URL . '/css/pricing.css', array(), WDI_VERSION);
588
+
589
+
590
 
591
  }
592
 
932
  }
933
  }
934
 
935
+ function wdi_add_plugin_meta_links( $meta_fields, $file ) {
936
+ if ( plugin_basename(__FILE__) == $file ) {
937
+ $meta_fields[] = "<a href='https://wordpress.org/support/plugin/wd-instagram-feed/#new-post' target='_blank'>" . __('Ask a question', WD_WDI_PREFIX) . "</a>";
 
 
938
  $meta_fields[] = "<a href='https://wordpress.org/support/plugin/wd-instagram-feed/reviews#new-post' target='_blank' title='Rate'>
939
+ <i class='wdi-rate-stars'>" . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" . "</i></a>";
 
 
 
 
 
 
 
940
  $stars_color = "#ffb900";
941
+ echo "<style>" . ".wdi-rate-stars{display:inline-block;color:" . $stars_color . ";position:relative;top:3px;}" . ".wdi-rate-stars svg{fill:" . $stars_color . ";}" . ".wdi-rate-stars svg:hover{fill:" . $stars_color . "}" . ".wdi-rate-stars svg:hover ~ svg{fill:none;}" . "</style>";
 
 
 
 
 
 
942
  }
943
 
944
  return $meta_fields;
1001
  'page_url' => admin_url('admin.php?page=tenweb_menu'), // Redirect to URL after activating the plugin.
1002
  );
1003
  new TWBanner($tw_banner_params);
1004
+ }
1005
+
1006
+ add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'wdi_add_ask_question_links');
1007
+
1008
+ /**
1009
+ * Add plugin action links.
1010
+ *
1011
+ * Add a link to the settings page on the plugins.php page.
1012
+ *
1013
+ * @since 1.0.0
1014
+ *
1015
+ * @param array $links List of existing plugin action links.
1016
+ * @return array List of modified plugin action links.
1017
+ */
1018
+ function wdi_add_ask_question_links ( $links ) {
1019
+ $url = 'https://wordpress.org/support/plugin/wd-instagram-feed/#new-post';
1020
+ $wdi_ask_question_link = array('<a href="' . $url . '" target="_blank">' . __('Help', WD_WDI_PREFIX) . '</a>');
1021
+ return array_merge( $links, $wdi_ask_question_link );
1022
+ }