2013-03-26 23:29:55 -07:00
|
|
|
<?php
|
2016-06-10 13:33:51 -07:00
|
|
|
/**
|
2016-06-12 14:42:59 -07:00
|
|
|
* Plugin Name: WP-Discourse
|
|
|
|
* Description: Use Discourse as a community engine for your WordPress blog
|
2017-01-22 23:56:18 -08:00
|
|
|
* Version: 1.1.3
|
2016-09-13 13:27:59 -07:00
|
|
|
* Author: Discourse
|
2016-06-12 14:42:59 -07:00
|
|
|
* Text Domain: wp-discourse
|
|
|
|
* Domain Path: /languages
|
|
|
|
* Author URI: https://github.com/discourse/wp-discourse
|
|
|
|
* Plugin URI: https://github.com/discourse/wp-discourse
|
|
|
|
* GitHub Plugin URI: https://github.com/discourse/wp-discourse
|
|
|
|
*
|
|
|
|
* @package WPDiscourse
|
2016-06-10 13:33:51 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** Copyright 2014 Civilized Discourse Construction Kit, Inc (team@discourse.org)
|
2016-06-12 14:42:59 -07:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2016-06-10 13:33:51 -07:00
|
|
|
*/
|
2014-12-22 12:10:40 +08:00
|
|
|
|
2015-01-06 11:46:02 -06:00
|
|
|
define( 'WPDISCOURSE_PATH', plugin_dir_path( __FILE__ ) );
|
2016-02-20 13:10:38 -05:00
|
|
|
define( 'WPDISCOURSE_URL', plugins_url( '', __FILE__ ) );
|
2016-11-16 16:00:31 -08:00
|
|
|
define( 'MIN_WP_VERSION', '4.4' );
|
|
|
|
define( 'MIN_PHP_VERSION', '5.4.0' );
|
2017-01-22 23:56:18 -08:00
|
|
|
define( 'WPDISCOURSE_VERSION', '1.1.3' );
|
2015-01-06 11:46:02 -06:00
|
|
|
|
2016-06-12 10:32:35 -07:00
|
|
|
require_once( __DIR__ . '/lib/utilities.php' );
|
2016-09-24 19:04:50 -07:00
|
|
|
require_once( __DIR__ . '/templates/html-templates.php' );
|
|
|
|
require_once( __DIR__ . '/templates/template-functions.php' );
|
2015-01-05 10:37:43 -06:00
|
|
|
require_once( __DIR__ . '/lib/discourse.php' );
|
2016-05-18 13:01:42 -07:00
|
|
|
require_once( __DIR__ . '/lib/settings-validator.php' );
|
2017-02-06 23:42:54 -08:00
|
|
|
require_once( __DIR__ . '/admin/admin.php' );
|
2015-01-05 10:37:43 -06:00
|
|
|
require_once( __DIR__ . '/lib/sso.php' );
|
2016-07-16 12:10:04 -07:00
|
|
|
require_once( __DIR__ . '/lib/wordpress-email-verification.php' );
|
2016-06-11 14:55:59 -07:00
|
|
|
require_once( __DIR__ . '/lib/discourse-sso.php' );
|
2016-06-11 16:56:53 -07:00
|
|
|
require_once( __DIR__ . '/lib/discourse-publish.php' );
|
2016-06-11 18:20:00 -07:00
|
|
|
require_once( __DIR__ . '/lib/discourse-comment.php' );
|
2016-06-12 11:19:48 -07:00
|
|
|
require_once( __DIR__ . '/lib/meta-box.php' );
|
2015-01-05 10:50:15 -06:00
|
|
|
|
2016-05-18 13:01:42 -07:00
|
|
|
$discourse_settings_validator = new WPDiscourse\Validator\SettingsValidator();
|
2016-06-11 19:01:56 -07:00
|
|
|
$discourse = new WPDiscourse\Discourse\Discourse();
|
2016-06-12 14:47:50 -07:00
|
|
|
$discourse_admin = new WPDiscourse\DiscourseAdmin\DiscourseAdmin();
|
2016-06-12 14:42:59 -07:00
|
|
|
$discourse_publisher = new WPDiscourse\DiscoursePublish\DiscoursePublish();
|
|
|
|
$discourse_comment = new WPDiscourse\DiscourseComment\DiscourseComment();
|
2016-09-20 20:50:35 -07:00
|
|
|
$wordpress_email_verifier = new WPDiscourse\WordPressEmailVerification\WordPressEmailVerification( 'discourse_email_verification_key', 'discourse' );
|
2016-07-16 12:10:04 -07:00
|
|
|
$discourse_sso = new WPDiscourse\DiscourseSSO\DiscourseSSO( $wordpress_email_verifier );
|
2016-06-12 14:42:59 -07:00
|
|
|
$discourse_publish_metabox = new WPDiscourse\MetaBox\MetaBox();
|
2015-01-06 11:38:08 -06:00
|
|
|
|
|
|
|
register_activation_hook( __FILE__, array( $discourse, 'install' ) );
|