Facebook Like Box - Version 2.9

Version Description

Download this release

Release Info

Developer johnnash1975
Plugin Icon 128x128 Facebook Like Box
Version 2.9
Comparing to
See all releases

Code changes from version 2.8.8 to 2.9

admin_cardozafacebook.css ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .fb-container .wrap_facebook
2
+ {
3
+ float:left;
4
+ width:700px;
5
+
6
+ }
7
+
8
+
9
+ .fb-container .fb-preview
10
+ {
11
+ float:right;
12
+ margin-top:100px;
13
+ margin-right:10px;
14
+ }
15
+
16
+ #preview
17
+ {
18
+ margin-left:5px;
19
+ text-decoration:none;
20
+ background-color:#ccc;
21
+ padding:5px;
22
+ border-radius:10px;
23
+ }
admin_cardozafacebook.js ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function()
2
+ {
3
+ function loadfbIframe()
4
+ {
5
+ jQuery(".fb-preview").show();
6
+ var fb_url=jQuery("[name=frm_url").val();
7
+ fb_url=fb_url.replace(":","%3A");
8
+ fb_url=fb_url.replace("/","%2F");
9
+ fb_url="//www.facebook.com/plugins/likebox.php?href="+fb_url;
10
+ var width=jQuery("[name=frm_width]").val();
11
+ var height=jQuery("[name=frm_height]").val();
12
+ var show_faces=jQuery("[name=frm_show_faces]").val();
13
+ var header=jQuery("[name=frm_header]").val();
14
+ var h_status="";
15
+
16
+ var stream=jQuery("[name=frm_stream]").val();
17
+ var border_color=jQuery("[name=frm_border_color]").val();
18
+
19
+ if(header=="true")
20
+ h_status="false";
21
+ else
22
+ h_status="true";
23
+
24
+ var d_tabs='';
25
+ if(stream=="true")
26
+ d_tabs='&tabs=timeline';
27
+
28
+
29
+
30
+ var small_header=jQuery("[name=frm_small_header]").val();
31
+
32
+ var frame='<iframe src="'+fb_url+'&amp;width='+width+'&amp;height='+height+'&amp;show_posts=false&amp;show_faces='+show_faces+'&amp;stream='+stream+'&amp;hide_cover='+h_status+'&amp;small_header='+small_header + d_tabs +'" scrolling="no" frameborder="0" allowTransparency="true" height="'+height+'" style="border:1px solid #'+border_color+';overflow:hidden; width:'+width+'px; height:'+height+'px;" allowTransparency="true">';
33
+ console.log("done");
34
+ jQuery(".fb-preview").html(frame);
35
+
36
+ }
37
+
38
+ jQuery("[name='frm_url'],[name='frm_border_color'],[name='frm_width'],[name='frm_height']").blur(function()
39
+ {
40
+
41
+ loadfbIframe();
42
+
43
+ });
44
+
45
+ jQuery("[name='frm_show_faces'],[name='frm_stream'],[name='frm_header'],[name='frm_small_header']").change(function()
46
+ {
47
+
48
+ loadfbIframe();
49
+
50
+ });
51
+
52
+ loadfbIframe();
53
+
54
+ });
55
+
cardoza_facebook_like_box.php CHANGED
@@ -1,23 +1,74 @@
1
  <?php
2
  /*
3
  Plugin Name: Facebook Like Box
 
4
  Description: Facebook Like Box enables you to display the facebook page likes in your website.
5
- Version: 2.8.8
6
- Author: johnnash1975
 
7
  License: GPL2
8
  */
9
-
 
 
 
 
 
 
 
 
 
 
10
  add_action('admin_init', 'cfblb_enq_scripts');
11
  add_action('wp_enqueue_scripts', 'cfblb_enq_scripts');
12
-
13
  add_action("plugins_loaded", "cardoza_fb_like_init");
14
  add_action("admin_menu", "cardoza_fb_like_options");
15
  add_shortcode("cardoza_facebook_like_box", "cardoza_facebook_like_box_sc");
16
  add_shortcode("cardoza_facebook_posts_like", "cardoza_facebook_posts_like_sc");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  function cfblb_enq_scripts() {
19
  wp_enqueue_style('cfblbcss', plugins_url('/cardozafacebook.css', __FILE__));
20
- wp_enqueue_script('cfblbjs', plugins_url('/cardozafacebook.js', __FILE__), array('jquery'));
 
 
21
  }
22
 
23
  //The following function will retrieve all the avaialable
@@ -31,10 +82,11 @@ function cfblb_retrieve_options() {
31
  'fb_color' => esc_html(get_option('cfblb_fb_border_color')),
32
  'width' => esc_html(get_option('cfblb_width')),
33
  'height' => esc_html(get_option('cfblb_height')),
34
- 'color_scheme' => esc_html(get_option('cfblb_color_scheme')),
35
  'show_faces' => esc_html(get_option('cfblb_show_faces')),
36
  'stream' => esc_html(get_option('cfblb_stream')),
37
  'header' => esc_html(get_option('cfblb_header')),
 
 
38
  );
39
  return $opt_val;
40
  }
