-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofiles.php
More file actions
56 lines (47 loc) · 1.75 KB
/
Copy pathprofiles.php
File metadata and controls
56 lines (47 loc) · 1.75 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* The Profiles Plugin
*
* Profiles is built on the solid foundation of the BuddyPress plugin.
* We decided to fork this project to provide a more generic Profiles
* plugin that could be easily extended for more specific use-cases.
*
* @package Profiles
* @suprofilesackage Main
*/
/**
* Plugin Name: Profiles
* Plugin URI: https://wordpress.org/plugins/profiles/
* Description: Profiles is built on the solid foundation of the Profiles plugin. We decided to fork this project to provide a more generic Profiles plugin that could be easily extended for more specific use-cases.
* Author: OpenTute+
* Author URI: http://opentuteplus.com/
* Version: 0.0.1
* Text Domain: profiles
* Domain Path: /profiles-languages/
* License: GPLv3 or later (license.txt)
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
// Assume you want to load from build
$profiles_loader = dirname( __FILE__ ) . '/build/profiles-loader.php';
// Load from source if no build exists
if ( ! file_exists( $profiles_loader ) || defined( 'Profiles_LOAD_SOURCE' ) ) {
$profiles_loader = dirname( __FILE__ ) . '/src/profiles-loader.php';
$subdir = 'src';
} else {
$subdir = 'build';
}
// Set source subdirectory
define( 'Profiles_SOURCE_SUBDIRECTORY', $subdir );
// Define overrides - only applicable to those running trunk
if ( ! defined( 'Profiles_PLUGIN_DIR' ) ) {
define( 'Profiles_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'Profiles_PLUGIN_URL' ) ) {
// Be nice to symlinked directories
define( 'Profiles_PLUGIN_URL', plugins_url( trailingslashit( basename( constant( 'Profiles_PLUGIN_DIR' ) ) ) ) );
}
// Include Profiles
include( $profiles_loader );
// Unset the loader, since it's loaded in global scope
unset( $profiles_loader );