forked from livecanvas-team/picostrap5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
62 lines (48 loc) · 3.15 KB
/
Copy pathfunctions.php
File metadata and controls
62 lines (48 loc) · 3.15 KB
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
<?php
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
$picostrap_includes = array(
'/theme-settings.php', // Initialize theme default settings.
'/setup.php', // Theme setup and custom theme supports.
'/widgets.php', // Register widget area.
'/clean-head.php', // Eliminates useless meta tags, emojis, etc
'/enqueues.php', // Enqueue scripts and styles.
'/template-tags.php', // Custom template tags for this theme.
'/pagination.php', // Custom pagination for this theme.
//'/hooks.php', // Custom hooks.
//'/extras.php', // Custom functions that act independently of the theme templates.
'/custom-comments.php', // Custom Comments file.
//'/jetpack.php', // Load Jetpack compatibility file.
'/bootstrap-navwalker.php', // Load custom WordPress nav walker.
'/woocommerce.php', // Load WooCommerce functions.
'/editor.php', // Load Editor functions.
'/customizer-assets/customizer.php', //Defines Customizer options
'/picosass-compiler-integration.php', //To interface the Customizer with the SCSS js compiler
//'/scssphp-legacy-compiler-integration.php', //To interface the Customizer with the SCSS php compiler
'/options-page.php', // Load theme options page.
'/content-filtering.php', //for LC compatibility when shutting down plugin
'/windpress-support.php', //for deep integration with the WindPress plugin, for optional use of TailWind
'/livecanvas-config.php' //for deep integration with the LiveCanvas plugi, setup LC configuration
);
foreach ( $picostrap_includes as $file ) {
require_once get_template_directory() . '/inc' . $file;
}
//PURELY OPT-IN FEATURES ////////////////
//OPTIONAL: DISABLE WORDPRESS COMMENTS
if (get_theme_mod("singlepost_disable_comments") ) require_once locate_template('/inc/opt-in/disable-comments.php');
//OPTIONAL: BACK TO TOP
if (get_theme_mod("enable_back_to_top") ) require_once locate_template('/inc/opt-in/back-to-top.php');
//OPTIONAL: OPEN MENU ON HOVER
if (get_theme_mod("enable_open_menu_on_hover") ) require_once locate_template('/inc/opt-in/open-menu-on-hover.php');
//OPTIONAL: LIGHTBOX
if (get_theme_mod("enable_lightbox") ) require_once locate_template('/inc/opt-in/lightbox.php');
//OPTIONAL: TOOLTIPS
if (get_theme_mod("enable_tooltips") ) require_once locate_template('/inc/opt-in/initialize-tooltips.php');
//OPTIONAL: DETECT PAGE SCROLL
if (get_theme_mod("enable_detect_page_scroll") ) require_once locate_template('/inc/opt-in/detect-page-scroll.php');
//OPTIONAL: DISABLE GUTENBERG
if (get_theme_mod("disable_gutenberg") ) require_once locate_template('/inc/opt-in/disable-gutenberg.php');
//OPTIONAL: DISABLE WIDGETS BLOCK EDITOR
if (get_theme_mod("disable_widgets_block_editor") ) require_once locate_template('/inc/opt-in/disable-widgets-block-editor.php');
//OPTIONAL: DISABLE XML/RPC
if (get_theme_mod("disable_xml_rpc") ) require_once locate_template('/inc/opt-in/disable-xml-rpc.php');