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

55 lines
2.4 KiB
PHP
Raw Normal View History

2013-03-26 23:29:55 -07:00
<?php
2016-06-10 13:33:51 -07:00
/**
2013-03-26 23:29:55 -07:00
Plugin Name: WP-Discourse
Description: Use Discourse as a community engine for your WordPress blog
2016-05-18 15:44:52 -05:00
Version: 0.7.0
2013-08-16 11:50:40 -07:00
Author: Sam Saffron, Robin Ward
Text Domain: wp-discourse
Domain Path: /languages
2014-06-23 03:09:10 +05:30
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
2016-06-10 13:33:51 -07:00
@package WPDiscourse
*/
/** Copyright 2014 Civilized Discourse Construction Kit, Inc (team@discourse.org)
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
*/
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
require_once( __DIR__ . '/lib/html-templates.php' );
2015-01-05 10:37:43 -06:00
require_once( __DIR__ . '/lib/discourse.php' );
require_once( __DIR__ . '/lib/settings-validator.php' );
require_once( __DIR__ . '/lib/response-validator.php' );
2015-01-05 10:37:43 -06:00
require_once( __DIR__ . '/lib/admin.php' );
require_once( __DIR__ . '/lib/sso.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-10 15:53:12 -07:00
require_once( __DIR__ . '/lib/plugin-support/woocommerce-support.php' );
$discourse_response_validator = WPDiscourse\ResponseValidator\ResponseValidator::get_instance();
2016-06-11 15:55:42 -07:00
$woocommerce_support = new WPDiscourse\PluginSupport\WooCommerceSupport();
$discourse_settings_validator = new WPDiscourse\Validator\SettingsValidator();
2016-06-06 10:55:37 -07:00
$discourse = new Discourse( $discourse_response_validator );
$discourse_admin = new DiscourseAdmin( $discourse_response_validator );
2016-06-11 16:56:53 -07:00
$discourse_publisher = new WPDiscourse\DiscoursePublish\DiscoursePublish( $discourse_response_validator );
2016-06-11 15:55:42 -07:00
$discourse_sso = new WPDiscourse\DiscourseSSO\DiscourseSSO();
register_activation_hook( __FILE__, array( $discourse, 'install' ) );