-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
91 lines (64 loc) · 4 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
// Use custom-codes-here.php file for adding your custom JS and CSS codes.
require_once get_stylesheet_directory() . '/custom-codes-here.php';
// Main Features and Settings
require_once get_stylesheet_directory() . '/includes/settings-page.php';
require_once get_stylesheet_directory() . '/includes/other-settings.php';
require_once get_stylesheet_directory() . '/includes/security-page.php';
require_once get_stylesheet_directory() . '/includes/post-types-settings.php';
require_once get_stylesheet_directory() . '/includes/custom-field-settings.php';
require_once get_stylesheet_directory() . '/includes/taxonomy-settings.php';
require_once get_stylesheet_directory() . '/includes/login-settings.php';
require_once get_stylesheet_directory() . '/includes/block-editor-settings.php';
require_once get_stylesheet_directory() . '/includes/remove-wp-version.php';
require_once get_stylesheet_directory() . '/includes/disable-xmlrpc.php';
require_once get_stylesheet_directory() . '/includes/disable-file-editing.php';
require_once get_stylesheet_directory() . '/includes/remove-rss.php';
require_once get_stylesheet_directory() . '/includes/disable-wp-json-if-not-logged-in.php';
require_once get_stylesheet_directory() . '/includes/login-logo-change-url-change.php';
require_once get_stylesheet_directory() . '/includes/enqueue-scripts.php';
require_once get_stylesheet_directory() . '/includes/file-size-column-media.php';
require_once get_stylesheet_directory() . '/includes/404-logging.php';
require_once get_stylesheet_directory() . '/includes/search-loggins.php';
require_once get_stylesheet_directory() . '/includes/301-redirect.php';
require_once get_stylesheet_directory() . '/includes/smtp-settings.php';
require_once get_stylesheet_directory() . '/includes/mail-logging.php';
require_once get_stylesheet_directory() . '/includes/media-settings.php';
require_once get_stylesheet_directory() . '/includes/disable-emojis.php';
require_once get_stylesheet_directory() . '/includes/disable-gravatar.php';
require_once get_stylesheet_directory() . '/includes/editor-settings.php';
require_once get_stylesheet_directory() . '/includes/global-classes.php';
// Register Custom Dynamic Tags
require_once get_stylesheet_directory() . '/dynamic_data_tags/post-term-count.php';
require_once get_stylesheet_directory() . '/dynamic_data_tags/get-contextual-id.php';
require_once get_stylesheet_directory() . '/dynamic_data_tags/estimated-post-read-time.php';
require_once get_stylesheet_directory() . '/dynamic_data_tags/parent-link.php';
require_once get_stylesheet_directory() . '/dynamic_data_tags/user-author-fields.php';
// Utils
require_once get_stylesheet_directory() . '/includes/utils.php';
// Register Custom Bricks Builder Elements
add_action('init', function () {
$custom_html_css_script_file = get_stylesheet_directory() . '/custom_elements/custom-html-css-script.php';
if (file_exists($custom_html_css_script_file)) {
require_once $custom_html_css_script_file;
\Bricks\Elements::register_element($custom_html_css_script_file, 'custom-html-css-script', 'Custom_HTML_CSS_Script');
}
$custom_maps_file = get_stylesheet_directory() . '/custom_elements/custom-maps.php';
if (file_exists($custom_maps_file)) {
require_once $custom_maps_file;
\Bricks\Elements::register_element($custom_maps_file);
}
$options = get_option('snn_other_settings');
if (isset($options['enqueue_gsap']) && $options['enqueue_gsap']) {
$lottie_animation_file = get_stylesheet_directory() . '/custom_elements/lottie-animation.php';
if (file_exists($lottie_animation_file)) {
require_once $lottie_animation_file;
\Bricks\Elements::register_element($lottie_animation_file);
}
}
$gsap_animation_element = get_stylesheet_directory() . '/custom_elements/gsap-animations.php';
if (file_exists($gsap_animation_element)) {
require_once $gsap_animation_element;
\Bricks\Elements::register_element($gsap_animation_element);
}
}, 11);