WD Facebook Feed – Custom Facebook Feed Plugin - Version 1.1.2

Version Description

  • Fixed: Inserting shortcode when when no feed is selected
  • Fixed: Events features are removed because Facebook events API was shut down
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

admin/views/FFWDViewFFWDShortcode.php CHANGED
@@ -61,7 +61,7 @@ class FFWDViewFFWDShortcode
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; ?>"
@@ -152,9 +152,20 @@ class FFWDViewFFWDShortcode
152
 
153
 
154
  params = get_params('WD_FB');
155
- if (params['id'])
156
- jQuery('#wd_fb_feed').val(params['id']);
 
157
 
 
 
 
 
 
 
 
 
 
 
158
 
159
  </script>
160
  </body>
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_insert_btn_disable(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; ?>"
152
 
153
 
154
  params = get_params('WD_FB');
155
+ if (params['id']) {
156
+ jQuery('#wd_fb_feed').val(params['id']);
157
+ }
158
 
159
+ function wd_fb_insert_btn_disable(){
160
+ if(jQuery('#wd_fb_feed').val() == 0){
161
+ jQuery('#insert').attr('disabled', true);
162
+ jQuery('#insert').css('opacity', 0.5);
163
+ }else{
164
+ jQuery('#insert').attr('disabled', false);
165
+ jQuery('#insert').css('opacity', 1);
166
+ }
167
+ }
168
+ wd_fb_insert_btn_disable();
169
 
170
  </script>
171
  </body>
admin/views/FFWDViewInfo_ffwd.php CHANGED
@@ -620,8 +620,6 @@ class FFWDViewInfo_ffwd
620
  <li class="ffwd_tab" id="ffwd_tab_page_plugin" show="page_plugin_tab"
621
  onclick="ffwd_change_tab(this)">Page plugin
622
  </li>
623
- <li class="ffwd_tab" id="ffwd_tab_events" show="events_tab" onclick="ffwd_change_tab(this)">Events
624
- </li>
625
  </ul>
626
  </div>
627
 
@@ -893,15 +891,6 @@ class FFWDViewInfo_ffwd
893
  name="<?php echo WD_FB_PREFIX; ?>_timeline_links" checked="checked"
894
  value="links">
895
  <label for="<?php echo WD_FB_PREFIX; ?>_timeline_links">Links</label>
896
- <br>
897
- <input disabled type="checkbox" class="inputbox"
898
- id="<?php echo WD_FB_PREFIX; ?>_timeline_events"
899
- name="<?php echo WD_FB_PREFIX; ?>_timeline_events" checked="checked"
900
- style="display:<?php echo($type != 'profile' ? 'inline-block' : 'none'); ?>;"
901
- value="events">
902
- <label style="display:<?php echo($type != 'profile' ? 'inline-block' : 'none'); ?>;"
903
- for="<?php echo WD_FB_PREFIX; ?>_timeline_events">Events</label>
904
-
905
  <br>
906
  <label for="" class="ffwd_pro_only">This Feature is Available Only in PRO
907
  version</label>
@@ -932,13 +921,6 @@ class FFWDViewInfo_ffwd
932
  name="<?php echo WD_FB_PREFIX; ?>_specific" <?php echo (strpos($row->content, 'albums') !== false) ? 'checked="checked"' : ''; ?>
933
  value="albums">
934
  <label for="<?php echo WD_FB_PREFIX; ?>_specific_albums">Albums</label>
935
- <br>
936
- <input type="radio" class="inputbox"
937
- id="<?php echo WD_FB_PREFIX; ?>_specific_events"
938
- onchange="choose_fb_content_type('<?php echo WD_FB_PREFIX; ?>', 'specific');"
939
- name="<?php echo WD_FB_PREFIX; ?>_specific" <?php echo (strpos($row->content, 'events') !== false) ? 'checked="checked"' : ''; ?>
940
- value="events">
941
- <label for="<?php echo WD_FB_PREFIX; ?>_specific_events">Events</label>
942
  </td>
943
  </tr>
944
  <tr>
@@ -2054,132 +2036,6 @@ class FFWDViewInfo_ffwd
2054
 
2055
  </div>
2056
  </div>
2057
-
2058
-
2059
- <div class="ffwd_p ffwd_events_tab">
2060
- <div class="ffwd_header_c">
2061
- <label class="ffwd_header_l">Events</label>
2062
- </div>
2063
- <div class="ffwd_varied_s">
2064
-
2065
- <div class="ffwd_varied_s_e">
2066
-
2067
- <table class="ffwd_sett_tabl">
2068
- <tr>
2069
- <td class="ffwd_set_l">
2070
- <label>Show place:</label>
2071
- </td>
2072
- <td class="ffwd_set_i">
2073
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_street"
2074
- id="<?php echo WD_FB_PREFIX; ?>_event_street_1"
2075
- value="1" <?php if ($row->event_street) echo 'checked="checked"'; ?> /><label
2076
- for="<?php echo WD_FB_PREFIX; ?>_event_street_1">Yes</label>
2077
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_street"
2078
- id="<?php echo WD_FB_PREFIX; ?>_event_street_0"
2079
- value="0" <?php if (!$row->event_street) echo 'checked="checked"'; ?> /><label
2080
- for="<?php echo WD_FB_PREFIX; ?>_event_street_0">No</label>
2081
- <div class="spider_description"></div>
2082
- </td>
2083
- </tr>
2084
- <!--<tr>
2085
- <td class="ffwd_set_l">
2086
- <label>Show place(city):</label>
2087
- </td>
2088
- <td class="ffwd_set_i">
2089
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_city"
2090
- id="<?php echo WD_FB_PREFIX; ?>_event_city_1"
2091
- value="1" <?php if ($row->event_city) echo 'checked="checked"'; ?> /><label
2092
- for="<?php echo WD_FB_PREFIX; ?>_event_city_1">Yes</label>
2093
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_city"
2094
- id="<?php echo WD_FB_PREFIX; ?>_event_city_0"
2095
- value="0" <?php if (!$row->event_city) echo 'checked="checked"'; ?> /><label
2096
- for="<?php echo WD_FB_PREFIX; ?>_event_city_0">No</label>
2097
- <div class="spider_description"></div>
2098
- </td>
2099
- </tr>
2100
- <tr>
2101
- <td class="ffwd_set_l">
2102
- <label>Show place(country):</label>
2103
- </td>
2104
- <td class="ffwd_set_i">
2105
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_country"
2106
- id="<?php echo WD_FB_PREFIX; ?>_event_country_1"
2107
- value="1" <?php if ($row->event_country) echo 'checked="checked"'; ?> /><label
2108
- for="<?php echo WD_FB_PREFIX; ?>_event_country_1">Yes</label>
2109
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_country"
2110
- id="<?php echo WD_FB_PREFIX; ?>_event_country_0"
2111
- value="0" <?php if (!$row->event_country) echo 'checked="checked"'; ?> /><label
2112
- for="<?php echo WD_FB_PREFIX; ?>_event_country_0">No</label>
2113
- <div class="spider_description"></div>
2114
- </td>
2115
- </tr>
2116
- <tr>
2117
- <td class="ffwd_set_l">
2118
- <label>Show place(zip):</label>
2119
- </td>
2120
- <td class="ffwd_set_i">
2121
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_zip"
2122
- id="<?php echo WD_FB_PREFIX; ?>_event_zip_1"
2123
- value="1" <?php if ($row->event_zip) echo 'checked="checked"'; ?> /><label
2124
- for="<?php echo WD_FB_PREFIX; ?>_event_zip_1">Yes</label>
2125
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_zip"
2126
- id="<?php echo WD_FB_PREFIX; ?>_event_zip_0"
2127
- value="0" <?php if (!$row->event_zip) echo 'checked="checked"'; ?> /><label
2128
- for="<?php echo WD_FB_PREFIX; ?>_event_zip_0">No</label>
2129
- <div class="spider_description"></div>
2130
- </td>
2131
- </tr>
2132
- <tr>
2133
- <td class="ffwd_set_l">
2134
- <label>Show place(map):</label>
2135
- </td>
2136
- <td class="ffwd_set_i">
2137
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_map"
2138
- id="<?php echo WD_FB_PREFIX; ?>_event_map_1"
2139
- value="1" <?php if ($row->event_map) echo 'checked="checked"'; ?> /><label
2140
- for="<?php echo WD_FB_PREFIX; ?>_event_map_1">Yes</label>
2141
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_map"
2142
- id="<?php echo WD_FB_PREFIX; ?>_event_map_0"
2143
- value="0" <?php if (!$row->event_map) echo 'checked="checked"'; ?> /><label
2144
- for="<?php echo WD_FB_PREFIX; ?>_event_map_0">No</label>
2145
- <div class="spider_description"></div>
2146
- </td>
2147
- </tr>-->
2148
- <tr>
2149
- <td class="ffwd_set_l">
2150
- <label>Show date:</label>
2151
- </td>
2152
- <td class="ffwd_set_i">
2153
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_date"
2154
- id="<?php echo WD_FB_PREFIX; ?>_event_date_1"
2155
- value="1" <?php if ($row->event_date) echo 'checked="checked"'; ?> /><label
2156
- for="<?php echo WD_FB_PREFIX; ?>_event_date_1">Yes</label>
2157
- <input type="radio" name="<?php echo WD_FB_PREFIX; ?>_event_date"
2158
- id="<?php echo WD_FB_PREFIX; ?>_event_date_0"
2159
- value="0" <?php if (!$row->event_date) echo 'checked="checked"'; ?> /><label
2160
- for="<?php echo WD_FB_PREFIX; ?>_event_date_0">No</label>
2161
- <div class="spider_description"></div>
2162
- </td>
2163
- </tr>
2164
-
2165
- <tr id="tr_popup_hit_counter">
2166
- <td class="ffwd_set_l">
2167
- <label>Maximum Event description Length:</label>
2168
- </td>
2169
- <td class="ffwd_set_i">
2170
- <input type="text" name="<?php echo WD_FB_PREFIX; ?>_event_desp_length"
2171
- id="<?php echo WD_FB_PREFIX; ?>_event_desp_length" size="10"
2172
- value="<?php echo $row->event_desp_length == '' ? '200' : $row->event_desp_length; ?>"
2173
- class=""/>
2174
- <div class="spider_description"></div>
2175
- </td>
2176
- </tr>
2177
- </table>
2178
- </div>
2179
- </div>
2180
- </div>
2181
-
2182
-
2183
  </div>
2184
  <input id="task" name="task" type="hidden" value=""/>
2185
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>"/>
620
  <li class="ffwd_tab" id="ffwd_tab_page_plugin" show="page_plugin_tab"
621
  onclick="ffwd_change_tab(this)">Page plugin
622
  </li>
 
 
623
  </ul>
624
  </div>
625
 
891
  name="<?php echo WD_FB_PREFIX; ?>_timeline_links" checked="checked"
892
  value="links">
893
  <label for="<?php echo WD_FB_PREFIX; ?>_timeline_links">Links</label>
 
 
 
 
 
 
 
 
 
894
  <br>
895
  <label for="" class="ffwd_pro_only">This Feature is Available Only in PRO
896
  version</label>
921
  name="<?php echo WD_FB_PREFIX; ?>_specific" <?php echo (strpos($row->content, 'albums') !== false) ? 'checked="checked"' : ''; ?>
922
  value="albums">
923
  <label for="<?php echo WD_FB_PREFIX; ?>_specific_albums">Albums</label>
 
 
 
 
 
 
 
924
  </td>
925
  </tr>
926
  <tr>
2036
 
2037
  </div>
2038
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2039
  </div>
2040
  <input id="task" name="task" type="hidden" value=""/>
2041
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>"/>
facebook-feed-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WD Facebook Feed
5
  * Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
6
  * Description:WD Facebook Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
- * Version: 1.1.1
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -17,7 +17,7 @@ define( 'WD_FFWD_URL', plugins_url( plugin_basename( dirname( __FILE__ ) ) ) );
17
  define( 'WD_FFWD_PRO', true );
18
  define( 'WD_FB_PREFIX', 'ffwd' );
19
  if(! defined( 'FFWD_VERSION' ) ){
20
- define ('FFWD_VERSION',"1.1.1");
21
  }
22
 
23
 
@@ -186,7 +186,7 @@ if ( ! isset( $_REQUEST['ajax'] )) {
186
  "title" => __( "FACEBOOK FEED WD", "wd_ads" ),
187
  "description" => __( "
188
  Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website. The plugin comes with a number of great features and functionality. Add as many feeds as you want and easily display content from your Facebook profile, page or group in any posts or page using shortcodes.
189
- The plugin allows you to display photos, videos, events and more. The Facebook Feed WD come with the awesome Lightbox feature to display galleries in a pop-up window.
190
  The plugin offers tons of customization options, including filtering by content type and user roles, theme and layout options and more. No matter how much design and technical knowledge you have, you can set-up in minutes and change the plugin to better fit your website.
191
  ", "wd_ads" ),
192
  ),
@@ -203,7 +203,7 @@ Facebook Feed WD is easy to install and set-up. This WordPress plugin allows you
203
 
204
  3 => array(
205
  "title" => __( "Display Post Types", "wd_ads" ),
206
- "description" => __( "Control what type of posts you want to display you want to display. You can decide to show all the content on your timeline or you can display specific content filtering by user roles or post types like photos, videos, events, etc.", "wd_ads" ),
207
  ),
208
 
209
  4 => array(
@@ -269,10 +269,10 @@ Multiple Feeds per Post/Page", "wd_ads" ),
269
  "title" => __( "Page plugin", "wd_ads" ),
270
  "url" => "https://web-dorado.com/wordpress-facebook-feed/creating-feed/page-plugin.html",
271
  ),
272
- array(
273
- "title" => __( "Events", "wd_ads" ),
274
- "url" => "https://web-dorado.com/wordpress-facebook-feed/creating-feed/events.html",
275
- ),
276
 
277
  )
278
  ),
