作者 lyh

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

@@ -120,549 +120,11 @@ class TemplateController extends BaseController @@ -120,549 +120,11 @@ class TemplateController extends BaseController
120 $source = $this->param['source']??''; 120 $source = $this->param['source']??'';
121 $source_id = $this->param['source_id']??0; 121 $source_id = $this->param['source_id']??0;
122 122
123 - if($source=='index'){  
124 - $def = '<header noAction id="globalso-header" class="web_head testnoaction screen-xxl sticky-top ">  
125 - <div class=" layout">  
126 - <div class=" d-flex align-items-center justify-content-between py-md-4">  
127 - <div class="logo w-25 w-sm-auto"><a href="#"><img class="img-fluid" src="img/logo.png" alt=""></a></div>  
128 - <nav class="navbar navbar-expand-md navbar-dark flex-fill justify-content-end mx-2 pe-md-5">  
129 - <button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#navMenu"  
130 - aria-controls="navMenu">  
131 - <span class="navbar-toggler-icon"></span>  
132 - </button>  
133 - <ul class="nav column-gap-5 justify-content-end text-white d-none d-md-flex">  
134 - <li><a href="#">Home</a></li>  
135 - <li class="dropdown">  
136 - <a href="#" class="dropdown-toggle" data-bs-toggle="dropdown">Products</a>  
137 - <ul class="dropdown-menu fs-6 text-body shadow-sm border-0">  
138 - <li><a href="#" class="dropdown-item py-2">Product Information</a></li>  
139 - <li><a href="#" class="dropdown-item py-2">Change of Insurance</a></li>  
140 - <li><a href="#" class="dropdown-item py-2">Traveling Oxygen Program</a></li>  
141 - <li><a href="#" class="dropdown-item py-2">Contact</a></li>  
142 - </ul>  
143 - </li>  
144 - <li><a href="#">News</a></li>  
145 - <li><a href="#">Download</a></li>  
146 - <li><a href="#">FAQ</a></li>  
147 - <li><a href="#">Contact</a></li>  
148 - </ul>  
149 - </nav>  
150 - <div class="d-flex align-items-center justify-content-end">  
151 - <div class="search">  
152 - <button type="button" class="btn border-0" data-bs-toggle="dropdown">  
153 - <svg viewBox="0 0 24 24" width="18" height="18" stroke="#ffffff" stroke-width="2"  
154 - fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">  
155 - <circle cx="11" cy="11" r="8"></circle>  
156 - <line x1="21" y1="21" x2="16.65" y2="16.65"></line>  
157 - </svg>  
158 - </button>  
159 - <div class="dropdown-menu p-3 shadow-sm border-0">  
160 - <form action="">  
161 - <div class="d-flex mb-2">  
162 - <input type="text" class="form-control" name="search" placeholder="Start Typing...">  
163 - <button class="btn btn-search border-0" type="submit">  
164 - <svg viewBox="0 0 24 24" width="18" height="18" stroke="#333333"  
165 - stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"  
166 - class="css-i6dzq1">  
167 - <circle cx="11" cy="11" r="8"></circle>  
168 - <line x1="21" y1="21" x2="16.65" y2="16.65"></line>  
169 - </svg>  
170 - </button>  
171 - </div>  
172 - <p class="search-attr">Hit enter to search or ESC to close</p>  
173 - </form>  
174 - </div>  
175 - </div>  
176 - <div class="change-language ms-md-4">  
177 - <div role="button" class="dropdown-toggle text-white d-flex align-items-center"  
178 - data-bs-toggle="dropdown">  
179 - <b class="country-flag language-flag-en"></b> <span>English</span>  
180 - </div>  
181 - <div class="dropdown-menu shadow-sm border-0">  
182 - <div class="d-flex flex-wrap p-3 text-body">  
183 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="English">  
184 - <b class="country-flag language-flag-en"></b>  
185 - <span>English</span>  
186 - </a>  
187 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Françai">  
188 - <b class="country-flag language-flag-fr"></b>  
189 - <span>Françai</span>  
190 - </a>  
191 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Español">  
192 - <b class="country-flag language-flag-es"></b>  
193 - <span>Español</span>  
194 - </a>  
195 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Deutsch">  
196 - <b class="country-flag language-flag-de"></b>  
197 - <span>Deutsch</span>  
198 - </a>  
199 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Română">  
200 - <b class="country-flag language-flag-ro"></b>  
201 - <span>Română</span>  
202 - </a>  
203 - </div>  
204 - </div>  
205 - </div>  
206 - </div>  
207 - </div>  
208 - </div>  
209 -</header>  
210 -  
211 -<main class="web_main" id="globalso-main">  
212 - <section class="slider_banner screen-full position-relative testnoaction" data-aos="fade-up"  
213 - data-aos-delay="500" id="banner">  
214 - <div class="layout">  
215 - <div class="swiper-wrapper">  
216 - <div class="swiper-slide"><a href="#"> <img class=" img-fluid" src="img/banner01.jpg"  
217 - alt="slide1" /></a>  
218 - </div>  
219 - <div class="swiper-slide"><a href="#"> <img class=" img-fluid" src="img/banner02.jpg"  
220 - alt="slide2" /></a>  
221 - </div>  
222 - <div class="swiper-slide"><a href="#"> <img class=" img-fluid" src="img/banner01.jpg"  
223 - alt="slide3" /></a>  
224 - </div>  
225 - </div>  
226 - <div class="index-swiper-buttons">  
227 - <div class="swiper-button-prev la"></div>  
228 - <div class="swiper-button-next la"></div>  
229 - </div>  
230 - <div class="swiper-pagination">  
231 - </div>  
232 - </section>  
233 - <section noActionSection noAction class="product-1 screen-xxl mb-5 mt-0 block-item-4 testnoaction">  
234 - <div class="layout">  
235 - <div class="row gx-0">  
236 - <div class="index-hd text-center" data-aos="fade-up" data-aos-delay="500">  
237 - <h2 class="fs-1 fw-bold">New Products</h2>  
238 - </div>  
239 - <div class="index-bd default-product-items d-flex flex-wrap" data-aos="fade-up"  
240 - data-aos-delay="500">  
241 - <div class="default-product-item block-item" style="padding:10px">  
242 - <figure class="item-inner" style="padding:10px">  
243 - <div class="item-img" style="padding:10px">  
244 - <a href="#"><img class="img-fluid" src="img/index_pd01.png" alt=""></a>  
245 - </div>  
246 - <figcaption class="item-info">  
247 - <h3 class="item-title"><a href="#">Aluminum Bottle Cage</a></h3>  
248 - </figcaption>  
249 - </figure>  
250 - </div>  
251 - <div class="default-product-item block-item">  
252 - <figure class="item-inner">  
253 - <div class="item-img">  
254 - <a href="#"><img class="img-fluid" src="img/index_pd01.png" alt=""></a>  
255 - </div>  
256 - <figcaption class="item-info">  
257 - <h3 class="item-title"><a href="#">Aluminum Bottle Cage</a></h3>  
258 - </figcaption>  
259 - </figure>  
260 - </div>  
261 - <div class="default-product-item block-item">  
262 - <figure class="item-inner">  
263 - <div class="item-img">  
264 - <a href="#"><img class="img-fluid" src="img/index_pd01.png" alt=""></a>  
265 - </div>  
266 - <figcaption class="item-info">  
267 - <h3 class="item-title"><a href="#">Aluminum Bottle Cage</a></h3>  
268 - </figcaption>  
269 - </figure>  
270 - </div>  
271 - <div class="default-product-item block-item">  
272 - <figure class="item-inner">  
273 - <div class="item-img">  
274 - <a href="#"><img class="img-fluid" src="img/index_pd01.png" alt=""></a>  
275 - </div>  
276 - <figcaption class="item-info">  
277 - <h3 class="item-title"><a href="#">Aluminum Bottle Cage</a></h3>  
278 - </figcaption>  
279 - </figure>  
280 - </div>  
281 - <div class="default-product-item block-item">  
282 - <figure class="item-inner">  
283 - <div class="item-img">  
284 - <a href="#"><img class="img-fluid" src="img/index_pd01.png" alt=""></a>  
285 - </div>  
286 - <figcaption class="item-info">  
287 - <h3 class="item-title"><a href="#">Aluminum Bottle Cage</a></h3>  
288 - </figcaption>  
289 - </figure>  
290 - </div>  
291 - </div>  
292 - </div>  
293 - </div>  
294 - </section>  
295 - <section class="screen-xxl">  
296 - <div class="layout">  
297 - <div class="row">  
298 - <div class="col-md-4 p-3" data-aos="fade-up" data-aos-delay="500">  
299 - <i>  
300 - <svg viewBox="0 0 24 24" width="48" height="48" stroke="#318fff" stroke-width="1"  
301 - fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">  
302 - <path  
303 - d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z">  
304 - </path>  
305 - </svg>  
306 - </i>  
307 - <div class="la-3x text-body opacity-25 lh-1 my-4">01</div>  
308 - <div class="pe-4">  
309 - <h4 class="text-uppercase fw-bold">Saddles</h4>  
310 - <div class="mt-3 uu">Our store is ready to offer you the best saddle selection of all shapes  
311 - and  
312 - types for your bike.</div>  
313 - </div>  
314 - </div>  
315 - <div class="col-md-4 p-3" data-aos="fade-up" data-aos-delay="500">  
316 - <i>  
317 - <svg viewBox="0 0 24 24" width="48" height="48" stroke="#318fff" stroke-width="1"  
318 - fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">  
319 - <line x1="4" y1="21" x2="4" y2="14"></line>  
320 - <line x1="4" y1="10" x2="4" y2="3"></line>  
321 - <line x1="12" y1="21" x2="12" y2="12"></line>  
322 - <line x1="12" y1="8" x2="12" y2="3"></line>  
323 - <line x1="20" y1="21" x2="20" y2="16"></line>  
324 - <line x1="20" y1="12" x2="20" y2="3"></line>  
325 - <line x1="1" y1="14" x2="7" y2="14"></line>  
326 - <line x1="9" y1="8" x2="15" y2="8"></line>  
327 - <line x1="17" y1="16" x2="23" y2="16"></line>  
328 - </svg>  
329 - </i>  
330 - <div class="la-3x text-body opacity-25 lh-1 my-4">02</div>  
331 - <div class="pe-4">  
332 - <h4 class="text-uppercase fw-bold">rims &amp; Wheels</h4>  
333 - <p class="mt-3">Feel free to explore an extensive range of wheels, rims &amp; tires for  
334 - your  
335 - bike at our store.</p>  
336 - </div>  
337 - </div>  
338 - <div class="col-md-4 p-3" data-aos="fade-up" data-aos-delay="500">  
339 - <i>  
340 - <svg viewBox="0 0 24 24" width="48" height="48" stroke="#318fff" stroke-width="1"  
341 - fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">  
342 - <path  
343 - d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z">  
344 - </path>  
345 - <polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline>  
346 - <polyline points="7.5 19.79 7.5 14.6 3 12"></polyline>  
347 - <polyline points="21 12 16.5 14.6 16.5 19.79"></polyline>  
348 - <polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline>  
349 - <line x1="12" y1="22.08" x2="12" y2="12"></line>  
350 - </svg>  
351 - </i>  
352 - <div class="la-3x text-body opacity-25 lh-1 my-4">04</div>  
353 - <div class="pe-4">  
354 - <h4 class="text-uppercase fw-bold">Saddles</h4>  
355 - <p class="mt-3">Need a reliable and durable frame for your bike? Our store managers  
356 - will be  
357 - ready to help you.</p>  
358 - </div>  
359 - </div>  
360 - </div>  
361 - </div>  
362 - </section>  
363 - <section class="about-1 screen-xxl">  
364 - <div class="layout">  
365 - <div class="row">  
366 - <div class="col-lg-6" data-aos="fade-up" data-aos-delay="500">  
367 - <div class="company_show bg-light rounded-3 position-relative h-100">  
368 - <div class="swiper-wrapper">  
369 - <div class="swiper-slide p-4">  
370 - <a href="#"><img class=" img-fluid" src="img/company_intr_01.png" alt=""></a>  
371 - </div>  
372 - <div class="swiper-slide p-4">  
373 - <a href="#"><img class=" img-fluid" src="img/company_intr_02.png" alt=""></a>  
374 - </div>  
375 - <div class="swiper-slide p-4">  
376 - <a href="#"><img class=" img-fluid" src="img/company_intr_03.png" alt=""></a>  
377 - </div>  
378 - </div>  
379 - <div class="swiper-pagination"></div>  
380 - </div>  
381 - </div>  
382 - <div class="col-lg-6" data-aos="fade-up" data-aos-delay="500">  
383 - <div class="company_content ps-lg-5 py-5 py-lg-3">  
384 - <h2 class="fs-1 fw-bold">Why Choose Us</h2>  
385 - <dl class="my-4 my-sm-5 text-dark">  
386 - <dt class="fs-7">◎ Over 25 years of experience</dt>  
387 - <dd class="my-3">  
388 - Since 1990, we have been partnering with various suppliers and manufacturers of bike  
389 - parts  
390 - to provide our customers with high-quality replacement parts for their bikes for  
391 - over 25 years.  
392 - </dd>  
393 - <dt class="fs-7">◎ 5+ years of warranty on all parts</dt>  
394 - <dd class="my-3">  
395 - Every part you buy at our store is provided with exclusive 5-year warranty and some  
396 - parts  
397 - from premium manufacturers have even longer warranty.  
398 - </dd>  
399 - <dt class="fs-7">◎ Over 25 years of experience</dt>  
400 - <dd class="my-3">  
401 - We guarantee the best customer service with easy product returns &amp; replacements  
402 - as well  
403 - as 24-hour support for all our clients. Besides, every client also gets free  
404 - worldwide  
405 - delivery of any part from our catalog.  
406 - </dd>  
407 - </dl>  
408 - <a href="#" class="btn btn-primary px-4 fs-7">Learn More</a>  
409 - </div>  
410 - </div>  
411 - </div>  
412 - </div>  
413 - </section>  
414 -  
415 - <section class="news-1 screen-xxl">  
416 - <div class="layout">  
417 - <div class="row gx-0 my-sm-4">  
418 - <div class="index_hd text-center" data-aos="fade-up" data-aos-delay="500">  
419 - <h2 class="fs-1 fw-bold">Our Blog</h2>  
420 - </div>  
421 - <div class="index-bd row pb-3 py-md-4 px-0 gx-0 gy-3" data-aos="fade-up" data-aos-delay="500">  
422 - <div class="col-sm-6 col-md-4 gx-3 gx-md-4 gy-3 gy-md-0">  
423 - <figure class="d-flex flex-column h-100">  
424 - <span class="item_img">  
425 - <a href=""><img class="img-fluid" src="img/news01.jpg" alt=""></a>  
426 - </span>  
427 - <figcaption class="bg-white p-3 flex-fill">  
428 - <time class="text-secondary">August 9, 2019</time>  
429 - <h3 class="fs-7 fs-sm-5 my-3 fw-bold">  
430 - <a href="#" class="text-body">Essential Commuter Accessories: Stock or DIY?</a>  
431 - </h3>  
432 - <p class="m-0 text-secondary">Lorem ipsum dolor sit amet, consetetur sadipscing  
433 - elitr, sed  
434 - diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed  
435 - diam voluptua. </p>  
436 - </figcaption>  
437 - </figure>  
438 - </div>  
439 - <div class="col-sm-6 col-md-4 gx-3 gx-md-4 gy-3 gy-md-0">  
440 - <figure class="d-flex flex-column h-100">  
441 - <span class="item_img">  
442 - <a href=""><img class=" img-fluid" src="img/news02.jpg" alt=""></a>  
443 - </span>  
444 - <figcaption class="bg-white p-3 flex-fill">  
445 - <time class="text-secondary">August 9, 2019</time>  
446 - <h3 class="fs-7 fs-sm-5 my-3 fw-bold">  
447 - <a href="#" class="text-body">5 Winter Biking Necessities that You Need to  
448 - Have</a>  
449 - </h3>  
450 - <p class="m-0 text-secondary">Lorem ipsum dolor sit amet, consetetur sadipscing  
451 - elitr, sed diam nonumy</p>  
452 - </figcaption>  
453 - </figure>  
454 - </div>  
455 - <div class="col-sm-6 col-md-4 gx-3 gx-md-4 gy-3 gy-md-0">  
456 - <figure class="d-flex flex-column h-100">  
457 - <span class="item_img">  
458 - <a href=""><img class=" img-fluid" src="img/news03.jpg" alt=""></a>  
459 - </span>  
460 - <figcaption class="bg-white p-3 flex-fill">  
461 - <time class="text-secondary">August 9, 2019</time>  
462 - <h3 class="fs-7 fs-sm-5 my-3 fw-bold">  
463 - <a href="#" class="text-body">Bike Tune-up Done Right: Tips from Cyclert  
464 - Experts</a>  
465 - </h3>  
466 - <p class="m-0 text-secondary">Lorem ipsum dolor sit amet, consetetur sadipscing  
467 - elitr, sed  
468 - diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed  
469 - diam voluptua. </p>  
470 - </figcaption>  
471 - </figure>  
472 - </div>  
473 - </div>  
474 - </div>  
475 - </div>  
476 - </section>  
477 -</main>  
478 -  
479 -<footer class="web_footer screen-xxl" id="globalso-footer">  
480 - <div class="layout">  
481 - <div class="row py-5 gx-0" data-aos="fade-up" data-aos-delay="500">  
482 - <nav class="foot_item col-sm-6 col-md-4 gx-0 gx-sm-4 pt-4">  
483 - <div class="foot_logo"><img src="img/logo.png" alt=""></div>  
484 - <div class="my-5 pe-4 text-white">Shelter has been a trusted name in insurance for more than 15  
485 - years. Today, we  
486 - proudly serve more than 16 million customers nationwide.Shelter has been a trusted name in  
487 - insurance for  
488 - more than 15 years. </div>  
489 - <ul class="sns_list d-flex gap-4 list-unstyled">  
490 - <li><a href=""><img src="img/sns01.png" alt=""></a></li>  
491 - <li><a href=""><img src="img/sns02.png" alt=""></a></li>  
492 - <li><a href=""><img src="img/sns03.png" alt=""></a></li>  
493 - <li><a href=""><img src="img/sns04.png" alt=""></a></li>  
494 - <li><a href=""><img src="img/sns05.png" alt=""></a></li>  
495 - </ul>  
496 - </nav>  
497 - <nav class="foot_item col-sm-6 col-md-4 gx-0 gx-sm-4 pt-4 px-sm-5 ps-lg-9">  
498 - <div class="mb-4">  
499 - <h2 class="fs-5 fw-bold text-white">Quick Links</h2>  
500 - </div>  
501 - <div class="foot_item_bd">  
502 - <ul class="list-unstyled">  
503 - <li class="my-3"><a href="" class="text-white">Home</a></li>  
504 - <li class="my-3"><a href="" class="text-white">Products</a></li>  
505 - <li class="my-3"><a href="" class="text-white">Services</a></li>  
506 - <li class="my-3"><a href="" class="text-white">News</a></li>  
507 - <li class="my-3"><a href="" class="text-white">About us</a></li>  
508 - <li class="my-3"><a href="" class="text-white">Contact us</a></li>  
509 - </ul>  
510 - </div>  
511 - </nav>  
512 - <nav class="foot_item col-sm-6 col-md-4 gx-0 gx-sm-4 pt-4">  
513 - <div class="mb-4">  
514 - <h2 class="fs-5 fw-bold text-white">Get in Touch</h2>  
515 - </div>  
516 - <div class="foot_item_bd">  
517 - <address>  
518 - <ul class="list-unstyled">  
519 - <li class="my-3 d-flex align-items-center">  
520 - <i class="la la-city la-inverse fs-4"></i>  
521 - <div class="flex-fill ms-2">  
522 - <span class="text-white">Chengdu,Sichuan province Shuxihuanjie #615</span>  
523 - </div>  
524 - </li>  
525 - <li class="my-3 d-flex align-items-center">  
526 - <i class="la la-phone la-inverse fs-4"></i>  
527 - <div class="flex-fill ms-2">  
528 - <a class="tel_link" href="tel:">  
529 - <span class="text-white">Phone:</span>  
530 - <span class="text-white">400-86-25660</span>  
531 - </a>  
532 - </div>  
533 - </li>  
534 - <li class="my-3 d-flex align-items-center">  
535 - <i class="la la-mail-bulk la-inverse fs-4"></i>  
536 - <div class="flex-fill ms-2">  
537 - <a href="mailto:">  
538 - <span class="text-white">Email:</span>  
539 - <span class="text-white">800025660@126.com</span>  
540 - </a>  
541 - </div>  
542 - </li>  
543 - </ul>  
544 - </address>  
545 - </div>  
546 - </nav>  
547 - </div>  
548 - </div>  
549 -</footer>  
550 -<script>  
551 -AOS.init();  
552 -var mySwiper = new Swiper(\'.slider_banner .layout\', {  
553 - effect: \'fade\',  
554 - speed: 1000,  
555 - loop: true,  
556 - autoplay: {  
557 - delay: 3500,  
558 - disableOnInteraction: false,  
559 - },  
560 - pagination: {  
561 - el: \'.slider_banner .swiper-pagination\',  
562 - clickable: true,  
563 - },  
564 - navigation: {  
565 - nextEl: \'.slider_banner .swiper-button-next\',  
566 - prevEl: \'.slider_banner .swiper-button-prev\',  
567 - },  
568 -});  
569 -  
570 -var swiper = new Swiper(\'.company_show\', {  
571 - pagination: {  
572 - el: \'.company_show .swiper-pagination\',  
573 - },  
574 -})  
575 -</script>';  
576 - }else{  
577 - $def = '<div class=" d-flex align-items-center justify-content-between py-md-4">  
578 - <div class="logo w-25 w-sm-auto"><a href="#"><img class="img-fluid" src="img/logo.png" alt=""></a></div>  
579 - <nav class="navbar navbar-expand-md navbar-dark flex-fill justify-content-end mx-2 pe-md-5">  
580 - <button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#navMenu"  
581 - aria-controls="navMenu">  
582 - <span class="navbar-toggler-icon"></span>  
583 - </button>  
584 - <ul class="nav column-gap-5 justify-content-end text-white d-none d-md-flex">  
585 - <li><a href="#">Home</a></li>  
586 - <li class="dropdown">  
587 - <a href="#" class="dropdown-toggle" data-bs-toggle="dropdown">Products</a>  
588 - <ul class="dropdown-menu fs-6 text-body shadow-sm border-0">  
589 - <li><a href="#" class="dropdown-item py-2">Product Information</a></li>  
590 - <li><a href="#" class="dropdown-item py-2">Change of Insurance</a></li>  
591 - <li><a href="#" class="dropdown-item py-2">Traveling Oxygen Program</a></li>  
592 - <li><a href="#" class="dropdown-item py-2">Contact</a></li>  
593 - </ul>  
594 - </li>  
595 - <li><a href="#">News</a></li>  
596 - <li><a href="#">Download</a></li>  
597 - <li><a href="#">FAQ</a></li>  
598 - <li><a href="#">Contact</a></li>  
599 - </ul>  
600 - </nav>  
601 - <div class="d-flex align-items-center justify-content-end">  
602 - <div class="search">  
603 - <button type="button" class="btn border-0" data-bs-toggle="dropdown">  
604 - <svg viewBox="0 0 24 24" width="18" height="18" stroke="#ffffff" stroke-width="2"  
605 - fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">  
606 - <circle cx="11" cy="11" r="8"></circle>  
607 - <line x1="21" y1="21" x2="16.65" y2="16.65"></line>  
608 - </svg>  
609 - </button>  
610 - <div class="dropdown-menu p-3 shadow-sm border-0">  
611 - <form action="">  
612 - <div class="d-flex mb-2">  
613 - <input type="text" class="form-control" name="search" placeholder="Start Typing...">  
614 - <button class="btn btn-search border-0" type="submit">  
615 - <svg viewBox="0 0 24 24" width="18" height="18" stroke="#333333"  
616 - stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"  
617 - class="css-i6dzq1">  
618 - <circle cx="11" cy="11" r="8"></circle>  
619 - <line x1="21" y1="21" x2="16.65" y2="16.65"></line>  
620 - </svg>  
621 - </button>  
622 - </div>  
623 - <p class="search-attr">Hit enter to search or ESC to close</p>  
624 - </form>  
625 - </div>  
626 - </div>  
627 - <div class="change-language ms-md-4">  
628 - <div role="button" class="dropdown-toggle text-white d-flex align-items-center"  
629 - data-bs-toggle="dropdown">  
630 - <b class="country-flag language-flag-en"></b> <span>English</span>  
631 - </div>  
632 - <div class="dropdown-menu shadow-sm border-0">  
633 - <div class="d-flex flex-wrap p-3 text-body">  
634 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="English">  
635 - <b class="country-flag language-flag-en"></b>  
636 - <span>English</span>  
637 - </a>  
638 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Françai">  
639 - <b class="country-flag language-flag-fr"></b>  
640 - <span>Françai</span>  
641 - </a>  
642 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Español">  
643 - <b class="country-flag language-flag-es"></b>  
644 - <span>Español</span>  
645 - </a>  
646 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Deutsch">  
647 - <b class="country-flag language-flag-de"></b>  
648 - <span>Deutsch</span>  
649 - </a>  
650 - <a href="#" class="col-4 mb-3 pe-2 d-flex align-items-center" title="Română">  
651 - <b class="country-flag language-flag-ro"></b>  
652 - <span>Română</span>  
653 - </a>  
654 - </div>  
655 - </div>  
656 - </div>  
657 - </div>  
658 - </div>';  
659 - }  
660 -  
661 123
662 $data = TemplateLogic::instance()->first($source,$source_id); 124 $data = TemplateLogic::instance()->first($source,$source_id);
663 125
664 $res = [ 126 $res = [
665 - 'html' => $data?$data['html']:$def, 127 + 'html' => $data['html']??'',
666 'name' => 'example' 128 'name' => 'example'
667 ]; 129 ];
668 130
@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 namespace App\Http\Logic\Bside; 3 namespace App\Http\Logic\Bside;
4 4
5 use App\Models\RouteMap; 5 use App\Models\RouteMap;
  6 +use App\Models\Template\BSetting;
6 use App\Models\Template\BTemplate; 7 use App\Models\Template\BTemplate;
7 8
8 /** 9 /**
@@ -82,6 +83,7 @@ class TemplateLogic extends BaseLogic @@ -82,6 +83,7 @@ class TemplateLogic extends BaseLogic
82 'project_id'=>$this->user['project_id'], 83 'project_id'=>$this->user['project_id'],
83 'data_source' => $source, 84 'data_source' => $source,
84 'data_source_id' => $source_id, 85 'data_source_id' => $source_id,
  86 + 'template_id' => BSetting::_get($this->user['project_id'])
85 ])->first(); 87 ])->first();
86 } 88 }
87 89