PluginProbe
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs / 2.6.6
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs v2.6.6
5.0.1 4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 All 39 releases
blockspare / inc / template-library / blocks / pages / class-pages.php

class-pages.php in BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs 2.6.6, at inc/template-library/blocks/pages/class-pages.php

397 lines 17.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5
6 if ( ! class_exists( 'Blockspare_Page_Template_Block' ) ) {
7
8 class Blockspare_Page_Template_Block extends Blockspare_Import_Block_Base{
9 public static function get_instance() {
10
11 static $instance = null;
12 if ( null === $instance ) {
13 $instance = new self();
14 }
15 return $instance;
16
17 }
18 public function add_block_template_library( $blocks_lists ){
19
20 $block_library_list = array(
21 array(
22 'type' => 'page',
23 'item' => ['Frontpage','Agency'],
24 'key' => 'bs_page_1',
25 'imagePath'=>'pages',
26 'name' => esc_html__( 'Agency Home', 'blockspare' ),
27 'blockLink'=>"https://blockspare.com/demo/default/agency/",
28 'content' => BLOCKSPARE_PRO_PATH,
29 ),
30 array(
31 'type' => 'page',
32 'item' => ['About Us','Agency'],
33 'key' => 'bs_page_2',
34 'imagePath'=>'pages',
35 'name' => esc_html__( 'Agency About Us', 'blockspare' ),
36 'blockLink'=>"https://blockspare.com/demo/default/agency/about-us/",
37 'content' => BLOCKSPARE_PRO_PATH,
38 ),
39 array(
40 'type' => 'page',
41 'item' => ['Services','Agency'],
42 'key' => 'bs_page_3',
43 'imagePath'=>'pages',
44 'name' => esc_html__( 'Agency Services', 'blockspare' ),
45 'blockLink'=>"https://blockspare.com/demo/default/agency/services/",
46 'content' => BLOCKSPARE_PRO_PATH,
47 ),
48 array(
49 'type' => 'page',
50 'item' => ['Contact Us','Agency'],
51 'key' => 'bs_page_4',
52 'imagePath'=>'pages',
53 'name' => esc_html__( 'Agency Contact Us', 'blockspare' ),
54 'blockLink'=>"https://blockspare.com/demo/default/agency/contact-us/",
55 'content' => BLOCKSPARE_PRO_PATH,
56 ),
57 array(
58 'type' => 'page',
59 'item' => ['Frontpage','Lawyer'],
60 'key' => 'bs_page_5',
61 'imagePath'=>'pages',
62 'name' => esc_html__( 'Lawyer Home', 'blockspare' ),
63 'blockLink'=>"https://blockspare.com/demo/default/lawyer/",
64 'content' => BLOCKSPARE_PRO_PATH,
65 ),
66 array(
67 'type' => 'page',
68 'item' => ['Contact Us','Lawyer'],
69 'key' => 'bs_page_6',
70 'imagePath'=>'pages',
71 'name' => esc_html__( 'Lawyer Contact Us', 'blockspare' ),
72 'blockLink'=>"https://blockspare.com/demo/default/lawyer/contact-us-2/",
73 'content' => BLOCKSPARE_PRO_PATH,
74 ),
75 array(
76 'type' => 'page',
77 'item' => ['Frontpage','Restaurant'],
78 'key' => 'bs_page_7',
79 'imagePath'=>'pages',
80 'name' => esc_html__( 'Restaurant Home', 'blockspare' ),
81 'blockLink'=>"https://blockspare.com/demo/default/restaurant/",
82 'content' => BLOCKSPARE_PRO_PATH,
83 ),
84 array(
85 'type' => 'page',
86 'item' => ['Contact Us','Restaurant'],
87 'key' => 'bs_page_8',
88 'imagePath'=>'pages',
89 'name' => esc_html__( 'Restaurant Contact Us', 'blockspare' ),
90 'blockLink'=>"https://blockspare.com/demo/default/restaurant/contact-us/",
91 'content' => BLOCKSPARE_PRO_PATH,
92 ),
93 array(
94 'type' => 'page',
95 'item' => ['About Us','Restaurant'],
96 'key' => 'bs_page_9',
97 'imagePath'=>'pages',
98 'name' => esc_html__( 'Restaurant About Us', 'blockspare' ),
99 'blockLink'=>"https://blockspare.com/demo/default/restaurant/about-us-2/",
100 'content' => BLOCKSPARE_PRO_PATH,
101 ),
102 array(
103 'type' => 'page',
104 'item' => ['Menu','Restaurant'],
105 'key' => 'bs_page_10',
106 'imagePath'=>'pages',
107 'name' => esc_html__( 'Restaurant Menu', 'blockspare' ),
108 'blockLink'=>"https://blockspare.com/demo/default/restaurant/about-us/",
109 'content' => BLOCKSPARE_PRO_PATH,
110 ),
111 array(
112 'type' => 'page',
113 'item' => ['Services','Restaurant'],
114 'key' => 'bs_page_11',
115 'imagePath'=>'pages',
116 'name' => esc_html__( 'Restaurant Food Website', 'blockspare' ),
117 'blockLink'=>"https://blockspare.com/demo/default/restaurant/food-website/",
118 'content' => BLOCKSPARE_PRO_PATH,
119 ),
120 array(
121 'type' => 'page',
122 'item' => ['Frontpage','Apps'],
123 'key' => 'bs_page_12',
124 'imagePath'=>'pages',
125 'name' => esc_html__( 'Apps Home', 'blockspare' ),
126 'blockLink'=>"https://blockspare.com/demo/default/app/",
127 'content' => BLOCKSPARE_PRO_PATH,
128 ),
129 array(
130 'type' => 'page',
131 'item' => ['Frontpage','Education'],
132 'key' => 'bs_page_13',
133 'imagePath'=>'pages',
134 'name' => esc_html__( 'Education Home', 'blockspare' ),
135 'blockLink'=>"https://blockspare.com/demo/default/education/",
136 'content' => BLOCKSPARE_PRO_PATH,
137 ),
138 array(
139 'type' => 'page',
140 'item' => ['About Us','Education'],
141 'key' => 'bs_page_14',
142 'imagePath'=>'pages',
143 'name' => esc_html__( 'Education About Us', 'blockspare' ),
144 'blockLink'=>"https://blockspare.com/demo/default/education/about-us/",
145 'content' => BLOCKSPARE_PRO_PATH,
146 ),
147 array(
148 'type' => 'page',
149 'item' => ['Services','Education'],
150 'key' => 'bs_page_15',
151 'imagePath'=>'pages',
152 'name' => esc_html__( 'Education Courses', 'blockspare' ),
153 'blockLink'=>"https://blockspare.com/demo/default/education/serivces/",
154 'content' => BLOCKSPARE_PRO_PATH,
155 ),
156 array(
157 'type' => 'page',
158 'item' => ['Frontpage','Fitness'],
159 'key' => 'bs_page_16',
160 'imagePath'=>'pages',
161 'name' => esc_html__( 'Fitness Home', 'blockspare' ),
162 'blockLink'=>"https://blockspare.com/demo/default/fitness/",
163 'content' => BLOCKSPARE_PRO_PATH,
164 ),
165 array(
166 'type' => 'page',
167 'item' => ['Pricing Table','Fitness'],
168 'key' => 'bs_page_17',
169 'imagePath'=>'pages',
170 'name' => esc_html__( 'Fitness Pricing Table', 'blockspare' ),
171 'blockLink'=>"https://blockspare.com/demo/default/fitness/pricing-table/",
172 'content' => BLOCKSPARE_PRO_PATH,
173 ),
174 array(
175 'type' => 'page',
176 'item' => ['About Us','Fitness'],
177 'key' => 'bs_page_18',
178 'imagePath'=>'pages',
179 'name' => esc_html__( 'Fitness About Us', 'blockspare' ),
180 'blockLink'=>"https://blockspare.com/demo/default/fitness/about-us/",
181 'content' => BLOCKSPARE_PRO_PATH,
182 ),
183 array(
184 'type' => 'page',
185 'item' => ['Services','Fitness'],
186 'key' => 'bs_page_19',
187 'imagePath'=>'pages',
188 'name' => esc_html__( 'Fitness Services', 'blockspare' ),
189 'blockLink'=>"https://blockspare.com/demo/default/fitness/services/",
190 'content' => BLOCKSPARE_PRO_PATH,
191 ),
192 array(
193 'type' => 'page',
194 'item' => ['Testimonial','Fitness'],
195 'key' => 'bs_page_20',
196 'imagePath'=>'pages',
197 'name' => esc_html__( 'Fitness Team', 'blockspare' ),
198 'blockLink'=>"https://blockspare.com/demo/default/fitness/team/",
199 'content' => BLOCKSPARE_PRO_PATH,
200 ),
201 array(
202 'type' => 'page',
203 'item' => ['Frontpage','Real Estate'],
204 'key' => 'bs_page_21',
205 'imagePath'=>'pages',
206 'name' => esc_html__( 'Real Estate Home', 'blockspare' ),
207 'blockLink'=>"https://blockspare.com/demo/default/real-estate/",
208 'content' => BLOCKSPARE_PRO_PATH,
209 ),
210 array(
211 'type' => 'page',
212 'item' => ['About Us','Real Estate'],
213 'key' => 'bs_page_22',
214 'imagePath'=>'pages',
215 'name' => esc_html__( 'Real Estate About Us', 'blockspare' ),
216 'blockLink'=>"https://blockspare.com/demo/default/real-estate/about-us/",
217 'content' => BLOCKSPARE_PRO_PATH,
218 ),
219 array(
220 'type' => 'page',
221 'item' => ['Property Details','Real Estate'],
222 'key' => 'bs_page_23',
223 'imagePath'=>'pages',
224 'name' => esc_html__( 'Real Estate Property Details', 'blockspare' ),
225 'blockLink'=>"https://blockspare.com/demo/default/real-estate/property-details/",
226 'content' => BLOCKSPARE_PRO_PATH,
227 ),
228 array(
229 'type' => 'page',
230 'item' => ['Frontpage','Medical'],
231 'key' => 'bs_page_24',
232 'imagePath'=>'pages',
233 'name' => esc_html__( 'Medical Home', 'blockspare' ),
234 'blockLink'=>"https://blockspare.com/demo/default/medical/",
235 'content' => BLOCKSPARE_PRO_PATH,
236 ),
237 array(
238 'type' => 'page',
239 'item' => ['About Us','Medical'],
240 'key' => 'bs_page_25',
241 'imagePath'=>'pages',
242 'name' => esc_html__( 'Medical About Us', 'blockspare' ),
243 'blockLink'=>"https://blockspare.com/demo/default/medical/about-us/",
244 'content' => BLOCKSPARE_PRO_PATH,
245 ),
246 array(
247 'type' => 'page',
248 'item' => ['Services','Medical'],
249 'key' => 'bs_page_26',
250 'imagePath'=>'pages',
251 'name' => esc_html__( 'Medical Special Offer', 'blockspare' ),
252 'blockLink'=>"https://blockspare.com/demo/default/medical/price-offer/",
253 'content' => BLOCKSPARE_PRO_PATH,
254 ),
255 array(
256 'type' => 'page',
257 'item' => ['Frontpage','Charity'],
258 'key' => 'bs_page_27',
259 'imagePath'=>'pages',
260 'name' => esc_html__( 'Charity Home', 'blockspare' ),
261 'blockLink'=>"https://blockspare.com/demo/default/charity/",
262 'content' => BLOCKSPARE_PRO_PATH,
263 ),
264 array(
265 'type' => 'page',
266 'item' => ['Event','Charity'],
267 'key' => 'bs_page_28',
268 'imagePath'=>'pages',
269 'name' => esc_html__( 'Charity Our Event', 'blockspare' ),
270 'blockLink'=>"https://blockspare.com/demo/default/charity/our-events/",
271 'content' => BLOCKSPARE_PRO_PATH,
272 ),
273 array(
274 'type' => 'page',
275 'item' => ['Services','Charity'],
276 'key' => 'bs_page_29',
277 'imagePath'=>'pages',
278 'name' => esc_html__( 'Charity Volunteer', 'blockspare' ),
279 'blockLink'=>"https://blockspare.com/demo/default/charity/become-a-volunteer/",
280 'content' => BLOCKSPARE_PRO_PATH,
281 ),
282 array(
283 'type' => 'page',
284 'item' => ['About Us','Real Charity'],
285 'key' => 'bs_page_30',
286 'imagePath'=>'pages',
287 'name' => esc_html__( 'Charity About Us', 'blockspare' ),
288 'blockLink'=>"https://blockspare.com/demo/default/charity/about-us/",
289 'content' => BLOCKSPARE_PRO_PATH,
290 ),
291 array(
292 'type' => 'page',
293 'item' => ['Home','Sport','Magazine'],
294 'key' => 'bs_page_31',
295 'imagePath'=>'pages',
296 'name' => esc_html__( 'Sport Home', 'blockspare' ),
297 'blockLink'=>"https://blockspare.com/demo/default/sport-news/",
298 'content' => BLOCKSPARE_PRO_PATH,
299 ),
300 array(
301 'type' => 'page',
302 'item' => ['Subscription','Sport','Magazine'],
303 'key' => 'bs_page_32',
304 'imagePath'=>'pages',
305 'name' => esc_html__( 'Sport Subscription', 'blockspare' ),
306 'blockLink'=>"https://blockspare.com/demo/default/sport-news/subscription/",
307 'content' => BLOCKSPARE_PRO_PATH,
308 ),
309 array(
310 'type' => 'page',
311 'item' => ['Home','Fashion','Magazine'],
312 'key' => 'bs_page_33',
313 'imagePath'=>'pages',
314 'name' => esc_html__( 'Fashion Home', 'blockspare' ),
315 'blockLink'=>"https://blockspare.com/demo/default/fashion-news/",
316 'content' => BLOCKSPARE_PRO_PATH,
317 ),
318 array(
319 'type' => 'page',
320 'item' => ['Subscription','Fashion','Magazine'],
321 'key' => 'bs_page_34',
322 'imagePath'=>'pages',
323 'name' => esc_html__( 'Fashion Subscription', 'blockspare' ),
324 'blockLink'=>"https://blockspare.com/demo/default/fashion-news/subscription/",
325 'content' => BLOCKSPARE_PRO_PATH,
326 ),
327 array(
328 'type' => 'page',
329 'item' => ['Home','Recipe','Magazine'],
330 'key' => 'bs_page_35',
331 'imagePath'=>'pages',
332 'name' => esc_html__( 'Recipe Home', 'blockspare' ),
333 'blockLink'=>"https://blockspare.com/demo/default/fashion-news/subscription/",
334 'content' => BLOCKSPARE_PRO_PATH,
335 ),
336 array(
337 'type' => 'page',
338 'item' => ['Home','Pet Care'],
339 'key' => 'bs_page_36',
340 'imagePath'=>'pages',
341 'name' => esc_html__( 'Pet Care Home', 'blockspare' ),
342 'blockLink'=>"https://blockspare.com/demo/default/puppycare/",
343 'content' => BLOCKSPARE_PRO_PATH,
344 ),
345 array(
346 'type' => 'page',
347 'item' => ['About','Pet Care'],
348 'key' => 'bs_page_37',
349 'imagePath'=>'pages',
350 'name' => esc_html__( 'Pet Care About Us', 'blockspare' ),
351 'blockLink'=>"https://blockspare.com/demo/default/puppycare/about/",
352 'content' => BLOCKSPARE_PRO_PATH,
353 ),
354 array(
355 'type' => 'page',
356 'item' => ['Contact','Pet Care'],
357 'key' => 'bs_page_38',
358 'imagePath'=>'pages',
359 'name' => esc_html__( 'Pet Care Contact Us', 'blockspare' ),
360 'blockLink'=>"https://blockspare.com/demo/default/puppycare/contact/",
361 'content' => BLOCKSPARE_PRO_PATH,
362 ),
363 array(
364 'type' => 'page',
365 'item' => ['Home','Gadgtes'],
366 'key' => 'bs_page_39',
367 'imagePath'=>'pages',
368 'name' => esc_html__( 'Gadgets Home', 'blockspare' ),
369 'blockLink'=>"https://blockspare.com/demo/default/tech-gadgets/",
370 'content' => BLOCKSPARE_PRO_PATH,
371 ),
372 array(
373 'type' => 'page',
374 'item' => ['About Us','Gadgtes'],
375 'key' => 'bs_page_40',
376 'imagePath'=>'pages',
377 'name' => esc_html__( 'Gadgets About Us', 'blockspare' ),
378 'blockLink'=>"https://blockspare.com/demo/default/tech-gadgets/about/",
379 'content' => BLOCKSPARE_PRO_PATH,
380 ),
381 array(
382 'type' => 'page',
383 'item' => ['Home','Construction'],
384 'key' => 'bs_page_41',
385 'imagePath'=>'pages',
386 'name' => esc_html__( 'Construction Home', 'blockspare' ),
387 'blockLink'=>"https://blockspare.com/demo/default/constructions/",
388 'content' => BLOCKSPARE_PRO_PATH,
389 )
390
391 );
392
393 return array_merge_recursive( $blocks_lists, $block_library_list );
394 }
395 }
396 }
397 Blockspare_Page_Template_Block::get_instance()->run();