forked from bootscore/bootscore-child
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
28 lines (20 loc) · 882 Bytes
/
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
<?php
// style and scripts
use function PHPSTORM_META\map;
add_action('wp_enqueue_scripts', 'bootscore_child_enqueue_styles');
function bootscore_child_enqueue_styles()
{
// style.css
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
// Compiled main.css
$modified_bootscoreChildCss = date('YmdHi', filemtime(get_stylesheet_directory() . '/css/main.css'));
wp_enqueue_style('main', get_stylesheet_directory_uri() . '/css/main.css', array('parent-style'), $modified_bootscoreChildCss);
// custom.js
wp_enqueue_script('custom-js', get_stylesheet_directory_uri() . '/js/custom.js', false, '', true);
}
// Constants
define('ENGAGE_BASE_URL', 'https://engage-api.campuslabs.com/api/v3.0');
define('ENGAGE_PAGE_SIZE', '50');
// Import other functions
get_template_part('event-options', '');
get_template_part('shortcode-functions', '');