Simple Facebook Plugin - Version 1.5

Version Description

  • Added Events and Messages tabs
  • Added Small Header Option
  • Fixed PHP7 Warning and Notice messages
  • Removed deprecated Like Box widget
Download this release

Release Info

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

Code changes from version 1.3.2 to 1.5

lib/sfp-like-box.php DELETED
@@ -1,261 +0,0 @@
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
- // Add-ons hook
36
- $instance = apply_filters( "sfp_before_like_box", $instance, $this, $sfplugin );
37
- do_action( "sfp_before_like_box", $args, $instance, $this, $sfplugin );
38
-
39
- // extract user options
40
- extract( $args );
41
- extract( $instance );
42
-
43
- // Stnadar WP output
44
- echo $before_widget;
45
-
46
- // check for title
47
- $title = apply_filters( 'widget_title', $title );
48
- if ( ! empty( $title ) ) echo $before_title . $title . $after_title;
49
-
50
- // include Like Box view
51
- include( $sfplugin->pluginPath . 'views/view-like-box.php' );
52
-
53
- // Add-ons hook
54
- do_action("sfp_after_like_box", $args, $instance, $this, $sfplugin );
55
-
56
- // Stnadar WP output
57
- echo $after_widget;
58
- }
59
-
60
- /**
61
- * Sanitize widget form values as they are saved
62
- */
63
- function update( $new_instance, $old_instance ) {
64
-
65
- $instance = $old_instance;
66
- // save new options
67
- $instance['title'] = strip_tags( $new_instance['title'] );
68
- $instance['url'] = strip_tags( $new_instance['url'] );
69
- $instance['width'] = strip_tags( $new_instance['width'] );
70
- $instance['height'] = strip_tags( $new_instance['height'] );
71
- $instance['colorscheme'] = strip_tags( $new_instance['colorscheme'] );
72
- $instance['local'] = strip_tags( $new_instance['local'] );
73
- $instance['faces'] = isset( $new_instance['faces'] );
74
- $instance['stream'] = isset( $new_instance['stream'] );
75
- $instance['header'] = isset( $new_instance['header'] );
76
- $instance['border'] = isset( $new_instance['border'] );
77
-
78
- // Add-ons hook
79
- apply_filters( 'sfp_like_box_widget_update', $instance, $new_instance, $old_instance );
80
-
81
- return $instance;
82
- }
83
-
84
- /**
85
- * Back-end form
86
- */
87
- function form( $instance ) {
88
-
89
- global $sfplugin;
90
-
91
- $default = array(
92
- // default options
93
- 'title' => 'Our Facebook Page',
94
- 'url' => 'http://www.facebook.com/wordpress',
95
- 'width' => '292',
96
- 'height' => '',
97
- 'colorscheme' => 'light',
98
- 'faces' => true,
99
- 'stream' => false,
100
- 'header' => true,
101
- 'border' => true,
102
- 'local' => 'en_US'
103
- );
104
-
105
- // Add-ons hook
106
- //$instance = apply_filters( 'sfp_like_box_form', $instance, $default, $this, $sfplugin );
107
-
108
- extract( array_merge( $default, $instance ) ); ?>
109
-
110
- <?php
111
- // Add-ons hook
112
- do_action( "sfp_like_box_widget_form_start", $instance, $this, $sfplugin );
113
- ?>
114
-
115
- <p>
116
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?></label>
117
- <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; ?>" />
118
- </p>
119
- <p>
120
- <label for="<?php echo $this->get_field_id('url'); ?>"><?php _e('Facebook Page URL:'); ?></label>
121
- <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; ?>" />
122
- </p>
123
- <table>
124
- <tr><td>
125
- <label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Like Box width:'); ?></label>
126
- </td><td>
127
- <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
128
- </td></tr>
129
- <tr><td>
130
- <label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Like Box height:'); ?></label>
131
- </td><td>
132
- <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
133
- </td></tr>
134
- <?php
135
- // Add-ons hook
136
- do_action( "sfp_like_box_widget_form_after_inputs", $instance, $this, $sfplugin );
137
- ?>
138
- <tr><td>
139
- &nbsp;
140
- </td></tr>
141
- <tr><td>
142
- <label for="<?php echo $this->get_field_id('colorschme'); ?>"><?php _e('Color Scheme:'); ?></label>
143
- </td><td>
144
- <input type="radio" name="<?php echo $this->get_field_name('colorscheme'); ?>" value="light" <?php checked(($colorscheme == 'light') ? 1 : 0); ?>/> Light<br />
145
- <input type="radio" name="<?php echo $this->get_field_name('colorscheme'); ?>" value="dark" <?php checked(($colorscheme == 'dark') ? 1 : 0); ?>/> Dark
146
- </td></tr>
147
- <tr><td>
148
- &nbsp;
149
- </td></tr>
150
- <tr><td>
151
- <label for="<?php echo $this->get_field_id('faces'); ?>"><?php _e('Show Faces'); ?></label>
152
- </td><td>
153
- <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); ?>/>
154
- </td></tr>
155
- <tr><td>
156
- <label for="<?php echo $this->get_field_id('stream'); ?>"><?php _e('Show Stream'); ?></label>
157
- </td><td>
158
- <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); ?>/>
159
- </td></tr>
160
- <tr><td>
161
- <label for="<?php echo $this->get_field_id('header'); ?>"><?php _e('Show Header'); ?></label>
162
- </td><td>
163
- <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); ?>/>
164
- </td></tr>
165
- <tr><td>
166
- <label for="<?php echo $this->get_field_id('border'); ?>"><?php _e('Show Border'); ?></label>
167
- </td><td>
168
- <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); ?>/>
169
- </td></tr>
170
- <?php
171
- // Add-ons hook
172
- do_action("sfp_like_box_widget_form_after_checkboxes", $instance, $this, $sfplugin );
173
- ?>
174
- </table>
175
- <br/>
176
- <p>
177
- <label for="<?php echo $this->get_field_id('local'); ?>"><?php _e('Language'); ?></label>
178
- <select name="<?php echo $this->get_field_name('local'); ?>">
179
- <?php foreach ( $sfplugin->locales as $code => $name ) : ?>
180
- <option <?php selected(( $local == $code) ? 1 : 0); ?> value="<?php echo $code; ?>" ><?php echo $name; ?></option>
181
- <?php endforeach; ?>
182
- </select>
183
- </p>
184
- <?php
185
- do_action( "sfp_like_box_widget_form_end", $instance, $this, $sfplugin );
186
- ?>
187
-
188
- <?php }
189
-
190
- } // class SFPLikeBoxWidget
191
-
192
- /**
193
- * Add Like Box 'Shortcode'
194
- *
195
- * @since SF Plugin 1.2
196
- * @author Ilya K.
197
- */
198
-
199
- function sfp_like_box_shortcode ( $instance ) {
200
-
201
- global $sfplugin;
202
-
203
- $instance = ( !$instance ) ? array() : $instance;
204
-
205
- // Add-ons hook
206
- $instance = apply_filters( "sfp_before_like_box", $instance, $sfplugin );
207
-
208
- extract( array_merge( array(
209
- // default options
210
- 'url' => 'http://www.facebook.com/wordpress',
211
- 'width' => '292',
212
- 'height' => '',
213
- 'colorscheme' => 'light',
214
- 'faces' => true,
215
- 'stream' => false,
216
- 'header' => true,
217
- 'border' => true,
218
- 'local' => 'en_US'
219
- ), $instance ) );
220
-
221
- ob_start();
222
-
223
- // include Like Box view
224
- include( $sfplugin->pluginPath . 'views/view-like-box.php' );
225
-
226
- return ob_get_clean();
227
- }
228
-
229
-
230
- /**
231
- * Add Like Box 'Template Tag'
232
- *
233
- * @since SF Plugin 1.2
234
- * @author Ilya K.
235
- */
236
-
237
- function sfp_like_box ( $instance = array() ) {
238
-
239
- global $sfplugin;
240
-
241
- // Add-ons hook
242
- $instance = apply_filters( "sfp_before_like_box", $instance, $sfplugin );
243
-
244
- extract( array_merge( array(
245
- // default options
246
- 'url' => 'http://www.facebook.com/wordpress',
247
- 'width' => '292',
248
- 'height' => '',
249
- 'colorscheme' => 'light',
250
- 'faces' => true,
251
- 'stream' => false,
252
- 'header' => true,
253
- 'border' => true,
254
- 'local' => 'en_US'
255
- ), $instance ) );
256
-
257
- // include Like Box view
258
- include( $sfplugin->pluginPath . 'views/view-like-box.php' );
259
- }
260
-
261
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/sfp-page-plugin.php ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Main Facebook Page Plagin File. Creates widget, shortcode and template tag.
4
+ *
5
+ * @package SF Plugin
6
+ * @author Ilya K.
7
+ * @since 1.4
8
+ */
9
+
10
+ /**
11
+ * Page Plugin Widget Class
12
+ *
13
+ * Contains the main functions for SF and stores variables
14
+ *
15
+ * @since SF Plugin 1.4
16
+ * @author Ilya K.
17
+ */
18
+
19
+ class SFPPagePluginWidget extends WP_Widget {
20
+
21
+ /**
22
+ * Register widget with WordPress
23
+ */
24
+ function __construct() {
25
+ $widget_ops = array( 'description' => 'Display Facebook Page Plugin.' );
26
+ parent::__construct( 'sfp_page_plugin_widget', $name = 'SFP - Facebook Page Plugin', $widget_ops);
27
+ }
28
+
29
+ /**
30
+ * Front-end
31
+ */
32
+ function widget( $args, $instance ) {
33
+
34
+ global $sfplugin;
35
+
36
+ // Add-ons hook
37
+ $instance = apply_filters( "sfp_before_page_plugin", $instance, $this, $sfplugin );
38
+ do_action( "sfp_before_page_plugin", $args, $instance, $this, $sfplugin );
39
+
40
+ // extract user options
41
+ extract( $args );
42
+ extract( $instance );
43
+
44
+ // Stnadar WP output
45
+ echo $before_widget;
46
+
47
+ // check for title
48
+ $title = apply_filters( 'widget_title', $title );
49
+ if ( ! empty( $title ) ) echo $before_title . $title . $after_title;
50
+
51
+ // include Page Plugin view
52
+ include( $sfplugin->pluginPath . 'views/view-page-plugin.php' );
53
+
54
+ // Add-ons hook
55
+ do_action("sfp_after_page_plugin", $args, $instance, $this, $sfplugin );
56
+
57
+ // Stnadar WP output
58
+ echo $after_widget;
59
+ }
60
+
61
+ /**
62
+ * Sanitize widget form values as they are saved
63
+ */
64
+ function update( $new_instance, $old_instance ) {
65
+
66
+ $instance = $old_instance;
67
+ // save new options
68
+ $instance['title'] = strip_tags( $new_instance['title'] );
69
+ $instance['url'] = strip_tags( $new_instance['url'] );
70
+ $instance['width'] = strip_tags( $new_instance['width'] );
71
+ $instance['height'] = strip_tags( $new_instance['height'] );
72
+ $instance['hide_cover'] = isset( $new_instance['hide_cover'] );
73
+ $instance['show_facepile'] = isset( $new_instance['show_facepile'] );
74
+ $instance['small_header'] = isset( $new_instance['small_header'] );
75
+ $instance['timeline'] = isset( $new_instance['timeline'] );
76
+ $instance['events'] = isset( $new_instance['events'] );
77
+ $instance['messages'] = isset( $new_instance['messages'] );
78
+
79
+ $instance['locale'] = strip_tags( $new_instance['locale'] );
80
+
81
+ // Add-ons hook
82
+ apply_filters( 'sfp_page_plugin_widget_update', $instance, $new_instance, $old_instance );
83
+
84
+ return $instance;
85
+ }
86
+
87
+ /**
88
+ * Back-end form
89
+ */
90
+ function form( $instance ) {
91
+
92
+ global $sfplugin;
93
+
94
+ $default = array(
95
+ // default options
96
+ 'title' => 'Our Facebook Page',
97
+ 'url' => 'http://www.facebook.com/topdevs.net',
98
+ 'width' => '',
99
+ 'height' => '',
100
+ 'hide_cover' => false,
101
+ 'show_facepile' => true,
102
+ 'small_header' => false,
103
+ 'timeline' => false,
104
+ 'events' => false,
105
+ 'messages' => false,
106
+
107
+ 'locale' => 'en_US'
108
+ );
109
+
110
+ // Add-ons hook
111
+ //$instance = apply_filters( 'sfp_page_plugin_form', $instance, $default, $this, $sfplugin );
112
+
113
+ extract( array_merge( $default, $instance ) ); ?>
114
+
115
+ <?php
116
+ // Add-ons hook
117
+ do_action( "sfp_page_plugin_widget_form_start", $instance, $this, $sfplugin );
118
+ ?>
119
+ <p>
120
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?></label>
121
+ <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; ?>" />
122
+ </p>
123
+ <p>
124
+ <label for="<?php echo $this->get_field_id('url'); ?>"><?php _e('Facebook Page URL:'); ?></label>
125
+ <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; ?>" />
126
+ </p>
127
+
128
+ <label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width:'); ?></label>
129
+ <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
130
+ <p class="description">
131
+ The plugin will automatically adapt to the width of its parent element on page load if parent's width is lower than plugin's. Min is 180 and Max is 500.
132
+ </p>
133
+ <label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:'); ?></label>
134
+ <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
135
+ <p class="description">Minimum is 70.</p>
136
+ <?php
137
+ // Add-ons hook
138
+ do_action( "sfp_page_plugin_widget_form_after_inputs", $instance, $this, $sfplugin );
139
+ ?>
140
+ <table>
141
+ <tr><td>
142
+ <br/>
143
+ <b><?php _e('Header'); ?></b>
144
+ </td></tr>
145
+ <tr><td>
146
+ <label for="<?php echo $this->get_field_id('hide_cover'); ?>"><?php _e('Hide Cover Photo'); ?></label>
147
+ </td><td>
148
+ <input id="<?php echo $this->get_field_id('hide_cover'); ?>" type="checkbox" name="<?php echo $this->get_field_name('hide_cover'); ?>" <?php checked(isset($hide_cover) ? $hide_cover : 0); ?>/>
149
+ </td></tr>
150
+ <tr><td>
151
+ <label for="<?php echo $this->get_field_id('show_facepile'); ?>"><?php _e('Show Friend\'s Faces'); ?></label>
152
+ </td><td>
153
+ <input id="<?php echo $this->get_field_id('show_facepile'); ?>" type="checkbox" name="<?php echo $this->get_field_name('show_facepile'); ?>" <?php checked(isset($show_facepile) ? $show_facepile : 0); ?>/>
154
+ </td></tr>
155
+ <tr><td>
156
+ <label for="<?php echo $this->get_field_id('small_header'); ?>"><?php _e('Small Header'); ?></label>
157
+ </td><td>
158
+ <input id="<?php echo $this->get_field_id('small_header'); ?>" type="checkbox" name="<?php echo $this->get_field_name('small_header'); ?>" <?php checked(isset($small_header) ? $small_header : 0); ?>/>
159
+ </td></tr>
160
+ <tr><td>
161
+ <br/>
162
+ <b><?php _e('Tabs'); ?></b>
163
+ </td></tr>
164
+ <tr><td>
165
+ <label for="<?php echo $this->get_field_id('timeline'); ?>"><?php _e('Show Timeline'); ?></label>
166
+ </td><td>
167
+ <input id="<?php echo $this->get_field_id('timeline'); ?>" type="checkbox" name="<?php echo $this->get_field_name('timeline'); ?>" <?php checked(isset($timeline) ? $timeline : 0); ?>/>
168
+ </td></tr>
169
+ <tr><td>
170
+ <label for="<?php echo $this->get_field_id('events'); ?>"><?php _e('Show Events'); ?></label>
171
+ </td><td>
172
+ <input id="<?php echo $this->get_field_id('events'); ?>" type="checkbox" name="<?php echo $this->get_field_name('events'); ?>" <?php checked(isset($events) ? $events : 0); ?>/>
173
+ </td></tr>
174
+ <tr><td>
175
+ <label for="<?php echo $this->get_field_id('messages'); ?>"><?php _e('Show Messages'); ?></label>
176
+ </td><td>
177
+ <input id="<?php echo $this->get_field_id('messages'); ?>" type="checkbox" name="<?php echo $this->get_field_name('messages'); ?>" <?php checked(isset($messages) ? $messages : 0); ?>/>
178
+ </td></tr>
179
+ <?php
180
+ // Add-ons hook
181
+ do_action("sfp_page_plugin_widget_form_after_checkboxes", $instance, $this, $sfplugin );
182
+ ?>
183
+ </table>
184
+ <br/>
185
+ <p>
186
+ <label for="<?php echo $this->get_field_id('locale'); ?>"><?php _e('Language'); ?></label>
187
+ <select name="<?php echo $this->get_field_name('locale'); ?>">
188
+ <?php foreach ( $sfplugin->locales as $code => $name ) : ?>
189
+ <option <?php selected(( $locale == $code) ? 1 : 0); ?> value="<?php echo $code; ?>" ><?php echo $name; ?></option>
190
+ <?php endforeach; ?>
191
+ </select>
192
+ </p>
193
+ <?php
194
+ do_action( "sfp_page_plugin_widget_form_end", $instance, $this, $sfplugin );
195
+ ?>
196
+
197
+ <?php }
198
+
199
+ } // class SFPPagePluginWidget
200
+
201
+ /**
202
+ * Add Page Plugin 'Shortcode'
203
+ *
204
+ * @since SF Plugin 1.4
205
+ * @author Ilya K.
206
+ */
207
+
208
+ function sfp_page_plugin_shortcode ( $instance ) {
209
+
210
+ global $sfplugin;
211
+
212
+ $instance = ( !$instance ) ? array() : $instance;
213
+
214
+ // Add-ons hook
215
+ $instance = apply_filters( "sfp_before_page_plugin", $instance, $sfplugin );
216
+
217
+ extract( array_merge( array(
218
+ // default options
219
+ 'url' => 'http://www.facebook.com/topdevs.net',
220
+ 'width' => '',
221
+ 'height' => '',
222
+ 'hide_cover' => false,
223
+ 'show_facepile' => true,
224
+ 'small_header' => false,
225
+ 'timeline' => false,
226
+ 'events' => false,
227
+ 'messages' => false,
228
+ 'locale' => 'en_US'
229
+ ), $instance ) );
230
+
231
+ ob_start();
232
+
233
+ // include Page Plugin view
234
+ include( $sfplugin->pluginPath . 'views/view-page-plugin.php' );
235
+
236
+ return ob_get_clean();
237
+ }
238
+
239
+
240
+ /**
241
+ * Add Page Plugin 'Template Tag'
242
+ *
243
+ * @since SF Plugin 1.4
244
+ * @author Ilya K.
245
+ */
246
+
247
+ function sfp_page_plugin ( $instance = array() ) {
248
+
249
+ global $sfplugin;
250
+
251
+ // Add-ons hook
252
+ $instance = apply_filters( "sfp_before_page_plugin", $instance, $sfplugin );
253
+
254
+ extract( array_merge( array(
255
+ // default options
256
+ 'url' => 'http://www.facebook.com/topdevs.net',
257
+ 'width' => '',
258
+ 'height' => '',
259
+ 'hide_cover' => false,
260
+ 'show_facepile' => true,
261
+ 'small_header' => false,
262
+ 'timeline' => false,
263
+ 'events' => false,
264
+ 'messages' => false,
265
+ 'locale' => 'en_US'
266
+ ), $instance ) );
267
+
268
+ // include Page Plugin view
269
+ include( $sfplugin->pluginPath . 'views/view-page-plugin.php' );
270
+ }
271
+
272
+ ?>
readme.txt CHANGED
@@ -1,35 +1,39 @@
1
  === Simple Facebook Plugin ===
