-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcoldbox-addon.php
More file actions
57 lines (48 loc) · 1.27 KB
/
coldbox-addon.php
File metadata and controls
57 lines (48 loc) · 1.27 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
57
<?php
/**
* Plugin Name: Coldbox Addons
* Plugin URI: https://coldbox.miruc.co/
* Description: The official addon plugin for the Coldbox theme.
* Author: Toshihiro Kanai
* Author URI: https://miruc.co/
* Text Domain: coldbox-addon
* Domain Path: /languages
* Version: 1.2.5
*
* @package Coldbox_Addon
*/
/**
* Whether or not addon plugin is active.
*
* @since 1.0.0
* @param bool $is_active Whether or not addon plugin is active.
* @return bool Return true so that says addon is active.
*/
function cd_addon_is_active_addon( $is_active ) {
$is_active = true;
return $is_active;
}
add_filter( 'cd_is_active_addon', 'cd_is_active_addon', 1 );
/**
* Register the language pack.
*
* @since 1.0.0
*/
function cd_addon_languages() {
load_plugin_textdomain( 'coldbox-addon' );
}
add_action( 'plugins_loaded', 'cd_addon_languages' );
// Load the Social Buttons part.
require_once 'inc/share-buttons.php';
// Load the customizer part.
require_once 'inc/customizer.php';
// Load the AMP part.
require_once 'inc/amp.php';
// Load the amp ads part.
require_once 'inc/amp-ads.php';
// Load ogp part.
require_once 'inc/ogp.php';
// Load meta part.
require_once 'inc/meta.php';
// Load general part.
require_once 'inc/general.php';