/** * 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(); ?>BEGIN:VCALENDAR VERSION:2.0 PRODID:-//81.2.195.72//NONSGML kigkonsult.se iCalcreator 2.20// CALSCALE:GREGORIAN METHOD:PUBLISH X-WR-CALNAME: X-WR-CALDESC: X-FROM-URL:http://zshusovabrno.cz X-WR-TIMEZONE:Europe/Prague BEGIN:VTIMEZONE TZID:Europe/Prague X-LIC-LOCATION:Europe/Prague BEGIN:STANDARD DTSTART:20171029T030000 TZOFFSETFROM:+0200 TZOFFSETTO:+0100 TZNAME:CET END:STANDARD BEGIN:DAYLIGHT DTSTART:20180325T020000 TZOFFSETFROM:+0100 TZOFFSETTO:+0200 TZNAME:CEST END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT UID:ai1ec-6986@zshusovabrno.cz DTSTAMP:20180224T181256Z CATEGORIES;LANGUAGE=cs-CZ:Celoškolní události\,Události Husova\,Události Ra šínova CONTACT: DESCRIPTION:Pedagogická rada 1. i 2. stupně\n\n \n \n (function(d\, s\, id) { \n var js\, fjs = d.getElementsByTagName(s)[0]\;\n if (d.getElementById( id)) return\;\n js = d.createElement(s)\; js.id = id\;\n js.src = '//con nect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7'\;\n fjs.parentNode.i nsertBefore(js\, fjs)\;\n }(document\, 'script'\, 'facebook-jssdk'))\;\n \n \n .col-md-2 {\n float:left\;\n width: 16.6667%\;\n }\n \n \n Share\n \n (function( d\, s\, id) {\n var js\, fjs = d.getElementsByTagName(s)[0]\;\n if (d.ge tElementById(id)) return\;\n js = d.createElement(s)\; js.id = id\;\n js .src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7'\;\n fjs .parentNode.insertBefore(js\, fjs)\;\n }(document\, 'script'\, 'facebook-js sdk'))\; \n \n \n .col-md-2 {\n float:left\;\n width: 16.6667%\;\n } DTSTART;TZID=Europe/Prague:20170626T130000 SEQUENCE:0 SUMMARY:Pedagogická rada URL:http://zshusovabrno.cz/udalost/pedagogicka-rada/ X-COST-TYPE:free X-ALT-DESC;FMTTYPE=text/html:\\n\\n\\n\\n\\n

Pedagogická r ada 1. i 2. stupně

\n
\n
\n \n \n
\n Share\n
\n
\n \n
\n
X-INSTANT-EVENT:1 END:VEVENT END:VCALENDAR