Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp - Version 1.2.0

Version Description

Update the plugin if you can not find your locale in list

Download this release

Release Info

Developer sjaved
Plugin Icon 128x128 Easy Facebook Like Box (Facebook Page Plugin) – Custom Facebook Feed – Auto PopUp
Version 1.2.0
Comparing to
See all releases

Code changes from version 1.1.0 to 1.2.0

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: sjaved
3
  Tags: facebook, facebook likebox, likebox, like box, facebook like box, facebook like box widget, facebook like box shortcode, shortcode, facebook like box plugin, facebook like box wordpress plugin, plugin, responsive facebook like box, responsive, facebook like box in 75 locales, facebook like box in 75 languages
4
  Donate link: http://selz.co/1lw1sZ2
5
  Requires at least: 3.3
6
- Tested up to: 3.9.1
7
- Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -57,6 +57,9 @@ Features:
57
  3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
58
 
59
  == Upgrade Notice ==
 
 
 
60
  = 1.0.2 =
61
  Updated the plugin with instructions and major bug fix. Must update.
62
 
@@ -87,6 +90,9 @@ http://wordpress.org/support/topic/need-feed-back-on-plugin-feature/
87
 
88
 
89
  == Changelog ==
 
 
 
90
 
91
  = 1.1.0 =
92
 
3
  Tags: facebook, facebook likebox, likebox, like box, facebook like box, facebook like box widget, facebook like box shortcode, shortcode, facebook like box plugin, facebook like box wordpress plugin, plugin, responsive facebook like box, responsive, facebook like box in 75 locales, facebook like box in 75 languages
4
  Donate link: http://selz.co/1lw1sZ2
5
  Requires at least: 3.3
6
+ Tested up to: 3.9.2
7
+ Stable tag: 1.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
57
  3. Navigate to "Appearance > Widgets" and drag and drop "Easy Facebook Likebox" in desired widget area or use the shortcode in page/post generated by widget.
58
 
59
  == Upgrade Notice ==
60
+ = 1.2.0 =
61
+ Update the plugin if you can not find your locale in list
62
+
63
  = 1.0.2 =
64
  Updated the plugin with instructions and major bug fix. Must update.
65
 
90
 
91
 
92
  == Changelog ==
93
+ = 1.2.0 =
94
+
95
+ * Added other feild for locale. Input your locale name if you can not find yours in the list.
96
 
97
  = 1.1.0 =
98
 
admin/easy-facebook-likebox-admin.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
  /**
3
  * Plugin Name.
4
  *
@@ -19,7 +19,7 @@
19
  * @TODO: Rename this class to a proper name for your plugin.
20
  *
21
  * @package Plugin_Name_Admin
22
- * @author Your Name <email@example.com>
23
  */
24
  class Easy_Facebook_Likebox_Admin {
25
 
@@ -79,9 +79,12 @@ class Easy_Facebook_Likebox_Admin {
79
  // Add an action link pointing to the options page.
80
  $plugin_basename = plugin_basename( plugin_dir_path( __DIR__ ) . $this->plugin_slug . '.php' );
81
  add_filter( 'plugin_action_links_' . $plugin_basename, array( $this, 'add_action_links' ) );
82
-
83
-
84
-
 
 
 
85
  }
86
 
87
  /**
@@ -215,31 +218,40 @@ class Easy_Facebook_Likebox_Admin {
215
  );
216
 
217
  }
218
-
219
  /**
220
- * NOTE: Actions are points in the execution of a page or process
221
- * lifecycle that WordPress fires.
222
- *
223
- * Actions: http://codex.wordpress.org/Plugin_API#Actions
224
- * Reference: http://codex.wordpress.org/Plugin_API/Action_Reference
225
- *
226
- * @since 1.0.0
227
  */
228
- public function action_method_name() {
229
- // @TODO: Define your action hook callback here
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  }
231
-
232
- /**
233
- * NOTE: Filters are points of execution in which WordPress modifies data
234
- * before saving it or sending it to the browser.
235
- *
236
- * Filters: http://codex.wordpress.org/Plugin_API#Filters
237
- * Reference: http://codex.wordpress.org/Plugin_API/Filter_Reference
238
- *
239
- * @since 1.0.0
240
- */
241
- public function filter_method_name() {
242
- // @TODO: Define your filter hook callback here
243
  }
244
-
245
  }