2
 
3
  Contributors: topdevs, fornyhucker
4
- Tags: social, facebook, fb, fb like, like box, likebox, widget, shortcode, responsive, template tag, sidebar
5
  Requires at least: 2.8
6
- Tested up to: 4.0
7
- Stable tag: trunk
8
  License: GPLv2 or later
9
 
10
- Allows you to integrate Facebook Like Box into your WordPress site using Widgets or Shortcodes.
11
 
12
  == Description ==
13
 
14
  = Description =
15
 
16
- Simple Facebook Plugin enables Facebook Page admins to promote their Pages and embed a simple feed of content from a Page into any WordPress blog. The **Like Box** enables users to:
17
 
18
  * See how many users already like this Page, and which of their friends like it too
19
  * Read recent posts from the Page
20
  * Like the Page with one click, without needing to visit the Page
 
 
21
 
22
- You can easily integrate Like Box using WordPress Widgets and Shortcodes.
23
 
24
- = Add-ons =
25
 
26
- Starting version 1.3 Simple Facebook Plugin is add-on ready. Visit our first [Responsive Like Box Add-on](http://plugins.topdevs.net/simple-facebook-plugin/responsive-like-box-addon/ "Visit Responsive Like Box Add-on Page") page to learn more.
27
 
28
- = More =
 
 
 
29
 
30
- Visit [Plugin Page](http://plugins.topdevs.net/simple-facebook-plugin/ "See 'Simple Facebook Plugin' Page") for more info and examples.
31
 
32
- Visit our [CodeCanyon Portfolio](http://codecanyon.net/user/topdevs/portfolio?ref=topdevs "Our Plugins on CodeCanyon") or our [Plugins Site](http://plugins.topdevs.net/ "See all our plugins") to see more awesome plugins we made.
33
 
34
  == Installation ==
35
  **Installation**
@@ -40,72 +44,84 @@ Visit our [CodeCanyon Portfolio](http://codecanyon.net/user/topdevs/portfolio?re
40
  **Customization**
41
 
42
  1. In WordPress dashboard, go to **Appearance > Widgets**.
43
- 1. Drag and Drop **SFP - Like Box** into your sidebar.
44
- 1. Click triangle near **SFP - Like Box** header.
45
- 1. Enter your Facebook Page URL (not your personal page URL!).
46
- 1. Choose colorscheme, size and other options you like.
47
 
48
  **or**
49
 
50
- Use `[sfp-like-box]` shortcode inside your post or page. This shortcode support all default parametrs:
51
 
52
 
53
  * url - any Fan Page URL (not your personal page!)
54
- * width - any number (e.g 250)
55
- * height - any number (e.g 300)
56
- * colorscheme - *light* or *dark*
57
- * faces *true* or *false*
58
- * stream - *true* or *false*
59
- * header - *true* or *false*
60
- * border - *true* or *false*
61
- * 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
 
62
 
63
 
64
- If you want Like Box *220 pixels width*, *dark color scheme* and *showing stream* you need to use it next way:
65
 
66
- `[sfp-like-box width=220 colorscheme=dark stream=true url=http://www.facebook.com/yourPageName]`
67
 
68
  **or**
69
 
70
- Use `sfp_like_box()` template tag in your theme files.
71
 
72
- `<?php if ( function_exists("sfp_like_box") ) {
73
  $args = array(
74
- 'url' => 'http://www.facebook.com/wordpress',
75
- 'width' => '292',
76
- 'faces' => false,
77
- 'header' => false,
78
- 'local' => 'en_US'
79
  );
80
- sfp_like_box( $args );
81
  } ?>`
82
 
83
  == Frequently Asked Questions ==
84
 
85
- = 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? =
86
 
87
- Like Box is only for Fan Pages and **not** for your personal page.
88
 
89
  == Screenshots ==
90
 
91
  1. Widget in the dashboard.
92
- 2. Widget on your site.
93
- 3. Shortcode inside your post.
94
 
95
  == Changelog ==
96
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  = 1.3 =
98
  * Add-on support added
99
 
100
  = 1.2.2 =
101
- * Option to show Like Box with no border changed to native Facebook data-show-border=false;
102
 
103
  = 1.2.1 =
104
- * Added option to show Like Box with no border;
105
- * Added Norwegian(bokmal) locale to widget;
106
 
107
  = 1.2 =
108
- Plugin structure reorganized. Shortcode and template tag functionality added.
109
 
110
  = 1.1 =
111
- More than 20 Facebook Locales added.
1
  === Simple Facebook Plugin ===
2
 
3
  Contributors: topdevs, fornyhucker
4
+ Tags: social, facebook, fb, fb like, like box, likebox, page plugin, widget, shortcode, responsive, template tag, sidebar, fb page plugin
5
  Requires at least: 2.8
6
+ Tested up to: 4.7.3
7
+ Stable tag: 1.5
8
  License: GPLv2 or later
9
 
10
+ Lets you easily embed and promote any Facebook Page on your website. Your visitors can like, share, see Page events or even sand a message without having to leave your site.
11
 
12
  == Description ==
13
 
14
  = Description =
15
 
16
+ Simple Facebook Plugin enables Facebook Page admins to promote their Pages and embed a simple feed of content from a Page into any WordPress blog. The Facebook **Page Plugin** enables users to:
17
 
18
  * See how many users already like this Page, and which of their friends like it too
19
  * Read recent posts from the Page
20
  * Like the Page with one click, without needing to visit the Page
21
+ * See Page Events
22
+ * Send messages to your Page\*
23
 
24
+ \**To enable messaging on your Facebook page go to your Page Settings. In the row Messages check Allow people to contact my Page privately by showing the Message button*
25
 
26
+ You can easily integrate Like Box using WordPress Widgets and Shortcodes. Visit [Plugin Page](http://topdevs.net/simple-facebook-plugin/ "See 'Simple Facebook Plugin' Page") for more info and examples.
27
 
28
+ = Our Premium Plugins =
29
 
30
+ * [Smart Grid Gallery](http://topdevs.net/smart-grid-gallery/ "See plugin demo") - Responsive WordPress Gallery
31
+ * [Smart Product Viewer](http://topdevs.net/smart-product-viewer/ "See plugin demo") - 360º Animation Plugin
32
+ * [Smart Before After Viewer](http://topdevs.net/before-after-viewer/ "See plugin demo") - Image Comparison Plugin
33
+ * [Smart Photo Gallery](http://topdevs.net/smart-photo-gallery/ "See plugin demo") - Responsive WordPress Gallery
34
 
35
+ Visit our [CodeCanyon Portfolio](http://codecanyon.net/user/topdevs/portfolio?ref=topdevs "Our Plugins on CodeCanyon") to see plugins reviews and prices.
36
 
 
37
 
38
  == Installation ==
39
  **Installation**
44
  **Customization**
45
 
46
  1. In WordPress dashboard, go to **Appearance > Widgets**.
47
+ 1. Drag and Drop **SFP - Facebook Page Plugin** into your sidebar.
48
+ 1. Click triangle near **SFP - Facebook Page Plugin** header.
49
+ 1. Enter your Facebook Page URL (not your profile URL).
50
+ 1. Choose width, height and other options you like.
51
 
52
  **or**
53
 
54
+ Use `[sfp-page-plugin]` shortcode inside your post or page. This shortcode support all default parametrs:
55
 
56
 
57
  * url - any Fan Page URL (not your personal page!)
58
+ * width - number (min 280, max 500)
59
+ * height - number
60
+ * hide_cover - *true* or *false*
61
+ * show_facepile - *true* or *false*
62
+ * small_header - *true* or *false*
63
+ * timeline - *true* or *false*
64
+ * events - *true* or *false*
65
+ * messages - *true* or *false*
66
+ * locale - 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
67
 
68
 
69
+ If you want Page Plugin *320 pixels width* and *showing posts* you need to use it next way:
70
 
71
+ `[sfp-page-plugin width=320 show_posts=true url=http://www.facebook.com/yourPageName]`
72
 
73
  **or**
74
 
75
+ Use `sfp_page_plugin()` template tag in your theme files.
76
 
77
+ `<?php if ( function_exists("sfp_page_plugin") ) {
78
  $args = array(
79
+ 'url' => 'http://www.facebook.com/topdevs.net',
80
+ 'width' => '300',
81
+ 'hide_cover'=> true,
82
+ 'locale' => 'en_US'
 
83
  );
84
+ sfp_page_plugin( $args );
85
  } ?>`
86
 
87
  == Frequently Asked Questions ==
88
 
89
+ = I see the message “Error: Not a valid Facebook Page url.”. What am I doing wrong? =
90
 
91
+ Page Plugin is only for Pages and **not** for Profiles, Events and Groups.
92
 
93
  == Screenshots ==
94
 
95
  1. Widget in the dashboard.
96
+ 2. Simple Widget on your website.
97
+ 3. Widget with posts on your website.
98
 
99
  == Changelog ==
100
 
101
+ = 1.5 =
102
+ * Added Events and Messages tabs
103
+ * Added Small Header Option
104
+ * Fixed PHP7 Warning and Notice messages
105
+ * Removed deprecated Like Box widget
106
+
107
+ = 1.4.1 =
108
+ * Redirect issue fixed
109
+
110
+ = 1.4 =
111
+ * Deprecated "Like Box" replaced with new Facebook "Page Plugin"
112
+
113
  = 1.3 =
114
  * Add-on support added
115
 
116
  = 1.2.2 =
117
+ * Option to show Like Box with no border changed to native Facebook data-show-border=false
118
 
119
  = 1.2.1 =
120
+ * Added option to show Like Box with no border
121
+ * Added Norwegian(bokmal) locale to widget
122
 
123
  = 1.2 =
124
+ Plugin structure reorganized. Shortcode and template tag functionality added
125
 
126
  = 1.1 =
127
+ More than 20 Facebook Locales added
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
simple-facebook-plugin.php CHANGED
@@ -2,14 +2,14 @@
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.3.2
7
- Author: topdevs
8
  Author URI: http://codecanyon.net/user/topdevs/portfolio?ref=topdevs
9
  License: GPLv2 or later
10
  */
11
 
12
- define( SFP_VERSION, '1.3.2' );
13
 
14
  /**
15
  * Main SF Plugin Class
@@ -57,7 +57,7 @@ if ( !class_exists( 'SFPlugin' ) ) {
57
  */
58
  protected function loadFiles() {
59
  // Include social plugins files
60
- require_once( $this->pluginPath . 'lib/sfp-like-box.php' );
61
 
62
  // Allow addons load files
63
  do_action('sfp_load_files');
@@ -75,7 +75,6 @@ if ( !class_exists( 'SFPlugin' ) ) {
75
  add_action( 'admin_init', array( $this, 'saveOptions' ) );
76
  add_action( 'admin_init', array( $this, 'ignoreNotices' ) );
77
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueueScriptsAdmin') );
78
- add_action( "sfp_like_box_widget_form_after_checkboxes", array( $this, "fakeCheckbox" ) );
79
 
80
  // Add settings link on Plugins page
81
  $plugin = "simple-facebook-plugin/simple-facebook-plugin.php";
@@ -89,8 +88,8 @@ if ( !class_exists( 'SFPlugin' ) ) {
89
  * Register all widgets
90
  */
91
  public function addWidgets() {
92
-
93
- register_widget('SFPLikeBoxWidget');
94
 
95
  // Allow addons add widgets
96
  do_action('sfp_add_widgets');
@@ -101,7 +100,7 @@ if ( !class_exists( 'SFPlugin' ) ) {
101
  */
102
  public function addShortcodes() {
103
 
104
- add_shortcode('sfp-like-box', 'sfp_like_box_shortcode');
105
 
106
  // Allow addons add shortcodes
107
  do_action('sfp_add_shortcodes');
@@ -223,10 +222,6 @@ if ( !class_exists( 'SFPlugin' ) ) {
223
  */
224
 
225
  static function enqueueScriptsAdmin() {
226
-
227
- // add scripts
228
- wp_register_script( 'gumroad', 'https://gumroad.com/js/gumroad.js' );
229
- wp_enqueue_script( 'gumroad' );
230
 
231
  // add custom css
232
  wp_register_style( 'sfp-admin-style', plugin_dir_url(__FILE__) . '/lib/css/sfp-admin-style.css' );
@@ -299,11 +294,11 @@ if ( !class_exists( 'SFPlugin' ) ) {
299
  $user_id = $current_user->ID;
300
 
301
  /* Check that the user hasn't already clicked to ignore the message */
302
- if ( ! get_user_meta( $user_id, 'sfp_ignore_notice_1') ) {
303
 
304
  echo '<div class="updated"><p>';
305
 
306
- printf( __('Thanks for using <strong>Simple Facebook Plugin</strong>. Use our Responsive Add-on to make it look nice on all devices. <a class="button" href="https://gum.co/zrJx">Buy Add-on Now</a> or <a href="http://plugins.topdevs.net/simple-facebook-plugin/responsive-like-box-addon/">Visit Add-on Page</a> | <a href="%1$s">Don\'t show this</a>'), '?sfp_ignore_1=0');
307
 
308
  echo "</p></div>";
309
 
@@ -316,8 +311,8 @@ if ( !class_exists( 'SFPlugin' ) ) {
316
  $user_id = $current_user->ID;
317
 
318
  /* If user clicks to ignore the notice, add that to their user meta */
319
- if ( isset( $_GET['sfp_ignore_1'] ) && '0' == $_GET['sfp_ignore_1'] ) {
320
- add_user_meta( $user_id, 'sfp_ignore_notice_1', 'true', true);
321
  }
322
  }
323
 
@@ -388,35 +383,6 @@ if ( !class_exists( 'SFPlugin' ) ) {
388
  $this->savePluginOptions( $options );
389
  }
390
  }
391
-
392
- /**
393
- * Add disabled 'Responsive' checkbox
394
- *
395
- * @since 1.3.1
396
- */
397
-
398
- public function fakeCheckbox () {
399
-
400
- if ( is_plugin_active( 'sfp-responsive-like-box/sfp-responsive-like-box.php' ) )
401
- return;
402
- ?>
403
- <tr><td>
404
- <label><?php _e('Responsive'); ?></label>
405
- </td><td>
406
- <input type="checkbox" disabled="disabled"/>
407
- <span class="sfp-icon">
408
- <span class="sfp-tooltip-wrap">
409
- <span class="sfp-tooltip">
410
- Available with "Responsive Like Box Add-on" installed and activated.
411
- <span class="sfp-buttons">
412
- <a class="button" href="https://gum.co/zrJx">Buy Add-on Now</a> or <a href="http://plugins.topdevs.net/simple-facebook-plugin/responsive-like-box-addon/">Learn more</a>
413
- </span>
414
- </span>
415
- </span>
416
- </span
417
- </td></tr>
418
- <?php
419
- }
420
 
421
  } // end SFPlugin class
422
 
@@ -425,4 +391,5 @@ if ( !class_exists( 'SFPlugin' ) ) {
425
  // Create new SFPlugin instance
426
  $GLOBALS["sfplugin"] = new SFPlugin();
427
 
 
428
  ?>
2
  /*
3
  Plugin Name: Simple Facebook Plugin
4
  Plugin URI: http://plugins.topdevs.net/simple-facebook-plugin
5
+ Description: Allows you to integrate Facebook "Page Plugin" into your WordPress Site.
6
+ Version: 1.5
7
+ Author: topdevs.net
8
  Author URI: http://codecanyon.net/user/topdevs/portfolio?ref=topdevs
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( "SFP_VERSION", '1.5' );
13
 
14
  /**
15
  * Main SF Plugin Class
57
  */
58
  protected function loadFiles() {
59
  // Include social plugins files
60
+ require_once( $this->pluginPath . 'lib/sfp-page-plugin.php' );
61
 
62
  // Allow addons load files
63
  do_action('sfp_load_files');
75
  add_action( 'admin_init', array( $this, 'saveOptions' ) );
76
  add_action( 'admin_init', array( $this, 'ignoreNotices' ) );
77
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueueScriptsAdmin') );
 
78
 
79
  // Add settings link on Plugins page
80
  $plugin = "simple-facebook-plugin/simple-facebook-plugin.php";
88
  * Register all widgets
89
  */
90
  public function addWidgets() {
91
+
92
+ register_widget('SFPPagePluginWidget');
93
 
94
  // Allow addons add widgets
95
  do_action('sfp_add_widgets');
100
  */
101
  public function addShortcodes() {
102
 
103
+ add_shortcode('sfp-page-plugin', 'sfp_page_plugin_shortcode');
104
 
105
  // Allow addons add shortcodes
106
  do_action('sfp_add_shortcodes');
222
  */
223
 
224
  static function enqueueScriptsAdmin() {
 
 
 
 
225
 
226
  // add custom css
227
  wp_register_style( 'sfp-admin-style', plugin_dir_url(__FILE__) . '/lib/css/sfp-admin-style.css' );
294
  $user_id = $current_user->ID;
295
 
296
  /* Check that the user hasn't already clicked to ignore the message */
297
+ if ( ! get_user_meta( $user_id, 'sfp_ignore_notice_2') ) {
298
 
299
  echo '<div class="updated"><p>';
300
 
301
+ printf( __('Thanks for using our <strong>Simple Facebook Plugin</strong>! We have some other great WordPress plugins <a href="http://codecanyon.net/user/topdevs/portfolio?ref=topdevs">View Portfolio</a> | <a href="%1$s">Hide this</a>'), '?sfp_ignore_2=0');
302
 
303
  echo "</p></div>";
304
 
311
  $user_id = $current_user->ID;
312
 
313
  /* If user clicks to ignore the notice, add that to their user meta */
314
+ if ( isset( $_GET['sfp_ignore_2'] ) && '0' == $_GET['sfp_ignore_2'] ) {
315
+ add_user_meta( $user_id, 'sfp_ignore_notice_2', 'true', true);
316
  }
317
  }
318
 
383
  $this->savePluginOptions( $options );
384
  }
385
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
 
387
  } // end SFPlugin class
388
 
391
  // Create new SFPlugin instance
392
  $GLOBALS["sfplugin"] = new SFPlugin();
393
 
394
+ // testing updates, may be removed later
395
  ?>
views/view-like-box.php DELETED
@@ -1,39 +0,0 @@
1
- <?php
2
- // Check if shortcode return string and not bool
3
- if ( is_string( $border ) ) $border = ( $border == 'true') ? true : false;
4
- if ( is_string( $faces ) ) $faces = ( $faces == 'true') ? true : false;
5
- if ( is_string( $stream ) ) $stream = ( $stream == 'true') ? true : false;
6
- if ( is_string( $header ) ) $header = ( $header == 'true') ? true : false;
7
-
8
- $like_box_classes = array( "sfp-container" );
9
- $like_box_classes = apply_filters( "sfp_like_box_classes", $like_box_classes, $instance );
10
- $like_box_classes = implode( " ", $like_box_classes );
11
-
12
- ?>
13
- <div id="fb-root"></div>
14
- <script>
15
- (function(d){
16
- var js, id = 'facebook-jssdk';
17
- if (d.getElementById(id)) {return;}
18
- js = d.createElement('script');
19
- js.id = id;
20
- js.async = true;
21
- js.src = "//connect.facebook.net/<?php echo $local; ?>/all.js#xfbml=1";
22
- d.getElementsByTagName('head')[0].appendChild(js);
23
- }(document));
24
- </script>
25
- <!-- SFPlugin by topdevs -->
26
- <!-- Like Box Code START -->
27
- <div class="<?php echo $like_box_classes; ?>">
28
- <div class="fb-like-box"
29
- data-href="<?php echo $url; ?>"
30
- data-width="<?php echo $width; ?>"
31
- data-height="<?php echo $height; ?>"
32
- data-colorscheme="<?php echo $colorscheme; ?>"
33
- data-show-faces="<?php echo ( $faces ) ? 'true' : 'false'; ?>"
34
- data-show-border="<?php echo ( $border ) ? 'true' : 'false'; ?>"
35
- data-stream="<?php echo ( $stream ) ? 'true' : 'false' ;?>"
36
- data-header="<?php echo ( $header ) ? 'true' : 'false' ;?>">
37
- </div>
38
- </div>
39
- <!-- Like Box Code END -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
views/view-page-plugin.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Check if shortcode return string and not bool
3
+ if ( is_string( $hide_cover ) ) $hide_cover = ( $hide_cover == 'true') ? true : false;
4
+ if ( is_string( $show_facepile ) ) $show_facepile = ( $show_facepile == 'true') ? true : false;
5
+ if ( is_string( $small_header ) ) $small_header = ( $small_header == 'true') ? true : false;
6
+ if ( is_string( $timeline ) ) $timeline = ( $timeline == 'true') ? true : false;
7
+ if ( is_string( $events ) ) $events = ( $events == 'true') ? true : false;
8
+ if ( is_string( $messages ) ) $messages = ( $messages == 'true') ? true : false;
9
+
10
+ $like_box_classes = array( "sfp-container" );
11
+ $like_box_classes = apply_filters( "sfp_like_box_classes", $like_box_classes, $instance );
12
+ $like_box_classes = implode( " ", $like_box_classes );
13
+
14
+ $tabs = array();
15
+
16
+ if ( $timeline === true ) $tabs[] = "timeline";
17
+ if ( $events === true ) $tabs[] = "events";
18
+ if ( $messages === true ) $tabs[] = "messages";
19
+
20
+ ?>
21
+ <div id="fb-root"></div>
22
+ <script>
23
+ (function(d){
24
+ var js, id = 'facebook-jssdk';
25
+ if (d.getElementById(id)) {return;}
26
+ js = d.createElement('script');
27
+ js.id = id;
28
+ js.async = true;
29
+ js.src = "//connect.facebook.net/<?php echo $locale; ?>/all.js#xfbml=1";
30
+ d.getElementsByTagName('head')[0].appendChild(js);
31
+ }(document));
32
+ </script>
33
+ <!-- SFPlugin by topdevs.net -->
34
+ <!-- Page Plugin Code START -->
35
+ <div class="<?php echo $like_box_classes; ?>">
36
+ <div class="fb-page"
37
+ data-href="<?php echo $url; ?>"
38
+ data-width="<?php echo $width; ?>"
39
+ data-height="<?php echo $height; ?>"
40
+ data-hide-cover="<?php echo ( $hide_cover ) ? 'true' : 'false'; ?>"
41
+ data-show-facepile="<?php echo ( $show_facepile ) ? 'true' : 'false' ;?>"
42
+ data-small-header="<?php echo ( $small_header ) ? 'true' : 'false' ;?>"
43
+ data-tabs="<?php echo implode(",", $tabs) ;?>">
44
+ </div>
45
+ </div>
46
+ <!-- Page Plugin Code END -->