新增动态的样式;

This commit is contained in:
2022-03-19 12:33:11 +08:00
parent 4fda375028
commit d15122f091
6 changed files with 102 additions and 10 deletions

View File

@@ -63,6 +63,23 @@
<div class="post-list">
{volist name='list_post' id='post'}
{switch $post['tpl_name'] }
{case event }
<div class="post-event">
<div class="post-event-header">
<div class="post-event-avatar" style="background-image: url({$site_logo_box});">
</div>
<div class="post-event-nickname">
{:get_system_config('default_author')}
</div>
</div>
<div class="post-event-body">
{$post->content_html|raw}
</div>
</div>
{/case}
{default /}
<a href="{:url('Post/read',['uid'=>$post.uid])}" class="post-item" onmouseover="$(this).find('.poster').addClass('layui-anim-scale')" onmouseout="$(this).find('.poster').removeClass('layui-anim-scale')">
{notempty name='$post->getData("poster")'}
@@ -82,6 +99,7 @@
</div>
</a>
{/switch}
{/volist}
{empty name='list_post'}