-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpootlepress-bbpress.php
More file actions
34 lines (29 loc) · 1.17 KB
/
pootlepress-bbpress.php
File metadata and controls
34 lines (29 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/*
Plugin Name: Canvas Extension - BBPress
Plugin URI: http://pootlepress.com/
Description: An extension for WooThemes Canvas that make BBPress works with Canvas
Version: 1.0
Author: PootlePress
Author URI: http://pootlepress.com/
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
require_once( 'pootlepress-bbpress-functions.php' );
require_once( 'classes/class-pootlepress-bbpress.php' );
require_once( 'classes/class-pootlepress-updater.php');
$GLOBALS['pootlepress_bbpress'] = new Pootlepress_BBPress( __FILE__ );
$GLOBALS['pootlepress_bbpress']->version = '1.0';
add_action('init', 'pp_bbp_updater');
function pp_bbp_updater()
{
if (!function_exists('get_plugin_data')) {
include(ABSPATH . 'wp-admin/includes/plugin.php');
}
$data = get_plugin_data(__FILE__);
$wptuts_plugin_current_version = $data['Version'];
$wptuts_plugin_remote_path = 'http://www.pootlepress.com/?updater=1';
$wptuts_plugin_slug = plugin_basename(__FILE__);
new Pootlepress_Updater ($wptuts_plugin_current_version, $wptuts_plugin_remote_path, $wptuts_plugin_slug);
}
?>