-
Notifications
You must be signed in to change notification settings - Fork 15
/
functions.php
executable file
·38 lines (26 loc) · 1.34 KB
/
functions.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
<?php
/**
* Customizer Library Demo functions and definitions
*
* @package Customizer Library Demo
*/
// Default styles
function demo_styles() {
wp_enqueue_style( 'demo-style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'demo_styles' );
if ( file_exists ( get_template_directory() . '/inc/customizer-library/customizer-library.php' ) ) :
// Helper library for the theme customizer.
require get_template_directory() . '/inc/customizer-library/customizer-library.php';
// Define options for the theme customizer.
require get_template_directory() . '/inc/customizer-options.php';
// Output inline styles based on theme customizer selections.
require get_template_directory() . '/inc/styles.php';
// Additional filters and actions based on theme customizer selections.
require get_template_directory() . '/inc/mods.php';
else :
add_action( 'customizer-library-notices', 'demo_customizer_library_notice' );
endif;
function demo_customizer_library_notice() {
_e( '<p>Notice: The "customizer-library" sub-module is not loaded.</p><p>Please add it to the "inc" directory: <a href="https://github.com/devinsays/customizer-library">https://github.com/devinsays/customizer-library</a>.</p><p>The demo, including submodules, can also be installed via Git: "git clone --recursive [email protected]:devinsays/customizer-library-demo".</p>', 'demo' );
}