-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
151 lines (130 loc) · 5.95 KB
/
Copy pathfunctions.php
File metadata and controls
151 lines (130 loc) · 5.95 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php
/**
* LightSpeed Theme functions and definitions.
*
* @package ls-theme
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/** Loads effect file */
require get_template_directory() . '/inc/animations.php';
/** Loads GSAP integration file */
require get_template_directory() . '/inc/gsap.php';
/** Loads the presets integration files */
require get_template_directory() . '/inc/presets.php';
/** Loads site header assets */
require get_template_directory() . '/inc/header.php';
/** Loads Portfolio card platform-colour swapping */
require get_template_directory() . '/inc/portfolio-card-colors.php';
/** Loads Blog card category-colour swapping */
require get_template_directory() . '/inc/blog-card-colors.php';
/** Loads breadcrumb separator customisation */
require get_template_directory() . '/inc/breadcrumbs.php';
/** Loads Homepage Featured Work query filtering */
require get_template_directory() . '/inc/featured-work-query.php';
/** Loads Work Single hero "View site" button resolution */
require get_template_directory() . '/inc/work-single-hero.php';
/** Loads Blog Single "Related Reading" query filtering */
require get_template_directory() . '/inc/blog-single-related-query.php';
/** Loads bare phase-slug (e.g. /discover/) redirects to their real nested URL */
require get_template_directory() . '/inc/phase-page-redirects.php';
/** Loads the service-slug => phase-slug map used to recolour the 14 individual service pages */
require get_template_directory() . '/inc/service-phase-map.php';
/** Loads the query filter that points the service pages' case-study section at the project tagged with that service */
require get_template_directory() . '/inc/service-case-study-query.php';
/** Loads the phase-page body class used to drive the Journey Phases nav's active state */
require get_template_directory() . '/inc/phase-page-body-class.php';
/**
* Sets up theme supports.
*/
function ls_theme_setup() {
// Make theme available for translation.
load_theme_textdomain( 'ls-theme', get_template_directory() . '/languages' );
// Add support for block styles.
add_theme_support( 'wp-block-styles' );
// Add support for editor styles.
add_theme_support( 'editor-styles' );
// Required for core/site-logo to render (used by the mobile menu's logo row); without this,
// the block outputs nothing even when a Site Logo is set via the Site Editor.
add_theme_support( 'custom-logo' );
// Enqueue editor styles. These must be listed here (not just enqueued via
// enqueue_block_editor_assets) so the interactive-control CSS — the collapsed search field,
// the icon-toggle button shell — reliably reaches the Site Editor's iframed canvas. Every
// structural bundle is listed unconditionally here (not just the ones with a front-end
// condition) since the Site Editor's iframed canvas can be editing any page or pattern
// regardless of which template it's viewed through.
add_editor_style( 'style.css' );
add_editor_style( 'assets/css/animations.css' );
add_editor_style( 'assets/css/image-captions.css' );
add_editor_style( 'assets/css/taxonomy-filter.css' );
add_editor_style( 'assets/css/work-project-card.css' );
add_editor_style( 'assets/css/work-archive-sections.css' );
add_editor_style( 'assets/css/card-shells.css' );
add_editor_style( 'assets/css/cta-buttons.css' );
add_editor_style( 'assets/css/home-hero.css' );
add_editor_style( 'assets/css/phase-hero.css' );
add_editor_style( 'assets/css/services-hero.css' );
add_editor_style( 'assets/css/services-linked-decisions.css' );
add_editor_style( 'assets/css/services-service-clusters.css' );
add_editor_style( 'assets/css/services-service-tiles.css' );
add_editor_style( 'assets/css/services-delivery-numbers.css' );
add_editor_style( 'assets/css/corner-glow.css' );
add_editor_style( 'assets/css/work-hero.css' );
add_editor_style( 'assets/css/work-single-hero.css' );
add_editor_style( 'assets/css/blog-hero.css' );
add_editor_style( 'assets/css/blog-all-articles.css' );
add_editor_style( 'assets/css/blog-writing-cta.css' );
add_editor_style( 'assets/css/faq.css' );
add_editor_style( 'assets/css/links.css' );
add_editor_style( 'assets/css/button-secondary.css' );
add_editor_style( 'assets/css/button-phase.css' );
add_editor_style( 'assets/css/phase-journey-nav.css' );
add_editor_style( 'assets/css/tick-phase.css' );
add_editor_style( 'assets/css/phase-services-in-phase.css' );
add_editor_style( 'assets/css/phase-cta.css' );
add_editor_style( 'assets/css/phase-delivery-numbers.css' );
add_editor_style( 'assets/css/phase-common-services.css' );
add_editor_style( 'assets/css/phase-support-focus.css' );
add_editor_style( 'assets/css/phase-faq.css' );
add_editor_style( 'assets/css/phase-where-to-go-next.css' );
add_editor_style( 'assets/css/featured-work.css' );
add_editor_style( 'assets/css/where-to-fit.css' );
add_editor_style( 'assets/css/homepage-cta.css' );
add_editor_style( 'assets/css/stats-bar.css' );
add_editor_style( 'assets/css/homepage-card-rows.css' );
add_editor_style( 'assets/css/homepage-why-lightspeed.css' );
add_editor_style( 'assets/css/search-results.css' );
add_editor_style( 'assets/css/search-hero.css' );
}
add_action( 'after_setup_theme', 'ls_theme_setup' );
/**
* Enqueues front-end assets.
*
* Add CSS and JS files to assets/css/ and assets/js/ and uncomment
* the relevant lines below once those files exist.
*/
function ls_theme_enqueue_assets() {
/*
* Main stylesheet (the theme header stylesheet is loaded automatically).
* Uncomment when assets/css/main.css exists:
*
* wp_enqueue_style(
* 'ls-theme-main',
* get_template_directory_uri() . '/assets/css/main.css',
* array(),
* wp_get_theme()->get( 'Version' )
* );
*
* Main JavaScript. Uncomment when assets/js/main.js exists:
*
* wp_enqueue_script(
* 'ls-theme-main',
* get_template_directory_uri() . '/assets/js/main.js',
* array(),
* wp_get_theme()->get( 'Version' ),
* true
* );
*/
}
add_action( 'wp_enqueue_scripts', 'ls_theme_enqueue_assets' );