-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzogo-punchin.php
executable file
·47 lines (33 loc) · 1.02 KB
/
zogo-punchin.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
<?php
/**
* Plugin Name: Zogo Punchin
* Author: Leon Rowland
* Author URI: http://leon.rowland.nl
* Version 0.0.1
*/
/////////////////
// DEFINITIONS //
/////////////////
define( 'ZOGO_PUNCHIN_ROOT', __DIR__ );
define( 'ZOGO_PUNCHIN_FOLDER', basename( ZOGO_PUNCHIN_ROOT ) );
define( 'ZOGO_PUNCHIN_URL', plugins_url( '', __FILE__ ) );
////////////////////////
// PRONAMIC FRAMEWORK //
////////////////////////
if ( ! class_exists( 'Pronamic_Base_Autoload' ) )
include( ZOGO_PUNCHIN_ROOT . '/pronamic-framework/Pronamic/Base/Autoload.php' );
$autoload = Pronamic_Base_Autoload::get_instance();
$autoload->register_components( array(
"Pronamic\\Base" => ZOGO_PUNCHIN_ROOT . '/pronamic-framework',
"Pronamic\\Helper" => ZOGO_PUNCHIN_ROOT . '/pronamic-framework'
) );
$autoload->register_folders( array(
ZOGO_PUNCHIN_ROOT . '/lib'
) );
$autoload->register();
//////////////////
// START PLUGIN //
//////////////////
new Zogo_Punchin_Plugin();
new Zogo_Punchin_Admin();
include( ZOGO_PUNCHIN_ROOT . '/inc/functions.php' );