2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-04 09:01:05 +08:00
wp-discourse/wp-discourse.php

59 lines
2.7 KiB
PHP
Raw Normal View History

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
2016-11-16 15:40:30 -08:00
* Version: 1.1.0
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
*/
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__ ) );
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' );
require_once( __DIR__ . '/lib/settings-validator.php' );
2015-01-05 10:37:43 -06:00
require_once( __DIR__ . '/lib/admin.php' );
require_once( __DIR__ . '/lib/sso.php' );
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' );
$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' );
$discourse_sso = new WPDiscourse\DiscourseSSO\DiscourseSSO( $wordpress_email_verifier );
2016-06-12 14:42:59 -07:00
$discourse_publish_metabox = new WPDiscourse\MetaBox\MetaBox();
register_activation_hook( __FILE__, array( $discourse, 'install' ) );