-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
70 lines (50 loc) · 2.64 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
66
67
68
69
70
<?php
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit;
}
/*
* Define Variables
* --------------------------------------------
*/
$parent_theme_dir_uri = trailingslashit(get_template_directory_uri());
$child_theme_dir_uri = trailingslashit(get_stylesheet_directory_uri());
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:
if (!function_exists('enqueue_parent_ftheme_files')) {
function enqueue_parent_ftheme_files()
{
wp_enqueue_style('chld_thm_cfg_parent', trailingslashit(get_template_directory_uri()) . 'style.css', array());
}
}
add_action('wp_enqueue_scripts', 'enqueue_parent_ftheme_files', 10);
//if (!function_exists('child_theme_configurator_css')) {
//
// function child_theme_configurator_css()
// {
// wp_enqueue_style('chld_thm_cfg_separate', trailingslashit(get_stylesheet_directory_uri()) . 'ctc-style.css', array('chld_thm_cfg_parent', 'divi-style'));
// }
//
//}
//add_action('wp_enqueue_scripts', 'child_theme_configurator_css', 20);
/*
* ************************************************************
* Enqueue Assets
* */
function enqueue_child_theme_files()
{
wp_enqueue_style('app.css', trailingslashit(get_stylesheet_directory_uri()) . "/dist/app.css");
// wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js', array(), null, true);
wp_enqueue_style('font-awesome-4', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
// wp_enqueue_script('magnific-popup-script', 'https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.js', array('jquery'), null, true);
// wp_enqueue_script('magnific-popup-custom-script', trailingslashit(get_stylesheet_directory_uri()) . '/assets/js/magnific-popup.custom.js', array('jquery'), null, true);
// wp_enqueue_style('magnific-popup-style', 'https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css');
// wp_enqueue_script('swiper-script', 'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.1/js/swiper.min.js', array(), null, true);
// wp_enqueue_script('swiper-custom-script', trailingslashit(get_stylesheet_directory_uri()) . '/assets/js/swiper.custom.js', array('jquery'), null, true);
// wp_enqueue_style('swiper-style', 'https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.1/css/swiper.min.css');
wp_enqueue_script('app.js', trailingslashit(get_stylesheet_directory_uri()) . '/dist/app.js', array(), '1.0.0', true);
}
add_action('wp_enqueue_scripts', 'enqueue_child_theme_files');
include_once "includes/shortcodes.php";
include_once "includes/image-sizes.php";
include_once "includes/css-generator.php";