-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgears.php
59 lines (49 loc) · 1.44 KB
/
gears.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* Plugin Name: Gears
* Plugin URI: http://themeforest.net/user/dunhakdis
* Description: Gears empowers BuddyPress to have more features like cover photos, social login, shortcodes, and more!
* Version: 4.2.3
* Author: Dunhakdis
* Author URI: http://themeforest.net/user/dunhakdis
* License: GPL2
*/
// ============== // ============== // ============== // ============== // ============== // ============== //
/**
* Define the namespace of our plugin.
*/
define( 'GEARS_APP_NAMESPACE', 'Gears' );
/**
* Define the current version of Gears.
*/
define( 'GEARS_APP_VERSION', '4.2.3' );
/**
* The plugin's absolute path.
*/
define( 'GEARS_APP_PATH', plugin_dir_path( __FILE__ ) );
/**
* Set GEARS_IS_UPDATE_DEBUG_MODE to false to force update from the custom source url.
*/
define( 'GEARS_IS_UPDATE_DEBUG_MODE', true );
/**
* Load the translation file.
*/
require_once GEARS_APP_PATH . 'locale.php';
/**
* Require updater file to check the version periodically.
* This is for required changes and updates.
*/
require_once GEARS_APP_PATH . 'update-check.php';
$update_checker = Puc_v4_Factory::buildUpdateChecker(
'https://repo.dunhakdis.com/gears/gears.json',
__FILE__, //Full path to the main plugin file or functions.php.
'gears'
);
/**
* Require the main file.
*/
require_once GEARS_APP_PATH . 'gears-engine.php';
/**
* Start the Gears class.
*/
$gears = new Gears();