-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgenesis-luxe.php
163 lines (162 loc) · 4.52 KB
/
genesis-luxe.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
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
152
153
154
155
156
157
158
159
160
161
162
163
<?php
/*
Plugin Name: Genesis Luxe Collection
Plugin URI: genesis-luxe
Description: The Luxe Collection for Genesis Blocks
Version: 0.1
Author: Rob Stinson
Author URI: https://studiopress.com
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
function genesis_luxe_collection() {
// Ensure a proper version of Genesis Blocks is active before continuing.
if ( ! function_exists( 'genesis_blocks_register_layout_component' ) ) {
return;
}
// Register the Luxe Home Layout
genesis_blocks_register_layout_component(
[
'type' => 'layout',
'key' => 'genesis_luxe_home',
'name' => 'Luxe Home Page',
'content' => require 'layouts/home.php',
'category' => [
'Text',
],
'keywords' => [
'Home',
],
'image' => plugin_dir_url(__FILE__) . 'assets/luxe_layout_thumbnail_home.png',
'collection' => [
'slug' => 'luxe',
'label' => 'Luxe Collection',
'thumbnail' => plugin_dir_url(__FILE__) . 'assets/luxe_collection_thumbnail.png',
],
]
);
// Register the Luxe Hero Section
genesis_blocks_register_layout_component(
[
'type' => 'section',
'key' => 'genesis_luxe_hero',
'name' => 'Luxe Hero',
'content' => require 'sections/hero.php',
'category' => [
'Text',
],
'keywords' => [
'Hero',
'Photo',
'Header',
],
'image' => plugin_dir_url(__FILE__) . 'assets/luxe_section_thumbnail_hero.png',
'collection' => [
'slug' => 'luxe',
'label' => 'Luxe Collection',
],
]
);
// Register the Luxe Services Section
genesis_blocks_register_layout_component(
[
'type' => 'section',
'key' => 'genesis_luxe_services',
'name' => 'Luxe Services',
'content' => require 'sections/services.php',
'category' => [
'Text',
],
'keywords' => [
'Services',
],
'image' => plugin_dir_url(__FILE__) . 'assets/luxe_section_thumbnail_services.png',
'collection' => [
'slug' => 'luxe',
'label' => 'Luxe Collection',
],
]
);
// Register the Luxe About 1 Section
genesis_blocks_register_layout_component(
[
'type' => 'section',
'key' => 'genesis_luxe_about_1',
'name' => 'Luxe About 1',
'content' => require 'sections/about-1.php',
'category' => [
'Text',
],
'keywords' => [
'About',
],
'image' => plugin_dir_url(__FILE__) . 'assets/luxe_section_thumbnail_about_1.png',
'collection' => [
'slug' => 'luxe',
'label' => 'Luxe Collection',
],
]
);
// Register the Luxe About 2 Section
genesis_blocks_register_layout_component(
[
'type' => 'section',
'key' => 'genesis_luxe_about_2',
'name' => 'Luxe About 2',
'content' => require 'sections/about-2.php',
'category' => [
'Text',
],
'keywords' => [
'About',
],
'image' => plugin_dir_url(__FILE__) . 'assets/luxe_section_thumbnail_about_2.png',
'collection' => [
'slug' => 'luxe',
'label' => 'Luxe Collection',
],
]
);
// Register the Luxe Process Section
genesis_blocks_register_layout_component(
[
'type' => 'section',
'key' => 'genesis_luxe_process',
'name' => 'Luxe Process',
'content' => require 'sections/process.php',
'category' => [
'Text',
],
'keywords' => [
'Process',
'Steps',
],
'image' => plugin_dir_url(__FILE__) . 'assets/luxe_section_thumbnail_process.png',
'collection' => [
'slug' => 'luxe',
'label' => 'Luxe Collection',
],
]
);
// Register the Luxe Testimonials Section
genesis_blocks_register_layout_component(
[
'type' => 'section',
'key' => 'genesis_luxe_testimonials',
'name' => 'Luxe Testimonials',
'content' => require 'sections/testimonials.php',
'category' => [
'Text',
],
'keywords' => [
'Testimonials',
],
'image' => plugin_dir_url(__FILE__) . 'assets/luxe_section_thumbnail_testimonials.png',
'collection' => [
'slug' => 'luxe',
'label' => 'Luxe Collection',
],
]
);
}
add_action( 'plugins_loaded', 'genesis_luxe_collection', 12 );