Simple Facebook Plugin - Version 1.2.2

Version Description

  • Option to show Like Box with no border changed to native Facebook data-show-border=false;
Download this release

Release Info

Developer fornyhucker
Plugin Icon 128x128 Simple Facebook Plugin
Version 1.2.2
Comparing to
See all releases

Version 1.2.2

lib/sfp-like-box.php ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Main Facebook Like Box Social Plagin File. Creates widget, shortcode and template tag.
4
+ *
5
+ * @package SF Plugin
6
+ * @author Ilya K.
7
+ */
8
+
9
+ /**
10
+ * Like Box Widget Class
11
+ *
12
+ * Contains the main functions for SF and stores variables
13
+ *
14
+ * @since SF Plugin 1.0
15
+ * @author Ilya K.
16
+ */
17
+
18
+ class SFPLikeBoxWidget extends WP_Widget {
19
+
20
+ /**
21
+ * Register widget with WordPress
22
+ */
23
+ function SFPLikeBoxWidget() {
24
+ $widget_ops = array( 'description' => 'Display Facebook Like Box' );
25
+ parent::WP_Widget( 'facebookwidget', $name = 'SFP - Like Box', $widget_ops);
26
+ }
27
+
28
+ /**
29
+ * Front-end
30
+ */
31
+ function widget( $args, $instance ) {
32
+
33
+ global $sfplugin;
34
+
35
+ // extract user options
36
+ extract( $args );
37
+ extract( $instance );
38
+
39
+ echo $before_widget;
40
+
41
+ // check for title
42
+ $title = apply_filters( 'widget_title', $title );
43
+ if ( ! empty( $title ) ) echo $before_title . $title . $after_title;
44
+
45
+ // include Like Box view
46
+ include( $sfplugin->pluginPath . 'views/view-like-box.php' );
47
+
48
+ echo $after_widget;
49
+ }
50
+
51
+ /**
52
+ * Sanitize widget form values as they are saved
53
+ */
54
+ function update( $new_instance, $old_instance ) {
55
+
56
+ $instance = $old_instance;
57
+ // save new options
58
+ $instance['title'] = strip_tags( $new_instance['title'] );
59
+ $instance['url'] = strip_tags( $new_instance['url'] );
60
+ $instance['width'] = strip_tags( $new_instance['width'] );
61
+ $instance['height'] = strip_tags( $new_instance['height'] );
62
+ $instance['colorscheme'] = strip_tags( $new_instance['colorscheme'] );
63
+ $instance['local'] = strip_tags( $new_instance['local'] );
64
+ $instance['faces'] = isset( $new_instance['faces'] );
65
+ $instance['stream'] = isset( $new_instance['stream'] );
66
+ $instance['header'] = isset( $new_instance['header'] );
67
+ $instance['border'] = isset( $new_instance['border'] );
68
+
69
+ return $instance;
70
+ }
71
+
72
+ /**
73
+ * Back-end form
74
+ */
75
+ function form( $instance ) {
76
+
77
+ extract( array_merge( array(
78
+ // default options
79
+ 'title' => 'Our Facebook Page',
80
+ 'url' => 'http://www.facebook.com/wordpress',
81
+ 'width' => '292',
82
+ 'height' => '',
83
+ 'colorscheme' => 'light',
84
+ 'faces' => true,
85
+ 'stream' => false,
86
+ 'header' => true,
87
+ 'border' => true,
88
+ 'local' => 'en_US'
89
+ ), $instance ) ); ?>
90
+
91
+ <p>
92
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?></label>
93
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" />
94
+ </p>
95
+ <p>
96
+ <label for="<?php echo $this->get_field_id('url'); ?>"><?php _e('Facebook Page URL:'); ?></label>
97
+ <input class="widefat" id="<?php echo $this->get_field_id('url'); ?>" name="<?php echo $this->get_field_name('url'); ?>" type="text" value="<?php echo $url; ?>" />
98
+ </p>
99
+ <table>
100
+ <tr><td>
101
+ <label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Like Box width:'); ?></label>
102
+ </td><td>
103
+ <input size="6" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" type="text" value="<?php echo $width; ?>" />px
104
+ </td></tr>
105
+ <tr><td>
106
+ <label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Like Box height:'); ?></label>
107
+ </td><td>
108
+ <input size="6" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" value="<?php echo $height; ?>" />px
109
+ </td></tr>
110
+ <tr><td>
111
+ &nbsp;
112
+ </td></tr>
113
+ <tr><td>
114
+ <label for="<?php echo $this->get_field_id('colorschme'); ?>"><?php _e('Color Scheme:'); ?></label>
115
+ </td><td>
116
+ <input type="radio" name="<?php echo $this->get_field_name('colorscheme'); ?>" value="light" <?php checked(($colorscheme == 'light') ? 1 : 0); ?>/> Light<br />
117
+ <input type="radio" name="<?php echo $this->get_field_name('colorscheme'); ?>" value="dark" <?php checked(($colorscheme == 'dark') ? 1 : 0); ?>/> Dark
118
+ </td></tr>
119
+ <tr><td>
120
+ &nbsp;
121
+ </td></tr>
122
+ <tr><td>
123
+ <label for="<?php echo $this->get_field_id('faces'); ?>"><?php _e('Show Faces'); ?></label>
124
+ </td><td>
125
+ <input id="<?php echo $this->get_field_id('faces'); ?>" type="checkbox" name="<?php echo $this->get_field_name('faces'); ?>" <?php checked(isset($faces) ? $faces : 0); ?>/>
126
+ </td></tr>
127
+ <tr><td>
128
+ <label for="<?php echo $this->get_field_id('stream'); ?>"><?php _e('Show Stream'); ?></label>
129
+ </td><td>
130
+ <input id="<?php echo $this->get_field_id('stream'); ?>" type="checkbox" name="<?php echo $this->get_field_name('stream'); ?>" <?php checked(isset($stream) ? $stream : 0); ?>/>
131
+ </td></tr>
132
+ <tr><td>
133
+ <label for="<?php echo $this->get_field_id('header'); ?>"><?php _e('Show Header'); ?></label>
134
+ </td><td>
135
+ <input id="<?php echo $this->get_field_id('header'); ?>" type="checkbox" name="<?php echo $this->get_field_name('header'); ?>" <?php checked(isset($header) ? $header : 0); ?>/>
136
+ </td></tr>
137
+ <tr><td>
138
+ <label for="<?php echo $this->get_field_id('border'); ?>"><?php _e('Show Border'); ?></label>
139
+ </td><td>
140
+ <input id="<?php echo $this->get_field_id('border'); ?>" type="checkbox" name="<?php echo $this->get_field_name('border'); ?>" <?php checked(isset($border) ? $border : 0); ?>/>
141
+ </td></tr>
142
+ </table>
143
+ <br/>
144
+ <p>
145
+ <label for="<?php echo $this->get_field_id('local'); ?>"><?php _e('Language'); ?></label>
146
+ <select name="<?php echo $this->get_field_name('local'); ?>">
147
+ <option <?php selected(( $local == 'cs_CZ') ? 1 : 0);?> value="cs_CZ" >Czech</option>
148
+ <option <?php selected(( $local == 'da_DK') ? 1 : 0);?> value="da_DK" >Danish</option>
149
+ <option <?php selected(( $local == 'nl_NL') ? 1 : 0);?> value="nl_NL" >Dutch</option>
150
+ <option <?php selected(( $local == 'en_US') ? 1 : 0);?> value="en_US" >English (US)</option>
151
+ <option <?php selected(( $local == 'en_GB') ? 1 : 0);?> value="en_GB" >English (UK)</option>
152
+ <option <?php selected(( $local == 'et_EE') ? 1 : 0);?> value="et_EE" >Estonian</option>
153
+ <option <?php selected(( $local == 'fr_FR') ? 1 : 0);?> value="fr_FR" >French</option>
154
+ <option <?php selected(( $local == 'de_DE') ? 1 : 0);?> value="de_DE" >German</option>
155
+ <option <?php selected(( $local == 'it_IT') ? 1 : 0);?> value="it_IT" >Italian</option>
156
+ <option <?php selected(( $local == 'ja_JP') ? 1 : 0);?> value="ja_JP" >Japanese</option>
157
+ <option <?php selected(( $local == 'ko_KR') ? 1 : 0);?> value="ko_KR" >Korean</option>
158
+ <option <?php selected(( $local == 'lv_LV') ? 1 : 0);?> value="lv_LV" >Latvian</option>
159
+ <option <?php selected(( $local == 'lt_LT') ? 1 : 0);?> value="lt_LT" >Lithuanian</option>
160
+ <option <?php selected(( $local == 'nb_NO') ? 1 : 0);?> value="nb_NO" >Norwegian (bokmal)</option>
161
+ <option <?php selected(( $local == 'pl_PL') ? 1 : 0);?> value="pl_PL" >Polish</option>
162
+ <option <?php selected(( $local == 'pt_PT') ? 1 : 0);?> value="pt_PT" >Portuguese</option>
163
+ <option <?php selected(( $local == 'ro_RO') ? 1 : 0);?> value="ro_RO" >Romanian</option>
164
+ <option <?php selected(( $local == 'ru_RU') ? 1 : 0);?> value="ru_RU" >Russian</option>
165
+ <option <?php selected(( $local == 'es_LA') ? 1 : 0);?> value="es_LA" >Spanish</option>
166
+ <option <?php selected(( $local == 'es_ES') ? 1 : 0);?> value="es_ES" >Spanish (Spain)</option>
167
+ <option <?php selected(( $local == 'es_CL') ? 1 : 0);?> value="es_CL" >Spanish (Chile)</option>
168
+ <option <?php selected(( $local == 'es_CO') ? 1 : 0);?> value="es_CO" >Spanish (Colombia)</option>
169
+ <option <?php selected(( $local == 'es_MX') ? 1 : 0);?> value="es_MX" >Spanish (Mexico)</option>
170
+ <option <?php selected(( $local == 'es_VE') ? 1 : 0);?> value="es_VE" >Spanish (Venezuela)</option>
171
+ <option <?php selected(( $local == 'sv_SE') ? 1 : 0);?> value="sv_SE" >Swedish</option>
172
+ <option <?php selected(( $local == 'zh_CN') ? 1 : 0);?> value="zh_CN" >Simplified Chinese</option>
173
+ <option <?php selected(( $local == 'zh_TW') ? 1 : 0);?> value="zh_TW" >Traditional Chinese (Taiwan)</option>
174
+ <option <?php selected(( $local == 'th_TH') ? 1 : 0);?> value="th_TH" >Thai</option>
175
+ <option <?php selected(( $local == 'tr_TR') ? 1 : 0);?> value="tr_TR" >Turkish</option>
176
+ <option <?php selected(( $local == 'uk_UA') ? 1 : 0);?> value="uk_UA" >Ukrainian</option>
177
+ <option <?php selected(( $local == 'tl_ST') ? 1 : 0);?> value="tl_ST" >Klingon</option>
178
+ </select>
179
+ </p>
180
+ <?php }
181
+
182
+ } // class SFPLikeBoxWidget
183
+
184
+ /**
185
+ * Add Like Box 'Shortcode'
186
+ *
187
+ * @since SF Plugin 1.2
188
+ * @author Ilya K.
189
+ */
190
+
191
+ function sfp_like_box_shortcode ( $args = array() ) {
192
+
193
+ global $sfplugin;
194
+
195
+ extract( array_merge( array(
196
+ // default options
197
+ 'url' => 'http://www.facebook.com/wordpress',
198
+ 'width' => '292',
199
+ 'height' => '',
200
+ 'colorscheme' => 'light',
201
+ 'faces' => true,
202
+ 'stream' => false,
203
+ 'header' => true,
204
+ 'border' => true,
205
+ 'local' => 'en_US'
206
+ ), $args ) );
207
+
208
+ ob_start();
209
+
210
+ // include Like Box view
211
+ include( $sfplugin->pluginPath . 'views/view-like-box.php' );
212
+
213
+ return ob_get_clean();
214
+ }
215
+
216
+
217
+ /**
218
+ * Add Like Box 'Template Tag'
219
+ *
220
+ * @since SF Plugin 1.2
221
+ * @author Ilya K.
222
+ */
223
+
224
+ function sfp_like_box ( $args = array() ) {
225
+
226
+ global $sfplugin;
227
+
228
+ extract( array_merge( array(
229
+ // default options
230
+ 'url' => 'http://www.facebook.com/wordpress',
231
+ 'width' => '292',
232
+ 'height' => '',
233
+ 'colorscheme' => 'light',
234
+ 'faces' => true,
235
+ 'stream' => false,
236
+ 'header' => true,
237
+ 'border' => true,
238
+ 'local' => 'en_US'
239
+ ), $args ) );
240
+
241
+ // include Like Box view
242
+ include( $sfplugin->pluginPath . 'views/view-like-box.php' );
243
+ }
244
+
245
+ ?>
readme.txt ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Simple Facebook Plugin ===
2
+
3
+ Contributors: fornyhucker
4
+ Tags: social, facebook, fb, fb like, like box, likebox, widget, shortcode, template tag, sidebar
5
+ Requires at least: 2.8
6
+ Tested up to: 3.8
7
+ Stable tag: trunk
8
+ License: GPLv2 or later
9
+
10
+ Allows you to integrate Facebook Like Box into your WordPress Site.
11
+
12
+ == Description ==
13
+
14
+ = Whats new in 1.2.1? =
15
+
16
+ Now you can hide Like Box border, just uncheck 'Show Border' option on widget setting and vuala! (If you are using shortcode or template tag set ‘border‘ parameter to ‘false‘)
17
+
18
+ = Description =
19
+
20
+ Simple Facebook Plugin enables Facebook Page owners to attract and gain Likes from their own WordPress blogs. The **Like Box** enables users to:
21
+
22
+ * See how many users already like this Page, and which of their friends like it too
23
+ * Read recent posts from the Page
24
+ * Like the Page with one click, without needing to visit the Page
25
+
26
+ Please visit [Plugin Home Page](http://plugins.topdevs.net/simple-facebook-plugin/ "Simple Facebook Plugin Home Page") for more info and examples.
27
+
28
+ Visit our CodeCanyon [Portfolio](http://codecanyon.net/user/topdevs/portfolio?ref=topdevs "Our CodeCanyon Portfolio") to see more awesome plugins we made.
29
+
30
+ **Supported languages**
31
+
32
+ * Czech
33
+ * Danish
34
+ * Dutch
35
+ * English (US)
36
+ * English (UK)
37
+ * Estonian
38
+ * French
39
+ * German
40
+ * Italian
41
+ * Japanese
42
+ * Korean
43
+ * Latvian
44
+ * Lithuanian
45
+ * Norwegian (bokmal)
46
+ * Polish
47
+ * Portuguese
48
+ * Romanian
49
+ * Russian
50
+ * Spanish
51
+ * Spanish (Spain)
52
+ * Spanish (Chile)
53
+ * Spanish (Colombia)
54
+ * Spanish (Mexico)
55
+ * Spanish (Venezuela)
56
+ * Swedish
57
+ * Simplified Chinese
58
+ * Traditional Chinese (Taiwan)
59
+ * Thai
60
+ * Turkish
61
+ * Ukrainian
62
+ * Klingon
63
+
64
+ == Installation ==
65
+ **Installation**
66
+
67
+ 1. Upload `simple-facebook-plugin` directory to your `/wp-content/plugins` directory
68
+ 1. Activate plugin in WordPress admin
69
+
70
+ **Customization**
71
+
72
+ 1. In WordPress dashboard, go to **Appearance > Widgets**.
73
+ 1. Drag and Drop **SFP - Like Box** into your sidebar.
74
+ 1. Click triangle near **SFP - Like Box** header.
75
+ 1. Choose colorscheme, size and other options you like.
76
+ 1. Enter your Facebook Page URL (not your personal page URL!).
77
+
78
+ **or**
79
+
80
+ Use `[sfp-like-box]` shortcode inside your post or page. This shortcode support all default parametrs:
81
+
82
+
83
+ * url - any Fan Page URL (not your personal page!)
84
+ * width - any number (e.g 250)
85
+ * height - any number (e.g 300)
86
+ * colorscheme - *light* or *dark*
87
+ * faces – *true* or *false*
88
+ * stream - *true* or *false*
89
+ * header - *true* or *false*
90
+ * local - valid language code (e.g. *en_US* or *es_MX*) see [.xml file](http://www.facebook.com/translations/FacebookLocales.xml "Facebook locales XML") with all Facebook locales
91
+
92
+
93
+ If you want Like Box *220 pixels width*, *dark color scheme* and *showing stream* you need to use it next way:
94
+
95
+ `[sfp-like-box width=220 colorscheme=dark stream=true]`
96
+
97
+ **or**
98
+
99
+ Use `sfp_like_box()` template tag in your theme files.
100
+
101
+ `<?php if ( function_exists("sfp_like_box") ) {
102
+ $args = array(
103
+ 'url' => 'http://www.facebook.com/wordpress',
104
+ 'width' => '292',
105
+ 'faces' => false,
106
+ 'header' => false,
107
+ 'local' => 'en_US'
108
+ );
109
+ sfp_like_box( $args );
110
+ } ?>`
111
+
112
+ == Frequently Asked Questions ==
113
+
114
+ = I can get a box to display on the blog, but it contains the message “There was an error fetching the like box for the specified page”. What am I doing wrong? =
115
+
116
+ Like Box is only for Fan Pages and **not** for your personal page.
117
+
118
+ == Screenshots ==
119
+
120
+ 1. Widget in the dashboard.
121
+ 2. Widget on your site.
122
+ 3. Shortcode inside your post.
123
+
124
+ == Changelog ==
125
+
126
+ = 1.2.2 =
127
+ * Option to show Like Box with no border changed to native Facebook data-show-border=false;
128
+
129
+ = 1.2.1 =
130
+ * Added option to show Like Box with no border;
131
+ * Added Norwegian(bokmal) locale to widget;
132
+
133
+ = 1.2 =
134
+ Plugin structure reorganized. Shortcode and template tag functionality added.
135
+
136
+ = 1.1 =
137
+ More than 20 Facebook Locales added.
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
simple-facebook-plugin.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Simple Facebook Plugin
4
+ Plugin URI: http://plugins.topdevs.net/simple-facebook-plugin
5
+ Description: Allows you to integrate Facebook Like Box into your WordPress Site.
6
+ Version: 1.2.2
7
+ Author: Ilya K.
8
+ Author URI: http://codecanyon.net/user/topdevs/portfolio?ref=topdevs
9
+ License: GPLv2 or later
10
+ */
11
+
12
+ /**
13
+ * Main SF Plugin Class
14
+ *
15
+ * Contains the main functions for SF and stores variables
16
+ *
17
+ * @since SF Plugin 1.2
18
+ * @author Ilya K.
19
+ */
20
+
21
+ // Check if class already exist
22
+ if ( !class_exists( 'SFPlugin' ) ) {
23
+
24
+ // Main plugin class
25
+ class SFPlugin {
26
+
27
+ public $pluginPath;
28
+ public $pluginUrl;
29
+ public $pluginName;
30
+
31
+ /**
32
+ * SF Plugin Constructor
33
+ *
34
+ * Gets things started
35
+ */
36
+ public function __construct( ) {
37
+ $this->pluginPath = plugin_dir_path(__FILE__);
38
+ $this->pluginUrl = plugin_dir_url(__FILE__);
39
+
40
+ $this->loadFiles();
41
+ $this->addActions();
42
+ $this->addShortcodes();
43
+ }
44
+
45
+ /**
46
+ * Load all the required files.
47
+ */
48
+ protected function loadFiles() {
49
+ // Include social plugins files
50
+ require_once( $this->pluginPath . 'lib/sfp-like-box.php' );
51
+
52
+ }
53
+
54
+ /**
55
+ * Add all the required actions.
56
+ */
57
+ protected function addActions() {
58
+
59
+ add_action('widgets_init', array( $this, 'addWidgets') );
60
+
61
+ }
62
+
63
+ /**
64
+ * Register all widgets
65
+ */
66
+ public function addWidgets() {
67
+
68
+ register_widget('SFPLikeBoxWidget');
69
+
70
+ }
71
+
72
+ /**
73
+ * Register all shortcodes
74
+ */
75
+ public function addShortcodes() {
76
+
77
+ add_shortcode('sfp-like-box', 'sfp_like_box_shortcode');
78
+
79
+ }
80
+
81
+ } // end SFPlugin class
82
+
83
+ } // end if !class_exists
84
+
85
+ // Create new SFPlugin instance
86
+ $GLOBALS["sfplugin"] = new SFPlugin();
87
+
88
+ ?>
views/view-like-box.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Check if shortcode return string and not bool
2
+ if ( is_string( $border ) ) $border = ( $border == 'true') ? true : false;
3
+ if ( is_string( $faces ) ) $faces = ( $faces == 'true') ? true : false;
4
+ if ( is_string( $stream ) ) $stream = ( $stream == 'true') ? true : false;
5
+ if ( is_string( $header ) ) $header = ( $header == 'true') ? true : false;
6
+ ?>
7
+ <!-- SFPlugin by TopDevs -->
8
+ <div id="fb-root"></div>
9
+ <script>
10
+ (function(d){
11
+ var js, id = 'facebook-jssdk';
12
+ if (d.getElementById(id)) {return;}
13
+ js = d.createElement('script');
14
+ js.id = id;
15
+ js.async = true;
16
+ js.src = "//connect.facebook.net/<?php echo $local; ?>/all.js#xfbml=1";
17
+ d.getElementsByTagName('head')[0].appendChild(js);
18
+ }(document));
19
+ </script>
20
+ <!-- Like Box Code START -->
21
+ <div class="sfp-container">
22
+ <div class="fb-like-box"
23
+ data-href="<?php echo $url; ?>"
24
+ data-width="<?php echo $width; ?>"
25
+ data-height="<?php echo $height; ?>"
26
+ data-colorscheme="<?php echo $colorscheme; ?>"
27
+ data-show-faces="<?php echo ( $faces ) ? 'true' : 'false'; ?>"
28
+ data-show-border="<?php echo ( $border ) ? 'true' : 'false'; ?>"
29
+ data-stream="<?php echo ( $stream ) ? 'true' : 'false' ;?>"
30
+ data-header="<?php echo ( $header ) ? 'true' : 'false' ;?>">
31
+ </div>
32
+ </div>
33
+ <!-- Like Box Code END -->