-
Notifications
You must be signed in to change notification settings - Fork 6
/
functions.php
65 lines (51 loc) · 2.6 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
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
64
65
<?php
/**
* WP Presenter functions and definitions
*
* @package WP Presenter
*/
if ( ! isset( $content_width ) ) {
$content_width = 1400;/* pixels */
}
if ( ! function_exists( 'wp_presenter_setup' ) ):
function wp_presenter_setup() {
load_theme_textdomain( 'wp-presenter', get_template_directory() . '/lang' );
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
}
endif;
add_action( 'after_setup_theme', 'wp_presenter_setup' );
function wp_presenter_scripts() {
wp_enqueue_script( 'wp-presenter-head-js', get_template_directory_uri() . '/assets/reveal/lib/js/head.min.js', array(), '', true );
wp_enqueue_script( 'wp-presenter-core-js', get_template_directory_uri() . '/assets/reveal/js/reveal.js', array(), '', true );
wp_enqueue_script( 'wp-presenter-print-pdf', get_template_directory_uri() . '/assets/reveal/plugin/print-pdf/print-pdf.js', array( 1.0 ), '', false );
wp_enqueue_script( 'html5shiv', '//cdn.jsdelivr.net/html5shiv/3.7.2/html5shiv.js', array(), '3.7.2', false );
wp_enqueue_style( 'wp-presenter-core', get_template_directory_uri() . '/assets/reveal/css/reveal.css' );
wp_enqueue_style( 'wp-presenter-monokai', get_template_directory_uri() . '/assets/reveal/lib/css/monokai.css' );
//wp_enqueue_style( 'wp-presenter-pdf-styles', get_template_directory_uri() . '/assets/reveal/css/print/pdf.css' );
$theme = get_theme_mod( 'select_theme' );
if ( $theme ) :
wp_enqueue_style( 'wp-presenter-display-theme', get_template_directory_uri() . '/assets/reveal/css/theme/' . $theme . '.css' );
else :
wp_enqueue_style( 'wp-presenter-default-theme', get_template_directory_uri() . '/assets/reveal/css/theme/sky.css' );
endif;
}
add_action( 'wp_enqueue_scripts', 'wp_presenter_scripts' );
add_filter( 'script_loader_tag', function ( $tag, $handle ) {
if ( $handle === 'html5shiv' ) {
$tag = "<!--[if lt IE 9]>$tag<![endif]-->";
}
return $tag;
}, 10, 2 );
define( 'ACF_LITE', true );
require get_template_directory() . '/inc/custom-controls/kirki.php';
require get_template_directory() . '/inc/template-tags.php';
require get_template_directory() . '/inc/customizer.php';
require get_template_directory() . '/inc/reveal-settings.php';
require get_template_directory() . '/inc/post-type.php';
require get_template_directory() . '/inc/meta-functions.php';
require get_template_directory() . '/inc/dashboard-widgets.php';
require get_template_directory() . '/inc/acf/acf.php';
require get_template_directory() . '/inc/acf-image-select/acf-image-select.php';
require get_template_directory() . '/inc/acf-url-field/acf-website_field.php';
require get_template_directory() . '/inc/acf-fields.php';