正在显示
2 个修改的文件
包含
30 行增加
和
2 行删除
@@ -85,9 +85,8 @@ class Index extends Base | @@ -85,9 +85,8 @@ class Index extends Base | ||
85 | Fun::abort(); | 85 | Fun::abort(); |
86 | } | 86 | } |
87 | 87 | ||
88 | - $page['show_html'] = str_replace('<title></title>','<title>'.$page['title'].'</title>',$page['show_html']); | 88 | + return view('v2/page',$page); |
89 | 89 | ||
90 | - return response($page['show_html'],200,['Content-Type'=>'text/html;charset=urt-8;']); | ||
91 | } | 90 | } |
92 | 91 | ||
93 | 92 |
resources/views/v2/page.blade.php
0 → 100644
1 | +@extends('v2/base') | ||
2 | + | ||
3 | +@section('content') | ||
4 | + | ||
5 | + <!-- sys_sub_head --> | ||
6 | + <section class="sys_sub_head"> | ||
7 | + <div class="page-title-bar"> | ||
8 | + <h2 class="title">{{$page_title}}</h2> | ||
9 | + </div> | ||
10 | + </section> | ||
11 | + | ||
12 | + <!-- web_main start --> | ||
13 | + <section class="web_main page_main"> | ||
14 | + <div class="layout"> | ||
15 | + <div class="blog-item"> | ||
16 | + <h2 class="item-title blog-title">{{$page_title}}</h2> | ||
17 | + | ||
18 | + <article class="blog-article"> | ||
19 | + {!! $page_body !!} | ||
20 | + </article> | ||
21 | + | ||
22 | + </div> | ||
23 | + | ||
24 | + </div> | ||
25 | + </section> | ||
26 | + <!--// web_main end --> | ||
27 | + | ||
28 | + | ||
29 | +@endsection |
-
请 注册 或 登录 后发表评论