diff --git a/app/index/controller/Common.php b/app/index/controller/Common.php index f883d3b..82716d1 100644 --- a/app/index/controller/Common.php +++ b/app/index/controller/Common.php @@ -17,6 +17,12 @@ class Common extends BaseController { parent::initialize(); + $site_logo = get_source_link(get_system_config('site_logo')); + + View::assign('site_logo', $site_logo); + $site_logo_box = get_source_link(get_system_config('site_logo_box')); + + View::assign('site_logo_box', $site_logo_box); $list_nav_slide = Nav::where('type', 3)->cacheAlways('type_list_3')->order('sort asc')->where('status', 1)->select(); diff --git a/config/view_type.php b/config/view_type.php index 67996a4..b92efea 100644 --- a/config/view_type.php +++ b/config/view_type.php @@ -12,5 +12,6 @@ return [ ], 'post' => [ '' => '普通:', + 'event' => '动态', ] ]; diff --git a/public/static/css/index.articles.css b/public/static/css/index.articles.css index 23ebba2..9bc5270 100644 --- a/public/static/css/index.articles.css +++ b/public/static/css/index.articles.css @@ -336,4 +336,39 @@ a.post-item:visited { #banner .layui-carousel-ind { z-index: 999; +} + +.post-event { + padding : 10px 0; + border-bottom: 1px solid #ddd; +} + +.post-event-header { + display : flex; + align-items : center; + justify-content: flex-start; +} + +.post-event-nickname { + font-size : 14px; + font-weight: 600; + margin-left: 15px; +} + +.post-event-avatar { + width : 40px; + height : 40px; + background-size : cover; + background-position: left; + border-radius : 50%; + border : 1px solid #bbb; +} + +.post-event-body { + line-height: 1.5; + +} + +.post-event-body img { + max-width: 100%; } \ No newline at end of file diff --git a/view/admin/post/edit.html b/view/admin/post/edit.html index 0785356..4ea1369 100644 --- a/view/admin/post/edit.html +++ b/view/admin/post/edit.html @@ -65,7 +65,7 @@ - +