Version Description
=
- Corrected some mistakes.
Step by step guide
Main options
- APP ID - Type here your Fb App ID
- Title - Type here the title
- Color scheme - Select the Color scheme
- Title text color - Select the title text color
- Title font-size - Type the title font-size(px)
- Title font family - Select the title font family
- Title position - Select the title position
- Display comment on - Select where to display Fb box
- Width - Type here the width(px)
- Number - Type here the number of remarks to display
- Animation effect - Select animation effect
- Background color - Select the background color
- Position -Select the position
- Language - Type here the language code(en_US,de_DE...)
Adding the plugin shortcode into pages, posts and in Php code
Here is an example of using the shortcode in posts/pages:
[wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Title" title_text_color="#000000" title_text_font_size="22" title_text_font_famely="monospace" title_text_position="left" width="100%" bg_color="#CCCCCC" animation_effect="random" locale="en_US" count_of_comments="2" ]
Here's an example of using the shortcode in PHP code:
<?php echo do_shortcode('[wpdevart_facebook_comment facebook_app_id="1638418549774901" curent_url="http://developers.facebook.com/docs/plugins/comments/" title_text="Fb title" title_text_color="#000000" title_text_font_size="22" title_text_font_famely="monospace" title_text_position="left" width="100%" bg_color="#CCCCCC" animation_effect="random" locale="en_US" count_of_comments="2" ]'); ?>
Here are explanation of shortcode attributes.
curent_url - Type the URL of the page from where you need to show the content title_text - Type here the title title_text_color - Select the title color title_text_font_size - Type the title font-size title_text_font_famely - Select the title font family title_text_position - Select the title position width - Type here the width count_of_comments - Type here the number of remarks to display bg_color - Select the background color animation_effect - Choose animation effect
Release Info
| Developer | wpdevart |
| Plugin | |
| Version | 2.4.0 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3.9 to 2.4.0
- facebook-comment.php +1 -1
- includes/admin_menu.php +7 -7
- includes/front_end.php +3 -3
- includes/library.php +4 -2
- readme.txt +5 -1
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Plugin URI: https://wpdevart.com/wordpress-facebook-comments-plugin
|
| 5 |
* Author URI: https://wpdevart.com
|
| 6 |
* Description: Social (Facebook) comments plugin will help you to display Facebook Comments box on your website. You can use Facebook Comments on your pages/posts.
|
| 7 |
-
* Version: 2.
|
| 8 |
* Author: wpdevart
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
| 4 |
* Plugin URI: https://wpdevart.com/wordpress-facebook-comments-plugin
|
| 5 |
* Author URI: https://wpdevart.com
|
| 6 |
* Description: Social (Facebook) comments plugin will help you to display Facebook Comments box on your website. You can use Facebook Comments on your pages/posts.
|
| 7 |
+
* Version: 2.4.0
|
| 8 |
* Author: wpdevart
|
| 9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
|
@@ -27,7 +27,7 @@ class wpdevart_comment_admin_menu{
|
|
| 27 |
$this->text_parametrs['authorize_problem'] = "Authorize problem";
|
| 28 |
}
|
| 29 |
|
| 30 |
-
/*###################### Meta Box function ##################*/
|
| 31 |
|
| 32 |
public function wpdevart_comment_add_meta_box() {
|
| 33 |
|
|
@@ -39,7 +39,7 @@ class wpdevart_comment_admin_menu{
|
|
| 39 |
}
|
| 40 |
}
|
| 41 |
|
| 42 |
-
/*############ Function generating HTML ################*/
|
| 43 |
|
| 44 |
public function generete_html_for_wpdevart_comment_box($post){
|
| 45 |
// Add field that we can check later.
|
|
@@ -77,7 +77,7 @@ class wpdevart_comment_admin_menu{
|
|
| 77 |
update_post_meta( $post_id, '_disabel_wpdevart_facebook_comment', $my_data );
|
| 78 |
}
|
| 79 |
|
| 80 |
-
/*############################
|
| 81 |
|
| 82 |
public function create_menu(){
|
| 83 |
global $submenu;
|
|
@@ -103,7 +103,7 @@ class wpdevart_comment_admin_menu{
|
|
| 103 |
|
| 104 |
}
|
| 105 |
|
| 106 |
-
/*######################
|
| 107 |
|
| 108 |
public function menu_requeried_scripts(){
|
| 109 |
wp_enqueue_script('wp-color-picker');
|
|
@@ -116,7 +116,7 @@ class wpdevart_comment_admin_menu{
|
|
| 116 |
wp_enqueue_style("wpdevart_lightbox_hire_expert",$this->plugin_url.'includes/style/hire_expert.css');
|
| 117 |
}
|
| 118 |
|
| 119 |
-
/*######################
|
| 120 |
|
| 121 |
private function generete_parametrs($page_name){
|
| 122 |
$page_parametrs=array();
|
|
@@ -130,7 +130,7 @@ class wpdevart_comment_admin_menu{
|
|
| 130 |
|
| 131 |
}
|
| 132 |
|
| 133 |
-
/*######################
|
| 134 |
|
| 135 |
public function save_in_databese(){
|
| 136 |
$kk=1;
|
|
@@ -153,7 +153,7 @@ class wpdevart_comment_admin_menu{
|
|
| 153 |
die($this->text_parametrs['parametrs_sucsses_saved']);
|
| 154 |
}
|
| 155 |
|
| 156 |
-
/*######################
|
| 157 |
|
| 158 |
public function main_menu_function(){
|
| 159 |
?>
|
| 27 |
$this->text_parametrs['authorize_problem'] = "Authorize problem";
|
| 28 |
}
|
| 29 |
|
| 30 |
+
/*###################### The Meta Box function ##################*/
|
| 31 |
|
| 32 |
public function wpdevart_comment_add_meta_box() {
|
| 33 |
|
| 39 |
}
|
| 40 |
}
|
| 41 |
|
| 42 |
+
/*############ Function for generating HTML ################*/
|
| 43 |
|
| 44 |
public function generete_html_for_wpdevart_comment_box($post){
|
| 45 |
// Add field that we can check later.
|
| 77 |
update_post_meta( $post_id, '_disabel_wpdevart_facebook_comment', $my_data );
|
| 78 |
}
|
| 79 |
|
| 80 |
+
/*############################ Function for adding the plugin admin menu pages ###################################*/
|
| 81 |
|
| 82 |
public function create_menu(){
|
| 83 |
global $submenu;
|
| 103 |
|
| 104 |
}
|
| 105 |
|
| 106 |
+
/*###################### The required scripts function ##################*/
|
| 107 |
|
| 108 |
public function menu_requeried_scripts(){
|
| 109 |
wp_enqueue_script('wp-color-picker');
|
| 116 |
wp_enqueue_style("wpdevart_lightbox_hire_expert",$this->plugin_url.'includes/style/hire_expert.css');
|
| 117 |
}
|
| 118 |
|
| 119 |
+
/*###################### Function for generating parameters ##################*/
|
| 120 |
|
| 121 |
private function generete_parametrs($page_name){
|
| 122 |
$page_parametrs=array();
|
| 130 |
|
| 131 |
}
|
| 132 |
|
| 133 |
+
/*###################### The database function ##################*/
|
| 134 |
|
| 135 |
public function save_in_databese(){
|
| 136 |
$kk=1;
|
| 153 |
die($this->text_parametrs['parametrs_sucsses_saved']);
|
| 154 |
}
|
| 155 |
|
| 156 |
+
/*###################### The main menu function ##################*/
|
| 157 |
|
| 158 |
public function main_menu_function(){
|
| 159 |
?>
|
|
@@ -18,7 +18,7 @@ class wpdevart_comment_front_end{
|
|
| 18 |
function __construct($params){
|
| 19 |
|
| 20 |
$this->databese_parametrs=$params['databese_parametrs'];
|
| 21 |
-
//If plugin
|
| 22 |
if(isset($params['plugin_url']))
|
| 23 |
$this->plugin_url=$params['plugin_url'];
|
| 24 |
else
|
|
@@ -78,7 +78,7 @@ class wpdevart_comment_front_end{
|
|
| 78 |
|
| 79 |
}
|
| 80 |
|
| 81 |
-
/*###################### Function for Scripts and Styles ##################*/
|
| 82 |
|
| 83 |
public function generete_front_javascript(){
|
| 84 |
wp_enqueue_script('thickbox');
|
|
@@ -123,7 +123,7 @@ class wpdevart_comment_front_end{
|
|
| 123 |
}(document, 'script', 'facebook-jssdk'));</script>
|
| 124 |
<?php
|
| 125 |
}
|
| 126 |
-
/*Function for creating content
|
| 127 |
|
| 128 |
}
|
| 129 |
?>
|
| 18 |
function __construct($params){
|
| 19 |
|
| 20 |
$this->databese_parametrs=$params['databese_parametrs'];
|
| 21 |
+
//If the plugin URL doesn't come in the parent class
|
| 22 |
if(isset($params['plugin_url']))
|
| 23 |
$this->plugin_url=$params['plugin_url'];
|
| 24 |
else
|
| 78 |
|
| 79 |
}
|
| 80 |
|
| 81 |
+
/*###################### Function for generating Scripts and Styles ##################*/
|
| 82 |
|
| 83 |
public function generete_front_javascript(){
|
| 84 |
wp_enqueue_script('thickbox');
|
| 123 |
}(document, 'script', 'facebook-jssdk'));</script>
|
| 124 |
<?php
|
| 125 |
}
|
| 126 |
+
/*Function for creating content Iframe*/
|
| 127 |
|
| 128 |
}
|
| 129 |
?>
|
|
@@ -16,7 +16,7 @@ class wpdevart_comment_setting{
|
|
| 16 |
return $animation;
|
| 17 |
}
|
| 18 |
|
| 19 |
-
/*############
|
| 20 |
|
| 21 |
public static function generete_iframe_by_array($params){
|
| 22 |
self::$id_for_iframe++;
|
|
@@ -55,7 +55,9 @@ $output_code.='<div id="'.$params['iframe_id'].'" style="width:'.( (strpos($para
|
|
| 55 |
$output_code.= '<style>#'.$params['iframe_id'].' span,#'.$params['iframe_id'].' iframe{'.( (strpos($params['width'],'%')===false)?'':'width:'.$params['width'].' !important;').'} #'.$params['iframe_id'].' iframe{max-height: 100% !important;}</style>';
|
| 56 |
return $output_code;
|
| 57 |
}
|
| 58 |
-
|
|
|
|
|
|
|
| 59 |
public static function generete_animation_select($select_id='',$curent_effect='none'){
|
| 60 |
?>
|
| 61 |
<select class="pro_select" id="<?php echo $select_id; ?>" name="<?php echo $select_id; ?>">
|
| 16 |
return $animation;
|
| 17 |
}
|
| 18 |
|
| 19 |
+
/*############ Function for generating the Iframe ################*/
|
| 20 |
|
| 21 |
public static function generete_iframe_by_array($params){
|
| 22 |
self::$id_for_iframe++;
|
| 55 |
$output_code.= '<style>#'.$params['iframe_id'].' span,#'.$params['iframe_id'].' iframe{'.( (strpos($params['width'],'%')===false)?'':'width:'.$params['width'].' !important;').'} #'.$params['iframe_id'].' iframe{max-height: 100% !important;}</style>';
|
| 56 |
return $output_code;
|
| 57 |
}
|
| 58 |
+
|
| 59 |
+
/*############ Function for generating animation effects ################*/
|
| 60 |
+
|
| 61 |
public static function generete_animation_select($select_id='',$curent_effect='none'){
|
| 62 |
?>
|
| 63 |
<select class="pro_select" id="<?php echo $select_id; ?>" name="<?php echo $select_id; ?>">
|
|
@@ -3,7 +3,7 @@ Contributors: wpdevart
|
|
| 3 |
Tags: Facebook, facebook comments, social comments, comments, wordpress comments
|
| 4 |
Requires at least: 2.9
|
| 5 |
Tested up to: 5.8.2
|
| 6 |
-
Stable tag: 2.
|
| 7 |
License: GPLv3
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
| 9 |
|
|
@@ -588,6 +588,10 @@ Yes, If you are logged in(Fb account) then you will see the moderate options for
|
|
| 588 |
|
| 589 |
* Added descriptions for functions.
|
| 590 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 591 |
==Step by step guide==
|
| 592 |
|
| 593 |
### Main options
|
| 3 |
Tags: Facebook, facebook comments, social comments, comments, wordpress comments
|
| 4 |
Requires at least: 2.9
|
| 5 |
Tested up to: 5.8.2
|
| 6 |
+
Stable tag: 2.4.0
|
| 7 |
License: GPLv3
|
| 8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
| 9 |
|
| 588 |
|
| 589 |
* Added descriptions for functions.
|
| 590 |
|
| 591 |
+
= 2.4.0 ==
|
| 592 |
+
|
| 593 |
+
* Corrected some mistakes.
|
| 594 |
+
|
| 595 |
==Step by step guide==
|
| 596 |
|
| 597 |
### Main options
|