4
  * Plugin Name: WD Facebook Feed
5
  * Plugin URI: https://web-dorado.com/products/wordpress-facebook-feed-plugin.html
6
  * Description:WD Facebook Feed is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website.
7
+ * Version: 1.1.2
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
17
  define( 'WD_FFWD_PRO', true );
18
  define( 'WD_FB_PREFIX', 'ffwd' );
19
  if(! defined( 'FFWD_VERSION' ) ){
20
+ define ('FFWD_VERSION',"1.1.2");
21
  }
22
 
23
 
186
  "title" => __( "FACEBOOK FEED WD", "wd_ads" ),
187
  "description" => __( "
188
  Facebook Feed WD is a completely customizable, responsive solution to help you display your Facebook feed on your WordPress website. The plugin comes with a number of great features and functionality. Add as many feeds as you want and easily display content from your Facebook profile, page or group in any posts or page using shortcodes.
189
+ The plugin allows you to display photos, videos and more. Facebook Feed WD comes with the awesome Lightbox feature to display galleries in a pop-up window.
190
  The plugin offers tons of customization options, including filtering by content type and user roles, theme and layout options and more. No matter how much design and technical knowledge you have, you can set-up in minutes and change the plugin to better fit your website.
191
  ", "wd_ads" ),
192
  ),