1
+ <?php
2
  /**
3
  * Plugin Name.
4
  *
19
  * @TODO: Rename this class to a proper name for your plugin.
20
  *
21
  * @package Plugin_Name_Admin
22
+ * @author Your Name <email@example.com>
23
  */
24
  class Easy_Facebook_Likebox_Admin {
25
 
79
  // Add an action link pointing to the options page.
80
  $plugin_basename = plugin_basename( plugin_dir_path( __DIR__ ) . $this->plugin_slug . '.php' );
81
  add_filter( 'plugin_action_links_' . $plugin_basename, array( $this, 'add_action_links' ) );
82
+
83
+ add_action( 'admin_init', array( $this, 'i_have_supported_efbl') );
84
+
85
+ if ( get_option('I_HAVE_SUPPORTED_THE_EFBL_PLUGIN') != 1 )
86
+ add_action( 'admin_notices', array( $this, 'post_installtion_upgrade_nag') );
87
+
88
  }
89
 
90
  /**
218
  );
219
 
220
  }
221
+
222
  /**
223
+ * Display a thank you nag when the plugin has been installed/upgraded.
 
 
 
 
 
 
224
  */
225
+ public function post_installtion_upgrade_nag() {
226
+ if ( !current_user_can('install_plugins') ) return;
227
+
228
+ $plugin_verstion = Easy_Facebook_Likebox::VERSION;
229
+
230
+ $version_key = '_efbl_version';
231
+ $notice_key = '_efbl_notice';
232
+
233
+ //if ( get_site_option( $version_key ) == $plugin_verstion && get_site_option( $notice_key ) == 1 ) return;
234
+
235
+ $msg = sprintf(__('Thanks for installting/upgrading the Easy Facebook Likebox Plugin! If you like this plugin, please consider some <a href="%s" target="_blank">donation</a> and/or <a href="%s" target="_blank">rating it</a>! <br><br>
236
+ <a href="%s" class="button button-primary">I have supported already</a>
237
+ ', 'efbl'),
238
+ 'http://selz.co/1lw1sZ2',
239
+ 'http://wordpress.org/plugins/easy-facebook-likebox/',
240
+ get_admin_url().'?efbl_supported=1'
241
+ );
242
+ echo "<div class='update-nag'>$msg</div>";
243
+
244
+ //update_site_option( $version_key, $plugin_verstion );
245
+ //update_site_option( $notice_key, 1 );
246
  }
247
+
248
+ function i_have_supported_efbl(){
249
+
250
+ if(isset($_GET['efbl_supported'])) {
251
+ update_site_option( 'I_HAVE_SUPPORTED_THE_EFBL_PLUGIN', 1 );
252
+ }
253
+
254
+ /*echo I_HAVE_SUPPORTED_THE_EFBL_PLUGIN;
255
+ exit; */
 
 
 
256
  }
 
257
  }
assets/screenshot-7.png ADDED
Binary file
easy-facebook-likebox.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Easy Facebook Likebox
4
  * Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
5
  * Description: Easy Facebook like box WordPress plugin allows you to easly display facebook like box fan page on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generated after saving the facebook like box widget. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
6
- * Version: 1.1.0
7
  * Author: Sajid Javed
8
  * Author URI: http://jwebsol.com
9
  * Text Domain: easy-facebook-likebox
3
  * Plugin Name: Easy Facebook Likebox
4
  * Plugin URI: httt://wordpress.org/plugins/easy-facebook-likebox
5
  * Description: Easy Facebook like box WordPress plugin allows you to easly display facebook like box fan page on your website using either widget or shortcode to increase facbook fan page likes. You can use the shortcode generated after saving the facebook like box widget. Its completely customizable with lots of optional settings. Its also responsive facebook like box at the same time.
6
+ * Version: 1.2.0
7
  * Author: Sajid Javed
8
  * Author URI: http://jwebsol.com
9
  * Text Domain: easy-facebook-likebox
