Feed & LikeBox For Facebook - Version 2.9.7

Version Description

[18-03-2021] * minor changes

Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Feed & LikeBox For Facebook
Version 2.9.7
Comparing to
See all releases

Code changes from version 2.9.6 to 2.9.7

facebook-by-weblizar.php CHANGED
@@ -1,7 +1,8 @@
1
  <?php
 
2
  /**
3
  * Plugin Name: Social LikeBox & Feed
4
- * Version: 2.9.6
5
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds and like-box contents.
6
  * Author: Weblizar
7
  * Author URI: https://www.weblizar.com
@@ -9,62 +10,56 @@
9
  */
10
 
11
  /*** Constant Values & Variables ***/
12
- if (! defined('ABSPATH')) {
13
  exit;
14
  } // Exit if accessed directly
 
15
  define("WEBLIZAR_FACEBOOK_PLUGIN_URL", plugin_dir_url(__FILE__));
16
  define("WEBLIZAR_FACEBOOK_TEXT_DOMAIN", "wl_facebook");
17
 
18
  /*** Get Ready Plugin Translation ***/
19
  add_action('plugins_loaded', 'FacebookTranslation');
20
- function FacebookTranslation()
21
- {
22
- load_plugin_textdomain(WEBLIZAR_FACEBOOK_TEXT_DOMAIN, false, dirname(plugin_basename(__FILE__)).'/lang/');
23
  }
24
 
25
  /*** Facebook By Weblizar Menu ***/
26
  add_action('admin_menu', 'WeblizarFacebookMenu');
27
- function WeblizarFacebookMenu()
28
- {
29
  $adminmenu = add_menu_page(esc_html__('Social LikeBox & Feed', WEBLIZAR_FACEBOOK_TEXT_DOMAIN), esc_html__('Social LikeBox & Feed', WEBLIZAR_FACEBOOK_TEXT_DOMAIN), 'manage_options', 'facebooky-by-weblizar', 'facebooky_by_weblizar_page_function', 'dashicons-facebook-alt');
30
 
31
  //add hook to add styles and scripts for coming soon admin page
32
  add_action('admin_print_styles-' . $adminmenu, 'facebooky_by_weblizar_page_function_js_css');
33
  }
34
-
35
- function facebooky_by_weblizar_page_function()
36
- {
37
  require_once("function/facebook-by-weblizar-data.php");
38
  require_once("function/facebook-by-weblizar-help.php");
39
  }
40
- function facebooky_by_weblizar_page_function_js_css()
41
- {
42
  wp_enqueue_script('jquery');
43
- wp_enqueue_script('popper', WEBLIZAR_FACEBOOK_PLUGIN_URL.'js/popper.min.js');
44
- wp_enqueue_script('bootstrap', WEBLIZAR_FACEBOOK_PLUGIN_URL.'js/bootstrap.min.js');
45
- wp_enqueue_script('weblizar-tab', WEBLIZAR_FACEBOOK_PLUGIN_URL .'js/option-js.js', array('jquery', 'media-upload', 'jquery-ui-sortable'));
46
- wp_enqueue_style('weblizar-option-style', WEBLIZAR_FACEBOOK_PLUGIN_URL .'css/weblizar-option-style.css');
47
- wp_enqueue_style('bootstrap', WEBLIZAR_FACEBOOK_PLUGIN_URL. 'css/bootstrap.min.css');
48
- wp_enqueue_style('font-awesome', WEBLIZAR_FACEBOOK_PLUGIN_URL.'css/all.min.css');
49
  wp_enqueue_style('wp-color-picker');
50
  wp_enqueue_script('wp-color-picker');
51
  }
52
- function weblizar_feed_code_script()
53
- {
54
  global $post;
55
- if (isset($post->post_content) && is_singular(array( 'post','page')) && has_shortcode($post->post_content, 'facebook_feed') || is_active_widget(false, false, 'weblizar_facebook_feed_widget')) {
56
  wp_enqueue_script('jquery');
57
- wp_enqueue_style('font-awesome', WEBLIZAR_FACEBOOK_PLUGIN_URL.'css/all.min.css');
58
- wp_enqueue_style('feed-facebook-feed-shortcode', WEBLIZAR_FACEBOOK_PLUGIN_URL.'css/facebook-feed-shortcode.css');
59
- wp_enqueue_style('feed-facebook-custom-box-slider', WEBLIZAR_FACEBOOK_PLUGIN_URL.'css/custom-box-slider.css');
60
- wp_enqueue_style('bootstrap', WEBLIZAR_FACEBOOK_PLUGIN_URL. 'css/bootstrap.min.css');
61
  }
62
  }
63
  add_action('wp_enqueue_scripts', 'weblizar_feed_code_script');
64
 
65
  /*Plugin Setting Link*/