203
 
204
  3 => array(
205
  "title" => __( "Display Post Types", "wd_ads" ),
206
+ "description" => __( "Control what type of posts you want to display you want to display. You can decide to show all the content on your timeline or you can display specific content filtering by user roles or post types like photos, videos, etc.", "wd_ads" ),
207
  ),
208
 
209
  4 => array(
269
  "title" => __( "Page plugin", "wd_ads" ),
270
  "url" => "https://web-dorado.com/wordpress-facebook-feed/creating-feed/page-plugin.html",
271
  ),
272
+ // array(
273
+ // "title" => __( "Events", "wd_ads" ),
274
+ // "url" => "https://web-dorado.com/wordpress-facebook-feed/creating-feed/events.html",
275
+ // ),
276
 
277
  )
278
  ),
js/ffwd.js CHANGED
@@ -319,7 +319,7 @@ function choose_fb_type(wd_fb_prefix, value) {
319
  }
320
 
321
  function choose_fb_content_type(wd_fb_prefix, value) {
322
-
323
  jQuery('#'+wd_fb_prefix+'_content_type_specific').hide();
324
  jQuery('#'+wd_fb_prefix+'_content_type_timeline').hide();
325
  jQuery('#'+wd_fb_prefix+'_content_type_timeline_type').hide();
319
  }
