/** * Plugin Name: Wpdevart Facebook comments * Plugin URI: http://wpdevart.com/wordpress-facebook-comments-plugin/ * Author URI: http://wpdevart.com * Description: Facebook comments plugin will help you to display Facebook Comments box on your website. You can use Facebook Comments on your pages/posts. * Version: 1.8.5 * Author: wpdevart * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ class wpdevart_comment_main{ // required variables private $wpdevart_comment_plugin_url; private $wpdevart_comment_plugin_path; private $wpdevart_comment_version; public $wpdevart_comment_options; /*############ Construct function ################*/ function __construct(){ $this->wpdevart_comment_plugin_url = trailingslashit( plugins_url('', __FILE__ ) ); $this->wpdevart_comment_plugin_path = trailingslashit( plugin_dir_path( __FILE__ ) ); // define("wpdevart_comment_support_url","https://wordpress.org/support/plugin/comments-from-facebook"); if(!class_exists('wpdevart_comment_setting')) require_once($this->wpdevart_comment_plugin_path.'includes/library.php'); $this->wpdevart_comment_version = 10.0; $this->call_base_filters(); $this->install_databese(); $this->create_admin_menu(); $this->wpdevart_comment_front_end(); } /*###################### Create admin menu function ##################*/ public function create_admin_menu(){ require_once($this->wpdevart_comment_plugin_path.'includes/admin_menu.php'); $wpdevart_comment_admin_menu = new wpdevart_comment_admin_menu(array('menu_name' => 'FB comments','databese_parametrs'=>$this->wpdevart_comment_options)); add_action('admin_menu', array($wpdevart_comment_admin_menu,'create_menu')); } /*###################### Install database function ##################*/ public function install_databese(){ require_once($this->wpdevart_comment_plugin_path.'includes/install_database.php'); $wpdevart_comment_install_database = new wpdevart_comment_install_database(); $this->wpdevart_comment_options = $wpdevart_comment_install_database->installed_options; } /*###################### Front-end function ##################*/ public function wpdevart_comment_front_end(){ require_once($this->wpdevart_comment_plugin_path.'includes/front_end.php'); $wpdevart_comment_front_end = new wpdevart_comment_front_end(array('menu_name' => 'Wpdevart Comment','databese_parametrs'=>$this->wpdevart_comment_options)); } /*############ Register Requeried Scripts function ################*/ public function registr_requeried_scripts(){ wp_register_script('comment-box-admin-script',$this->wpdevart_comment_plugin_url.'includes/javascript/admin-wpdevart-comment.js'); wp_register_style('comment-box-admin-style',$this->wpdevart_comment_plugin_url.'includes/style/admin-style.css'); } /*###################### Call base filters function ##################*/ public function call_base_filters(){ add_action( 'init', array($this,'registr_requeried_scripts') ); add_action( 'admin_head', array($this,'include_requeried_scripts') ); //for_upgrade add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this,'plugin_activate_sublink') ); } /*############ Activate Sublink function ################*/ public function plugin_activate_sublink($links){ $plugin_submenu_added_link=array(); $added_link = array( 'Upgrade to Pro', ); $plugin_submenu_added_link=array_merge( $plugin_submenu_added_link, $added_link ); $plugin_submenu_added_link=array_merge( $plugin_submenu_added_link, $links ); return $plugin_submenu_added_link; } /*############ Include requeried scripts function ################*/ public function include_requeried_scripts(){ wp_enqueue_script('wp-color-picker'); wp_enqueue_style( 'wp-color-picker' ); } } $wpdevart_comment_main = new wpdevart_comment_main(); ?> http://zshusovabrno.cz Europe/Prague Europe/Prague Europe/Prague 20171029T030000 +0200 +0100 CET 20180325T020000 +0100 +0200 CEST ai1ec-7395@zshusovabrno.cz 20180224T154701Z Události Rašínova (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); .col-md-2 { float:left; width: 16.6667%; } Share (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); .col-md-2 { float:left; width: 16.6667%; } 20180313T080000 20180313T123000 0 Jezírko – Mravencovo desatero – 2.B free