WD Facebook Feed – Custom Facebook Feed Plugin - Version 1.0.22

Version Description

  • Fixed: shortcode styles and tinymce errors on WP 4.8
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 WD Facebook Feed – Custom Facebook Feed Plugin
Version 1.0.22
Comparing to
See all releases

Code changes from version 1.0.21 to 1.0.22

admin/views/FFWDViewFFWDShortcode.php CHANGED
@@ -32,12 +32,7 @@ class FFWDViewFFWDShortcode
32
  <head>
33
  <title>WD Facebook Feed</title>
34
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
35
- <script language="javascript" type="text/javascript"
36
- src="<?php echo site_url(); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
37
- <script language="javascript" type="text/javascript"
38
- src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
39
- <script language="javascript" type="text/javascript"
40
- src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
41
  <?php
42
  wp_print_scripts('jquery');
43
  wp_print_scripts('jquery-ui-core');
@@ -47,49 +42,33 @@ class FFWDViewFFWDShortcode
47
  ?>
48
  <link rel="stylesheet" href="<?php echo WD_FFWD_URL . '/css/ffwd_shortcode.css?ver=' . ffwd_version(); ?>">
49
  <link rel="stylesheet" href="<?php echo WD_FFWD_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
50
- <script language="javascript" type="text/javascript"
51
- src="<?php echo WD_FFWD_URL . '/js/ffwd_shortcode.js?ver=' . ffwd_version(); ?>"></script>
52
- <script language="javascript" type="text/javascript"
53
- src="<?php echo WD_FFWD_URL . '/js/jscolor/jscolor.js?ver=' . ffwd_version(); ?>"></script>
54
  <base target="_self">
55
  </head>
56
- <body id="link" onLoad="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';" dir="ltr"
57
- class="forceColors">
58
- <?php if (isset($_POST['tagtext'])) {
59
  echo '<script>tinyMCEPopup.close();</script></body></html>';
60
  die();
61
- } ?>
62
  <form method="post" action="#" id="bwg_shortcode_form">
63
  <?php wp_nonce_field('FFWDShortcode', 'ffwd_nonce'); ?>
64
  <div class="tabs" role="tablist" tabindex="-1">
65
- <ul>
66
- <li id="display_tab" class="current" role="tab" tabindex="0">
67
- <span>
68
- <a href="javascript:mcTabs.displayTab('display_tab','display_panel');" onMouseDown="return false;"
69
- tabindex="-1">Display</a>
70
- </span>
71
- </li>
72
- </ul>
73
  </div>
74
  <div class="panel_wrapper">
75
  <div id="display_panel" class="panel current">
76
  <div style="">
77
  <div style="float:left">
78
  <div class="gallery_type" style="border-style:none">
79
- <select name="wd_fb_feed" id="wd_fb_feed"
80
- onchange="wd_fb_display_type('wd_fb', jQuery(this))">
81
- <option value="0" fb_content_type="0" selected="selected">Select Facebook Feed
82
- </option>
83
- <?php
84
- foreach ($wd_fb_rows as $gallery_row) {
85
- ?>
86
  <option value="<?php echo $gallery_row->id; ?>"
87
- fb_type="<?php echo $gallery_row->type; ?>"
88
- fb_content_type="<?php echo $gallery_row->content_type; ?>"
89
- fb_content="<?php echo $gallery_row->content; ?>"> <?php echo $gallery_row->name; ?></option>
90
- <?php
91
- }
92
- ?>
93
  </select>
94
  </div>
95
  </div>
@@ -99,11 +78,10 @@ class FFWDViewFFWDShortcode
99
  </div>
100
  <div class="mceActionPanel">
101
  <div style="float:left;">
102
- <input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();"/>
103
  </div>
104
  <div style="float:right;">
105
- <input type="button" id="insert" name="insert" value="Insert"
106
- onClick="bwg_insert_shortcode('wd_fb', '');"/>
107
  </div>
108
  <div style="clear:both"></div>
109
  </div>
@@ -119,12 +97,12 @@ class FFWDViewFFWDShortcode
119
 
120
  var bwg_insert = 1;
