WD Instagram Feed – Instagram Gallery - Version 1.2.6

Version Description

Change: Introduction of Backup WD plugin

Download this release

Release Info

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

Code changes from version 1.2.5 to 1.2.6

admin/controllers/WDIControllerUninstall_wdi.php CHANGED
@@ -98,7 +98,7 @@ class WDIControllerUninstall_wdi{
98
  else{
99
  $this->already_uninstalled();
100
  };
101
-
102
  delete_option(WDI_OPT);
103
 
104
  $sample_post_id = get_option('wdi_sample_feed_post_id');
98
  else{
99
  $this->already_uninstalled();
100
  };
101
+ delete_option("wdi_bk_notice_status");
102
  delete_option(WDI_OPT);
103
 
104
  $sample_post_id = get_option('wdi_sample_feed_post_id');
css/wd_bp_install.css ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @media only screen and (max-width: 500px) {
2
+ body #wd_backup_logo {
3
+ max-width: 100%;
4
+ }
5
+ body #wd_bp_notice_cont p {
6
+ padding-right: 25px !important;
7
+ }
8
+ }
9
+
10
+ #wd_bp_logo_notice {
11
+ width: 40px;
12
+ float: left;
13
+ margin-right: 10px;
14
+ }
15
+
16
+ #wd_bp_notice_cont {
17
+ position: relative;
18
+ }
19
+
20
+ .wds_backup_install p {
21
+ padding-top: 0px;
22
+ margin-top: 0px;
23
+ }
24
+
25
+ #wd_bp_notice_cont a {
26
+ margin: 0 5px;
27
+ }
28
+
29
+ #wd_bp_notice_cont .dashicons-dismiss:before {
30
+ content: "\f153";
31
+ background: 0 0;
32
+ color: #72777c;
33
+ display: block;
34
+ font: 400 16px/20px dashicons;
35
+ speak: none;
36
+ height: 20px;
37
+ text-align: center;
38
+ width: 20px;
39
+ -webkit-font-smoothing: antialiased;
40
+ -moz-osx-font-smoothing: grayscale;
41
+ }
42
+
43
+ .wd_bp_notice_dissmiss {
44
+ margin-top: 5px;
45
+ }
46
+
css/wdi_backend.css CHANGED
@@ -192,16 +192,16 @@ padding: 5px;
192
  padding: 2px;
193
  }
194
 
195
- .notice {
196
- display: inline-block;
197
- line-height: 19px;
198
- font-size: 14px;
199
- text-align: left;
200
- background-color: #fff;
201
- border-left: 4px solid #ffba00;
202
- -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
203
- box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
204
- }
205
 
206
 
207
  .small_input{
192
  padding: 2px;
193
  }
194
 
195
+ /*.notice {*/
196
+ /*display: inline-block;*/
197
+ /*line-height: 19px;*/
198
+ /*font-size: 14px;*/
199
+ /*text-align: left;*/
200
+ /*background-color: #fff;*/
201
+ /*border-left: 4px solid #ffba00;*/
202
+ /*-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);*/
203
+ /*box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);*/
204
+ /*}*/
205
 
206
 
207
  .small_input{
images/logo.png ADDED
Binary file
js/wd_bp_install.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function () {
2
+ /*Ajax hide notice forever */
3
+ jQuery(".wd_bp_notice_dissmiss").on("click", function () {
4
+ jQuery("#wd_bp_notice_cont").hide();
5
+ jQuery.post(wd_bp_url);
6
+ })
7
+ });
8
+
9
+ // Set option status 1 - never show again during install btn click in notice
10
+ function wd_bp_notice_install() {
11
+ jQuery.post(wd_bp_url);
12
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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, lightbox, photos,instagram account
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
- Stable tag: 1.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -110,6 +110,9 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
110
 
111
  == Changelog ==
112
 
 
 
 
113
  = 1.2.5 =
114
  Change: "create_function" is not used anymore
115
 
4
  Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, lightbox, photos,instagram account
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
+ Stable tag: 1.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
110
 
111
  == Changelog ==
112
 
113
+ = 1.2.6 =
114
+ Change: Introduction of Backup WD plugin
115
+
116
  = 1.2.5 =
117
  Change: "create_function" is not used anymore
118
 
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.2.5
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
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.2.5');
25
  define('WDI_IS_PRO','false');
26
 
27
 
@@ -658,6 +658,60 @@ function wdi_wd_lib_init(){
658
 
659
 
660
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
661
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
662
 
663
 
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.2.6
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
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.2.6');
25
  define('WDI_IS_PRO','false');
26
 
27
 
658
 
659
 
660
  }
661
+ if (!function_exists('wd_bp_install_notice')) {
662
+ $wd_bp_plugin_url = WDI_URL;
663
+ function wd_bp_script_style() {
664
+ global $wd_bp_plugin_url;
665
+ wp_enqueue_script('wd_bck_install', $wd_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
666
+ wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/css/wd_bp_install.css');
667
+ }
668
+ add_action('admin_enqueue_scripts', 'wd_bp_script_style');
669
+
670
+ /**
671
+ * Show notice to install backup plugin
672
+ */
673
+ function wd_bp_install_notice() {
674
+ global $wd_bp_plugin_url;
675
+ $prefix = 'wdi';
676
+ $meta_value = get_option('wdi_bk_notice_status');
677
+ if ($meta_value === '' || $meta_value === false) {
678
+ ob_start();
679
+ ?>
680
+ <div class="notice notice-info" id="wd_bp_notice_cont">
681
+ <p>
682
+ <img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/logo.png'; ?>">
683
+ <?php _e("Hey! Install brand new FREE", $prefix) ?>
684
+ <a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
685
+ target="_blank"><?php _e("Backup WD", $prefix) ?></a>
686
+ <?php _e("plugin to keep your data and website safe.", $prefix) ?>
687
+ <a class="button button-primary"
688
+ href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd')); ?>">
689
+ <span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
690
+ </a>
691
+ </p>
692
+ <button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
693
+ </button>
694
+ </div>
695
+ <script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_bp_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
696
+ <?php
697
+ echo ob_get_clean();
698
+ }
699
+ }
700
 
701
+ if (!is_dir(plugin_dir_path(__DIR__) . 'backup-wd')) {
702
+ add_action('admin_notices', 'wd_bp_install_notice');
703
+ }
704
+
705
+ /**
706
+ * Add usermeta to db
707
+ *
708
+ * empty: notice,
709
+ * 1 : never show again
710
+ */
711
+ function wd_bp_install_notice_status() {
712
+ update_option('wdi_bk_notice_status', '1', 'no');
713
+ }
714
+ add_action('wp_ajax_wd_bp_dismiss', 'wd_bp_install_notice_status');
715
+ }
716
 
717