-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathacid.php
63 lines (49 loc) · 1.72 KB
/
acid.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
/**
*
*
* @version 0.0.2
* @author Bilal Hassan
* @copyright (c) 2018, Smartcat Solutions Inc
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
*
*
*
*
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class AcidConfig {
const THEME_NAME = 'Acid';
const THEME_SLUG = 'acid';
static $url = null;
public static function set_url( $url ) {
self::$url = $url;
}
public static function get_url() {
return self::$url . 'Acid/';
}
public static function assets_url() {
return self::get_url() . 'assets/';
}
}
require_once dirname( __FILE__ ) . '/controls/RadioImage.php';
require_once dirname( __FILE__ ) . '/controls/RadioToggle.php';
require_once dirname( __FILE__ ) . '/controls/Range.php';
require_once dirname( __FILE__ ) . '/controls/Toggle.php';
require_once dirname( __FILE__ ) . '/controls/Sortable.php';
require_once dirname( __FILE__ ) . '/controls/ColorSelect.php';
require_once dirname( __FILE__ ) . '/controls/HtmlEditor.php';
require_once dirname( __FILE__ ) . '/includes/AcidComponent.php';
require_once dirname( __FILE__ ) . '/includes/AcidPanel.php';
require_once dirname( __FILE__ ) . '/includes/AcidSection.php';
require_once dirname( __FILE__ ) . '/includes/AcidOption.php';
require_once dirname( __FILE__ ) . '/includes/AcidCustomizer.php';
require_once dirname( __FILE__ ) . '/includes/AcidWidget.php';
require_once dirname( __FILE__ ) . '/includes/functions-sanitization.php';
require_once dirname( __FILE__ ) . '/includes/functions-option.php';
function acid_instance( $url ) {
AcidConfig::set_url( $url );
return new AcidCustomizer( AcidConfig::THEME_NAME, AcidConfig::THEME_SLUG );
}