121
 
122
- var content = tinyMCE.activeEditor.selection.getContent();
123
 
124
 
125
  // Get shortcodes attributes.
126
  function get_params(module_name) {
127
- var selected_text = tinyMCE.activeEditor.selection.getContent();
128
  var module_start_index = selected_text.indexOf("[" + module_name);
129
  var module_end_index = selected_text.indexOf("]", module_start_index);
130
  var module_str = "";
@@ -159,16 +137,17 @@ class FFWDViewFFWDShortcode
159
  });
160
 
161
  jQuery("#bwg_shortcode_form").submit();
162
- if (window.tinymce.isIE && content) {
163
  // IE and Update.
164
- var all_content = tinyMCE.activeEditor.getContent();
165
  all_content = all_content.replace('<p></p><p>[WD_FB', '<p>[WD_FB');
166
- tinyMCE.activeEditor.setContent(all_content.replace(content, '[WD_FB id="' + jQuery("#wd_fb_feed").val() + '"]'));
167
  }
168
  else {
169
- window.tinyMCE.execCommand('mceInsertContent', false, short_code);
170
  }
171
- tinyMCEPopup.editor.execCommand('mceRepaint');
 
172
  }
173
 
174
 
32
  <head>
33
  <title>WD Facebook Feed</title>
34
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
35
+ <link rel="stylesheet" href="<?php echo get_option("siteurl"); ?>/wp-includes/js/tinymce/plugins/compat3x/css/dialog.css" type="text/css" media="all">
 
 
 
 
 
36
  <?php
37
  wp_print_scripts('jquery');
38
  wp_print_scripts('jquery-ui-core');
42
  ?>
43
  <link rel="stylesheet" href="<?php echo WD_FFWD_URL . '/css/ffwd_shortcode.css?ver=' . ffwd_version(); ?>">
44
  <link rel="stylesheet" href="<?php echo WD_FFWD_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>">
45
+ <script language="javascript" type="text/javascript" src="<?php echo WD_FFWD_URL . '/js/ffwd_shortcode.js?ver=' . ffwd_version(); ?>"></script>
46
+ <script language="javascript" type="text/javascript" src="<?php echo WD_FFWD_URL . '/js/jscolor/jscolor.js?ver=' . ffwd_version(); ?>"></script>
 
 
47
  <base target="_self">
48
  </head>
49
+ <body id="link" dir="ltr" class="forceColors">
50
+ <?php /* if (isset($_POST['tagtext'])) {
 
51
  echo '<script>tinyMCEPopup.close();</script></body></html>';
52
  die();
53
+ } */?>
54
  <form method="post" action="#" id="bwg_shortcode_form">
55
  <?php wp_nonce_field('FFWDShortcode', 'ffwd_nonce'); ?>
56
  <div class="tabs" role="tablist" tabindex="-1">
57
+ <h4>WD Facebook Feed</h4>
 
 
 
 
 
 
 
58
  </div>
59
  <div class="panel_wrapper">
60
  <div id="display_panel" class="panel current">
61
  <div style="">
62
  <div style="float:left">
63
  <div class="gallery_type" style="border-style:none">
64
+ <select name="wd_fb_feed" id="wd_fb_feed" onchange="wd_fb_display_type('wd_fb', jQuery(this))">
65
+ <option value="0" fb_content_type="0" selected="selected">Select Facebook Feed </option>
66
+ <?php foreach ($wd_fb_rows as $gallery_row) { ?>
 
 
 
 
67
  <option value="<?php echo $gallery_row->id; ?>"
68
+ fb_type="<?php echo $gallery_row->type; ?>"
69
+ fb_content_type="<?php echo $gallery_row->content_type; ?>"
70
+ fb_content="<?php echo $gallery_row->content; ?>"> <?php echo $gallery_row->name; ?></option>
71
+ <?php } ?>
 
 
72
  </select>
73
  </div>
74
  </div>
78
  </div>
79
  <div class="mceActionPanel">
80
  <div style="float:left;">