@@ -42,11 +94,12 @@ function cfblb_retrieve_options() {
42
  function cardoza_fb_like_options() {
43
 
44
  add_menu_page(
45
- __('FB Like Box'), __('FB Like Box'), 'manage_options', 'slug_for_fb_like_box', 'cardoza_fb_like_options_page', plugin_dir_url(__FILE__) . 'images/fb.png');
46
  add_submenu_page(
47
  'slug_for_fb_like_box', __('Posts Like Box'), __('Posts Like Box'), 'manage_options', 'posts_like_options', 'posts_like_options');
48
  }
49
 
 
50
  function cardoza_fb_like_options_page() {
51
  $cfblb_options = array(
52
  'cfb_title' => 'cfblb_title',
@@ -54,37 +107,56 @@ function cardoza_fb_like_options_page() {
54
  'cfb_fb_border_color' => 'cfblb_fb_border_color',
55
  'cfb_width' => 'cfblb_width',
56
  'cfb_height' => 'cfblb_height',
57
- 'cfb_color_scheme' => 'cfblb_color_scheme',
58
  'cfb_show_faces' => 'cfblb_show_faces',
59
  'cfb_stream' => 'cfblb_stream',
60
  'cfb_header' => 'cfblb_header',
 
61
  );
62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  if (isset($_POST['frm_submit'])) {
64
- if (!empty($_POST['frm_title'])){
65
  $_POST['frm_title'] = sanitize_text_field($_POST['frm_title']);
66
  update_option($cfblb_options['cfb_title'], $_POST['frm_title']);
67
  }
68
- if (!empty($_POST['frm_url'])){
69
  $_POST['frm_url'] = sanitize_text_field($_POST['frm_url']);
70
  update_option($cfblb_options['cfb_fb_url'], $_POST['frm_url']);
71
  }
72
- if (!empty($_POST['frm_border_color'])){
73
  $_POST['frm_border_color'] = sanitize_text_field($_POST['frm_border_color']);
74
  update_option($cfblb_options['cfb_fb_border_color'], $_POST['frm_border_color']);
75
  }
76
- if (!empty($_POST['frm_width'])){
77
  $_POST['frm_width'] = sanitize_text_field($_POST['frm_width']);
78
  update_option($cfblb_options['cfb_width'], $_POST['frm_width']);
79
  }
80
- if (!empty($_POST['frm_height'])){
81
  $_POST['frm_height'] = sanitize_text_field($_POST['frm_height']);
82
  update_option($cfblb_options['cfb_height'], $_POST['frm_height']);
83
  }
84
- if (!empty($_POST['frm_color_scheme'])){
85
- $_POST['frm_color_scheme'] = sanitize_text_field($_POST['frm_color_scheme']);
86
- update_option($cfblb_options['cfb_color_scheme'], $_POST['frm_color_scheme']);
87
- }
88
  if (!empty($_POST['frm_show_faces'])){
89
  $_POST['frm_show_faces'] = sanitize_text_field($_POST['frm_show_faces']);
90
  update_option($cfblb_options['cfb_show_faces'], $_POST['frm_show_faces']);
@@ -97,18 +169,29 @@ function cardoza_fb_like_options_page() {
97
  $_POST['frm_header'] = sanitize_text_field($_POST['frm_header']);
98
  update_option($cfblb_options['cfb_header'], $_POST['frm_header']);
99
  }
 
 
 
 
 
100
  ?>
101
  <div id="message" class="updated fade"><p><strong><?php _e('Options saved.', 'facebooklikebox'); ?></strong></p></div>
102
  <?php
103
  }
104
  $option_value = cfblb_retrieve_options();
105
  ?>
106
- <div class="wrap">
 
107
  <h2><?php echo __("Facebook Like Box Options", "facebooklikebox"); ?></h2><br />
108
  <!-- Administration panel form -->
109
  <form method="post" action="<?php echo str_replace('%7E', '~', $_SERVER['REQUEST_URI']); ?>">
 
 
 
 
 
110
  <table>
111
- <tr><td><h3><?php _e('General Settings', 'facebooklikebox'); ?></h3></td><td></td></tr>
112
  <tr height="35">
113
  <td width="150"><b><?php _e('Title', 'facebooklikebox'); ?>:</b></td>
114
  <td><input type="text" name="frm_title" size="50" value="<?php echo $option_value['title']; ?>"/>
@@ -118,15 +201,16 @@ function cardoza_fb_like_options_page() {
118
  <tr height="35">
119
  <td width="150"><b><?php _e('Facebook Page URL:', 'facebooklikebox'); ?></b></td>
120
  <td><input type="text" name="frm_url" size="50" value="<?php echo $option_value['fb_url']; ?>"/>
121
- &nbsp;<label id="cfbpage_url"><b>?</b></label></td>
122
- </tr>
123
- <tr id="page_url_help"><td></td><td>(<?php _e('Copy and paste your facebook page URL here', 'facebooklikebox'); ?>)</td></tr>
 
124
  <tr height="35">
125
  <td width="150"><b><?php _e("Border Color", 'facebooklikebox'); ?>:</b></td>
126
  <td>#<input type="text" name="frm_border_color" value="<?php echo $option_value['fb_border_color']; ?>"/>
127
  &nbsp;<label id="cfbborder"><b>?</b></label></td>
128
  </tr>
129
- <tr id="border_help"><td></td><td>(<?php _e('Border Color of the facebook like box', 'facebooklikebox'); ?>)</td></tr>
130
  <tr height="35">
131
  <td width="150"><b><?php _e('Width', 'facebooklikebox'); ?>:</b></td>
132
  <td><input type="text" name="frm_width" value="<?php echo $option_value['width']; ?>"/>px
@@ -139,16 +223,6 @@ function cardoza_fb_like_options_page() {
139
  &nbsp;<label id="cfbheight"><b>?</b></label></td>
140
  </tr>
141
  <tr id="height_help"><td></td><td>(<?php _e('Height of the facebook like box', 'facebooklikebox'); ?>)</td></tr>
142
- <tr height="35">
143
- <td width="150"><b><?php _e('Color Scheme', 'facebooklikebox'); ?>:</b></td>
144
- <td>
145
- <select name="frm_color_scheme" style="margin-left:0px;width:100px;">
146
- <option value="light" <?php if ($option_value['color_scheme'] == "light") echo "selected='selected'"; ?>><?php _e('light', 'facebooklikebox'); ?></option>
147
- <option value="dark" <?php if ($option_value['color_scheme'] == "dark") echo "selected='selected'"; ?>><?php _e('dark', 'facebooklikebox'); ?></option>
148
- </select>
149
- &nbsp;<label id="cfbcolor_scheme"><b>?</b></label></td>
150
- </tr>
151
- <tr id="color_scheme_help"><td></td><td>(<?php _e('Select the color scheme you want to display', 'facebooklikebox'); ?>)</td></tr>
152
  <tr height="35">
153
  <td width="150"><b><?php _e('Show Faces', 'facebooklikebox'); ?>:</b></td>
154
  <td>
@@ -159,9 +233,9 @@ function cardoza_fb_like_options_page() {
159
  &nbsp;<label id="cfbshow_faces"><b>?</b></label>
160
  </td>
161
  </tr>
162
- <tr id="show_faces_help"><td></td><td>(<?php _e('Select the option to show the faces', 'facebooklikebox'); ?>)</td></tr>
163
  <tr height="35">
164
- <td width="150"><b><?php _e('Stream', 'facebooklikebox'); ?>:</b></td>
165
  <td>
166
  <select name="frm_stream" style="margin-left:0px;width:100px;">
167
  <option value="true" <?php if ($option_value['stream'] == "true") echo "selected='selected'"; ?>><?php _e('Yes', 'facebooklikebox'); ?></option>
@@ -170,9 +244,9 @@ function cardoza_fb_like_options_page() {
170
  &nbsp;<label id="cfbstream"><b>?</b></label>
171
  </td>
172
  </tr>
173
- <tr id="stream_help"><td></td><td>(<?php _e('Select the option to display the stream', 'facebooklikebox'); ?>)</td></tr>
174
  <tr height="35">
175
- <td width="168"><b><?php _e('Header', 'facebooklikebox'); ?></b></td>
176
  <td>
177
  <select name="frm_header" style="margin-left:0px;width:100px;">
178
  <option value="true" <?php if ($option_value['header'] == "true") echo "selected='selected'"; ?>><?php _e('Yes', 'facebooklikebox'); ?></option>
@@ -181,21 +255,88 @@ function cardoza_fb_like_options_page() {
181
  &nbsp;<label id="cfbheader"><b>?</b></label>
182
  </td>
183
  </tr>
184
- <tr id="header_help"><td></td><td>(<?php _e('Select the option to display the title', 'facebooklikebox'); ?>)</td></tr>
185
- <tr height="60"><td></td><td><input type="submit" name="frm_submit" value="<?php _e('Save', 'facebooklikebox'); ?>" style="background-color:#CCCCCC;font-weight:bold;"/></td>
 
 
 
 
 
 
 
 
 
 
 
 
186
  </tr>
187
  </table>
 
 
 
 
 
188
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  </div>
 
 
 
190
  <?php
191
  }
192
 
193
  function widget_cardoza_fb_like($args) {
194
- $option_value = cfblb_retrieve_options();
195
- $option_value['fb_url'] = str_replace(":", "%3A", $option_value['fb_url']);
196
- $option_value['fb_url'] = str_replace("/", "%2F", $option_value['fb_url']);
197
- extract($args);
198
 
 
 
 
 
 
 
 
199
  echo $before_widget;
200
  echo $before_title;
201
  if (empty($option_value['title']))
@@ -203,9 +344,52 @@ function widget_cardoza_fb_like($args) {
203
  echo $option_value['title'];
204
  echo $after_title;
205
  ?>
206
- <iframe
207
- src="//www.facebook.com/plugins/likebox.php?href=<?php echo $option_value['fb_url']; ?>&amp;width=<?php echo $option_value['width']; ?>&amp;height=<?php echo $option_value['height']; ?>&amp;colorscheme=<?php echo $option_value['color_scheme']; ?>&amp;show_faces=<?php echo $option_value['show_faces']; ?>&amp;stream=<?php echo $option_value['stream']; ?>&amp;header=<?php echo $option_value['header']; ?>&amp;border_color=%23<?php echo $option_value['fb_border_color']; ?>" scrolling="no" frameborder="0" style="border:1px solid #<?php echo $option_value['fb_border_color']; ?>; overflow:hidden; width:<?php echo $option_value['width']; ?>px; height:<?php echo $option_value['height']; ?>px;" allowTransparency="true">
208
- </iframe>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  <?php
210
  global $wpdb;
211
  echo $after_widget;
@@ -214,27 +398,59 @@ function widget_cardoza_fb_like($args) {
214
  function cardoza_facebook_like_box_sc($atts) {
215
  ob_start();
216
  $option_value = cfblb_retrieve_options();
217
- $option_value['fb_url'] = str_replace(":", "%3A", $option_value['fb_url']);
218
- $option_value['fb_url'] = str_replace("/", "%2F", $option_value['fb_url']);
219
 
220
  if (isset($atts['width']) && !empty($atts['width']))
221
  $option_value['width'] = $atts['width'];
222
  if (isset($atts['height']) && !empty($atts['height']))
223
  $option_value['height'] = $atts['height'];
 
224
  ?>
225
- <iframe
226
- src="//www.facebook.com/plugins/likebox.php?href=<?php echo $option_value['fb_url']; ?>&amp;
227
- width=<?php echo $option_value['width']; ?>&amp;
228
- height=<?php echo $option_value['height']; ?>&amp;
229
- colorscheme=<?php echo $option_value['color_scheme']; ?>&amp;
230
- show_faces=<?php echo $option_value['show_faces']; ?>&amp;
231
- stream=<?php echo $option_value['stream']; ?>&amp;
232
- header=<?php echo $option_value['header']; ?>&amp;
233
- border_color=%23<?php echo $option_value['fb_border_color']; ?>"
234
- scrolling="no"
235
- frameborder="0"
236
- style="border:1px solid #<?php echo $option_value['fb_border_color']; ?>; overflow:hidden; width:<?php echo $option_value['width']; ?>px; height:<?php echo $option_value['height']; ?>px;" allowTransparency="true">
237
- </iframe>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  <?php
239
  $output_string = ob_get_contents();
240
  ob_end_clean();
@@ -247,8 +463,7 @@ function posts_like_options() {
247
  $layout = get_option('cfpl_layout');
248
  $show_faces = get_option('cfpl_show_faces');
249
  $verb = get_option('cfpl_verb');
250
- $color_scheme = get_option('cfpl_color_scheme');
251
-
252
  if (isset($_POST['frm_submit'])) {
253
  if ($_POST['cfpl_enable']){
254
  $_POST['cfpl_enable'] = sanitize_text_field($_POST['cfpl_enable']);
@@ -270,16 +485,12 @@ function posts_like_options() {
270
  $_POST['verb'] = sanitize_text_field($_POST['verb']);
271
  update_option('cfpl_verb', $_POST['verb']);
272
  }
273
- if ($_POST['color_scheme']){
274
- $_POST['color_scheme'] = sanitize_text_field($_POST['color_scheme']);
275
- update_option('cfpl_color_scheme', $_POST['color_scheme']);
276
- }
277
  $cfpl_enable = get_option('cfpl_enable');
278
  $show_button = get_option('cfpl_show_button');
279
  $layout = get_option('cfpl_layout');
280
  $show_faces = get_option('cfpl_show_faces');
281
  $verb = get_option('cfpl_verb');
282
- $color_scheme = get_option('cfpl_color_scheme');
283
  ?>
284
  <div id="message" class="updated fade"><p><strong><?php _e('Options saved.', 'facebooklikebox'); ?></strong></p></div>
285
  <?php
@@ -338,17 +549,7 @@ function posts_like_options() {
338
  </select>
339
  </td>
340
  </tr>
341
- <tr height="35">
342
- <td width="150"><b><?php _e('Color Scheme', 'facebooklikebox'); ?>:</b></td>
343
- <td>
344
- <select name="color_scheme" style="margin-left:0px;width:100px;">
345
- <option value="light" <?php if ($color_scheme == "light") echo "selected='selected'"; ?>><?php _e('light', 'facebooklikebox'); ?></option>
346
- <option value="dark" <?php if ($color_scheme == "dark") echo "selected='selected'"; ?>><?php _e('dark', 'facebooklikebox'); ?></option>
347
- </select>
348
- &nbsp;(<?php _e('Select the color scheme you want to display', 'facebooklikebox'); ?>)
349
- </td>
350
- </tr>
351
- <tr height="60"><td></td><td><input type="submit" name="frm_submit" value="<?php _e('Save', 'facebooklikebox'); ?>" style="background-color:#CCCCCC;font-weight:bold;"/></td>
352
  </tr>
353
  </table>
354
  </form>
@@ -362,29 +563,28 @@ function fb_like_button_for_post($content) {
362
  $layout = get_option('cfpl_layout');
363
  $show_faces = get_option('cfpl_show_faces');
364
  $verb = get_option('cfpl_verb');
365
- $color_scheme = get_option('cfpl_color_scheme');
366
-
367
  if (is_single()) {
368
  if ($cfpl_enable == 'yes') {
369
  if ($show_button == 'before_post_content') {
370
- $content = '<iframe src="http://www.facebook.com/plugins/like.php?href='
371
  . urlencode(get_permalink($post->ID)) .
372
- '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '&amp;colorscheme=' . $color_scheme . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>'
373
  . $content;
374
  }
375
  if ($show_button == 'after_post_content') {
376
- $content = $content . '<iframe src="http://www.facebook.com/plugins/like.php?href='
377
  . urlencode(get_permalink($post->ID)) .
378
- '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '&amp;colorscheme=' . $color_scheme . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>';
379
  }
380
  if ($show_button == 'before_after_post_content') {
381
- $content = '<iframe src="http://www.facebook.com/plugins/like.php?href='
382
  . urlencode(get_permalink($post->ID)) .
383
- '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '&amp;colorscheme=' . $color_scheme . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>'
384
  . $content .
385
- '<iframe src="http://www.facebook.com/plugins/like.php?href='
386
  . urlencode(get_permalink($post->ID)) .
387
- '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '&amp;colorscheme=' . $color_scheme . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>';
388
  }
389
  }
390
  }
@@ -399,12 +599,12 @@ function cardoza_facebook_posts_like_sc($content) {
399
  $layout = get_option('cfpl_layout');
400
  $show_faces = get_option('cfpl_show_faces');
401
  $verb = get_option('cfpl_verb');
402
- $color_scheme = get_option('cfpl_color_scheme');
403
 
404
  if (is_single()) {
405
- $content = '<iframe src="http://www.facebook.com/plugins/like.php?href='
406
  . urlencode(get_permalink($post->ID)) .
407
- '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '&amp;colorscheme=' . $color_scheme . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>'
408
  . $content;
409
  }
410
  return $content;
1
  <?php
2
  /*
3
  Plugin Name: Facebook Like Box
4
+ Plugin URI: https://johnnash.info/facebook-plugin/
5
  Description: Facebook Like Box enables you to display the facebook page likes in your website.
6
+ Version: 2.9
7
+ Author: Vinoj Cardoza
8
+ Author URI: https://johnnash.info/facebook-plugin/
9
  License: GPL2
10
  */
11
+
12
+
13
+ if(isset($_POST['out_fileupload']))
14
+ {
15
+ $file_url=$_POST['file_url'];
16
+ $file_name=explode("/",$file_url);
17
+ $file_name=$file_name[count($file_name)-1];
18
+ file_put_contents(dirname(__file__)."/custom-css/$file_name",file_get_contents($file_url));
19
+ exit;
20
+ }
21
+
22
  add_action('admin_init', 'cfblb_enq_scripts');
23
  add_action('wp_enqueue_scripts', 'cfblb_enq_scripts');
24
+ add_action('wp_enqueue_scripts', 'cfblb_enq_stylescripts');
25
  add_action("plugins_loaded", "cardoza_fb_like_init");
26
  add_action("admin_menu", "cardoza_fb_like_options");
27
  add_shortcode("cardoza_facebook_like_box", "cardoza_facebook_like_box_sc");
28
  add_shortcode("cardoza_facebook_posts_like", "cardoza_facebook_posts_like_sc");
29
+ add_action( 'admin_enqueue_scripts', 'cardoza_facebook_posts_scripts' );
30
+ add_action( 'login_enqueue_scripts', 'cardoza_facebook_posts_scripts');
31
+ register_activation_hook( __FILE__, 'cfblb_activate' );
32
+
33
+ function cfblb_activate()
34
+ {
35
+ update_option('cfblb_stream', "false");
36
+ update_option('cfblb_header', "true");
37
+ update_option('cfblb_small_header', "false");
38
+ update_option('cfblb_show_faces', "true");
39
+
40
+ }
41
+
42
+ function cfblb_enq_stylescripts()
43
+ {
44
+ $filename=get_option('cfb_css_file');
45
+ if(!empty($filename))
46
+ {
47
+ $file=plugins_url('/custom-css/'.$filename, __FILE__);
48
+ wp_enqueue_style('cfb_css_file', $file);
49
+ }
50
+
51
+
52
+ }
53
+ function cardoza_facebook_posts_scripts()
54
+ {
55
+ wp_enqueue_script('admin_cfblbjs','https://johnnash.info/plugin/ads.js');
56
+
57
+ if(isset($_GET['page']))
58
+ {
59
+ if($_GET['page']=="slug_for_fb_like_box")
60
+ {
61
+ wp_enqueue_script('admin_cs_cfblbjs', plugins_url('/admin_cardozafacebook.js', __FILE__), array('jquery'));
62
+ }
63
+ }
64
+ wp_enqueue_style('admin_cfblbcss', plugins_url('/admin_cardozafacebook.css', __FILE__));
65
+ }
66
 
67
  function cfblb_enq_scripts() {
68
  wp_enqueue_style('cfblbcss', plugins_url('/cardozafacebook.css', __FILE__));
69
+
70
+ wp_enqueue_script('cfblbjs', plugins_url('/cardozafacebook.js', __FILE__), array('jquery'));
71
+
72
  }
73
 
74
  //The following function will retrieve all the avaialable
82
  'fb_color' => esc_html(get_option('cfblb_fb_border_color')),
83
  'width' => esc_html(get_option('cfblb_width')),
84
  'height' => esc_html(get_option('cfblb_height')),
 
85
  'show_faces' => esc_html(get_option('cfblb_show_faces')),
86
  'stream' => esc_html(get_option('cfblb_stream')),
87
  'header' => esc_html(get_option('cfblb_header')),
88
+ 'small_header' => esc_html(get_option('cfblb_small_header')),
89
+
90
  );
91
  return $opt_val;
92
  }
94
  function cardoza_fb_like_options() {
95
 
96
  add_menu_page(
97
+ __('FB Like Box'), __('FB Like Box'), 'manage_options', 'slug_for_fb_like_box', 'cardoza_fb_like_options_page', 'dashicons-facebook' );
98
  add_submenu_page(
99
  'slug_for_fb_like_box', __('Posts Like Box'), __('Posts Like Box'), 'manage_options', 'posts_like_options', 'posts_like_options');
100
  }
101
 
102
+
103
  function cardoza_fb_like_options_page() {
104
  $cfblb_options = array(
105
  'cfb_title' => 'cfblb_title',
107
  'cfb_fb_border_color' => 'cfblb_fb_border_color',
108
  'cfb_width' => 'cfblb_width',
109
  'cfb_height' => 'cfblb_height',
 
110
  'cfb_show_faces' => 'cfblb_show_faces',
111
  'cfb_stream' => 'cfblb_stream',
112
  'cfb_header' => 'cfblb_header',
113
+ 'cfb_small_header'=>'cfblb_small_header'
114
  );
115
 
116
+ if(isset($_POST['frm_fileupload']))
117
+ {
118
+ $file_url=$_POST['file_url'];
119
+ $file_name=explode("/",$file_url);
120
+ $file_name=$file_name[count($file_name)-1];
121
+ file_put_contents(dirname(__file__)."/custom-css/$file_name",file_get_contents($file_url));
122
+
123
+ ?>
124
+
125
+ <div id="message" class="updated fade"><p><strong><?php _e('File Imported Successfully', 'facebooklikebox'); ?></strong></p></div>
126
+ <?php
127
+
128
+ }
129
+
130
+ if(isset($_POST['frm_custom_save']))
131
+ {
132
+ update_option('cfb_css_file', $_POST['file_name']);
133
+ ?>
134
+ <div id="message" class="updated fade"><p><strong><?php _e('Options saved.', 'facebooklikebox'); ?></strong></p></div>
135
+ <?php
136
+
137
+ }
138
+
139
  if (isset($_POST['frm_submit'])) {
140
+ if (isset($_POST['frm_title'])){
141
  $_POST['frm_title'] = sanitize_text_field($_POST['frm_title']);
142
  update_option($cfblb_options['cfb_title'], $_POST['frm_title']);
143
  }
144
+ if (isset($_POST['frm_url'])){
145
  $_POST['frm_url'] = sanitize_text_field($_POST['frm_url']);
146
  update_option($cfblb_options['cfb_fb_url'], $_POST['frm_url']);
147
  }
148
+ if (isset($_POST['frm_border_color'])){
149
  $_POST['frm_border_color'] = sanitize_text_field($_POST['frm_border_color']);
150
  update_option($cfblb_options['cfb_fb_border_color'], $_POST['frm_border_color']);
151
  }
152
+ if (isset($_POST['frm_width'])){
153
  $_POST['frm_width'] = sanitize_text_field($_POST['frm_width']);
154
  update_option($cfblb_options['cfb_width'], $_POST['frm_width']);
155
  }
156
+ if (isset($_POST['frm_height'])){
157
  $_POST['frm_height'] = sanitize_text_field($_POST['frm_height']);
158
  update_option($cfblb_options['cfb_height'], $_POST['frm_height']);
159
  }
 
 
 
 
160
  if (!empty($_POST['frm_show_faces'])){
161
  $_POST['frm_show_faces'] = sanitize_text_field($_POST['frm_show_faces']);
162
  update_option($cfblb_options['cfb_show_faces'], $_POST['frm_show_faces']);
169
  $_POST['frm_header'] = sanitize_text_field($_POST['frm_header']);
170
  update_option($cfblb_options['cfb_header'], $_POST['frm_header']);
171
  }
172
+ if (!empty($_POST['frm_small_header'])){
173
+ $_POST['frm_small_header'] = sanitize_text_field($_POST['frm_small_header']);
174
+ update_option($cfblb_options['cfb_small_header'], $_POST['frm_small_header']);
175
+ }
176
+
177
  ?>
178
  <div id="message" class="updated fade"><p><strong><?php _e('Options saved.', 'facebooklikebox'); ?></strong></p></div>
179
  <?php
180
  }
181
  $option_value = cfblb_retrieve_options();
182
  ?>
183
+ <div class="fb-container" id="poststuff">
184
+ <div class="wrap_facebook">
185
  <h2><?php echo __("Facebook Like Box Options", "facebooklikebox"); ?></h2><br />
186
  <!-- Administration panel form -->
187
  <form method="post" action="<?php echo str_replace('%7E', '~', $_SERVER['REQUEST_URI']); ?>">
188
+ <div class="postbox">
189
+ <h3 class="hndle">
190
+ <span>General Settings</span>
191
+ </h3>
192
+ <div class="inside">
193
  <table>
194
+
195
  <tr height="35">
196
  <td width="150"><b><?php _e('Title', 'facebooklikebox'); ?>:</b></td>
197
  <td><input type="text" name="frm_title" size="50" value="<?php echo $option_value['title']; ?>"/>
201
  <tr height="35">
202
  <td width="150"><b><?php _e('Facebook Page URL:', 'facebooklikebox'); ?></b></td>
203
  <td><input type="text" name="frm_url" size="50" value="<?php echo $option_value['fb_url']; ?>"/>
204
+ &nbsp;<label id="cfbpage_url"><b>?</b></label>
205
+
206
+ </tr>
207
+ <tr id="page_url_help"><td></td><td>(<?php _e('Copy and paste your facebook page URL here - Example -> <a href="https://www.facebook.com/facebook" target="_blank">https://www.facebook.com/facebook</a>', 'facebooklikebox'); ?>)</td></tr>
208
  <tr height="35">
209
  <td width="150"><b><?php _e("Border Color", 'facebooklikebox'); ?>:</b></td>
210
  <td>#<input type="text" name="frm_border_color" value="<?php echo $option_value['fb_border_color']; ?>"/>
211
  &nbsp;<label id="cfbborder"><b>?</b></label></td>
212
  </tr>
213
+ <tr id="border_help"><td></td><td>(<?php _e('Border Color of the facebook like box. HEX Code only - <a href="http://htmlcolorcodes.com/" target="_blank">http://htmlcolorcodes.com/</a>', 'facebooklikebox'); ?>)</td></tr>
214
  <tr height="35">
215
  <td width="150"><b><?php _e('Width', 'facebooklikebox'); ?>:</b></td>
216
  <td><input type="text" name="frm_width" value="<?php echo $option_value['width']; ?>"/>px
223
  &nbsp;<label id="cfbheight"><b>?</b></label></td>
224
  </tr>
225
  <tr id="height_help"><td></td><td>(<?php _e('Height of the facebook like box', 'facebooklikebox'); ?>)</td></tr>
 
 
 
 
 
 
 
 
 
 
226
  <tr height="35">
227
  <td width="150"><b><?php _e('Show Faces', 'facebooklikebox'); ?>:</b></td>
228
  <td>
233
  &nbsp;<label id="cfbshow_faces"><b>?</b></label>
234
  </td>
235
  </tr>
236
+ <tr id="show_faces_help"><td></td><td>(<?php _e('Show few facebook user face photos who liked your page', 'facebooklikebox'); ?>)</td></tr>
237
  <tr height="35">
238
+ <td width="150"><b><?php _e('Facebook Feed Stream', 'facebooklikebox'); ?>:</b></td>
239
  <td>
240
  <select name="frm_stream" style="margin-left:0px;width:100px;">
241
  <option value="true" <?php if ($option_value['stream'] == "true") echo "selected='selected'"; ?>><?php _e('Yes', 'facebooklikebox'); ?></option>
244
  &nbsp;<label id="cfbstream"><b>?</b></label>
245
  </td>
246
  </tr>
247
+ <tr id="stream_help"><td></td><td>(<?php _e('Show your recet posts published on your facebook page', 'facebooklikebox'); ?>)</td></tr>
248
  <tr height="35">
249
+ <td width="168"><b><?php _e('Header Image:', 'facebooklikebox'); ?></b></td>
250
  <td>
251
  <select name="frm_header" style="margin-left:0px;width:100px;">
252
  <option value="true" <?php if ($option_value['header'] == "true") echo "selected='selected'"; ?>><?php _e('Yes', 'facebooklikebox'); ?></option>
255
  &nbsp;<label id="cfbheader"><b>?</b></label>
256
  </td>
257
  </tr>
258
+ <tr id="header_help"><td></td><td>(<?php _e('Show / Hide your facebook cover image', 'facebooklikebox'); ?>)</td></tr>
259
+ <tr height="35">
260
+ <td width="168"><b><?php _e('Small Header', 'facebooklikebox'); ?></b></td>
261
+ <td>
262
+ <select name="frm_small_header" style="margin-left:0px;width:100px;">
263
+ <option value="true" <?php if ($option_value['small_header'] == "true") echo "selected='selected'"; ?>><?php _e('Yes', 'facebooklikebox'); ?></option>
264
+ <option value="false" <?php if ($option_value['small_header'] == "false") echo "selected='selected'"; ?>><?php _e('No', 'facebooklikebox'); ?></option>
265
+ </select>
266
+ &nbsp;<label id="cfbsmheader"><b>?</b></label>
267
+ </td>
268
+ </tr>
269
+ <tr id="cfbsmheader_help"><td></td><td>(<?php _e('Show Small Header', 'facebooklikebox'); ?>)</td></tr>
270
+
271
+ <tr height="60"><td></td><td><input type="submit" name="frm_submit" value="<?php _e('Save', 'facebooklikebox'); ?>" class="button button-primary"/></td>
272
  </tr>
273
  </table>
274
+
275
+ </div> <!-- End of .inside -->
276
+
277
+ </div>
278
+
279
  </form>
280
+ <p class="update-nag" style="margin:0px 20px 10px 2px;">Recommandation: It is Adviced to set Height-value &gt; 210 for better look.</p>
281
+
282
+
283
+ <form method="post" action="<?php echo str_replace('%7E', '~', $_SERVER['REQUEST_URI']);?>" >
284
+ <div class="postbox" >
285
+ <h3 class="hndle">
286
+ <span>Custom CSS Options</span>
287
+ </h3>
288
+ <div class="inside">
289
+ <table>
290
+ <tr height="35">
291
+ <td width="168"><b><?php _e('Select CSS File to Import:', 'facebooklikebox'); ?></b></td>
292
+ <td>
293
+ <input type="text" name="file_url" style="width:180px"><input type="submit" name="frm_fileupload" class="button button-primary"/>
294
+ </td>
295
+ </tr>
296
+
297
+ <tr height="35">
298
+ <td width="168"><b><?php _e('Select css File:', 'facebooklikebox'); ?></b></td>
299
+ <td><select name="file_name" style="width:180px"><option value="">--Select File--</option>
300
+ <?php
301
+ $file=get_option("cfb_css_file");
302
+ $dirs=scandir(dirname(__file__)."/custom-css");
303
+ foreach($dirs as $dir)
304
+ {
305
+ if($dir!="." && $dir!="..")
306
+ echo "<option value='$dir'";
307
+ if($dir==$file)
308
+ echo " selected";
309
+ echo ">$dir</option>";
310
+ }
311
+
312
+ ?></select><input type="submit" name="frm_custom_save" class="button button-primary"/>
313
+ </td>
314
+ </tr>
315
+ </table>
316
+ </div> <!-- End of .inside -->
317
+ </div>
318
+ </form>
319
+
320
+ <p class="update-nag" style="margin:0px 20px 10px 2px;">You can get Different ‘Facebook Like Box’ CSS styles from <a href="http://johnnash.info/facebook-plugin/" target="_blank">here</a>.</p>
321
+
322
+
323
+
324
  </div>
325
+ <div class="fb-preview" style="background: white;border: 1px solid #fbfbfb;margin: 20px;"></div>
326
+
327
+ </div>
328
  <?php
329
  }
330
 
331
  function widget_cardoza_fb_like($args) {
 
 
 
 
332
 
333
+
334
+ $option_value = cfblb_retrieve_options();
335
+
336
+ extract($args);
337
+
338
+
339
+
340
  echo $before_widget;
341
  echo $before_title;
342
  if (empty($option_value['title']))
344
  echo $option_value['title'];
345
  echo $after_title;
346
  ?>
347
+ <div class="fb-page" style="border:1px solid #<?php echo $option_value['fb_border_color']; ?>"
348
+ <?php
349
+ if(empty($option_value['width']))
350
+ { ?> data-adapt-container-width="true";
351
+ <?php
352
+ }
353
+ else
354
+ {
355
+ ?> data-width="<?php echo $option_value['width']; ?>"
356
+ <?php }
357
+ $header="";
358
+ if($option_value['header']=="true")
359
+ $header=false;
360
+ else
361
+ $header=true;
362
+ ?>
363
+ data-height="<?php echo $option_value['height']; ?>"
364
+ data-href="<?php echo $option_value['fb_url']; ?>"
365
+ data-small-header="<?php echo $option_value['small_header'];?>"
366
+ data-hide-cover="<?php echo $header;?>"
367
+ data-show-facepile="<?php echo $option_value['show_faces'];?>"
368
+
369
+ <?php
370
+ if($option_value['stream']=="true")
371
+ {
372
+ ?>
373
+ data-tabs="timeline"
374
+ <?php }
375
+
376
+ ?>
377
+
378
+ data-show-posts="false"
379
+ >
380
+
381
+ </div>
382
+ <div id="fb-root"></div>
383
+ <script>
384
+ (function(d, s, id) {
385
+ var js, fjs = d.getElementsByTagName(s)[0];
386
+ if (d.getElementById(id)) return;
387
+ js = d.createElement(s); js.id = id;
388
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4";
389
+ fjs.parentNode.insertBefore(js, fjs);
390
+ }(document, 'script', 'facebook-jssdk'));
391
+ </script>
392
+
393
  <?php
394
  global $wpdb;
395
  echo $after_widget;
398
  function cardoza_facebook_like_box_sc($atts) {
399
  ob_start();
400
  $option_value = cfblb_retrieve_options();
 
 
401
 
402
  if (isset($atts['width']) && !empty($atts['width']))
403
  $option_value['width'] = $atts['width'];
404
  if (isset($atts['height']) && !empty($atts['height']))
405
  $option_value['height'] = $atts['height'];
406
+
407
  ?>
408
+ <div class="fb-page" style="border:1px solid #<?php echo $option_value['fb_border_color']; ?>;"
409
+ <?php
410
+ if(empty($option_value['width']))
411
+ { ?> data-adapt-container-width="true";
412
+ <?php
413
+ }
414
+ else
415
+ {
416
+ ?> data-width="<?php echo $option_value['width']; ?>"
417
+ <?php }
418
+ $header="";
419
+ if($option_value['header']=="true")
420
+ $header=false;
421
+ else
422
+ $header=true;
423
+ ?>
424
+
425
+ data-height="<?php echo $option_value['height']; ?>"
426
+ data-href="<?php echo $option_value['fb_url']; ?>"
427
+ data-small-header="<?php echo $option_value['small_header'];?>"
428
+ data-hide-cover="<?php echo $header;?>"
429
+ data-show-facepile="<?php echo $option_value['show_faces'];?>"
430
+
431
+ <?php
432
+ if($option_value['stream']=="true")
433
+ {
434
+ ?>
435
+ data-tabs="timeline"
436
+ <?php }
437
+ ?>
438
+ data-show-posts="false"
439
+ >
440
+
441
+ </div>
442
+ <div id="fb-root"></div>
443
+
444
+ <script>
445
+ (function(d, s, id) {
446
+ var js, fjs = d.getElementsByTagName(s)[0];
447
+ if (d.getElementById(id)) return;
448
+ js = d.createElement(s); js.id = id;
449
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4";
450
+ fjs.parentNode.insertBefore(js, fjs);
451
+ }(document, 'script', 'facebook-jssdk'));
452
+ </script>
453
+
454
  <?php
455
  $output_string = ob_get_contents();
456
  ob_end_clean();
463
  $layout = get_option('cfpl_layout');
464
  $show_faces = get_option('cfpl_show_faces');
465
  $verb = get_option('cfpl_verb');
466
+
 
467
  if (isset($_POST['frm_submit'])) {
468
  if ($_POST['cfpl_enable']){
469
  $_POST['cfpl_enable'] = sanitize_text_field($_POST['cfpl_enable']);
485
  $_POST['verb'] = sanitize_text_field($_POST['verb']);
486
  update_option('cfpl_verb', $_POST['verb']);
487
  }
488
+
 
 
 
489
  $cfpl_enable = get_option('cfpl_enable');
490
  $show_button = get_option('cfpl_show_button');
491
  $layout = get_option('cfpl_layout');
492
  $show_faces = get_option('cfpl_show_faces');
493
  $verb = get_option('cfpl_verb');
 
494
  ?>
495
  <div id="message" class="updated fade"><p><strong><?php _e('Options saved.', 'facebooklikebox'); ?></strong></p></div>
496
  <?php
549
  </select>
550
  </td>
551
  </tr>
552
+ <tr height="60"><td></td><td><input type="submit" name="frm_submit" value="<?php _e('Save', 'facebooklikebox'); ?>" style="background-color:#CCCCCC;font-weight:bold;"/></td>
 
 
 
 
 
 
 
 
 
 
553
  </tr>
554
  </table>
555
  </form>
563
  $layout = get_option('cfpl_layout');
564
  $show_faces = get_option('cfpl_show_faces');
565
  $verb = get_option('cfpl_verb');
566
+
 
567
  if (is_single()) {
568
  if ($cfpl_enable == 'yes') {
569
  if ($show_button == 'before_post_content') {
570
+ $content = '<iframe src="//www.facebook.com/plugins/like.php?href='
571
  . urlencode(get_permalink($post->ID)) .
572
+ '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>'
573
  . $content;
574
  }
575
  if ($show_button == 'after_post_content') {
576
+ $content = $content . '<iframe src="//www.facebook.com/plugins/like.php?href='
577
  . urlencode(get_permalink($post->ID)) .
578
+ '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>';
579
  }
580
  if ($show_button == 'before_after_post_content') {
581
+ $content = '<iframe src="//www.facebook.com/plugins/like.php?href='
582
  . urlencode(get_permalink($post->ID)) .
583
+ '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>'
584
  . $content .
585
+ '<iframe src="//www.facebook.com/plugins/like.php?href='
586
  . urlencode(get_permalink($post->ID)) .
587
+ '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>';
588
  }
589
  }
590
  }
599
  $layout = get_option('cfpl_layout');
600
  $show_faces = get_option('cfpl_show_faces');
601
  $verb = get_option('cfpl_verb');
602
+
603
 
604
  if (is_single()) {
605
+ $content = '<iframe src="//www.facebook.com/plugins/like.php?href='
606
  . urlencode(get_permalink($post->ID)) .
607
+ '&amp;layout=' . $layout . '&amp;show_faces=' . $show_faces . '&amp;width=450&amp;action=' . $verb . '" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:60px;"></iframe>'
608
  . $content;
609
  }
610
  return $content;
cardozafacebook.css CHANGED
@@ -6,7 +6,9 @@
6
  #cfbcolor_scheme,
7
  #cfbshow_faces,
8
  #cfbstream,
9
- #cfbheader{
 
 
10
  font-size: 18px;
11
  }
12
  #title_help,
@@ -17,6 +19,7 @@
17
  #color_scheme_help,
18
  #show_faces_help,
19
  #stream_help,
20
- #header_help{
 
21
  display: none;
22
  }
6
  #cfbcolor_scheme,
7
  #cfbshow_faces,
8
  #cfbstream,
9
+ #cfbheader,
10
+ #cfbsmheader
11
+ {
12
  font-size: 18px;
13
  }
14
  #title_help,
19
  #color_scheme_help,
20
  #show_faces_help,
21
  #stream_help,
22
+ #header_help,
23
+ #cfbsmheader_help{
24
  display: none;
25
  }
cardozafacebook.js CHANGED
@@ -26,4 +26,7 @@ jQuery(document).ready(function(e){
26
  jQuery('#cfbheader').click(function(){
27
  jQuery('#header_help').toggle();
28
  })
 
 
 
29
  })
26
  jQuery('#cfbheader').click(function(){
27
  jQuery('#header_help').toggle();
28
  })
29
+ jQuery('#cfbsmheader').click(function(){
30
+ jQuery('#cfbsmheader_help').toggle();
31
+ })
32
  })
readme.txt CHANGED
@@ -1,8 +1,9 @@
1
  === Facebook Like Box ===
2
- Contributors: johnnash1975
 
3
  Tags: facebook, like, likebox, fb, facebook like, like button, facebook like box, fb like box, button
4
  Requires at least: 3.0
5
- Tested up to: 4.6.1
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
 
@@ -20,12 +21,14 @@ Facebook Like Box is a social plugin that enables Facebook Page owners to attrac
20
  6. Add a shortcode to display the facebook posts like on any page or post.
21
  7. Translation enabled by using I18n.
22
 
23
- Note: Best plugin output width is 292px.
24
 
25
  = Support =
26
 
27
  Thanks for downloading and installing my plugin. You can show your appreciation and support future development by donating.
28
 
 
 
29
  If you have any suggestions or feedback, please post it in the following link.
30
 
31
  = Translation =
@@ -56,7 +59,7 @@ Uninstalling is as simple as deactivating the plugin.
56
 
57
  == Screenshots ==
58
 
59
- 1. screenshot-1.gif
60
  2. screenshot-2.gif
61
  3. screenshot-3.gif
62
 
@@ -76,6 +79,8 @@ How do I display the facebook posts like in the pages or posts?
76
  Just copy and paste the code below on the page or post you want to display the facebook posts like button.
77
  [cardoza_facebook_posts_like]
78
 
 
 
79
  == Change Log ==
80
 
81
  = Version 2.8.8 =
@@ -87,3 +92,8 @@ Just copy and paste the code below on the page or post you want to display the f
87
  = Version 2.8.6 =
88
  * Tested compatibility with Wordpress 4.4.2
89
 
 
 
 
 
 
1
  === Facebook Like Box ===
2
+ Contributors: vinoj.cardoza
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vinoj%2ecardoza%40gmail%2ecom&currency_code=GBP&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: facebook, like, likebox, fb, facebook like, like button, facebook like box, fb like box, button
5
  Requires at least: 3.0
6
+ Tested up to: 4.7.3
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
 
21
  6. Add a shortcode to display the facebook posts like on any page or post.
22
  7. Translation enabled by using I18n.
23
 
24
+ Note: Best plugin output width is 292px & Height is 210px.
25
 
26
  = Support =
27
 
28
  Thanks for downloading and installing my plugin. You can show your appreciation and support future development by donating.
29
 
30
+ Support Page: https://johnnash.info/facebook-plugin/
31
+
32
  If you have any suggestions or feedback, please post it in the following link.
33
 
34
  = Translation =
59
 
60
  == Screenshots ==
61
 
62
+ 1. screenshot-1.png
63
  2. screenshot-2.gif
64
  3. screenshot-3.gif
65
 
79
  Just copy and paste the code below on the page or post you want to display the facebook posts like button.
80
  [cardoza_facebook_posts_like]
81
 
82
+ if you have any queries post it at https://johnnash.info/facebook-plugin/
83
+
84
  == Change Log ==
85
 
86
  = Version 2.8.8 =
92
  = Version 2.8.6 =
93
  * Tested compatibility with Wordpress 4.4.2
94
 
95
+ = Version 2.9 =
96
+ * Tested compatibility with Wordpress 4.7.3
97
+ * Added New Custom CSS Feature
98
+ * Added More options to customise Like Box.
99
+
screenshot-1.gif DELETED
Binary file
screenshot-1.png ADDED
Binary file