320
 
321
  function choose_fb_content_type(wd_fb_prefix, value) {
322
+ value = 'timeline';//only free
323
  jQuery('#'+wd_fb_prefix+'_content_type_specific').hide();
324
  jQuery('#'+wd_fb_prefix+'_content_type_timeline').hide();
325
  jQuery('#'+wd_fb_prefix+'_content_type_timeline_type').hide();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: customizable facebook feed, facebook, facebook events, facebook feed, face
4
  Requires at least: 3.4
5
  Requires PHP: 5.2
6
  Tested up to: 4.9
7
- Stable tag: 1.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -100,6 +100,10 @@ The plugin uses Facebook API to get public data from Facebook. All the received
100
 
101
  == Changelog ==
102
 
 
 
 
 
103
  = 1.1.1 =
104
  * Improved: Simplified Facebook login. No need to enter app ID and get page tokens manually. This is a new Facebook app, so reauthentication is required.
105
  * Fixed: Elementor compatibility
4
  Requires at least: 3.4
5
  Requires PHP: 5.2
6
  Tested up to: 4.9
7
+ Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
100
 
101
  == Changelog ==
102
 
103
+ = 1.1.2 =
104
+ * Fixed: Inserting shortcode when when no feed is selected
105
+ * Fixed: Events features are removed because Facebook events API was shut down
106
+
107
  = 1.1.1 =
108
  * Improved: Simplified Facebook login. No need to enter app ID and get page tokens manually. This is a new Facebook app, so reauthentication is required.
109
  * Fixed: Elementor compatibility