81
+ <input type="button" id="cancel" name="cancel" value="Cancel" onClick="top.tinyMCE.activeEditor.windowManager.close(window);"/>
82
  </div>
83
  <div style="float:right;">
84
+ <input type="button" id="insert" name="insert" value="Insert" onClick="bwg_insert_shortcode('wd_fb', '');"/>
 
85
  </div>
86
  <div style="clear:both"></div>
87
  </div>
97
 
98
  var bwg_insert = 1;
99
 
100
+ var content = top.tinyMCE.activeEditor.selection.getContent();
101
 
102
 
103
  // Get shortcodes attributes.
104
  function get_params(module_name) {
105
+ var selected_text = top.tinyMCE.activeEditor.selection.getContent();
106
  var module_start_index = selected_text.indexOf("[" + module_name);
107
  var module_end_index = selected_text.indexOf("]", module_start_index);
108
  var module_str = "";
137
  });
138
 
139
  jQuery("#bwg_shortcode_form").submit();
140
+ if (top.tinymce.isIE && content) {
141
  // IE and Update.
142
+ var all_content = top.tinyMCE.activeEditor.getContent();
143
  all_content = all_content.replace('<p></p><p>[WD_FB', '<p>[WD_FB');
144
+ top.tinyMCE.activeEditor.setContent(all_content.replace(content, '[WD_FB id="' + jQuery("#wd_fb_feed").val() + '"]'));
145
  }
146
  else {
147
+ top.tinyMCE.execCommand('mceInsertContent', false, short_code);
148
  }
149
+ //tinyMCEPopup.editor.execCommand('mceRepaint');
150
+ top.tinyMCE.activeEditor.windowManager.close(window);
151
  }
152
 
153
 
css/ffwd_shortcode.css CHANGED
@@ -15,8 +15,13 @@
15
  height: 60px !important;
16
  overflow: auto;
17
  font-size: 9px;
 
18
  }
 
19
 
 
 
 
20
  .bwg_short_div * {
21
  font-size: 10px;
22
  }
15
  height: 60px !important;
16
  overflow: auto;
17
  font-size: 9px;
18
+ border: none !important;
19
  }
20
+ .tabs { border: none !important; }
21
 
22
+ .tabs h4 { padding-left: 10px !important; }
23
+
24
+ #display_panel .gallery_type select#wd_fb_feed { margin-top:15px; }
25
  .bwg_short_div * {
26
  font-size: 10px;
27
  }
facebook-feed-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Facebook Feed WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
6
  * Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
- * Version: 1.0.21
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -914,7 +914,7 @@ add_action( 'init', 'ffwd_language_load' );
914
 
915
  function ffwd_version() {
916
 
917
- $version = '1.0.21';
918
 
919
  if ( get_option( 'ffwd_version' ) === false ) {
920
  add_option( 'ffwd_version', $version );
4
  * Plugin Name: Facebook Feed WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
6
  * Description:Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
+ * Version: 1.0.22
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
914
 
915
  function ffwd_version() {
916
 
917
+ $version = '1.0.22';
918
 
919
  if ( get_option( 'ffwd_version' ) === false ) {
920
  add_option( 'ffwd_version', $version );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
4
  Tags: customizable facebook feed, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
- Stable tag: 1.0.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,6 +59,9 @@ Upgrade to [Facebook Feed Pro](https://web-dorado.com/products/wordpress-faceboo
59
 
60
  == Changelog ==
61
 
 
 
 
62
  = 1.0.21 =
63
  * Fixed: Bug on autoupdate
64
  * Fixed: Event ordering
4
  Tags: customizable facebook feed, facebook, facebook events, facebook feed, facebook group, facebook like box, facebook likes, facebook page, facebook photos, facebook plugin, facebook posts, facebook likebox
5
  Requires at least: 3.4
6
  Tested up to: 4.8
7
+ Stable tag: 1.0.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
 
60
  == Changelog ==
61
 
62
+ = 1.0.22 =
63
+ * Fixed: shortcode styles and tinymce errors on WP 4.8
64
+
65
  = 1.0.21 =
66
  * Fixed: Bug on autoupdate
67
  * Fixed: Event ordering