-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenergie-ampel-plugin.php
63 lines (52 loc) · 1.14 KB
/
energie-ampel-plugin.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
60
61
62
63
<?php
/*
Plugin Name: Quartiersplattform Energie Ampel
Version: 0.2
Description: Energie Ampel der WSW für die Quartiersplattformen in Wuppertal
Author: studio arrenberg
Author URI: https://github.com/studio-arrenberg
Plugin URI: https://github.com/studio-arrenberg/energie-ampel-plugin
Requires PHP: 7.0
Text Domain: energie-ampel
Function: Energie_Ampel
*/
// Exit if accessed directly
if (!defined( 'ABSPATH')) {
exit;
}
if(!class_exists('EnergieAmpelInit')):
Class EnergieAmpelInit {
/**
* __construct
*
* A dummy constructor to ensure Acf Onyx Poll is only setup once.
* Set some constants
*
* @param void
* @return void
*/
function __construct() {
// define('Energie_Ampel', '1.0');
// define('Energie_Ampel', __FILE__);
define('Energie_Ampel', plugin_dir_path(__FILE__));
}
/**
* initialize
*
* Sets up the Onyx Poll plugin.
*
* @param void
* @return void
*/
public function initialize() {
// Load Content
require_once(__DIR__ . '/energie-ampel-content.php');
}
}
/**
* Instantiate Onyx Poll
*/
$energie_ampel = new EnergieAmpelInit();
$energie_ampel->initialize();
endif; // class_exists check
?>