|
...
|
...
|
@@ -121,35 +121,7 @@ class TemplateController extends BaseController |
|
|
|
$source_id = $this->param['source_id']??0;
|
|
|
|
|
|
|
|
if($source=='index'){
|
|
|
|
$def = '<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="">
|
|
|
|
<link rel="icon" href="../../favicon.ico">
|
|
|
|
|
|
|
|
<title>Example Template for Bootstrap</title>
|
|
|
|
|
|
|
|
<link href="../../css/editor.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<script src="../../js/jquery.min.js"></script>
|
|
|
|
<script src="../../js/popper.min.js"></script>
|
|
|
|
<script src="../../js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
<link href="example.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<script src="../../libs/aos/aos.js"></script>
|
|
|
|
<link href="../../libs/aos/aos.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<script src="../../libs/swiper/swiper.js"></script>
|
|
|
|
<link href="../../libs/swiper/swiper.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<header noAction id="globalso-header" class="web_head testnoaction screen-xxl sticky-top ">
|
|
|
|
$def = '<header noAction id="globalso-header" class="web_head testnoaction screen-xxl sticky-top ">
|
|
|
|
<div class=" layout">
|
|
|
|
<div class=" d-flex align-items-center justify-content-between py-md-4">
|
|
|
|
<div class="logo w-25 w-sm-auto"><a href="#"><img class="img-fluid" src="img/logo.png" alt=""></a></div>
|
|
...
|
...
|
@@ -234,9 +206,9 @@ class TemplateController extends BaseController |
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<main class="web_main" id="globalso-main">
|
|
|
|
<main class="web_main" id="globalso-main">
|
|
|
|
<section class="slider_banner screen-full position-relative testnoaction" data-aos="fade-up"
|
|
|
|
data-aos-delay="500" id="banner">
|
|
|
|
<div class="layout">
|
|
...
|
...
|
@@ -502,9 +474,9 @@ class TemplateController extends BaseController |
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<footer class="web_footer screen-xxl" id="globalso-footer">
|
|
|
|
<footer class="web_footer screen-xxl" id="globalso-footer">
|
|
|
|
<div class="layout">
|
|
|
|
<div class="row py-5 gx-0" data-aos="fade-up" data-aos-delay="500">
|
|
|
|
<nav class="foot_item col-sm-6 col-md-4 gx-0 gx-sm-4 pt-4">
|
|
...
|
...
|
@@ -574,12 +546,10 @@ class TemplateController extends BaseController |
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</footer>
|
|
|
|
<script>
|
|
|
|
AOS.init();
|
|
|
|
var mySwiper = new Swiper(\'.slider_banner .layout\', {
|
|
|
|
AOS.init();
|
|
|
|
var mySwiper = new Swiper(\'.slider_banner .layout\', {
|
|
|
|
effect: \'fade\',
|
|
|
|
speed: 1000,
|
|
|
|
loop: true,
|
|
...
|
...
|
@@ -595,16 +565,14 @@ class TemplateController extends BaseController |
|
|
|
nextEl: \'.slider_banner .swiper-button-next\',
|
|
|
|
prevEl: \'.slider_banner .swiper-button-prev\',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
var swiper = new Swiper(\'.company_show\', {
|
|
|
|
var swiper = new Swiper(\'.company_show\', {
|
|
|
|
pagination: {
|
|
|
|
el: \'.company_show .swiper-pagination\',
|
|
|
|
},
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</html>';
|
|
|
|
})
|
|
|
|
<\/script>';
|
|
|
|
}else{
|
|
|
|
$def = '<div class=" d-flex align-items-center justify-content-between py-md-4">
|
|
|
|
<div class="logo w-25 w-sm-auto"><a href="#"><img class="img-fluid" src="img/logo.png" alt=""></a></div>
|
|
...
|
...
|
@@ -693,9 +661,13 @@ class TemplateController extends BaseController |
|
|
|
|
|
|
|
$data = TemplateLogic::instance()->first($source,$source_id);
|
|
|
|
|
|
|
|
$res = [
|
|
|
|
'html' => $data?$data['html']:$def,
|
|
|
|
'name' => 'example'
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
return $this->response('',Code::SUCCESS,$data?$data['html']:$def);
|
|
|
|
return $this->response('',Code::SUCCESS,$res);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|