66
- function weblizar_plugin_add_settings_link($links)
67
- {
68
  $fbw_pro_link = '<a href="https://weblizar.com/plugins/facebook-feed-pro/" target="_blank">Get Premium</a>';
69
  $settings_link = '<a href="admin.php?page=facebooky-by-weblizar">' . esc_html__('Settings', WEBLIZAR_FACEBOOK_PLUGIN_URL) . '</a>';
70
  array_unshift($links, $settings_link);
1
  <?php
2
+
3
  /**
4
  * Plugin Name: Social LikeBox & Feed
5
+ * Version: 2.9.7
6
  * Description: Display the Facebook Feed and Like box on your website. Its completely customizable, responsive and search engine optimization feeds and like-box contents.
7
  * Author: Weblizar
8
  * Author URI: https://www.weblizar.com
10
  */
11
 
12
  /*** Constant Values & Variables ***/
13
+ if (!defined('ABSPATH')) {
14
  exit;
15
  } // Exit if accessed directly
16
+
17
  define("WEBLIZAR_FACEBOOK_PLUGIN_URL", plugin_dir_url(__FILE__));
18
  define("WEBLIZAR_FACEBOOK_TEXT_DOMAIN", "wl_facebook");
19
 
20
  /*** Get Ready Plugin Translation ***/
21
  add_action('plugins_loaded', 'FacebookTranslation');
22
+ function FacebookTranslation() {
23
+ load_plugin_textdomain(WEBLIZAR_FACEBOOK_TEXT_DOMAIN, false, dirname(plugin_basename(__FILE__)) . '/lang/');
 
24
  }
25
 
26
  /*** Facebook By Weblizar Menu ***/
27
  add_action('admin_menu', 'WeblizarFacebookMenu');
28
+ function WeblizarFacebookMenu() {
 
29
  $adminmenu = add_menu_page(esc_html__('Social LikeBox & Feed', WEBLIZAR_FACEBOOK_TEXT_DOMAIN), esc_html__('Social LikeBox & Feed', WEBLIZAR_FACEBOOK_TEXT_DOMAIN), 'manage_options', 'facebooky-by-weblizar', 'facebooky_by_weblizar_page_function', 'dashicons-facebook-alt');
30
 
31
  //add hook to add styles and scripts for coming soon admin page
32
  add_action('admin_print_styles-' . $adminmenu, 'facebooky_by_weblizar_page_function_js_css');
33
  }
34
+ function facebooky_by_weblizar_page_function() {
 
 
35
  require_once("function/facebook-by-weblizar-data.php");
36
  require_once("function/facebook-by-weblizar-help.php");
37
  }
38
+ function facebooky_by_weblizar_page_function_js_css() {
 
39
  wp_enqueue_script('jquery');
40
+ wp_enqueue_script('popper', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'js/popper.min.js');
41
+ wp_enqueue_script('bootstrap', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'js/bootstrap.min.js');
42
+ wp_enqueue_script('weblizar-tab', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'js/option-js.js', array('jquery', 'media-upload', 'jquery-ui-sortable'));
43
+ wp_enqueue_style('weblizar-option-style', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'css/weblizar-option-style.css');
44
+ wp_enqueue_style('bootstrap', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'css/bootstrap.min.css');
45
+ wp_enqueue_style('font-awesome', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'css/all.min.css');
46
  wp_enqueue_style('wp-color-picker');
47
  wp_enqueue_script('wp-color-picker');
48
  }
49
+ function weblizar_feed_code_script() {
 
50
  global $post;
51
+ if (isset($post->post_content) && is_singular(array('post', 'page')) && has_shortcode($post->post_content, 'facebook_feed') || is_active_widget(false, false, 'weblizar_facebook_feed_widget')) {
52
  wp_enqueue_script('jquery');
53
+ wp_enqueue_style('font-awesome', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'css/all.min.css');
54
+ wp_enqueue_style('feed-facebook-feed-shortcode', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'css/facebook-feed-shortcode.css');
55
+ wp_enqueue_style('feed-facebook-custom-box-slider', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'css/custom-box-slider.css');
56
+ wp_enqueue_style('bootstrap', WEBLIZAR_FACEBOOK_PLUGIN_URL . 'css/bootstrap.min.css');
57
  }
58
  }
59
  add_action('wp_enqueue_scripts', 'weblizar_feed_code_script');
60
 
61
  /*Plugin Setting Link*/
62
+ function weblizar_plugin_add_settings_link($links) {
 
63
  $fbw_pro_link = '<a href="https://weblizar.com/plugins/facebook-feed-pro/" target="_blank">Get Premium</a>';
64
  $settings_link = '<a href="admin.php?page=facebooky-by-weblizar">' . esc_html__('Settings', WEBLIZAR_FACEBOOK_PLUGIN_URL) . '</a>';
65
  array_unshift($links, $settings_link);
function/facebook-by-weblizar-data.php CHANGED
@@ -1,75 +1,74 @@
1
- <?php if ( ! defined( 'ABSPATH' ) ) exit;
2
- if(isset($_POST['security']) && isset($_POST['facebook-page-url']) && isset($_POST['fb-app-id']))
3
- {
4
- if ( ! wp_verify_nonce( $_POST['security'], 'facebook_shortcode_settings' ) ) {
5
  die();
6
  }
7
 
8
  $FacebookSettingsArray = serialize(
9
  array(
10
- 'FacebookPageUrl' => esc_url_raw( $_POST['facebook-page-url'] ),
11
  'ColorScheme' => '',
12
- 'Header' => isset( $_POST['show-widget-header'] ) ? sanitize_text_field( $_POST['show-widget-header'] ) : '',
13
- 'Stream' => sanitize_text_field( $_POST['show-live-stream'] ),
14
- 'Width' => sanitize_text_field( $_POST['widget-width'] ),
15
- 'Height' => sanitize_text_field( $_POST['widget-height'] ),
16
- 'FbAppId' => sanitize_text_field( $_POST['fb-app-id'] ),
17
  'ShowBorder' => 'true',
18
- 'ShowFaces' => sanitize_text_field( $_POST['show-fan-faces'] ),
19
  'ForceWall' => 'false',
20
- 'weblizar_locale_fb' => sanitize_text_field( $_POST['weblizar_locale_fb'] )
21
  )
22
  );
23
  update_option("weblizar_facebook_shortcode_settings", $FacebookSettingsArray);
24
- }
25
- $FacebookSettings = unserialize(get_option("weblizar_facebook_shortcode_settings"));
26
- //load default values OR saved values
27
- $ForceWall = 'false';
28
- if ( isset( $FacebookSettings[ 'ForceWall' ] ) ) {
29
- $ForceWall = $FacebookSettings[ 'ForceWall' ];
30
- }
31
 
32
- $Header = 'true';
33
- if ( isset( $FacebookSettings[ 'Header' ] ) ) {
34
- $Header = $FacebookSettings[ 'Header' ];
35
- }
36
 
37
- $Height = 560;
38
- if ( isset( $FacebookSettings[ 'Height' ] ) ) {
39
- $Height = $FacebookSettings[ 'Height' ];
40
- }
41
 
42
- $FacebookPageUrl = 'https://www.facebook.com/Weblizarwp/';
43
- if ( isset( $FacebookSettings[ 'FacebookPageUrl' ] ) ) {
44
- $FacebookPageUrl = $FacebookSettings[ 'FacebookPageUrl' ];
45
- }
46
 
47
- $ShowBorder = 'true';
48
- if ( isset( $FacebookSettings[ 'ShowBorder' ] ) ) {
49
- $ShowBorder = $FacebookSettings[ 'ShowBorder' ];
50
- }
51
 
52
- $ShowFaces = 'true';
53
- if ( isset( $FacebookSettings[ 'ShowFaces' ] ) ) {
54
- $ShowFaces = $FacebookSettings[ 'ShowFaces' ];
55
- }
56
 
57
- $Stream = 'true';
58
- if ( isset( $FacebookSettings[ 'Stream' ] ) ) {
59
- $Stream = $FacebookSettings[ 'Stream' ];
60
- }
61
 
62
- $Width = 292;
63
- if ( isset( $FacebookSettings[ 'Width' ] ) ) {
64
- $Width = $FacebookSettings[ 'Width' ];
65
- }
66
 
67
- $FbAppId = "488390501239538";
68
- if ( isset( $FacebookSettings[ 'FbAppId' ] ) ) {
69
- $FbAppId = $FacebookSettings[ 'FbAppId' ];
70
- }
71
 
72
- $weblizar_locale_fb = "en_GB";
73
- if ( isset( $FacebookSettings[ 'weblizar_locale_fb' ] ) ) {
74
- $weblizar_locale_fb = $FacebookSettings[ 'weblizar_locale_fb' ];
75
- }
1
+ <?php if (!defined('ABSPATH')) exit;
2
+ if (isset($_POST['security']) && isset($_POST['facebook-page-url']) && isset($_POST['fb-app-id'])) {
3
+ if (!wp_verify_nonce($_POST['security'], 'facebook_shortcode_settings')) {
 
4
  die();
5
  }
6
 
7
  $FacebookSettingsArray = serialize(
8
  array(
9
+ 'FacebookPageUrl' => esc_url_raw($_POST['facebook-page-url']),
10
  'ColorScheme' => '',
11
+ 'Header' => isset($_POST['show-widget-header']) ? sanitize_text_field($_POST['show-widget-header']) : '',
12
+ 'Stream' => sanitize_text_field($_POST['show-live-stream']),
13
+ 'Width' => sanitize_text_field($_POST['widget-width']),
14
+ 'Height' => sanitize_text_field($_POST['widget-height']),
15
+ 'FbAppId' => sanitize_text_field($_POST['fb-app-id']),
16
  'ShowBorder' => 'true',
17
+ 'ShowFaces' => sanitize_text_field($_POST['show-fan-faces']),
18
  'ForceWall' => 'false',
19
+ 'weblizar_locale_fb' => sanitize_text_field($_POST['weblizar_locale_fb'])
20
  )
21
  );
22
  update_option("weblizar_facebook_shortcode_settings", $FacebookSettingsArray);
23
+ }
24
+ $FacebookSettings = unserialize(get_option("weblizar_facebook_shortcode_settings"));
25
+ //load default values OR saved values
26
+ $ForceWall = 'false';
27
+ if (isset($FacebookSettings['ForceWall'])) {
28
+ $ForceWall = $FacebookSettings['ForceWall'];
29
+ }
30
 
31
+ $Header = 'true';
32
+ if (isset($FacebookSettings['Header'])) {
33
+ $Header = $FacebookSettings['Header'];
34
+ }
35
 
36
+ $Height = 560;
37
+ if (isset($FacebookSettings['Height'])) {
38
+ $Height = $FacebookSettings['Height'];
39
+ }
40
 
41
+ $FacebookPageUrl = 'https://www.facebook.com/Weblizarwp/';
42
+ if (isset($FacebookSettings['FacebookPageUrl'])) {
43
+ $FacebookPageUrl = $FacebookSettings['FacebookPageUrl'];
44
+ }
45
 
46
+ $ShowBorder = 'true';
47
+ if (isset($FacebookSettings['ShowBorder'])) {
48
+ $ShowBorder = $FacebookSettings['ShowBorder'];
49
+ }
50
 
51
+ $ShowFaces = 'true';
52
+ if (isset($FacebookSettings['ShowFaces'])) {
53
+ $ShowFaces = $FacebookSettings['ShowFaces'];
54
+ }
55
 
56
+ $Stream = 'true';
57
+ if (isset($FacebookSettings['Stream'])) {
58
+ $Stream = $FacebookSettings['Stream'];
59
+ }
60
 
61
+ $Width = 292;
62
+ if (isset($FacebookSettings['Width'])) {
63
+ $Width = $FacebookSettings['Width'];
64
+ }
65
 
66
+ $FbAppId = "488390501239538";
67
+ if (isset($FacebookSettings['FbAppId'])) {
68
+ $FbAppId = $FacebookSettings['FbAppId'];
69
+ }
70
 
71
+ $weblizar_locale_fb = "en_GB";
72
+ if (isset($FacebookSettings['weblizar_locale_fb'])) {
73
+ $weblizar_locale_fb = $FacebookSettings['weblizar_locale_fb'];
74
+ }
js/option-js.js CHANGED
@@ -1,436 +1,436 @@
1
  /*Admin options pannal data value*/
2
  function weblizar_option_data_save(name) {
3
- var weblizar_settings_save = "#weblizar_settings_save_" + name;
4
- var weblizar_theme_options = "#weblizar_theme_options_" + name;
5
- var weblizar_settings_save_success = weblizar_settings_save + "_success";
6
- var loding_image = "#weblizar_loding_" + name;
7
- var weblizar_loding_image = loding_image + "_image";
8
 
9
- jQuery(weblizar_loding_image).show();
10
- jQuery(weblizar_settings_save).val("1");
11
- jQuery.ajax({
12
- url: "themes.php?page=weblizar",
13
- type: "post",
14
- data: jQuery(weblizar_theme_options).serialize(),
15
- success: function(data) {
16
- jQuery(weblizar_loding_image).fadeOut();
17
- jQuery(weblizar_settings_save_success).show();
18
- jQuery(weblizar_settings_save_success).fadeOut(5000);
19
- }
20
- });
21
  }
22
  /*Admin options value reset */
23
  function weblizar_option_data_reset(name) {
24
- var r = confirm("Do you want reset your theme setting!");
25
- if (r == true) {
26
- var weblizar_settings_save = "#weblizar_settings_save_" + name;
27
- var weblizar_theme_options = "#weblizar_theme_options_" + name;
28
- var weblizar_settings_save_reset = weblizar_settings_save + "_reset";
29
- jQuery(weblizar_settings_save).val("2");
30
- jQuery.ajax({
31
- url: "themes.php?page=weblizar",
32
- type: "post",
33
- data: jQuery(weblizar_theme_options).serialize(),
34
- success: function(data) {
35
- jQuery(weblizar_settings_save_reset).show();
36
- jQuery(weblizar_settings_save_reset).fadeOut(5000);
37
- }
38
- });
39
- } else {
40
- alert("Cancel! reset theme setting process");
41
- }
42
  }
43
  // js to active the link of option pannel
44
- jQuery(document).ready(function() {
45
- jQuery("ul li.active ul").slideDown();
46
- // menu click
47
- jQuery("#nav > li > a").click(function() {
48
- if (jQuery(this).attr("class") != "active") {
49
- jQuery("#nav li ul").slideUp(350);
50
- jQuery(this).next().slideToggle(350);
51
- jQuery("#nav li a").removeClass("active");
52
- jQuery(this).addClass("active");
53
 
54
- jQuery("ul.options_tabs li").removeClass("active");
55
- jQuery(this).parent().addClass("active");
56
- var divid = jQuery(this).attr("id");
57
- var add = "div#option-" + divid;
58
- var strlenght = add.length;
59
 
60
- if (strlenght < 17) {
61
- var add = "div#option-ui-id-" + divid;
62
- var ulid = "#ui-id-" + divid;
63
- jQuery("ul.options_tabs li li ").removeClass("currunt");
64
- jQuery(ulid).parent().addClass("currunt");
65
- }
66
- jQuery("div.ui-tabs-panel").addClass("deactive").fadeIn(1000);
67
- jQuery("div.ui-tabs-panel").removeClass("active");
68
- jQuery(add).removeClass("deactive");
69
- jQuery(add).addClass("active");
70
- }
71
- });
72
 
73
- // child submenu click
74
- jQuery("ul.options_tabs li li ").click(function() {
75
- jQuery("ul.options_tabs li li ").removeClass("currunt");
76
- jQuery(this).addClass("currunt");
77
- var option_name = jQuery(this).children("a").attr("id");
78
- var option_add = "div#option-" + option_name;
79
- jQuery("div.ui-tabs-panel").addClass("deactive").fadeIn(1000);
80
- jQuery("div.ui-tabs-panel").removeClass("active");
81
- jQuery(option_add).removeClass("deactive");
82
- jQuery(option_add).addClass("active");
83
- });
84
 
85
- /********media-upload******/
86
- // media upload js
87
- var uploadID = ""; /*setup the var*/
88
- var showImg = "";
89
- jQuery(".upload_image_button").click(function() {
90
- uploadID = jQuery(this).prev("input"); /*grab the specific input*/
91
- showImg = jQuery(this).nextAll("img");
92
- formfield = jQuery(".upload").attr("name");
93
- tb_show("", "media-upload.php?type=image&amp;TB_iframe=true");
94
 
95
- window.send_to_editor = function(html) {
96
- imgurl = jQuery("img", html).attr("src");
97
- showImg.attr("src", imgurl);
98
- uploadID.val(imgurl); /*assign the value to the input*/
99
- tb_remove();
100
- };
101
- return false;
102
- });
103
  });
104
 
105
  /**** For Option panle facebook Like ******/
106
- (function(d, s, id) {
107
- var js,
108
- fjs = d.getElementsByTagName(s)[0];
109
- if (d.getElementById(id)) return;
110
- js = d.createElement(s);
111
- js.id = id;
112
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7";
113
- fjs.parentNode.insertBefore(js, fjs);
114
  })(document, "script", "facebook-jssdk");
115
 
116
  /**** For Option panle twitter follower and Like ******/
117
 
118
- !(function(d, s, id) {
119
- var js,
120
- fjs = d.getElementsByTagName(s)[0];
121
- if (!d.getElementById(id)) {
122
- js = d.createElement(s);
123
- js.id = id;
124
- js.src = "//platform.twitter.com/widgets.js";
125
- fjs.parentNode.insertBefore(js, fjs);
126
- }
127
  })(document, "script", "twitter-wjs");
128
 
129
  /* feed-script-start*/
130
- jQuery(document).ready(function($) {
131
- if (jQuery("#ffp_content_timeline").is(":checked")) {
132
- jQuery(".timeline_content").show();
133
- jQuery(".specific_content").hide();
134
- } else {
135
- jQuery(".timeline_content").hide();
136
- jQuery(".timeline_content").hide();
137
- }
138
 
139
- if (jQuery("#ffp_content_specific").is(":checked")) {
140
- jQuery(".specific_content").show();
141
- jQuery(".timeline_content").hide();
142
- } else {
143
- jQuery(".specific_content").hide();
144
- }
145
 
146
- if (jQuery("select#feed_type option:checked").val() == "page") {
147
- ffp_page_id;
148
- jQuery(".ffp_page_url").show();
149
- jQuery(".ffp_page_id").show();
150
- jQuery("#ffp_type_group").hide();
151
- jQuery("#ffp_type_group_token").hide();
152
- }
153
- if (jQuery("select#feed_type option:checked").val() == "group") {
154
- jQuery(".ffp_page_url").hide();
155
- jQuery(".ffp_page_id").hide();
156
- jQuery("#ffp_type_group").show();
157
- jQuery("#ffp_type_group_token").show();
158
- }
159
- if (jQuery("select#feed_type option:checked").val() == "profile") {
160
- jQuery(".ffp_page_url").hide();
161
- jQuery(".ffp_page_id").hide();
162
- jQuery("#ffp_type_group").hide();
163
- jQuery("#ffp_type_group_token").show();
164
- }
165
 
166
- if (jQuery("#ffp_specific_videos").is(":checked")) {
167
- jQuery(".video_light_boxcontents").show();
168
- jQuery(".photo_light_boxcontents").hide();
169
- }
170
- if (jQuery("#ffp_specific_photos").is(":checked")) {
171
- jQuery(".video_light_boxcontents").hide();
172
- jQuery(".photo_light_boxcontents").show();
173
- }
174
- if (jQuery("#ffp_specific_albums").is(":checked")) {
175
- jQuery(".video_light_boxcontents").hide();
176
- jQuery(".photo_light_boxcontents").show();
177
- }
178
- if (jQuery("#ffp_specific_events").is(":checked")) {
179
- jQuery(".video_light_boxcontents").show();
180
- jQuery(".photo_light_boxcontents").hide();
181
- }
182
 
183
- if (jQuery("#ffp_gallery_effect_name").val() == "image_move_effect") {
184
- jQuery(".image_move_effect").show();
185
- jQuery(".border_effect").hide();
186
- jQuery(".overlay_slide").hide();
187
- }
188
- if (jQuery("#ffp_gallery_effect_name").val() == "border_effect") {
189
- jQuery(".image_move_effect").hide();
190
- jQuery(".border_effect").show();
191
- jQuery(".overlay_slide").hide();
192
- }
193
- if (jQuery("#ffp_gallery_effect_name").val() == "overlay_slide") {
194
- jQuery(".image_move_effect").hide();
195
- jQuery(".border_effect").hide();
196
- jQuery(".overlay_slide").show();
197
- }
198
  });
199
 
200
  function feed_timelineChanged() {
201
- if (jQuery("#ffp_content_timeline").is(":checked")) {
202
- jQuery(".timeline_content").show();
203
- jQuery(".specific_content").hide();
204
- } else {
205
- jQuery(".timeline_content").hide();
206
- }
207
  }
208
 
209
  function feed_specificChanged() {
210
- if (jQuery("#ffp_content_specific").is(":checked")) {
211
- jQuery(".specific_content").show();
212
- jQuery(".timeline_content").hide();
213
- } else {
214
- jQuery(".specific_content").hide();
215
- }
216
  }
217
 
218
  function feed_type_change_function() {
219
- console.log(jQuery("#ffp_type").val());
220
- if (jQuery("#feed_type").val() == "page") {
221
- jQuery(".ffp_page_url").show();
222
- jQuery(".ffp_page_id").show();
223
- jQuery("#ffp_type_group").hide();
224
- jQuery("#ffp_type_group_token").hide();
225
- }
226
- if (jQuery("#feed_type").val() == "group") {
227
- jQuery(".ffp_page_url").hide();
228
- jQuery(".ffp_page_id").hide();
229
- jQuery("#ffp_type_group").show();
230
- jQuery("#ffp_type_group_token").show();
231
- }
232
- if (jQuery("#feed_type").val() == "profile") {
233
- jQuery(".ffp_page_url").hide();
234
- jQuery(".ffp_page_id").hide();
235
- jQuery("#ffp_type_group").hide();
236
- jQuery("#ffp_type_group_token").show();
237
- }
238
  }
239
 
240
  function ffp_effect_change() {
241
- if (jQuery("#ffp_gallery_effect_name").val() == "image_move_effect") {
242
- jQuery("#ffp_gallery_effect").find("option").removeAttr("selected");
243
- jQuery("#ffp_gallery_effect option[value='imghvr-shutter-in-horiz']").attr(
244
- "selected",
245
- "selected"
246
- );
247
- jQuery(".image_move_effect").show();
248
- jQuery(".border_effect").hide();
249
- jQuery(".overlay_slide").hide();
250
- }
251
- if (jQuery("#ffp_gallery_effect_name").val() == "border_effect") {
252
- jQuery("#ffp_gallery_effect").find("option").removeAttr("selected");
253
- jQuery("#ffp_gallery_effect option[value='outline-border']").attr(
254
- "selected",
255
- "selected"
256
- );
257
- jQuery(".image_move_effect").hide();
258
- jQuery(".border_effect").show();
259
- jQuery(".overlay_slide").hide();
260
- }
261
- if (jQuery("#ffp_gallery_effect_name").val() == "overlay_slide") {
262
- jQuery("#ffp_gallery_effect").find("option").removeAttr("selected");
263
- jQuery(
264
- "#ffp_gallery_effect option[value='effct-veraison-1 content--c3']"
265
- ).attr("selected", "selected");
266
- jQuery(".image_move_effect").hide();
267
- jQuery(".border_effect").hide();
268
- jQuery(".overlay_slide").show();
269
- }
270
  }
271
 
272
  function ffp_video_light_box_func() {
273
- if (jQuery("#ffp_specific_videos").is(":checked")) {
274
- jQuery(".video_light_boxcontents").show();
275
- jQuery(".photo_light_boxcontents").hide();
276
- }
277
- if (jQuery("#ffp_specific_photos").is(":checked")) {
278
- jQuery(".video_light_boxcontents").hide();
279
- jQuery(".photo_light_boxcontents").show();
280
- }
281
- if (jQuery("#ffp_specific_albums").is(":checked")) {
282
- jQuery(".video_light_boxcontents").hide();
283
- jQuery(".photo_light_boxcontents").show();
284
- }
285
- if (jQuery("#ffp_specific_events").is(":checked")) {
286
- jQuery(".video_light_boxcontents").show();
287
- jQuery(".photo_light_boxcontents").hide();
288
- }
289
  }
290
 
291
- jQuery(document).ready(function() {
292
- jQuery(".video_light_box").click(function() {
293
- if (
294
- jQuery("#ffp_timeline_videos").is(":checked") ||
295
- jQuery("#ffp_timeline_events").is(":checked")
296
- ) {
297
- jQuery(".photo_light_boxcontents").hide();
298
- jQuery(".video_light_boxcontents").show();
299
- } else {
300
- jQuery(".photo_light_boxcontents").show();
301
- jQuery(".video_light_boxcontents").hide();
302
- }
303
- });
304
 
305
- if (jQuery("#ffp_content_timeline").is(":checked")) {
306
- if (
307
- jQuery("#ffp_timeline_videos").is(":checked") ||
308
- jQuery("#ffp_timeline_events").is(":checked")
309
- ) {
310
- jQuery(".photo_light_boxcontents").hide();
311
- jQuery(".video_light_boxcontents").show();
312
- } else {
313
- jQuery(".photo_light_boxcontents").show();
314
- jQuery(".video_light_boxcontents").hide();
315
- }
316
- }
317
 
318
- jQuery("#ffp_content_timeline").click(function() {
319
- if (
320
- jQuery("#ffp_timeline_videos").is(":checked") ||
321
- jQuery("#ffp_timeline_events").is(":checked")
322
- ) {
323
- jQuery(".photo_light_boxcontents").hide();
324
- jQuery(".video_light_boxcontents").show();
325
- } else {
326
- jQuery(".photo_light_boxcontents").show();
327
- jQuery(".video_light_boxcontents").hide();
328
- }
329
- });
330
 
331
- jQuery("#ffp_content_specific").click(function() {
332
- if (jQuery("#ffp_specific_videos").is(":checked")) {
333
- jQuery(".video_light_boxcontents").show();
334
- jQuery(".photo_light_boxcontents").hide();
335
- }
336
- if (jQuery("#ffp_specific_photos").is(":checked")) {
337
- jQuery(".video_light_boxcontents").hide();
338
- jQuery(".photo_light_boxcontents").show();
339
- }
340
- if (jQuery("#ffp_specific_albums").is(":checked")) {
341
- jQuery(".video_light_boxcontents").hide();
342
- jQuery(".photo_light_boxcontents").show();
343
- }
344
- if (jQuery("#ffp_specific_events").is(":checked")) {
345
- jQuery(".video_light_boxcontents").show();
346
- jQuery(".photo_light_boxcontents").hide();
347
- }
348
- });
349
  });
350
  function save_feed_general(security) {
351
- jQuery("img.admin_loading_css").show();
352
- jQuery.ajax({
353
- url: location.href,
354
- type: "POST",
355
- //data: jQuery("form#weblizar_feed_setting_option").serialize(),
356
- data:
357
- jQuery("form#weblizar_feed_setting_option").serialize() +
358
- "&security=" +
359
- security,
360
- dataType: "html",
361
- //Do not cache the page
362
- cache: false,
363
- //success
364
- success: function(html) {
365
- jQuery("img.admin_loading_css").hide();
366
- jQuery("div.success-msg").show();
367
- jQuery("div.success-msg").hide(4000);
368
- }
369
- });
370
  }
371
  /* feed-script-end*/
372
 
373
- jQuery(document).ready(function() {
374
- // Add minus icon for collapse element which is open by default
375
- jQuery(".collapse.in").each(function() {
376
- jQuery(this)
377
- .siblings(".panel-heading")
378
- .find(".glyphicon")
379
- .addClass("glyphicon-minus")
380
- .removeClass("glyphicon-plus");
381
- });
382
 
383
- // Toggle plus minus icon on show hide of collapse element
384
- jQuery(".collapse")
385
- .on("show.bs.collapse", function() {
386
- jQuery(this)
387
- .parent()
388
- .find(".glyphicon")
389
- .removeClass("glyphicon-plus")
390
- .addClass("glyphicon-minus");
391
- })
392
- .on("hide.bs.collapse", function() {
393
- jQuery(this)
394
- .parent()
395
- .find(".glyphicon")
396
- .removeClass("glyphicon-minus")
397
- .addClass("glyphicon-plus");
398
- });
399
  });
400
  function SaveSettings() {
401
- var FacebookPageUrl = jQuery("#facebook-page-url").val();
402
- var ColorScheme = jQuery("#show-widget-header").val();
403
- var Header = jQuery("#show-widget-header").val();
404
- var Stream = jQuery("#show-live-stream").val();
405
- var Width = jQuery("#widget-width").val();
406
- var Height = jQuery("#widget-height").val();
407
- var FbAppId = jQuery("#fb-app-id").val();
408
- var weblizar_locale_fb = jQuery("#weblizar_locale_fb").val();
409
- if (!FacebookPageUrl) {
410
- jQuery("#facebook-page-url").focus();
411
- return false;
412
- }
413
- if (!FbAppId) {
414
- jQuery("#fb-app-id").focus();
415
- return false;
416
- }
417
- jQuery("#fb-save-settings").hide();
418
- jQuery("#fb-img").show();
419
- jQuery.ajax({
420
- url: location.href,
421
- type: "POST",
422
- data: jQuery("form#fb-form").serialize(),
423
- dataType: "html",
424
- //Do not cache the page
425
- cache: false,
426
- //success
427
- success: function(html) {
428
- jQuery("#fb-img").hide();
429
- jQuery("#fb-msg").show();
430
 
431
- setTimeout(function() {
432
- location.reload(true);
433
- }, 2000);
434
- }
435
- });
436
  }
1
  /*Admin options pannal data value*/
2
  function weblizar_option_data_save(name) {
3
+ var weblizar_settings_save = "#weblizar_settings_save_" + name;
4
+ var weblizar_theme_options = "#weblizar_theme_options_" + name;
5
+ var weblizar_settings_save_success = weblizar_settings_save + "_success";
6
+ var loding_image = "#weblizar_loding_" + name;
7
+ var weblizar_loding_image = loding_image + "_image";
8
 
9
+ jQuery(weblizar_loding_image).show();
10
+ jQuery(weblizar_settings_save).val("1");
11
+ jQuery.ajax({
12
+ url: "themes.php?page=weblizar",
13
+ type: "post",
14
+ data: jQuery(weblizar_theme_options).serialize(),
15
+ success: function (data) {
16
+ jQuery(weblizar_loding_image).fadeOut();
17
+ jQuery(weblizar_settings_save_success).show();
18
+ jQuery(weblizar_settings_save_success).fadeOut(5000);
19
+ },
20
+ });
21
  }
22
  /*Admin options value reset */
23
  function weblizar_option_data_reset(name) {
24
+ var r = confirm("Do you want reset your theme setting!");
25
+ if (r == true) {
26
+ var weblizar_settings_save = "#weblizar_settings_save_" + name;
27
+ var weblizar_theme_options = "#weblizar_theme_options_" + name;
28
+ var weblizar_settings_save_reset = weblizar_settings_save + "_reset";
29
+ jQuery(weblizar_settings_save).val("2");
30
+ jQuery.ajax({
31
+ url: "themes.php?page=weblizar",
32
+ type: "post",
33
+ data: jQuery(weblizar_theme_options).serialize(),
34
+ success: function (data) {
35
+ jQuery(weblizar_settings_save_reset).show();
36
+ jQuery(weblizar_settings_save_reset).fadeOut(5000);
37
+ },
38
+ });
39
+ } else {
40
+ alert("Cancel! reset theme setting process");
41
+ }
42
  }
43
  // js to active the link of option pannel
44
+ jQuery(document).ready(function () {
45
+ jQuery("ul li.active ul").slideDown();
46
+ // menu click
47
+ jQuery("#nav > li > a").click(function () {
48
+ if (jQuery(this).attr("class") != "active") {
49
+ jQuery("#nav li ul").slideUp(350);
50
+ jQuery(this).next().slideToggle(350);
51
+ jQuery("#nav li a").removeClass("active");
52
+ jQuery(this).addClass("active");
53
 
54
+ jQuery("ul.options_tabs li").removeClass("active");
55
+ jQuery(this).parent().addClass("active");
56
+ var divid = jQuery(this).attr("id");
57
+ var add = "div#option-" + divid;
58
+ var strlenght = add.length;
59
 
60
+ if (strlenght < 17) {
61
+ var add = "div#option-ui-id-" + divid;
62
+ var ulid = "#ui-id-" + divid;
63
+ jQuery("ul.options_tabs li li ").removeClass("currunt");
64
+ jQuery(ulid).parent().addClass("currunt");
65
+ }
66
+ jQuery("div.ui-tabs-panel").addClass("deactive").fadeIn(1000);
67
+ jQuery("div.ui-tabs-panel").removeClass("active");
68
+ jQuery(add).removeClass("deactive");
69
+ jQuery(add).addClass("active");
70
+ }
71
+ });
72
 
73
+ // child submenu click
74
+ jQuery("ul.options_tabs li li ").click(function () {
75
+ jQuery("ul.options_tabs li li ").removeClass("currunt");
76
+ jQuery(this).addClass("currunt");
77
+ var option_name = jQuery(this).children("a").attr("id");
78
+ var option_add = "div#option-" + option_name;
79
+ jQuery("div.ui-tabs-panel").addClass("deactive").fadeIn(1000);
80
+ jQuery("div.ui-tabs-panel").removeClass("active");
81
+ jQuery(option_add).removeClass("deactive");
82
+ jQuery(option_add).addClass("active");
83
+ });
84
 
85
+ /********media-upload******/
86
+ // media upload js
87
+ var uploadID = ""; /*setup the var*/
88
+ var showImg = "";
89
+ jQuery(".upload_image_button").click(function () {
90
+ uploadID = jQuery(this).prev("input"); /*grab the specific input*/
91
+ showImg = jQuery(this).nextAll("img");
92
+ formfield = jQuery(".upload").attr("name");
93
+ tb_show("", "media-upload.php?type=image&amp;TB_iframe=true");
94
 
95
+ window.send_to_editor = function (html) {
96
+ imgurl = jQuery("img", html).attr("src");
97
+ showImg.attr("src", imgurl);
98
+ uploadID.val(imgurl); /*assign the value to the input*/
99
+ tb_remove();
100
+ };
101
+ return false;
102
+ });
103
  });
104
 
105
  /**** For Option panle facebook Like ******/
106
+ (function (d, s, id) {
107
+ var js,
108
+ fjs = d.getElementsByTagName(s)[0];
109
+ if (d.getElementById(id)) return;
110
+ js = d.createElement(s);
111
+ js.id = id;
112
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7";
113
+ fjs.parentNode.insertBefore(js, fjs);
114
  })(document, "script", "facebook-jssdk");
115
 
116
  /**** For Option panle twitter follower and Like ******/
117
 
118
+ !(function (d, s, id) {
119
+ var js,
120
+ fjs = d.getElementsByTagName(s)[0];
121
+ if (!d.getElementById(id)) {
122
+ js = d.createElement(s);
123
+ js.id = id;
124
+ js.src = "//platform.twitter.com/widgets.js";
125
+ fjs.parentNode.insertBefore(js, fjs);
126
+ }
127
  })(document, "script", "twitter-wjs");
128
 
129
  /* feed-script-start*/
130
+ jQuery(document).ready(function ($) {
131
+ if (jQuery("#ffp_content_timeline").is(":checked")) {
132
+ jQuery(".timeline_content").show();
133
+ jQuery(".specific_content").hide();
134
+ } else {
135
+ jQuery(".timeline_content").hide();
136
+ jQuery(".timeline_content").hide();
137
+ }
138
 
139
+ if (jQuery("#ffp_content_specific").is(":checked")) {
140
+ jQuery(".specific_content").show();
141
+ jQuery(".timeline_content").hide();
142
+ } else {
143
+ jQuery(".specific_content").hide();
144
+ }
145
 
146
+ if (jQuery("select#feed_type option:checked").val() == "page") {
147
+ ffp_page_id;
148
+ jQuery(".ffp_page_url").show();
149
+ jQuery(".ffp_page_id").show();
150
+ jQuery("#ffp_type_group").hide();
151
+ jQuery("#ffp_type_group_token").hide();
152
+ }
153
+ if (jQuery("select#feed_type option:checked").val() == "group") {
154
+ jQuery(".ffp_page_url").hide();
155
+ jQuery(".ffp_page_id").hide();
156
+ jQuery("#ffp_type_group").show();
157
+ jQuery("#ffp_type_group_token").show();
158
+ }
159
+ if (jQuery("select#feed_type option:checked").val() == "profile") {
160
+ jQuery(".ffp_page_url").hide();
161
+ jQuery(".ffp_page_id").hide();
162
+ jQuery("#ffp_type_group").hide();
163
+ jQuery("#ffp_type_group_token").show();
164
+ }
165
 
166
+ if (jQuery("#ffp_specific_videos").is(":checked")) {
167
+ jQuery(".video_light_boxcontents").show();
168
+ jQuery(".photo_light_boxcontents").hide();
169
+ }
170
+ if (jQuery("#ffp_specific_photos").is(":checked")) {
171
+ jQuery(".video_light_boxcontents").hide();
172
+ jQuery(".photo_light_boxcontents").show();
173
+ }
174
+ if (jQuery("#ffp_specific_albums").is(":checked")) {
175
+ jQuery(".video_light_boxcontents").hide();
176
+ jQuery(".photo_light_boxcontents").show();
177
+ }
178
+ if (jQuery("#ffp_specific_events").is(":checked")) {
179
+ jQuery(".video_light_boxcontents").show();
180
+ jQuery(".photo_light_boxcontents").hide();
181
+ }
182
 
183
+ if (jQuery("#ffp_gallery_effect_name").val() == "image_move_effect") {
184
+ jQuery(".image_move_effect").show();
185
+ jQuery(".border_effect").hide();
186
+ jQuery(".overlay_slide").hide();
187
+ }
188
+ if (jQuery("#ffp_gallery_effect_name").val() == "border_effect") {
189
+ jQuery(".image_move_effect").hide();
190
+ jQuery(".border_effect").show();
191
+ jQuery(".overlay_slide").hide();
192
+ }
193
+ if (jQuery("#ffp_gallery_effect_name").val() == "overlay_slide") {
194
+ jQuery(".image_move_effect").hide();
195
+ jQuery(".border_effect").hide();
196
+ jQuery(".overlay_slide").show();
197
+ }
198
  });
199
 
200
  function feed_timelineChanged() {
201
+ if (jQuery("#ffp_content_timeline").is(":checked")) {
202
+ jQuery(".timeline_content").show();
203
+ jQuery(".specific_content").hide();
204
+ } else {
205
+ jQuery(".timeline_content").hide();
206
+ }
207
  }
208
 
209
  function feed_specificChanged() {
210
+ if (jQuery("#ffp_content_specific").is(":checked")) {
211
+ jQuery(".specific_content").show();
212
+ jQuery(".timeline_content").hide();
213
+ } else {
214
+ jQuery(".specific_content").hide();
215
+ }
216
  }
217
 
218
  function feed_type_change_function() {
219
+ console.log(jQuery("#ffp_type").val());
220
+ if (jQuery("#feed_type").val() == "page") {
221
+ jQuery(".ffp_page_url").show();
222
+ jQuery(".ffp_page_id").show();
223
+ jQuery("#ffp_type_group").hide();
224
+ jQuery("#ffp_type_group_token").hide();
225
+ }
226
+ if (jQuery("#feed_type").val() == "group") {
227
+ jQuery(".ffp_page_url").hide();
228
+ jQuery(".ffp_page_id").hide();
229
+ jQuery("#ffp_type_group").show();
230
+ jQuery("#ffp_type_group_token").show();
231
+ }
232
+ if (jQuery("#feed_type").val() == "profile") {
233
+ jQuery(".ffp_page_url").hide();
234
+ jQuery(".ffp_page_id").hide();
235
+ jQuery("#ffp_type_group").hide();
236
+ jQuery("#ffp_type_group_token").show();
237
+ }
238
  }
239
 
240
  function ffp_effect_change() {
241
+ if (jQuery("#ffp_gallery_effect_name").val() == "image_move_effect") {
242
+ jQuery("#ffp_gallery_effect").find("option").removeAttr("selected");
243
+ jQuery("#ffp_gallery_effect option[value='imghvr-shutter-in-horiz']").attr(
244
+ "selected",
245
+ "selected"
246
+ );
247
+ jQuery(".image_move_effect").show();
248
+ jQuery(".border_effect").hide();
249
+ jQuery(".overlay_slide").hide();
250
+ }
251
+ if (jQuery("#ffp_gallery_effect_name").val() == "border_effect") {
252
+ jQuery("#ffp_gallery_effect").find("option").removeAttr("selected");
253
+ jQuery("#ffp_gallery_effect option[value='outline-border']").attr(
254
+ "selected",
255
+ "selected"
256
+ );
257
+ jQuery(".image_move_effect").hide();
258
+ jQuery(".border_effect").show();
259
+ jQuery(".overlay_slide").hide();
260
+ }
261
+ if (jQuery("#ffp_gallery_effect_name").val() == "overlay_slide") {
262
+ jQuery("#ffp_gallery_effect").find("option").removeAttr("selected");
263
+ jQuery(
264
+ "#ffp_gallery_effect option[value='effct-veraison-1 content--c3']"
265
+ ).attr("selected", "selected");
266
+ jQuery(".image_move_effect").hide();
267
+ jQuery(".border_effect").hide();
268
+ jQuery(".overlay_slide").show();
269
+ }
270
  }
271
 
272
  function ffp_video_light_box_func() {
273
+ if (jQuery("#ffp_specific_videos").is(":checked")) {
274
+ jQuery(".video_light_boxcontents").show();
275
+ jQuery(".photo_light_boxcontents").hide();
276
+ }
277
+ if (jQuery("#ffp_specific_photos").is(":checked")) {
278
+ jQuery(".video_light_boxcontents").hide();
279
+ jQuery(".photo_light_boxcontents").show();
280
+ }
281
+ if (jQuery("#ffp_specific_albums").is(":checked")) {
282
+ jQuery(".video_light_boxcontents").hide();
283
+ jQuery(".photo_light_boxcontents").show();
284
+ }
285
+ if (jQuery("#ffp_specific_events").is(":checked")) {
286
+ jQuery(".video_light_boxcontents").show();
287
+ jQuery(".photo_light_boxcontents").hide();
288
+ }
289
  }
290
 
291
+ jQuery(document).ready(function () {
292
+ jQuery(".video_light_box").click(function () {
293
+ if (
294
+ jQuery("#ffp_timeline_videos").is(":checked") ||
295
+ jQuery("#ffp_timeline_events").is(":checked")
296
+ ) {
297
+ jQuery(".photo_light_boxcontents").hide();
298
+ jQuery(".video_light_boxcontents").show();
299
+ } else {
300
+ jQuery(".photo_light_boxcontents").show();
301
+ jQuery(".video_light_boxcontents").hide();
302
+ }
303
+ });
304
 
305
+ if (jQuery("#ffp_content_timeline").is(":checked")) {
306
+ if (
307
+ jQuery("#ffp_timeline_videos").is(":checked") ||
308
+ jQuery("#ffp_timeline_events").is(":checked")
309
+ ) {
310
+ jQuery(".photo_light_boxcontents").hide();
311
+ jQuery(".video_light_boxcontents").show();
312
+ } else {
313
+ jQuery(".photo_light_boxcontents").show();
314
+ jQuery(".video_light_boxcontents").hide();
315
+ }
316
+ }
317
 
318
+ jQuery("#ffp_content_timeline").click(function () {
319
+ if (
320
+ jQuery("#ffp_timeline_videos").is(":checked") ||
321
+ jQuery("#ffp_timeline_events").is(":checked")
322
+ ) {
323
+ jQuery(".photo_light_boxcontents").hide();
324
+ jQuery(".video_light_boxcontents").show();
325
+ } else {
326
+ jQuery(".photo_light_boxcontents").show();
327
+ jQuery(".video_light_boxcontents").hide();
328
+ }
329
+ });
330
 
331
+ jQuery("#ffp_content_specific").click(function () {
332
+ if (jQuery("#ffp_specific_videos").is(":checked")) {
333
+ jQuery(".video_light_boxcontents").show();
334
+ jQuery(".photo_light_boxcontents").hide();
335
+ }
336
+ if (jQuery("#ffp_specific_photos").is(":checked")) {
337
+ jQuery(".video_light_boxcontents").hide();
338
+ jQuery(".photo_light_boxcontents").show();
339
+ }
340
+ if (jQuery("#ffp_specific_albums").is(":checked")) {
341
+ jQuery(".video_light_boxcontents").hide();
342
+ jQuery(".photo_light_boxcontents").show();
343
+ }
344
+ if (jQuery("#ffp_specific_events").is(":checked")) {
345
+ jQuery(".video_light_boxcontents").show();
346
+ jQuery(".photo_light_boxcontents").hide();
347
+ }
348
+ });
349
  });
350
  function save_feed_general(security) {
351
+ jQuery("img.admin_loading_css").show();
352
+ jQuery.ajax({
353
+ url: location.href,
354
+ type: "POST",
355
+ //data: jQuery("form#weblizar_feed_setting_option").serialize(),
356
+ data:
357
+ jQuery("form#weblizar_feed_setting_option").serialize() +
358
+ "&security=" +
359
+ security,
360
+ dataType: "html",
361
+ //Do not cache the page
362
+ cache: false,
363
+ //success
364
+ success: function (html) {
365
+ jQuery("img.admin_loading_css").hide();
366
+ jQuery("div.success-msg").show();
367
+ jQuery("div.success-msg").hide(4000);
368
+ },
369
+ });
370
  }
371
  /* feed-script-end*/
372
 
373
+ jQuery(document).ready(function () {
374
+ // Add minus icon for collapse element which is open by default
375
+ jQuery(".collapse.in").each(function () {
376
+ jQuery(this)
377
+ .siblings(".panel-heading")
378
+ .find(".glyphicon")
379
+ .addClass("glyphicon-minus")
380
+ .removeClass("glyphicon-plus");
381
+ });
382
 
383
+ // Toggle plus minus icon on show hide of collapse element
384
+ jQuery(".collapse")
385
+ .on("show.bs.collapse", function () {
386
+ jQuery(this)
387
+ .parent()
388
+ .find(".glyphicon")
389
+ .removeClass("glyphicon-plus")
390
+ .addClass("glyphicon-minus");
391
+ })
392
+ .on("hide.bs.collapse", function () {
393
+ jQuery(this)
394
+ .parent()
395
+ .find(".glyphicon")
396
+ .removeClass("glyphicon-minus")
397
+ .addClass("glyphicon-plus");
398
+ });
399
  });
400
  function SaveSettings() {
401
+ var FacebookPageUrl = jQuery("#facebook-page-url").val();
402
+ var ColorScheme = jQuery("#show-widget-header").val();
403
+ var Header = jQuery("#show-widget-header").val();
404
+ var Stream = jQuery("#show-live-stream").val();
405
+ var Width = jQuery("#widget-width").val();
406
+ var Height = jQuery("#widget-height").val();
407
+ var FbAppId = jQuery("#fb-app-id").val();
408
+ var weblizar_locale_fb = jQuery("#weblizar_locale_fb").val();
409
+ if (!FacebookPageUrl) {
410
+ jQuery("#facebook-page-url").focus();
411
+ return false;
412
+ }
413
+ if (!FbAppId) {
414
+ jQuery("#fb-app-id").focus();
415
+ return false;
416
+ }
417
+ jQuery("#fb-save-settings").hide();
418
+ jQuery("#fb-img").show();
419
+ jQuery.ajax({
420
+ url: location.href,
421
+ type: "POST",
422
+ data: jQuery("form#fb-form").serialize(),
423
+ dataType: "html",
424
+ //Do not cache the page
425
+ cache: false,
426
+ //success
427
+ success: function (html) {
428
+ jQuery("#fb-img").hide();
429
+ jQuery("#fb-msg").show();
430
 
431
+ setTimeout(function () {
432
+ location.reload(true);
433
+ }, 2000);
434
+ },
435
+ });
436
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: weblizar
3
  Donate link: https://www.weblizar.com/
4
  Tags: facebook, facebook feed, facebook like box, facebook posts, facebook page, FaceBook posts, facebook widget, FaceBook profile, FaceBook group, facebook page feed, facebook page like box, feed, likebox
5
  Requires at least: 3.8
6
- Tested up to: 5.6
7
- Stable tag: 2.9.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -216,6 +216,13 @@ For more information, see [Weblizar](https://weblizar.com/) .
216
 
217
  == Changelog ==
218
 
 
 
 
 
 
 
 
219
  = 2.9.5 = [10-12-2020]
220
  * Minor bug fixed.
221
  * Tested upto WordPess 5.6
3
  Donate link: https://www.weblizar.com/
4
  Tags: facebook, facebook feed, facebook like box, facebook posts, facebook page, FaceBook posts, facebook widget, FaceBook profile, FaceBook group, facebook page feed, facebook page like box, feed, likebox
5
  Requires at least: 3.8
6
+ Tested up to: 5.7
7
+ Stable tag: 2.9.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
216
 
217
  == Changelog ==
218
 
219
+ = 2.9.7 = [18-03-2021]
220
+ * minor changes
221
+
222
+ = 2.9.6 = [18-03-2021]
223
+ * Code Optimized
224
+ * Tested upto WordPess 5.7
225
+
226
  = 2.9.5 = [10-12-2020]
227
  * Minor bug fixed.
228
  * Tested upto WordPess 5.6