Add horizontal widget.

This commit is contained in:
BoHung Chiu 2021-04-01 18:17:28 +08:00
parent 39fa7aed06
commit 248b7e818a
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,18 @@
<div class="widget-link widget1">
<h3 class="widget-title">
<span>{{widget-title}}</span>
</h3>
<ul class="list-unstyled" data-level="0" data-list="web_link">
<li class="widget-content widget-content-horizontal">
<a class="widget-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">{{title}}</a>
<span data-list="statuses" data-level="1">
<span class="label status {{status-class}}">{{status}}</span>
</span>
</li>
</ul>
</div>
<style type="text/css">
.widget-content-horizontal{
float: left;
}
</style>

View File

@ -21,8 +21,16 @@
{ {
"filename" : "web_res_widget1", "filename" : "web_res_widget1",
"name" : { "name" : {
"zh_tw" : "1. 列表 ( 模組標題, 連結 )", "zh_tw" : "1. 直式列表 ( 模組標題, 連結 )",
"en" : "1. List (widget-title, link)" "en" : "1. Vertical List (widget-title, link)"
},
"thumbnail" : "thumb.png"
},
{
"filename" : "web_res_widget2",
"name" : {
"zh_tw" : "2. 橫式列表 ( 模組標題, 連結 )",
"en" : "2. Horizontal List (widget-title, link)"
}, },
"thumbnail" : "thumb.png" "thumbnail" : "thumb.png"
} }