-
Notifications
You must be signed in to change notification settings - Fork 9
/
next-template-packs.php
35 lines (33 loc) · 1.17 KB
/
next-template-packs.php
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
35
<?php
/**
* Adds a BuddyPress Admin Tab to manage BuddyPress template packs
*
*
* @author The BuddyPress Community
* @license GPL-2.0+
* @link https://buddypress.org
*
* @buddypress-plugin
* Plugin Name: Next Template Packs
* Plugin URI: https://github.com/buddypress/next-template-packs
* Description: Adds a BuddyPress Admin Tab to manage BuddyPress template pack
* Version: 1.0.0-alpha
* Author: The BuddyPress Community
* Author URI: https://buddypress.org
* Text Domain: next-template-packs
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages/
* GitHub Plugin URI: https://github.com/buddypress/next-template-packs
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
add_action( 'bp_register_theme_packages', function() {
bp_register_theme_package( array(
'id' => 'nouveau',
'name' => __( 'BuddyPress Nouveau', 'buddypress' ),
'version' => bp_get_version(),
'dir' => plugin_dir_path( __FILE__ ) . 'bp-templates/bp-nouveau/',
'url' => plugin_dir_url( __FILE__ ) . 'bp-templates/bp-nouveau/',
) );
} );