includes/easy-facebook-likebox-widget.php CHANGED
@@ -40,14 +40,7 @@ class Easy_Facebook_Like_Box_Widget extends WP_Widget {
40
  * @param array $instance Previously saved values from database.
41
  */
42
  public function form( $instance ) {
43
-
44
- /* $title = $instance[ 'title' ];
45
- $'title' => 'test', = ( ! empty( $instance['fanpage_url'] ) ) ? strip_tags( $instance['fanpage_url'] ) : '';
46
- $fb_appid = $instance[ 'fb_appid' ];
47
- $show_faces = ( ! empty( $instance['show_faces'] ) ) ? strip_tags( $instance['show_faces'] ) : 1;
48
- $show_stream = ( ! empty( $instance['show_stream'] ) ) ? strip_tags( $instance['show_stream'] ) : 1;
49
- $show_border = ( ! empty( $instance['show_border'] ) ) ? strip_tags( $instance['show_border'] ) : 1;
50
- $show_header = ( ! empty( $instance['show_header'] ) ) ? strip_tags( $instance['show_header'] ) : 1;*/
51
 
52
  $locales = array( 'af_ZA' => 'Afrikaans',
53
  'ar_AR' => 'Arabic',
@@ -139,6 +132,7 @@ class Easy_Facebook_Like_Box_Widget extends WP_Widget {
139
  'show_border' => 1,
140
  'responsive' => 0,
141
  'locale' => 'en_US',
 
142
  );
143
 
144
  $instance = wp_parse_args( (array) $instance, $defaults );
@@ -174,16 +168,19 @@ class Easy_Facebook_Like_Box_Widget extends WP_Widget {
174
  <input class="widefat" id="<?php echo $this->get_field_id( 'box_height' ); ?>" name="<?php echo $this->get_field_name( 'box_height' ); ?>" type="text" value="<?php echo esc_attr( $box_height ); ?>"><br />
175
  </p>
176
 
177
- <p class="widget-half">
 
178
  <label for="<?php echo $this->get_field_id( 'colorscheme' ); ?>"><?php _e( 'Colorscheme:' ); ?></label>
179
  <select id="<?php echo $this->get_field_id( 'colorscheme' ); ?>" name="<?php echo $this->get_field_name( 'colorscheme' ); ?>">
180
  <option <?php selected( $colorscheme, 'light' , $echo = true); ?> value="light">light</option>
181
  <option <?php selected( $colorscheme, 'dark', $echo = true); ?> value="dark">dark</option>
182
  </select>
183
  </p>
184
-
185
  <p class="widget-half">
186
  <label for="<?php echo $this->get_field_id( 'locale' ); ?>"><?php _e( 'Locale:' ); ?></label>
 
 
187
  <select id="<?php echo $this->get_field_id( 'locale' ); ?>" name="<?php echo $this->get_field_name( 'locale' ); ?>">
188
  <?php if($locales){
189
  foreach ($locales as $key=>$value){?>
@@ -194,6 +191,13 @@ class Easy_Facebook_Like_Box_Widget extends WP_Widget {
194
  <i>Language</i>
195
  </p>
196
 
 
 
 
 
 
 
 
197
  <p class="widget-half">
198
  <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id( 'responsive' ); ?>" name="<?php echo $this->get_field_name( 'responsive' ); ?>" value="1" <?php checked( $responsive, 1 ); ?>>
199
  <label for="<?php echo $this->get_field_id( 'responsive' ); ?>">Responsive</label>
@@ -243,6 +247,11 @@ class Easy_Facebook_Like_Box_Widget extends WP_Widget {
243
  if( empty($show_border) ){
244
  $show_border = 0;
245
  }
 
 
 
 
 
246
 
247
  $responsive = ( empty( $responsive ) ) ? strip_tags( 0 ) : $responsive;
248
 
@@ -279,6 +288,7 @@ class Easy_Facebook_Like_Box_Widget extends WP_Widget {
279
 
280
  $instance['responsive'] = ( ! empty( $new_instance['responsive'] ) ) ? strip_tags( $new_instance['responsive'] ) : '';
281
  $instance['locale'] = ( ! empty( $new_instance['locale'] ) ) ? strip_tags( $new_instance['locale'] ) : '';
 
282
 
283
 
284
  return $instance;
40
  * @param array $instance Previously saved values from database.
41
  */
42
  public function form( $instance ) {
43
+
 
 
 
 
 
 
 
44
 
45
  $locales = array( 'af_ZA' => 'Afrikaans',
46
  'ar_AR' => 'Arabic',
132
  'show_border' => 1,
133
  'responsive' => 0,
134
  'locale' => 'en_US',
135
+ 'locale_other'=> ''
136
  );
137
 
138
  $instance = wp_parse_args( (array) $instance, $defaults );
168
  <input class="widefat" id="<?php echo $this->get_field_id( 'box_height' ); ?>" name="<?php echo $this->get_field_name( 'box_height' ); ?>" type="text" value="<?php echo esc_attr( $box_height ); ?>"><br />
169
  </p>
170
 
171
+
172
+ <p class="widget-half">
173
  <label for="<?php echo $this->get_field_id( 'colorscheme' ); ?>"><?php _e( 'Colorscheme:' ); ?></label>
174
  <select id="<?php echo $this->get_field_id( 'colorscheme' ); ?>" name="<?php echo $this->get_field_name( 'colorscheme' ); ?>">
175
  <option <?php selected( $colorscheme, 'light' , $echo = true); ?> value="light">light</option>
176
  <option <?php selected( $colorscheme, 'dark', $echo = true); ?> value="dark">dark</option>
177
  </select>
178
  </p>
179
+
180
  <p class="widget-half">
181
  <label for="<?php echo $this->get_field_id( 'locale' ); ?>"><?php _e( 'Locale:' ); ?></label>
182
+
183
+
184
  <select id="<?php echo $this->get_field_id( 'locale' ); ?>" name="<?php echo $this->get_field_name( 'locale' ); ?>">
185
  <?php if($locales){
186
  foreach ($locales as $key=>$value){?>
191
  <i>Language</i>
192
  </p>
193
 
194
+ <p>
195
+ <label for="<?php echo $this->get_field_id( 'locale_other' ); ?>"><?php _e( 'Locale (Other):' ); ?></label>
196
+ <input class="widefat" id="<?php echo $this->get_field_id( 'locale_other' ); ?>" name="<?php echo $this->get_field_name( 'locale_other' ); ?>" type="text" value="<?php echo esc_attr( $locale_other ); ?>" placeholder="en_US">
197
+
198
+ <i>input locale if you can not find yours in dropdown list</i>
199
+ </p>
200
+
201
  <p class="widget-half">
202
  <input type="checkbox" class="widefat" id="<?php echo $this->get_field_id( 'responsive' ); ?>" name="<?php echo $this->get_field_name( 'responsive' ); ?>" value="1" <?php checked( $responsive, 1 ); ?>>
203
  <label for="<?php echo $this->get_field_id( 'responsive' ); ?>">Responsive</label>
247
  if( empty($show_border) ){
248
  $show_border = 0;
249
  }
250
+
251
+ if( !empty($locale_other) ){
252
+ $locale = $locale_other;
253
+ }
254
+
255
 
256
  $responsive = ( empty( $responsive ) ) ? strip_tags( 0 ) : $responsive;
257
 
288
 
289
  $instance['responsive'] = ( ! empty( $new_instance['responsive'] ) ) ? strip_tags( $new_instance['responsive'] ) : '';
290
  $instance['locale'] = ( ! empty( $new_instance['locale'] ) ) ? strip_tags( $new_instance['locale'] ) : '';
291
+ $instance['locale_other'] = ( ! empty( $new_instance['locale_other'] ) ) ? strip_tags( $new_instance['locale_other'] ) : '';
292
 
293
 
294
  return $instance;
public/easy-facebook-likebox.php CHANGED
@@ -26,11 +26,11 @@ class Easy_Facebook_Likebox {
26
  /**
27
  * Plugin version, used for cache-busting of style and script file references.
28
  *
29
- * @since 1.0.0
30
  *
31
  * @var string
32
  */
33
- const VERSION = '1.0.0';
34
 
35
  /**
36
  * @TODO - Rename "plugin-name" to the name your your plugin
@@ -42,7 +42,7 @@ class Easy_Facebook_Likebox {
42
  * of text. Its value should match the Text Domain file header in the main
43
  * plugin file.
44
  *
45
- * @since 1.0.0
46
  *
47
  * @var string
48
  */
@@ -51,7 +51,7 @@ class Easy_Facebook_Likebox {
51
  /**
52
  * Instance of this class.
53
  *
54
- * @since 1.0.0
55
  *
56
  * @var object
57
  */
@@ -61,7 +61,7 @@ class Easy_Facebook_Likebox {
61
  * Initialize the plugin by setting localization and loading public scripts
62
  * and styles.
63
  *
64
- * @since 1.0.0
65
  */
66
  private function __construct() {
67
 
@@ -88,7 +88,7 @@ class Easy_Facebook_Likebox {
88
  /**
89
  * Return the plugin slug.
90
  *
91
- * @since 1.0.0
92
  *
93
  * @return Plugin slug variable.
94
  */
@@ -99,7 +99,7 @@ class Easy_Facebook_Likebox {
99
  /**
100
  * Return an instance of this class.
101
  *
102
- * @since 1.0.0
103
  *
104
  * @return object A single instance of this class.
105
  */
@@ -116,7 +116,7 @@ class Easy_Facebook_Likebox {
116
  /**
117
  * Fired when the plugin is activated.
118
  *
119
- * @since 1.0.0
120
  *
121
  * @param boolean $network_wide True if WPMU superadmin uses
122
  * "Network Activate" action, false if
@@ -153,7 +153,7 @@ class Easy_Facebook_Likebox {
153
  /**
154
  * Fired when the plugin is deactivated.
155
  *
156
- * @since 1.0.0
157
  *
158
  * @param boolean $network_wide True if WPMU superadmin uses
159
  * "Network Deactivate" action, false if
@@ -191,7 +191,7 @@ class Easy_Facebook_Likebox {
191
  /**
192
  * Fired when a new site is activated with a WPMU environment.
193
  *
194
- * @since 1.0.0
195
  *
196
  * @param int $blog_id ID of the new blog.
197
  */
@@ -213,7 +213,7 @@ class Easy_Facebook_Likebox {
213
  * - not spam
214
  * - not deleted
215
  *
216
- * @since 1.0.0
217
  *
218
  * @return array|false The blog ids, false if no matches.
219
  */
@@ -233,7 +233,7 @@ class Easy_Facebook_Likebox {
233
  /**
234
  * Fired for each blog when the plugin is activated.
235
  *
236
- * @since 1.0.0
237
  */
238
  private static function single_activate() {
239
  // @TODO: Define activation functionality here
@@ -242,7 +242,7 @@ class Easy_Facebook_Likebox {
242
  /**
243
  * Fired for each blog when the plugin is deactivated.
244
  *
245
- * @since 1.0.0
246
  */
247
  private static function single_deactivate() {
248
  // @TODO: Define deactivation functionality here
@@ -251,7 +251,7 @@ class Easy_Facebook_Likebox {
251
  /**
252
  * Load the plugin text domain for translation.
253
  *
254
- * @since 1.0.0
255
  */
256
  public function load_plugin_textdomain() {
257
 
@@ -266,7 +266,7 @@ class Easy_Facebook_Likebox {
266
  /**
267
  * Register and enqueue public-facing style sheet.
268
  *
269
- * @since 1.0.0
270
  */
271
  public function enqueue_styles() {
272
  wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'assets/css/public.css', __FILE__ ), array(), self::VERSION );
@@ -275,7 +275,7 @@ class Easy_Facebook_Likebox {
275
  /**
276
  * Register and enqueues public-facing JavaScript files.
277
  *
278
- * @since 1.0.0
279
  */
280
  public function enqueue_scripts() {
281
  wp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'assets/js/public.js', __FILE__ ), array( 'jquery' ), self::VERSION );
@@ -288,7 +288,7 @@ class Easy_Facebook_Likebox {
288
  * Actions: http://codex.wordpress.org/Plugin_API#Actions
289
  * Reference: http://codex.wordpress.org/Plugin_API/Action_Reference
290
  *
291
- * @since 1.0.0
292
  */
293
  public function action_method_name() {
294
  // @TODO: Define your action hook callback here
@@ -301,7 +301,7 @@ class Easy_Facebook_Likebox {
301
  * Filters: http://codex.wordpress.org/Plugin_API#Filters
302
  * Reference: http://codex.wordpress.org/Plugin_API/Filter_Reference
303
  *
304
- * @since 1.0.0
305
  */
306
  public function filter_method_name() {
307
  // @TODO: Define your filter hook callback here
@@ -318,7 +318,7 @@ class Easy_Facebook_Likebox {
318
  * Filters: http://codex.wordpress.org/Plugin_API#Filters
319
  * Reference: http://codex.wordpress.org/Plugin_API/Filter_Reference
320
  *
321
- * @since 1.0.0
322
  */
323
  public function render_fb_box($options) {
324
 
@@ -331,6 +331,10 @@ class Easy_Facebook_Likebox {
331
  if( empty( $locale ) ){
332
  $locale = 'en_US';
333
  }
 
 
 
 
334
 
335
  $pieces = explode('/', $fanpage_url); // divides the string in pieces where '/' is found
336
  $page_name_id = end($pieces); //takes the last piece
26
  /**
27
  * Plugin version, used for cache-busting of style and script file references.
28
  *
29
+ * @since 1.1.0
30
  *
31
  * @var string
32
  */
33
+ const VERSION = '1.2.0';
34
 
35
  /**
36
  * @TODO - Rename "plugin-name" to the name your your plugin
42
  * of text. Its value should match the Text Domain file header in the main
43
  * plugin file.
44
  *
45
+ * @since 1.1.0
46
  *
47
  * @var string
48
  */
51
  /**
52
  * Instance of this class.
53
  *
54
+ * @since 1.1.0
55
  *
56
  * @var object
57
  */
61
  * Initialize the plugin by setting localization and loading public scripts
62
  * and styles.
63
  *
64
+ * @since 1.1.0
65
  */
66
  private function __construct() {
67
 
88
  /**
89
  * Return the plugin slug.
90
  *
91
+ * @since 1.1.0
92
  *
93
  * @return Plugin slug variable.
94
  */
99
  /**
100
  * Return an instance of this class.
101
  *
102
+ * @since 1.1.0
103
  *
104
  * @return object A single instance of this class.
105
  */
116
  /**
117
  * Fired when the plugin is activated.
118
  *
119
+ * @since 1.1.0
120
  *
121
  * @param boolean $network_wide True if WPMU superadmin uses
122
  * "Network Activate" action, false if
153
  /**
154
  * Fired when the plugin is deactivated.
155
  *
156
+ * @since 1.1.0
157
  *
158
  * @param boolean $network_wide True if WPMU superadmin uses
159
  * "Network Deactivate" action, false if
191
  /**
192
  * Fired when a new site is activated with a WPMU environment.
193
  *
194
+ * @since 1.1.0
195
  *
196
  * @param int $blog_id ID of the new blog.
197
  */
213
  * - not spam
214
  * - not deleted
215
  *
216
+ * @since 1.1.0
217
  *
218
  * @return array|false The blog ids, false if no matches.
219
  */
233
  /**
234
  * Fired for each blog when the plugin is activated.
235
  *
236
+ * @since 1.1.0
237
  */
238
  private static function single_activate() {
239
  // @TODO: Define activation functionality here
242
  /**
243
  * Fired for each blog when the plugin is deactivated.
244
  *
245
+ * @since 1.1.0
246
  */
247
  private static function single_deactivate() {
248
  // @TODO: Define deactivation functionality here
251
  /**
252
  * Load the plugin text domain for translation.
253
  *
254
+ * @since 1.1.0
255
  */
256
  public function load_plugin_textdomain() {
257
 
266
  /**
267
  * Register and enqueue public-facing style sheet.
268
  *
269
+ * @since 1.1.0
270
  */
271
  public function enqueue_styles() {
272
  wp_enqueue_style( $this->plugin_slug . '-plugin-styles', plugins_url( 'assets/css/public.css', __FILE__ ), array(), self::VERSION );
275
  /**
276
  * Register and enqueues public-facing JavaScript files.
277
  *
278
+ * @since 1.1.0
279
  */
280
  public function enqueue_scripts() {
281
  wp_enqueue_script( $this->plugin_slug . '-plugin-script', plugins_url( 'assets/js/public.js', __FILE__ ), array( 'jquery' ), self::VERSION );
288
  * Actions: http://codex.wordpress.org/Plugin_API#Actions
289
  * Reference: http://codex.wordpress.org/Plugin_API/Action_Reference
290
  *
291
+ * @since 1.1.0
292
  */
293
  public function action_method_name() {
294
  // @TODO: Define your action hook callback here
301
  * Filters: http://codex.wordpress.org/Plugin_API#Filters
302
  * Reference: http://codex.wordpress.org/Plugin_API/Filter_Reference
303
  *
304
+ * @since 1.1.0
305
  */
306
  public function filter_method_name() {
307
  // @TODO: Define your filter hook callback here
318
  * Filters: http://codex.wordpress.org/Plugin_API#Filters
319
  * Reference: http://codex.wordpress.org/Plugin_API/Filter_Reference
320
  *
321
+ * @since 1.1.0
322
  */
323
  public function render_fb_box($options) {
324
 
331
  if( empty( $locale ) ){
332
  $locale = 'en_US';
333
  }
334
+
335
+ if( !empty( $locale_other ) ){
336
+ $locale = $locale_other;
337
+ }
338
 
339
  $pieces = explode('/', $fanpage_url); // divides the string in pieces where '/' is found
340
  $page_name_id = end($pieces); //takes the last piece