. * * @category Core * @package LFC * @author Joel James * @license http://www.gnu.org/licenses/ GNU General Public License * @link https://github.com/Joel-James/lazy-facebook-comments/ */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die( 'Damn it.! Dude you are looking for what?' ); } if ( ! class_exists( 'Lazy_Facebook_Comments' ) ) { // Constants array $constants = array( 'LFC_PATH' => plugins_url( '', __FILE__ ), 'LFC_PLUGIN_DIR' => dirname( __FILE__ ), 'LFC_SETTINGS_PAGE' => admin_url( 'admin.php?page=lfc-settings' ), 'LFC_VERSION' => '2.0.4', 'LFC_ADMIN_PERMISSION' => 'manage_options' ); foreach ( $constants as $constant => $value ) { // Set constants if not set already if ( ! defined( $constant ) ) { define( $constant, $value ); } } /** * The code that runs during plugin activation. * * @return void */ function lfc_activate_plugin() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-lfc-activator.php'; LFC_Activator::activate(); } // Run activation hook register_activation_hook( __FILE__, 'lfc_activate_plugin' ); // The core plugin class that is used to define // dashboard-specific hooks, and public-facing site hooks. require_once plugin_dir_path( __FILE__ ) . 'includes/class-lazy-facebook-comments.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 2.0.0 * * @return void */ function lfc_run_plugin() { $plugin = new Lazy_Facebook_Comments(); $plugin->run(); } lfc_run_plugin(); } //*** Thank you for your interest in Lazy FB Comments - Developed and managed by Joel James ***//