update tempate
This commit is contained in:
parent
211d896298
commit
936f55edf9
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
|
@ -303,6 +303,8 @@
|
||||||
@mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
@mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
||||||
background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); // Safari 5.1-6, Chrome 10+
|
background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); // Safari 5.1-6, Chrome 10+
|
||||||
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
-pie-background: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
|
||||||
}
|
}
|
||||||
|
@ -314,6 +316,8 @@
|
||||||
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
@mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
|
||||||
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
|
||||||
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
-pie-background: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
|
||||||
}
|
}
|
||||||
|
@ -322,16 +326,22 @@
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
|
background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
|
||||||
background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
-pie-background: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
}
|
}
|
||||||
@mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
@mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
||||||
background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
|
||||||
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
||||||
|
-pie-background: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
}
|
}
|
||||||
@mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
@mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
|
||||||
background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||||
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||||
|
-pie-background: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
}
|
}
|
||||||
|
@ -343,6 +353,8 @@
|
||||||
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
|
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
|
||||||
background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||||
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||||
|
-pie-background: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset filters for IE
|
// Reset filters for IE
|
||||||
|
|
|
@ -37,6 +37,8 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.7) 40%,#000);
|
background-image: linear-gradient(180deg,transparent 0,rgba(0,0,0,.7) 40%,#000);
|
||||||
|
-pie-background: linear-gradient(180deg,transparent 0,rgba(0,0,0,.7) 40%,#000);
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
padding: 1.5em 1em;
|
padding: 1.5em 1em;
|
||||||
h3 {
|
h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -85,6 +87,7 @@
|
||||||
width: 0.8em;
|
width: 0.8em;
|
||||||
height: 0.8em;
|
height: 0.8em;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
border:0;
|
border:0;
|
||||||
|
|
|
@ -927,6 +927,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #aab2bd;
|
background-color: #aab2bd;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
-webkit-border-radius: 4px;
|
-webkit-border-radius: 4px;
|
||||||
-moz-border-radius: 4px
|
-moz-border-radius: 4px
|
||||||
}
|
}
|
||||||
|
@ -947,6 +948,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
|
||||||
background-color: #4fc1e9;
|
background-color: #4fc1e9;
|
||||||
border: 4px solid #f5f7fa;
|
border: 4px solid #f5f7fa;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
-webkit-border-radius: 50%;
|
-webkit-border-radius: 50%;
|
||||||
-moz-border-radius: 50%
|
-moz-border-radius: 50%
|
||||||
}
|
}
|
||||||
|
@ -968,6 +970,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
|
||||||
margin-top: 31px;
|
margin-top: 31px;
|
||||||
background-color: #CCC;
|
background-color: #CCC;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
-webkit-border-radius: 4px;
|
-webkit-border-radius: 4px;
|
||||||
-moz-border-radius: 4px
|
-moz-border-radius: 4px
|
||||||
}
|
}
|
||||||
|
@ -1021,6 +1024,7 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before, tabl
|
||||||
.VivaTimeline dl dd .events .events-footer ol li {
|
.VivaTimeline dl dd .events .events-footer ol li {
|
||||||
background: #32b487;
|
background: #32b487;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
|
|
@ -264,6 +264,7 @@
|
||||||
@media(max-width:580px) {
|
@media(max-width:580px) {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
||||||
height: 14em;
|
height: 14em;
|
||||||
width: 14em;
|
width: 14em;
|
||||||
margin: 1.5em auto 1em auto;
|
margin: 1.5em auto 1em auto;
|
||||||
|
|
|
@ -14,10 +14,15 @@
|
||||||
<tbody data-level="0" data-list="acts">
|
<tbody data-level="0" data-list="acts">
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{category}}</td>
|
<td>{{category}}</td>
|
||||||
<td>{{act_start_date}} ~ <br /> {{act_end_date}}</td>
|
<td>{{act_duration_date}}</td>
|
||||||
<td>{{title}}</td>
|
<td>
|
||||||
<td>{{sign_start_date}} ~ <br /> {{sign_end_date}}</td>
|
<span class="active-status-wrap" data-list="statuses" data-level="1">
|
||||||
<td>{{sign_up}}</i></td>
|
<span class="label status {{status-class}}">{{status}}</span>
|
||||||
|
</span>
|
||||||
|
{{title}}
|
||||||
|
</td>
|
||||||
|
<td>{{sign_duration_date}}</td>
|
||||||
|
<td>{{sign_up}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
<div class="active-index1 {{display}}">
|
||||||
|
<h3>{{page-title}}</h3>
|
||||||
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="active-th-time">{{th_act_time_range}}</th>
|
||||||
|
<th class="active-th-title">{{th_title}}</th>
|
||||||
|
<th class="col-md-2">{{th_sign_up}}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody data-level="0" data-list="acts">
|
||||||
|
<tr>
|
||||||
|
<td class="active-time" date-format="%Y-%m-%d">{{act_duration_date}}</td>
|
||||||
|
<td class="active-content">
|
||||||
|
<span class="active-status-wrap" data-list="statuses" data-level="1">
|
||||||
|
<span class="label status {{status-class}}">{{status}}</span>
|
||||||
|
</span>
|
||||||
|
{{title}}
|
||||||
|
</td>
|
||||||
|
<td>{{sign_up}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{{pagination_goes_here}}
|
|
@ -0,0 +1,32 @@
|
||||||
|
<div class="active-index2">
|
||||||
|
<h3>{{page-title}}</h3>
|
||||||
|
<ul class="row" data-level="0" data-list="acts">
|
||||||
|
<li class="col-md-4">
|
||||||
|
<a href="{{link_to_show}}">
|
||||||
|
<div class="active-img-wrap">
|
||||||
|
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||||
|
</div>
|
||||||
|
<div class="active-content-wrap">
|
||||||
|
<div class="active-meta">
|
||||||
|
<span class="active-status-wrap" data-list="statuses" data-level="1">
|
||||||
|
<span class="label {{status-class}}">{{status}}</span>
|
||||||
|
</span>
|
||||||
|
<span class="active-time-wrap" date-format="%Y-%m-%d">
|
||||||
|
<i class="fa fa-calendar-o"></i>
|
||||||
|
<span class="active-time" date-format="%Y-%m-%d">{{act_duration_date}}</span>
|
||||||
|
</span>
|
||||||
|
<span class="active-category-wrap">
|
||||||
|
<i class="fa fa-tasks"></i>
|
||||||
|
<span class="active-category">{{category}}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<h4 class="active-title">
|
||||||
|
{{title_text}}
|
||||||
|
</h4>
|
||||||
|
<p class="active-subtitle">{{subtitle}}</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{pagination_goes_here}}
|
|
@ -3,10 +3,26 @@
|
||||||
{
|
{
|
||||||
"filename" : "active_index",
|
"filename" : "active_index",
|
||||||
"name" : {
|
"name" : {
|
||||||
"zh_tw" : "1. 列表",
|
"zh_tw" : "1. 列表 (類別, 活動期間, 狀態, 活動標題, 報名期間, 線上報名)",
|
||||||
"en" : "1. List"
|
"en" : "1. List (Category, Event Period, status, Event Title, Registration Period, Register)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "thumb.png"
|
"thumbnail" : "thumb.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "active_index1",
|
||||||
|
"name" : {
|
||||||
|
"zh_tw" : "2. 精簡表格列表-2 ( 模組標題, 活動期間, 狀態, 標題, 線上報名)",
|
||||||
|
"en" : "2. Simple Table List (widget-title, Event Period, status, title, Register)"
|
||||||
|
},
|
||||||
|
"thumbnail" : "active_index1_thumbs.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "active_index2",
|
||||||
|
"name" : {
|
||||||
|
"zh_tw" : "3. 三欄圖文 ( 模組標題, 圖片, 狀態, 活動期間, 類別, 標題, 副標題, 線上報名)",
|
||||||
|
"en" : "3. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle, Register)"
|
||||||
|
},
|
||||||
|
"thumbnail" : "active_index2_thumbs.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -1,5 +1,5 @@
|
||||||
<div class="w-ba-banner ba-banner-widget-1">
|
<div class="w-ad-banner w-ba-banner ad-banner-widget-1 ba-banner-widget-1">
|
||||||
<div class="w-ba-banner__wrap cycle-slideshow"
|
<div class="w-ad-banner__wrap w-ba-banner__wrap cycle-slideshow"
|
||||||
data-list="images"
|
data-list="images"
|
||||||
data-level="0"
|
data-level="0"
|
||||||
data-cycle-slides=".w-ba-banner__slide"
|
data-cycle-slides=".w-ba-banner__slide"
|
||||||
|
@ -10,12 +10,12 @@
|
||||||
data-cycle-timeout="{{timeout}}"
|
data-cycle-timeout="{{timeout}}"
|
||||||
data-cycle-fx="{{ad_fx}}"
|
data-cycle-fx="{{ad_fx}}"
|
||||||
data-cycle-pager=".banner_caption_{{subpart-id}}"
|
data-cycle-pager=".banner_caption_{{subpart-id}}"
|
||||||
data-pager-template="<li><button></button></li>"
|
data-pager-template=""
|
||||||
data-pager-active-class="active-slide"
|
data-pager-active-class="active-slide"
|
||||||
data-cycle-swipe=true
|
data-cycle-swipe=true
|
||||||
data-cycle-swipe-fx="scrollHorz"
|
data-cycle-swipe-fx="scrollHorz"
|
||||||
>
|
>
|
||||||
<div class="w-ba-banner__slide {{class}}"
|
<div class="w-ad-banner__slide w-ba-banner__slide {{class}}"
|
||||||
data-link="{{link}}"
|
data-link="{{link}}"
|
||||||
data-cycle-title="{{title}}"
|
data-cycle-title="{{title}}"
|
||||||
data-cycle-desc="{{context}}"
|
data-cycle-desc="{{context}}"
|
||||||
|
@ -23,13 +23,15 @@
|
||||||
data-target="{{target}}"
|
data-target="{{target}}"
|
||||||
>
|
>
|
||||||
<a href="{{link}}" target="{{target}}" title="{{alt_title}}">
|
<a href="{{link}}" target="{{target}}" title="{{alt_title}}">
|
||||||
<img class="w-ba-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
|
<img class="w-ad-banner__image w-ba-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ad-overlay w-ad-banner__overlay_{{subpart-id}}"></div>
|
<div class="w-ad-banner__caption ad-overlay w-ba-banner__caption w-ad-banner__caption w-ad-banner__overlay_{{subpart-id}}"></div>
|
||||||
<div class="w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}"></div>
|
<div class="w-ad-banner__pager-1 w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}" data-list="images" data-level="0">
|
||||||
|
<li><button title="Slide {{slide_number}}"><span style="display: none;">Slide {{slide_number}}</span></button></li>
|
||||||
|
</div>
|
||||||
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
|
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
|
||||||
<ul class="button-mid">
|
<ul class="button-mid">
|
||||||
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>"></i>
|
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>"></i>
|
||||||
|
@ -58,10 +60,23 @@
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.controlplay .resume-slide.active i{
|
.w-ba-banner .controlplay .resume-slide.active i{
|
||||||
color: #32D9C3;
|
color: #32D9C3;
|
||||||
}
|
}
|
||||||
.controlplay .pause-slide.active i{
|
.w-ba-banner .controlplay .pause-slide.active i{
|
||||||
color: #ff4500;
|
color: #ff4500;
|
||||||
}
|
}
|
||||||
|
.w-ba-banner .controlplay{
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
.w-ba-banner .button-mid{
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.next-button,.prev-button{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="w-ba-banner ba-banner-widget-1 ba-banner-widget-youtube">
|
<div class="w-ad-banner ad-banner-widget-2 w-ba-banner ba-banner-widget-1 ba-banner-widget-youtube">
|
||||||
<div class="w-ba-banner__wrap cycle-slideshow"
|
<div class="w-ad-banner__wrap w-ba-banner__wrap cycle-slideshow"
|
||||||
data-list="images"
|
data-list="images"
|
||||||
data-level="0"
|
data-level="0"
|
||||||
data-cycle-slides=".w-ba-banner__slide"
|
data-cycle-slides=".w-ba-banner__slide"
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
{{html}}
|
{{html}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ad-overlay w-ad-banner__overlay_{{subpart-id}}"></div>
|
<div class="ad-overlay w-ad-banner__overlay_{{subpart-id}}"></div>
|
||||||
<div class="w-ba-banner__caption banner-pager banner_caption_{{subpart-id}}"></div>
|
<div class="w-ba-banner__caption w-ad-banner__pager-2 banner-pager banner_caption_{{subpart-id}}"></div>
|
||||||
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
|
<ul class="controlplay"><a class="resume-slide active" title = "<%= (I18n.locale.to_s =="zh_tw") ? "繼續播放" : "resume" %>"><i></i></a><a class="pause-slide" title = "<%= (I18n.locale.to_s =="zh_tw") ? "暫停播放" : "pause"%>"><i></i></a></ul>
|
||||||
<ul class="button-mid">
|
<ul class="button-mid">
|
||||||
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>"></i>
|
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>"></i>
|
||||||
|
@ -45,53 +45,116 @@
|
||||||
var firstScriptTag = document.getElementsByTagName('script')[0];
|
var firstScriptTag = document.getElementsByTagName('script')[0];
|
||||||
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
||||||
}
|
}
|
||||||
|
$("*[data-yt-binded=0]").each(function(){
|
||||||
$("document").ready(function(){
|
$(this).attr("data-yt-binded","1");
|
||||||
$("*[data-yt-binded=0]").each(function(){
|
var obj = $(this).find("iframe");
|
||||||
$(this).attr("data-yt-binded","1");
|
obj.attr("id",$(this).data("youtube-id") + "_" + ad_banners_count);
|
||||||
var obj = $(this).find("iframe");
|
ad_banners_count++;
|
||||||
obj.attr("id",$(this).data("youtube-id") + "_" + ad_banners_count);
|
})
|
||||||
ad_banners_count++;
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
if (typeof onYouTubeIframeAPIReady !== 'function'){
|
if (typeof onYouTubeIframeAPIReady !== 'function'){
|
||||||
|
if(window.yt_players == undefined)
|
||||||
|
window.yt_players = {};
|
||||||
|
$(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_{{subpart-id}}\"]");
|
||||||
function onYouTubeIframeAPIReady(){
|
function onYouTubeIframeAPIReady(){
|
||||||
$(".w-ba-banner iframe[data-yt-api-binded=0]").each(function(){
|
$(".w-ba-banner").each(function(i,banner){
|
||||||
$(this).attr("data-yt-api-binded","1");
|
var iframes = $(banner).find("iframe");
|
||||||
new YT.Player($(this).attr("id"), {
|
if(iframes.length > 0){
|
||||||
events: {
|
var id = $(banner).attr("data-subpart-id");
|
||||||
'onStateChange': onPlayerStateChange
|
if(yt_players[id] == undefined)
|
||||||
}
|
yt_players[id] = {};
|
||||||
});
|
var remove_ids = [];
|
||||||
|
Object.keys(yt_players[id]).forEach(function(k){
|
||||||
|
var yt_player = yt_players[id][k];
|
||||||
|
if($(yt_player.getIframe()).length == 0){
|
||||||
|
yt_player.destroy();
|
||||||
|
remove_ids.push(k);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
remove_ids.forEach(function(k){
|
||||||
|
delete yt_players[id][k];
|
||||||
|
})
|
||||||
|
iframes.each(function(i,iframe){
|
||||||
|
console.log($(iframe).attr("id"))
|
||||||
|
var yt_player = yt_players[id][$(iframe).attr("id")];
|
||||||
|
if(yt_player){
|
||||||
|
}else{
|
||||||
|
yt_player = new YT.Player($(iframe).attr("id"), {
|
||||||
|
events: {
|
||||||
|
'onReady': function(event){
|
||||||
|
var height = $(event.target.getIframe()).height();
|
||||||
|
var banner_wrap = $(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_{{subpart-id}}\"]");
|
||||||
|
banner_wrap.height(height).css({"padding-bottom":"4em","padding-top":""});
|
||||||
|
banner_wrap.find(".cycle-carousel-wrap").css("top","3em");
|
||||||
|
delete (event.target.B || event.target.H).onStateChange;
|
||||||
|
var onStateChange_idx = event.target.l.i.onStateChange;
|
||||||
|
onStateChange_idx.reverse();
|
||||||
|
var event_size = 3;
|
||||||
|
onStateChange_idx.forEach(function(start_idx){
|
||||||
|
event.target.l.h.splice(start_idx,event_size);
|
||||||
|
});
|
||||||
|
event.target.l.i.onStateChange = [];
|
||||||
|
event.target.l.s = event.target.l.h.length;
|
||||||
|
event.target.addEventListener('onStateChange',onPlayerStateChange);
|
||||||
|
{{extra_ready_script}}
|
||||||
|
},
|
||||||
|
'onStateChange': onPlayerStateChange
|
||||||
|
}
|
||||||
|
});
|
||||||
|
yt_players[id][$(iframe).attr("id")] = yt_player;
|
||||||
|
$(iframe).data("yt_player",yt_player);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPlayerStateChange(event){
|
function onPlayerStateChange(event){
|
||||||
var iframe = $(event.target.h),
|
var iframe = $(event.target.h),
|
||||||
cyclediv = iframe.parents("div.cycle-slideshow");
|
cyclediv = iframe.parents("div.cycle-slideshow");
|
||||||
var widget = cyclediv.parents('.ba-banner-widget-youtube')
|
var widget = cyclediv.parents('.ba-banner-widget-youtube');
|
||||||
if(event.data == YT.PlayerState.PLAYING || event.data == YT.PlayerState.BUFFERING){
|
if(event.data == YT.PlayerState.PLAYING || event.data == YT.PlayerState.BUFFERING){
|
||||||
|
cyclediv[0].need_resume = !(cyclediv.hasClass("cycle-paused"));
|
||||||
cyclediv.cycle("pause");
|
cyclediv.cycle("pause");
|
||||||
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','hidden')
|
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','hidden')
|
||||||
}else if(event.data == YT.PlayerState.PAUSED || event.data == YT.PlayerState.ENDED){
|
}else if(event.data == YT.PlayerState.UNSTARTED || event.data == YT.PlayerState.PAUSED || event.data == YT.PlayerState.ENDED){
|
||||||
cyclediv.cycle("resume");
|
if(cyclediv[0].need_resume)
|
||||||
|
cyclediv.cycle("resume");
|
||||||
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','')
|
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','')
|
||||||
}
|
}
|
||||||
|
{{extra_state_chnage_script}}
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
window.onYouTubePlayerAPIReady = function() {
|
window.onYouTubePlayerAPIReady = function() {
|
||||||
onYouTubeIframeAPIReady();
|
onYouTubeIframeAPIReady.apply(this,arguments);
|
||||||
};
|
};
|
||||||
|
var banner_wrap = $(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_{{subpart-id}}\"]");
|
||||||
|
var opts = banner_wrap.data('cycle.opts');
|
||||||
|
banner_wrap.on('cycle-paused',function(opts){
|
||||||
|
var controlplay = $(this).nextAll(".controlplay");
|
||||||
|
if(controlplay.length != 0){
|
||||||
|
controlplay.find(".resume-slide").removeClass("active");
|
||||||
|
controlplay.find(".pause-slide").addClass("active");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
banner_wrap.on('cycle-resumed',function(opts){
|
||||||
|
var controlplay = $(this).nextAll(".controlplay");
|
||||||
|
if(controlplay.length != 0){
|
||||||
|
controlplay.find(".resume-slide").addClass("active");
|
||||||
|
controlplay.find(".pause-slide").removeClass("active");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
var height = opts.slides.filter('.active').height() || opts.slides.height();
|
||||||
|
banner_wrap.height(height).css("padding-bottom","");
|
||||||
|
{{extra_document_ready_script}}
|
||||||
$('.pause-slide').off('click').click(function(){
|
$('.pause-slide').off('click').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
|
||||||
$(this).addClass('active')
|
$(this).addClass('active');
|
||||||
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active')
|
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active');
|
||||||
});
|
});
|
||||||
$('.resume-slide').off('click').click(function(){
|
$('.resume-slide').off('click').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
|
||||||
$(this).addClass('active')
|
$(this).addClass('active');
|
||||||
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active')
|
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active');
|
||||||
});
|
});
|
||||||
$('.next-button').off('click').on('click',function(){
|
$('.next-button').off('click').on('click',function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
|
||||||
|
@ -99,14 +162,39 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
|
||||||
$('.prev-button').off('click').on('click',function(){
|
$('.prev-button').off('click').on('click',function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
|
||||||
})
|
})
|
||||||
|
var resize_timeout_id;
|
||||||
|
$(window).resize(function(){
|
||||||
|
if(resize_timeout_id){
|
||||||
|
window.clearTimeout(resize_timeout_id);
|
||||||
|
}
|
||||||
|
resize_timeout_id = window.setTimeout(function(){
|
||||||
|
var banner_wrap = $(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_{{subpart-id}}\"]");
|
||||||
|
var opts = banner_wrap.data('cycle.opts');
|
||||||
|
var height = opts.slides.filter('.active').height() || opts.slides.height();
|
||||||
|
banner_wrap.height(height).css("padding-bottom","");
|
||||||
|
},300);
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.controlplay .resume-slide.active i{
|
.w-ba-banner .controlplay .resume-slide.active i{
|
||||||
color: #32D9C3;
|
color: #32D9C3;
|
||||||
}
|
}
|
||||||
.controlplay .pause-slide.active i{
|
.w-ba-banner .controlplay .pause-slide.active i{
|
||||||
color: #ff4500;
|
color: #ff4500;
|
||||||
}
|
}
|
||||||
|
.w-ba-banner .controlplay{
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
.w-ba-banner .button-mid{
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.next-button,.prev-button{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -1,13 +1,13 @@
|
||||||
<div class="w-annc widget-announcement-15" style="position:relative;">
|
<div class="w-annc widget-announcement-4 w-annc widget-announcement-15" style="position:relative;">
|
||||||
<div class="w-annc__more-wrap clearfix">
|
<div class="w-annc__more-wrap clearfix">
|
||||||
<h2 class="w-annc__widget-title">
|
<h2 class="w-annc__widget-title">
|
||||||
<span>{{widget-title}}</span>
|
<span>{{widget-title}}</span>
|
||||||
</h2>
|
</h2>
|
||||||
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
|
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
|
||||||
</div>
|
</div>
|
||||||
<div style="position: absolute;top: 9em;width:100%;">
|
<div style="position: absolute;top: 50%;bottom: 50%;width:100%;">
|
||||||
<button class="btn-left" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>" style="float: left;height: 2.5em; width: 2.5em;background: url(/assets/left-01.png) no-repeat;border: 0;background-size: contain;position: absolute;transition:.3s; left: 0;"></button>
|
<button class="btn-left" title = "<%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %>" style="float: left;height: 2.5em; width: 2.5em;background: url(/assets/left-01.png) no-repeat;border: 0;background-size: contain;position: absolute;transition:.3s; left: 0.6%;"><span style="display: none;"><%= (I18n.locale.to_s =="zh_tw") ? "上一張" : "prev" %></span></button>
|
||||||
<button class="btn-right" title = "<%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %>" style="float: right;;height: 2.5em; width: 2.5em;background: url(/assets/right-01.png) no-repeat;background-size: contain;border: 0;position: absolute;transition:.3s;right: 0;"></button>
|
<button class="btn-right" title = "<%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %>" style="float: right;;height: 2.5em; width: 2.5em;background: url(/assets/right-01.png) no-repeat;background-size: contain;border: 0;position: absolute;transition:.3s;right: 0.6%;"><span style="display: none;"><%= (I18n.locale.to_s =="zh_tw") ? "下一張" : "next" %></span></button>
|
||||||
</div>
|
</div>
|
||||||
<ul class="w-annc__list row" data-level="0" data-list="announcements">
|
<ul class="w-annc__list row" data-level="0" data-list="announcements">
|
||||||
<li class="w-annc__item col-md-4">
|
<li class="w-annc__item col-md-4">
|
||||||
|
@ -20,11 +20,11 @@
|
||||||
<span class="w-annc__status label {{status-class}}">{{status}}</span>
|
<span class="w-annc__status label {{status-class}}">{{status}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="w-annc__postdate-wrap" date-format="%Y-%m-%d">
|
<span class="w-annc__postdate-wrap" date-format="%Y-%m-%d">
|
||||||
|
<i class="fa fa-calendar-o"></i>
|
||||||
<span class="w-annc__postdate">{{postdate}}</span>
|
<span class="w-annc__postdate">{{postdate}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="w-annc__category-wrap">
|
<span class="w-annc__category-wrap">
|
||||||
|
<i class="fa fa-tasks"></i>
|
||||||
<span class="w-annc__category">{{category}}</span>
|
<span class="w-annc__category">{{category}}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,92 +38,126 @@
|
||||||
</div>
|
</div>
|
||||||
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function combineul(){
|
function combineul_{{subpart-id}}(){
|
||||||
for(var i=1;i<$('.widget-announcement-15 ul.w-annc__list').length;i++)
|
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(0).find('>li').eq(-1).after($('.widget-announcement-15 ul.w-annc__list').eq(i).html());
|
parents.each(function(i,v){
|
||||||
var ullength = $('.widget-announcement-15 ul.w-annc__list').length;
|
for(var i=1;i<$(v).find('ul.w-annc__list').length;i++)
|
||||||
for(var i = 1;i < ullength;i++)
|
$(v).find('ul.w-annc__list').eq(0).find('>li').eq(-1).after($(v).find('ul.w-annc__list').eq(i).html());
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(-1).remove();
|
var ullength = $(v).find('ul.w-annc__list').length;
|
||||||
|
for(var i = 1;i < ullength;i++)
|
||||||
|
$(v).find('ul.w-annc__list').eq(-1).remove();
|
||||||
|
})
|
||||||
};
|
};
|
||||||
var lilength = $('.widget-announcement-15 li.w-annc__item').length;
|
|
||||||
var num;
|
var num;
|
||||||
function reorganize(num){
|
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
|
||||||
combineul();
|
function reorganize_{{subpart-id}}(num){
|
||||||
for(var i=1;i< Math.ceil(lilength/num);i++){
|
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').toArray();
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(-1).after('<ul class="w-annc__list row" data-level="0" data-list="announcements"></ul>')
|
var currentul = uls.findIndex(function(v){
|
||||||
var lihtml="";
|
return $(v).hasClass("active") && !$(v).hasClass("hidden_item");
|
||||||
//var liheight=new Array(num);
|
})
|
||||||
if(i != (Math.ceil(lilength/num)-1)){
|
if(currentul == -1)
|
||||||
for(var j=0;j<num;j++){
|
currentul = 0;
|
||||||
lihtml += "<li class='w-annc__item col-md-4'>"+$('.widget-announcement-15 li.w-annc__item').eq(i*num+j).html()+"</li>"
|
var li_active_idx = 0;
|
||||||
//liheight[j] = $('.widget-announcement-15 li.w-annc__item').eq(i*num+j).height()+20;//20=>margin-top+margin-bottom
|
if(currentul != 0)
|
||||||
|
li_active_idx = $(uls[currentul]).find("li.w-annc__item").eq(0).index("li.w-annc__item");
|
||||||
|
combineul_{{subpart-id}}();
|
||||||
|
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
|
||||||
|
parents.each(function(i,v){
|
||||||
|
var lilength = $(v).find('li.w-annc__item').length;
|
||||||
|
var ul_length = Math.ceil(lilength/num);
|
||||||
|
for(var ii=1;ii< ul_length;ii++){
|
||||||
|
var clone_ul = $(v).find('ul.w-annc__list').eq(-1).clone();
|
||||||
|
clone_ul.empty();
|
||||||
|
clone_ul.removeClass("active");
|
||||||
|
clone_ul.css("display","");
|
||||||
|
$(v).find('ul.w-annc__list').eq(-1).after(clone_ul.prop("outerHTML"));
|
||||||
|
var lihtml="";
|
||||||
|
if(ii != (ul_length-1)){
|
||||||
|
for(var j=0;j<num;j++){
|
||||||
|
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
|
||||||
|
};
|
||||||
|
}else{
|
||||||
|
for(var j=0;j< lilength - num *(ul_length-1) ;j++){
|
||||||
|
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}else{
|
$(v).find('ul.w-annc__list').eq(-1).html(lihtml);
|
||||||
for(var j=0;j< lilength - num *(Math.ceil(lilength/num)-1) ;j++){
|
}
|
||||||
lihtml += "<li class='w-annc__item col-md-4'>"+$('.widget-announcement-15 li.w-annc__item').eq(i*num+j).html()+"</li>"
|
if(ul_length != 1 )
|
||||||
//liheight[j] = $('.widget-announcement-15 li.w-annc__item').eq(i*num+j).height()+20;//20=>margin-top+margin-bottom
|
for(var i=0;i< lilength -num ; i++)
|
||||||
};
|
$(v).find('ul.w-annc__list').eq(0).find("li.w-annc__item").eq(num).remove();
|
||||||
};
|
})
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(-1).html(lihtml);
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css("display","none");
|
||||||
};
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('padding','0 1.125em');
|
||||||
if(Math.ceil(lilength/num) != 1 )
|
$('[data-subpart-id=\"{{subpart-id}}\"] button').css('z-index','10');
|
||||||
for(var i=0;i< lilength -num ; i++ )
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(0).find("li.w-annc__item").eq(num).remove();
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('float','left');
|
||||||
for(var i=0;i< Math.ceil(lilength/num);i++)
|
var active_ul = $("[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item").eq(li_active_idx).parents("ul.w-annc__list");
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(i).attr("index",i);
|
active_ul.addClass("active");
|
||||||
$('.widget-announcement-15 ul.w-annc__list').css("display","none");
|
active_ul.removeClass("hidden_item");
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(0).css("display","flex");
|
active_ul.css("display","");
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(0).addClass("active");
|
|
||||||
$('.widget-announcement-15 ul.w-annc__list').css('padding','0 1.125em');
|
|
||||||
$('.widget-announcement-15 button').css('z-index','10');
|
|
||||||
$('.widget-announcement-15 ul.w-annc__list >li').css('width','calc('+100/num+'% )');
|
|
||||||
};
|
};
|
||||||
$(window).resize(function(){
|
$(window).resize(function(){
|
||||||
if($(window).width()>1024){
|
if($(window).width()>1024){
|
||||||
reorganize(3);
|
reorganize_{{subpart-id}}(3);
|
||||||
num=3;
|
num=3;
|
||||||
}else if($(window).width()>576){
|
}else if($(window).width()>576){
|
||||||
reorganize(2);
|
reorganize_{{subpart-id}}(2);
|
||||||
num=2;
|
num=2;
|
||||||
}else{
|
}else{
|
||||||
reorganize(1);
|
reorganize_{{subpart-id}}(1);
|
||||||
num=1;
|
num=1;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
if($(window).width()>1024){
|
if($(window).width()>1024){
|
||||||
reorganize(3);
|
reorganize_{{subpart-id}}(3);
|
||||||
num=3;
|
num=3;
|
||||||
}else if($(window).width()>576){
|
}else if($(window).width()>576){
|
||||||
reorganize(2);
|
reorganize_{{subpart-id}}(2);
|
||||||
num=2;
|
num=2;
|
||||||
}else{
|
}else{
|
||||||
reorganize(1);
|
reorganize_{{subpart-id}}(1);
|
||||||
num=1;
|
num=1;
|
||||||
}
|
}
|
||||||
var flag=false;
|
var flag=false;
|
||||||
$('.btn-left').click(function(){
|
$('.btn-left').click(function(){
|
||||||
if(!flag){
|
if(!flag){
|
||||||
var currentul = Number($('.widget-announcement-15 ul.w-annc__list.active').attr("index"));
|
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();
|
||||||
$('.widget-announcement-15 ul.w-annc__list').css('display','none');
|
var ul_length = uls.length;
|
||||||
if(currentul - 1 < 0)
|
var currentul = uls.findIndex(function(v){
|
||||||
currentul += Math.ceil(lilength/num);
|
return $(v).hasClass("active");
|
||||||
$('.widget-announcement-15 ul.w-annc__list').removeClass("active");
|
})
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(currentul-1).addClass("active");
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none');
|
||||||
flag=true;
|
if(currentul - 1 < 0)
|
||||||
$('.widget-announcement-15 ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;});
|
currentul += ul_length;
|
||||||
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active");
|
||||||
|
var active_item = $(uls[currentul-1]);
|
||||||
|
active_item.addClass("active");
|
||||||
|
active_item.find("li").css("display","block");
|
||||||
|
flag=true;
|
||||||
|
$("body").css("overflow-x","hidden");
|
||||||
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){$("body").css("overflow-x","");flag=false;});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
$('.btn-right').click(function(){
|
$('.btn-right').click(function(){
|
||||||
|
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
|
||||||
if(!flag){
|
if(!flag){
|
||||||
var currentul = Number($('.widget-announcement-15 ul.w-annc__list.active').attr("index"));
|
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();
|
||||||
$('.widget-announcement-15 ul.w-annc__list').css("display","none");
|
var ul_length = uls.length;
|
||||||
if(currentul + 1 > Math.ceil(lilength/num) - 1)
|
var currentul = uls.findIndex(function(v){
|
||||||
currentul -= Math.ceil(lilength/num);
|
return $(v).hasClass("active");
|
||||||
$('.widget-announcement-15 ul.w-annc__list').removeClass("active");
|
})
|
||||||
$('.widget-announcement-15 ul.w-annc__list').eq(currentul+1).addClass("active");
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none');
|
||||||
flag=true;
|
if(currentul + 1 > ul_length - 1)
|
||||||
$('.widget-announcement-15 ul.w-annc__list.active').eq(0).effect("slide", { direction: "right", mode: 'show', duration: 500},function(){flag=false;});
|
currentul -= ul_length;
|
||||||
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active");
|
||||||
|
var active_item = $(uls[currentul+1]);
|
||||||
|
active_item.addClass("active");
|
||||||
|
active_item.find("li").css("display","block");
|
||||||
|
flag=true;
|
||||||
|
$("body").css("overflow-x","hidden");
|
||||||
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "right", mode: 'show', duration: 500},function(){$("body").css("overflow-x","");flag=false;});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1,86 @@
|
||||||
|
<div class="w-annc widget-announcement-18">
|
||||||
|
<div class="w-annc__more-wrap clearfix">
|
||||||
|
<h2 class="w-annc__widget-title">
|
||||||
|
<span>{{widget-title}}</span>
|
||||||
|
</h2>
|
||||||
|
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
|
||||||
|
</div>
|
||||||
|
<ul class="w-annc__list row" data-level="0" data-list="announcements">
|
||||||
|
<li class="w-annc__item col-md-4">
|
||||||
|
<div class="w-annc__img-wrap">
|
||||||
|
<a href="{{link_to_show}}" title="{{title}}">
|
||||||
|
<img class="w-annc__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="w-annc__content-wrap">
|
||||||
|
<h4 class="w-annc__entry-title">
|
||||||
|
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
|
||||||
|
</h4>
|
||||||
|
<div class="w-annc__subtitle">{{subtitle}}</div>
|
||||||
|
<div class="w-annc_read_more"><a href="{{link_to_show}}" title="{{title}}">{{read_more_text}}</a></div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<style type="text/css">
|
||||||
|
.widget-announcement-18 [data-list="announcements"] li > *{
|
||||||
|
background: #ffffff;
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.widget-announcement-18 [data-list="announcements"] .w-annc__img{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.widget-announcement-18 [data-list="announcements"] .w-annc__content-wrap{
|
||||||
|
padding: 0 1em;
|
||||||
|
}
|
||||||
|
.widget-announcement-18 .w-annc__title {
|
||||||
|
line-height: 1.3;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
.widget-announcement-18 .w-annc__widget-title {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.widget-announcement-18 .w-annc__more {
|
||||||
|
margin-top: 1.5em;
|
||||||
|
}
|
||||||
|
.widget-announcement-18 .w-annc__list > .w-annc__item:nth-child(3n+1) {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.widget-announcement-18 li.w-annc__item{
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-announcement-18 .w-annc__img-wrap {
|
||||||
|
padding: 0 0 1em 0;
|
||||||
|
}
|
||||||
|
.w-annc_read_more{
|
||||||
|
display: inline-block;
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
.w-annc_read_more a{
|
||||||
|
float: left;
|
||||||
|
background: #4a97c2;
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 0 0.5em;
|
||||||
|
border-radius: 0.3em;
|
||||||
|
border: 0.5em solid #4a97c2;
|
||||||
|
}
|
||||||
|
.w-annc__subtitle {
|
||||||
|
padding-bottom: 0.3em;
|
||||||
|
}
|
||||||
|
.w-annc_read_more a:hover{
|
||||||
|
background: #327397;
|
||||||
|
border: 0.5em solid #327397;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("[data-subpart-id=\"{{subpart-id}}\"] .w-annc__subtitle").each(function(i,v){
|
||||||
|
var subtitle = $(v).text();
|
||||||
|
if(subtitle.length > 15){
|
||||||
|
$(v).text(subtitle.slice(0,15) + "...");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
|
@ -6,7 +6,7 @@
|
||||||
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
|
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多最新消息" : "More NEWS" %></a>
|
||||||
</div>
|
</div>
|
||||||
<ul class="w-annc__list row" data-level="0" data-list="announcements">
|
<ul class="w-annc__list row" data-level="0" data-list="announcements">
|
||||||
<li class="w-annc__item col-sm-4">
|
<li class="w-annc__item col-md-4">
|
||||||
<div class="w-annc__img-wrap bullseye">
|
<div class="w-annc__img-wrap bullseye">
|
||||||
<img class="w-annc__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
<img class="w-annc__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,11 +16,11 @@
|
||||||
<span class="w-annc__status label {{status-class}}">{{status}}</span>
|
<span class="w-annc__status label {{status-class}}">{{status}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="w-annc__postdate-wrap" date-format="%Y-%m-%d">
|
<span class="w-annc__postdate-wrap" date-format="%Y-%m-%d">
|
||||||
|
<i class="fa fa-calendar-o"></i>
|
||||||
<span class="w-annc__postdate">{{postdate}}</span>
|
<span class="w-annc__postdate">{{postdate}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="w-annc__category-wrap">
|
<span class="w-annc__category-wrap">
|
||||||
|
<i class="fa fa-tasks"></i>
|
||||||
<span class="w-annc__category">{{category}}</span>
|
<span class="w-annc__category">{{category}}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,4 +32,77 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<style type="text/css">
|
||||||
|
[data-subpart-id="{{subpart-id}}"] .bullseye{
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
function combineul_{{subpart-id}}(){
|
||||||
|
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
|
||||||
|
parents.each(function(i,v){
|
||||||
|
for(var i=1;i<$(v).find('ul.w-annc__list').length;i++)
|
||||||
|
$(v).find('ul.w-annc__list').eq(0).find('>li').eq(-1).after($(v).find('ul.w-annc__list').eq(i).html());
|
||||||
|
var ullength = $(v).find('ul.w-annc__list').length;
|
||||||
|
for(var i = 1;i < ullength;i++)
|
||||||
|
$(v).find('ul.w-annc__list').eq(-1).remove();
|
||||||
|
})
|
||||||
|
};
|
||||||
|
var num;
|
||||||
|
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
|
||||||
|
function reorganize_{{subpart-id}}(num){
|
||||||
|
combineul_{{subpart-id}}();
|
||||||
|
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
|
||||||
|
parents.each(function(i,v){
|
||||||
|
var lilength = $(v).find('li.w-annc__item').length;
|
||||||
|
var ul_length = Math.ceil(lilength/num);
|
||||||
|
for(var ii=1;ii< ul_length;ii++){
|
||||||
|
var clone_ul = $(v).find('ul.w-annc__list').eq(-1).clone();
|
||||||
|
clone_ul.empty();
|
||||||
|
clone_ul.removeClass("active");
|
||||||
|
clone_ul.css("display","");
|
||||||
|
$(v).find('ul.w-annc__list').eq(-1).after(clone_ul.prop("outerHTML"));
|
||||||
|
var lihtml="";
|
||||||
|
if(ii != (ul_length-1)){
|
||||||
|
for(var j=0;j<num;j++){
|
||||||
|
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
|
||||||
|
};
|
||||||
|
}else{
|
||||||
|
for(var j=0;j< lilength - num *(ul_length-1) ;j++){
|
||||||
|
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
$(v).find('ul.w-annc__list').eq(-1).html(lihtml);
|
||||||
|
}
|
||||||
|
if(ul_length != 1 )
|
||||||
|
for(var i=0;i< lilength -num ; i++)
|
||||||
|
$(v).find('ul.w-annc__list').eq(0).find("li.w-annc__item").eq(num).remove();
|
||||||
|
})
|
||||||
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
|
||||||
|
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css("float","left");
|
||||||
|
};
|
||||||
|
$(window).resize(function(){
|
||||||
|
if($(window).width()>1024){
|
||||||
|
reorganize_{{subpart-id}}(3);
|
||||||
|
num=3;
|
||||||
|
}else if($(window).width()>576){
|
||||||
|
reorganize_{{subpart-id}}(2);
|
||||||
|
num=2;
|
||||||
|
}else{
|
||||||
|
reorganize_{{subpart-id}}(1);
|
||||||
|
num=1;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$(document).ready(function(){
|
||||||
|
if($(window).width()>1024){
|
||||||
|
reorganize_{{subpart-id}}(3);
|
||||||
|
num=3;
|
||||||
|
}else if($(window).width()>576){
|
||||||
|
reorganize_{{subpart-id}}(2);
|
||||||
|
num=2;
|
||||||
|
}else{
|
||||||
|
reorganize_{{subpart-id}}(1);
|
||||||
|
num=1;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="i-annc index-announcement-11 {{display}}">
|
<div class="i-annc index-announcement-11 {{display}}">
|
||||||
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
||||||
<table class="i-annc__table table table-striped dt-responsive nowrap">
|
<table class="i-annc__table table table-striped dt-responsive">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
||||||
|
@ -25,10 +25,15 @@
|
||||||
{{pagination_goes_here}}
|
{{pagination_goes_here}}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('.i-annc__table').DataTable({
|
$('.i-annc__table').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="i-annc index-announcement-12 {{display}}">
|
<div class="i-annc index-announcement-12 {{display}}">
|
||||||
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
||||||
<table class="i-annc__table table table-striped dt-responsive nowrap">
|
<table class="i-annc__table table table-striped dt-responsive">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
||||||
|
@ -27,10 +27,15 @@
|
||||||
{{pagination_goes_here}}
|
{{pagination_goes_here}}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('.i-annc__table').DataTable({
|
$('.i-annc__table').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="i-annc index-announcement-15 {{display}}">
|
<div class="i-annc index-announcement-15 {{display}}">
|
||||||
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
||||||
<table class="i-annc__table table table-striped dt-responsive nowrap">
|
<table class="i-annc__table table table-striped dt-responsive">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
||||||
|
@ -25,10 +25,15 @@
|
||||||
{{pagination_goes_here}}
|
{{pagination_goes_here}}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('.i-annc__table').DataTable({
|
$('.i-annc__table').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="i-annc index-announcement-16 {{display}}">
|
<div class="i-annc index-announcement-16 {{display}}">
|
||||||
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
<h3 class="i-annc__page-title">{{page-title}}</h3>
|
||||||
<table class="i-annc__table table table-striped dt-responsive nowrap">
|
<table class="i-annc__table table table-striped dt-responsive">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
<th class="i-annc__th i-annc__th--date all" id='date'>{{date-head}}</th>
|
||||||
|
@ -39,10 +39,15 @@
|
||||||
{{pagination_goes_here}}
|
{{pagination_goes_here}}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('.i-annc__table').DataTable({
|
$('.i-annc__table').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -1,278 +1,286 @@
|
||||||
{
|
{
|
||||||
"frontend": [
|
"frontend": [
|
||||||
{
|
{
|
||||||
"filename" : "annc_index1",
|
"filename": "annc_index1",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "1. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
|
"zh_tw": "1. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
|
||||||
"en" : "1. Standard Title List-1 (widget-title, category, status, title, postdate)"
|
"en": "1. Standard Title List-1 (widget-title, category, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index1_thumbs.png"
|
"thumbnail": "annc_index1_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index2",
|
"filename": "annc_index2",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "2. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
"zh_tw": "2. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
||||||
"en" : "2. Standard Title List-2 (widget-title, postdate, status, title, category)"
|
"en": "2. Standard Title List-2 (widget-title, postdate, status, title, category)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index2_thumbs.png"
|
"thumbnail": "annc_index2_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index3",
|
"filename": "annc_index3",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "3. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
"zh_tw": "3. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
||||||
"en" : "3. Simple Title List-1 (widget-title, status, title, postdate)"
|
"en": "3. Simple Title List-1 (widget-title, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index3_thumbs.png"
|
"thumbnail": "annc_index3_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index4",
|
"filename": "annc_index4",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "4. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
"zh_tw": "4. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
||||||
"en" : "4. Simple Title List-2 (widget-title, postdate, status, title)"
|
"en": "4. Simple Title List-2 (widget-title, postdate, status, title)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index4_thumbs.png"
|
"thumbnail": "annc_index4_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index5",
|
"filename": "annc_index5",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "5. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "5. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "5. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "5. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index5_thumbs.png"
|
"thumbnail": "annc_index5_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index6",
|
"filename": "annc_index6",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "6. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "6. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "6. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "6. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index6_thumbs.png"
|
"thumbnail": "annc_index6_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index7",
|
"filename": "annc_index7",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "7. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "7. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "7. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "7. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index7_thumbs.png"
|
"thumbnail": "annc_index7_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index8",
|
"filename": "annc_index8",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "8. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
|
"zh_tw": "8. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
|
||||||
"en" : "8. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
|
"en": "8. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index8_thumbs.png"
|
"thumbnail": "annc_index8_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index9",
|
"filename": "annc_index9",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "9. 標準文字列表三欄 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
|
"zh_tw": "9. 標準文字列表三欄 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
|
||||||
"en" : "9. 3-Column Standard Text List (widget-title, postdate, category, status, title, subtitle)"
|
"en": "9. 3-Column Standard Text List (widget-title, postdate, category, status, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index9_thumbs.png"
|
"thumbnail": "annc_index9_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index10",
|
"filename": "annc_index10",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "10. 連結 + 附件表格列表 ( 模組標題, 類別, 狀態, 標題 )",
|
"zh_tw": "10. 連結 + 附件表格列表 ( 模組標題, 類別, 狀態, 標題 )",
|
||||||
"en" : "10. Table List including Links and attachments (widget-title, category, status, title, view-count)"
|
"en": "10. Table List including Links and attachments (widget-title, category, status, title, view-count)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index10_thumbs.png"
|
"thumbnail": "annc_index10_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index11",
|
"filename": "annc_index11",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "11. 標準表格列表-1 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
"zh_tw": "11. 標準表格列表-1 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
||||||
"en" : "11. Standard Table List-1 (widget-title, postdate, status, title, category)"
|
"en": "11. Standard Table List-1 (widget-title, postdate, status, title, category)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index11_thumbs.png"
|
"thumbnail": "annc_index11_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index12",
|
"filename": "annc_index12",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "12. 標準表格列表-2 ( 模組標題, 日期, 狀態, 標題, 類別, 瀏覽人次 )",
|
"zh_tw": "12. 標準表格列表-2 ( 模組標題, 日期, 狀態, 標題, 類別, 瀏覽人次 )",
|
||||||
"en" : "12. Standard Table List-2 (widget-title, postdate, status, title, category, view-count)"
|
"en": "12. Standard Table List-2 (widget-title, postdate, status, title, category, view-count)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index12_thumbs.png"
|
"thumbnail": "annc_index12_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index13",
|
"filename": "annc_index13",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "13. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
"zh_tw": "13. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
||||||
"en" : "13. Simple Table List (widget-title, status, title, postdate)"
|
"en": "13. Simple Table List (widget-title, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index13_thumbs.png"
|
"thumbnail": "annc_index13_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index14",
|
"filename": "annc_index14",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "14. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
"zh_tw": "14. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
||||||
"en" : "14. Simple Table List (widget-title, postdate, status, title)"
|
"en": "14. Simple Table List (widget-title, postdate, status, title)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index14_thumbs.png"
|
"thumbnail": "annc_index14_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index15",
|
"filename": "annc_index15",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "15. 精簡表格列表-3 ( 模組標題, 日期, 狀態, 標題, 瀏覽人次 )",
|
"zh_tw": "15. 精簡表格列表-3 ( 模組標題, 日期, 狀態, 標題, 瀏覽人次 )",
|
||||||
"en" : "15. Simple Table List (widget-title, postdate, status, title, view-count)"
|
"en": "15. Simple Table List (widget-title, postdate, status, title, view-count)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index15_thumbs.png"
|
"thumbnail": "annc_index15_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index16",
|
"filename": "annc_index16",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "16. 連結 + 附件表格列表 ( 模組標題, 類別, 狀態, 標題 )",
|
"zh_tw": "16. 連結 + 附件表格列表 ( 模組標題, 類別, 狀態, 標題 )",
|
||||||
"en" : "16. Table List including Links and attachments (widget-title, category, status, title, view-count)"
|
"en": "16. Table List including Links and attachments (widget-title, category, status, title, view-count)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index16_thumbs.png"
|
"thumbnail": "annc_index16_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_index17",
|
"filename": "annc_index17",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "17. 標準標題列表-1A ( 類別, 標題, 日期, 張貼人 )",
|
"zh_tw": "17. 標準標題列表-1A ( 類別, 標題, 日期, 張貼人 )",
|
||||||
"en" : "1. Standard Title List-1 ( category, title, postdate, department)"
|
"en": "1. Standard Title List-1 ( category, title, postdate, department)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_index1_thumbs.png"
|
"thumbnail": "annc_index1_thumbs.png"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"widgets" : [
|
"widgets": [
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget1",
|
"filename": "annc_widget1",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "1. 標準圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "1. 標準圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "1. Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "1. Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget1_thumbs.png"
|
"thumbnail": "annc_widget1_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget2",
|
"filename": "annc_widget2",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "2. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "2. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "2. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "2. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget2_thumbs.png"
|
"thumbnail": "annc_widget2_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget3",
|
"filename": "annc_widget3",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "3. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "3. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "3. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "3. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget3_thumbs.png"
|
"thumbnail": "annc_widget3_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget4",
|
"filename": "annc_widget4",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "4. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "4. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "4. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "4. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget4_thumbs.png"
|
"thumbnail": "annc_widget4_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget15",
|
"filename": "annc_widget15",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "4.5. 三欄圖文-slide ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
"zh_tw": "4.5. 三欄圖文-slide ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
|
||||||
"en" : "4.5. 3-Column Standard Image + Text -slide(widget-title, image, status, postdate, category, title, subtitle)"
|
"en": "4.5. 3-Column Standard Image + Text -slide(widget-title, image, status, postdate, category, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget4_thumbs.png"
|
"thumbnail": "annc_widget4_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget5",
|
"filename": "annc_widget5",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "5. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
|
"zh_tw": "5. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
|
||||||
"en" : "5. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
|
"en": "5. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget5_thumbs.png"
|
"thumbnail": "annc_widget5_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget6",
|
"filename": "annc_widget6",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "6. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
|
"zh_tw": "6. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
|
||||||
"en" : "6. Standard Title List-1 (widget-title, category, status, title, postdate)"
|
"en": "6. Standard Title List-1 (widget-title, category, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget6_thumbs.png"
|
"thumbnail": "annc_widget6_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget7",
|
"filename": "annc_widget7",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "7. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
"zh_tw": "7. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
||||||
"en" : "7. Standard Title List-2 (widget-title, postdate, status, title, category)"
|
"en": "7. Standard Title List-2 (widget-title, postdate, status, title, category)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget7_thumbs.png"
|
"thumbnail": "annc_widget7_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget8",
|
"filename": "annc_widget8",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "8. 標準表格列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
|
"zh_tw": "8. 標準表格列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
|
||||||
"en" : "8. Standard Table List-1 (widget-title, category, status, title, postdate)"
|
"en": "8. Standard Table List-1 (widget-title, category, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget8_thumbs.png"
|
"thumbnail": "annc_widget8_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget9",
|
"filename": "annc_widget9",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "9. 標準表格列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
"zh_tw": "9. 標準表格列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
|
||||||
"en" : "9. Standard Table List-2 (widget-title, postdate, status, title, category)"
|
"en": "9. Standard Table List-2 (widget-title, postdate, status, title, category)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget9_thumbs.png"
|
"thumbnail": "annc_widget9_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget10",
|
"filename": "annc_widget10",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "10. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
"zh_tw": "10. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
||||||
"en" : "10. Simple Title List-1 (widget-title, status, title, postdate)"
|
"en": "10. Simple Title List-1 (widget-title, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget10_thumbs.png"
|
"thumbnail": "annc_widget10_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget11",
|
"filename": "annc_widget11",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "11. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
"zh_tw": "11. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
||||||
"en" : "11. Simple Title List-2 (widget-title, postdate, status, title)"
|
"en": "11. Simple Title List-2 (widget-title, postdate, status, title)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget11_thumbs.png"
|
"thumbnail": "annc_widget11_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget12",
|
"filename": "annc_widget12",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "12. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
"zh_tw": "12. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
|
||||||
"en" : "12. Simple Table List (widget-title, status, title, postdate)"
|
"en": "12. Simple Table List (widget-title, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget12_thumbs.png"
|
"thumbnail": "annc_widget12_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget13",
|
"filename": "annc_widget13",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "13. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
"zh_tw": "13. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
||||||
"en" : "13. Simple Table List (widget-title, postdate, status, title)"
|
"en": "13. Simple Table List (widget-title, postdate, status, title)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget13_thumbs.png"
|
"thumbnail": "annc_widget13_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget14",
|
"filename": "annc_widget14",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "14. 一圖 + 標題列表 ( 模組標題, 圖片, 狀態, 標題, 日期 )",
|
"zh_tw": "14. 一圖 + 標題列表 ( 模組標題, 圖片, 狀態, 標題, 日期 )",
|
||||||
"en" : "14. 1 Image + Title List (widget-title, image, status, title, postdate)"
|
"en": "14. 1 Image + Title List (widget-title, image, status, title, postdate)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget14_thumbs.png"
|
"thumbnail": "annc_widget14_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget16",
|
"filename": "annc_widget16",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "16. 單欄圖文輪播 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題 )",
|
"zh_tw": "16. 單欄圖文輪播 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題 )",
|
||||||
"en" : "16. Image + Text slide (widget-title, image, status, postdate, category, title)"
|
"en": "16. Image + Text slide (widget-title, image, status, postdate, category, title)"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget1_thumbs.png"
|
"thumbnail": "annc_widget1_thumbs.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "annc_widget17",
|
"filename": "annc_widget17",
|
||||||
"name" : {
|
"name": {
|
||||||
"zh_tw" : "17. 含搜尋功能之精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
"zh_tw": "17. 含搜尋功能之精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
|
||||||
"en" : "17. Simple Title List-2 (widget-title, postdate, status, title), including search"
|
"en": "17. Simple Title List-2 (widget-title, postdate, status, title), including search"
|
||||||
},
|
},
|
||||||
"thumbnail" : "annc_widget11_thumbs.png"
|
"thumbnail": "annc_widget11_thumbs.png"
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
|
"filename": "annc_widget18",
|
||||||
|
"name": {
|
||||||
|
"zh_tw": "18. 三欄圖文精簡版 ( 模組標題, 標題, 副標題(只顯示15字) )",
|
||||||
|
"en": "18. 3-Column Standard Image + Text Lite (widget-title, title, subtitle(only display 15 words))"
|
||||||
|
},
|
||||||
|
"thumbnail": "annc_widget4_thumbs.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -1,3 +1,28 @@
|
||||||
|
<style type="text/css">
|
||||||
|
.full-size-img img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.full-size-img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.s-annc__sub-img.pull-right {
|
||||||
|
margin-left: 2em;
|
||||||
|
}
|
||||||
|
.s-annc__sub-img.pull-left {
|
||||||
|
margin-right: 2em;
|
||||||
|
}
|
||||||
|
strong.carousel__description {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.carousel_images{
|
||||||
|
{{carousel_display_style}}
|
||||||
|
}
|
||||||
|
@media (max-width: 767px){
|
||||||
|
.carousel_images{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<article class="s-annc show-announcement">
|
<article class="s-annc show-announcement">
|
||||||
<h1 class="s-annc__show-title">{{title}}</h1>
|
<h1 class="s-annc__show-title">{{title}}</h1>
|
||||||
|
|
||||||
|
@ -19,7 +44,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<section class="s-annc__post-wrap">
|
<section class="s-annc__post-wrap">
|
||||||
<div class="s-annc__sub-img pull-right {{hide_class}}">
|
<div class="s-annc__sub-img {{hide_class}}">
|
||||||
<img src="{{img_src}}" alt="{{img_description}}"></img>
|
<img src="{{img_src}}" alt="{{img_description}}"></img>
|
||||||
<span class="s-annc__img_description">{{img_description}}</span>
|
<span class="s-annc__img_description">{{img_description}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -44,9 +69,169 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
<div class="carousel_images">
|
||||||
|
<div class="w-ba-banner ba-banner-widget-1">
|
||||||
|
<div class="w-ba-banner__wrap cycle-slideshow"
|
||||||
|
data-list="bulletin_carousel_images"
|
||||||
|
data-level="0"
|
||||||
|
data-cycle-slides=".bulletin_carousel_slide"
|
||||||
|
data-cycle-log="false"
|
||||||
|
data-cycle-auto-height="0"
|
||||||
|
data-cycle-speed="300"
|
||||||
|
data-cycle-timeout="5000"
|
||||||
|
data-cycle-fx="fade"
|
||||||
|
data-pager-active-class="active-slide"
|
||||||
|
data-cycle-swipe=true
|
||||||
|
data-cycle-swipe-fx="scrollHorz"
|
||||||
|
>
|
||||||
|
<div class="w-ba-banner__slide bulletin_carousel_slide"
|
||||||
|
data-cycle-title="{{description_text}}"
|
||||||
|
>
|
||||||
|
<img class="w-ba-banner__image banner-responsive" src="{{src}}" alt="{{description_text}}">
|
||||||
|
<div class="ad-overlay w-ad-banner__overlay bulletin_carousel__overlay">
|
||||||
|
<p><strong class="carousel__description">{{description}}</strong></p>
|
||||||
|
</div>
|
||||||
|
<div class="transitionfade"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul class="controlplay"><a class="resume-slide" title = "{{resume_btn_title}}"><i></i></a><a class="pause-slide" title = "{{pause_btn_title}}"><i></i></a></ul>
|
||||||
|
<ul class="button-mid">
|
||||||
|
<i class="fa fa-angle-left prev-button" aria-hidden="true" title = "{{prev_btn_title}}"></i>
|
||||||
|
<i class="fa fa-angle-right next-button" aria-hidden="true" title = "{{next_btn_title}}"></i>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div style="position: relative;">
|
||||||
|
<h4><span class="active_slide">1</span>/{{carousel_count}}</h4>
|
||||||
|
<ul class="carousel_images_slide w-annc__list row list-unstyled" data-level="0" data-list="bulletin_carousel_images">
|
||||||
|
<li class="carousel_img_item col-sm-3">
|
||||||
|
<div class="carousel_img-wrap">
|
||||||
|
<img class="carousel_img" src="{{src}}" alt="{{description_text}}">
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<ul class="button-mid">
|
||||||
|
<i class="fa fa-angle-left prev-button prev_img" aria-hidden="true" title = "{{prev_btn_title}}"></i>
|
||||||
|
<i class="fa fa-angle-right next-button next_img" aria-hidden="true" title = "{{next_btn_title}}"></i>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{link_to_edit}}
|
{{link_to_edit}}
|
||||||
|
<style type="text/css">
|
||||||
|
.carousel_img_item{
|
||||||
|
display: none;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.controlplay {
|
||||||
|
position: absolute;
|
||||||
|
right: 1em;
|
||||||
|
top: 3%;
|
||||||
|
z-index: 200;
|
||||||
|
}
|
||||||
|
.controlplay a {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 0.25em;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: 1px solid rgba(255,255,255,0.5);
|
||||||
|
background: rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
.controlplay a i {
|
||||||
|
font-family: FontAwesome;
|
||||||
|
position: relative;
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1;
|
||||||
|
color: #FFF;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-style: unset;
|
||||||
|
}
|
||||||
|
.controlplay .resume-slide i::before {
|
||||||
|
content: "\f04b";
|
||||||
|
}
|
||||||
|
.controlplay .pause-slide i::before {
|
||||||
|
content: "\f04c";
|
||||||
|
}
|
||||||
|
ul.button-mid .prev-button {
|
||||||
|
transition: 0.4s;
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
left: 0.5rem;
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
font-size: 2.2rem;
|
||||||
|
color: #ffffff;
|
||||||
|
background: rgba(0,0,0,0.2);
|
||||||
|
text-align: center;
|
||||||
|
line-height: 2.5rem;
|
||||||
|
top: 50%;
|
||||||
|
position: absolute;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
ul.button-mid .next-button {
|
||||||
|
float: right;
|
||||||
|
transition: 0.4s;
|
||||||
|
position: relative;
|
||||||
|
right: 0.5rem;
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
font-size: 2.2rem;
|
||||||
|
color: #fff;
|
||||||
|
background: rgba(0,0,0,0.2);
|
||||||
|
text-align: center;
|
||||||
|
line-height: 2.5rem;
|
||||||
|
top: 50%;
|
||||||
|
position: absolute;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
.carousel_images_slide{
|
||||||
|
padding: 3em;
|
||||||
|
}
|
||||||
|
.carousel_img_item img{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
@media (max-width: 479px){
|
||||||
|
.carousel_img_item:nth-child(-n+1){
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.carousel_img_item{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 480px){
|
||||||
|
.carousel_img_item:nth-child(-n+2){
|
||||||
|
display: block;
|
||||||
|
width: 50%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.carousel_img_item{
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 768px){
|
||||||
|
.carousel_img_item:nth-child(-n+3){
|
||||||
|
display: block;
|
||||||
|
width: 33%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.carousel_img_item{
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1280px){
|
||||||
|
.carousel_img_item:nth-child(-n+4){
|
||||||
|
display: block;
|
||||||
|
width: 25%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.carousel_img_item{
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script>
|
<script>
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
|
@ -67,6 +252,108 @@
|
||||||
hideEmptyEl($('.s-annc__link-title'), $('.s-annc__related-link'));
|
hideEmptyEl($('.s-annc__link-title'), $('.s-annc__related-link'));
|
||||||
|
|
||||||
$("img[src='']").remove();
|
$("img[src='']").remove();
|
||||||
|
$('.pause-slide').click(function(){
|
||||||
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
|
||||||
|
});
|
||||||
|
$('.resume-slide').click(function(){
|
||||||
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
|
||||||
|
});
|
||||||
|
$('.next-button').off('click').on('click',function(){
|
||||||
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
|
||||||
|
})
|
||||||
|
$('.prev-button').off('click').on('click',function(){
|
||||||
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
|
||||||
|
})
|
||||||
|
window.active_slide = 0;
|
||||||
|
$('.prev_img').off('click').on('click',function(){
|
||||||
|
var carousel_images_slide = $('.carousel_images_slide');
|
||||||
|
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
|
||||||
|
if(carousel_images_slide_first_child.length > 0){
|
||||||
|
var content_size = Math.floor((carousel_images_slide.outerWidth() - Number.parseInt(carousel_images_slide.css('font-size')) * 3) / carousel_images_slide_first_child.outerWidth(true));
|
||||||
|
content_size = Math.max(content_size,1);
|
||||||
|
if(carousel_images_slide.find(">li").length > content_size && active_slide > 0){
|
||||||
|
active_slide -= content_size;
|
||||||
|
carousel_images_slide.find(">li").css("display","none");
|
||||||
|
for(var i = active_slide; i < active_slide + content_size;i++){
|
||||||
|
carousel_images_slide.find(">li").eq(i).css("display","block");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$('.next_img').off('click').on('click',function(){
|
||||||
|
var carousel_images_slide = $('.carousel_images_slide');
|
||||||
|
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
|
||||||
|
if(carousel_images_slide_first_child.length > 0){
|
||||||
|
var content_size = Math.floor((carousel_images_slide.outerWidth() - Number.parseInt(carousel_images_slide.css('font-size')) * 3) / carousel_images_slide_first_child.outerWidth(true));
|
||||||
|
content_size = Math.max(content_size,1);
|
||||||
|
var li_length = carousel_images_slide.find(">li").length;
|
||||||
|
if(li_length > content_size){
|
||||||
|
active_slide += content_size;
|
||||||
|
active_slide = Math.min(active_slide,li_length - 1);
|
||||||
|
carousel_images_slide.find(">li").css("display","none");
|
||||||
|
for(var i = active_slide; i < active_slide + content_size;i++){
|
||||||
|
carousel_images_slide.find(">li").eq(i).css("display","block");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
$(".carousel_img_item img").off("click").on("click",function(){
|
||||||
|
$(".carousel_images .cycle-slideshow").cycle($(this).index(".carousel_img_item img"));
|
||||||
|
})
|
||||||
|
$(document).ready(function(){
|
||||||
|
$(".carousel_images .cycle-slideshow").cycle('pause');
|
||||||
|
var carousel_image_block_width = $('.carousel_images').width();
|
||||||
|
var heights = $(".bulletin_carousel_slide").map(function(i,v){
|
||||||
|
return $(v).height() * carousel_image_block_width / $(v).width();
|
||||||
|
})
|
||||||
|
var max_height = Math.max.apply(null,heights);
|
||||||
|
$(".bulletin_carousel_slide").each(function(i,v){
|
||||||
|
$(v).height(max_height);
|
||||||
|
})
|
||||||
|
$(".carousel_images .cycle-slideshow").cycle('resume');
|
||||||
|
$('.cycle-slideshow').on('cycle-after',function(){
|
||||||
|
$(".active_slide").text($('.bulletin_carousel_slide.cycle-slide-active').index());
|
||||||
|
})
|
||||||
|
})
|
||||||
|
$(window).on("load",function(){
|
||||||
|
$(".carousel_images .cycle-slideshow").cycle('pause');
|
||||||
|
var carousel_image_block_width = $('.carousel_images').width();
|
||||||
|
var heights = $(".bulletin_carousel_slide").map(function(i,v){
|
||||||
|
return $(v).height() * carousel_image_block_width / $(v).width();
|
||||||
|
})
|
||||||
|
var max_height = Math.max.apply(null,heights);
|
||||||
|
$(".bulletin_carousel_slide").each(function(i,v){
|
||||||
|
$(v).height(max_height);
|
||||||
|
})
|
||||||
|
$(".carousel_images .cycle-slideshow").cycle('resume');
|
||||||
|
})
|
||||||
|
$(window).resize(function(){
|
||||||
|
var carousel_images_slide = $('.carousel_images_slide');
|
||||||
|
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
|
||||||
|
if(carousel_images_slide_first_child.length > 0){
|
||||||
|
var content_size = Math.floor((carousel_images_slide.outerWidth() - Number.parseInt(carousel_images_slide.css('font-size')) * 3) / carousel_images_slide_first_child.outerWidth(true));
|
||||||
|
content_size = Math.max(content_size,1);
|
||||||
|
carousel_images_slide.find(">li").css("display","none");
|
||||||
|
var active_count = carousel_images_slide.find(">li").length - active_slide;
|
||||||
|
if(active_count < content_size){
|
||||||
|
active_slide -= (content_size - active_count);
|
||||||
|
}
|
||||||
|
active_slide = Math.max(active_slide,0);
|
||||||
|
console.log(content_size)
|
||||||
|
for(var i = active_slide; i < active_slide + content_size;i++){
|
||||||
|
carousel_images_slide.find(">li").eq(i).css("display","block");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var carousel_image_block_width = $('.carousel_images').width();
|
||||||
|
$(".bulletin_carousel_slide").css("height",'');
|
||||||
|
var heights = $(".bulletin_carousel_slide").map(function(i,v){
|
||||||
|
return $(v).height() * carousel_image_block_width / $(v).width();
|
||||||
|
})
|
||||||
|
var max_height = Math.max.apply(null,heights);
|
||||||
|
$(".bulletin_carousel_slide").each(function(i,v){
|
||||||
|
$(v).height(max_height);
|
||||||
|
})
|
||||||
|
})
|
||||||
}(jQuery));
|
}(jQuery));
|
||||||
</script>
|
</script>
|
|
@ -0,0 +1,60 @@
|
||||||
|
<div class="i-archive index-archive-5">
|
||||||
|
<h3 class="i-archive-title">
|
||||||
|
<span>{{page-title}}</span>
|
||||||
|
</h3>
|
||||||
|
<div class="i-archive__list list-unstyled" id="index-archive-group" data-list="categories" data-level="0">
|
||||||
|
<h4 class="i-archive__category-title">{{category-title}}</h4>
|
||||||
|
<div class="i-items">
|
||||||
|
<div class="thead row">
|
||||||
|
<div class="col-sm-2 date-thead">上傳日期</div>
|
||||||
|
<div class="col-sm-3 title-thead">標題</div>
|
||||||
|
<div class="col-sm-3 description-thead">{{description-head}}</div>
|
||||||
|
<div class="col-sm-2 file-thead">檔案下載</div>
|
||||||
|
</div>
|
||||||
|
<div class="tbody">
|
||||||
|
<div class="i-archive__category-list list-unstyled" data-list="archives" data-level="1">
|
||||||
|
<div class="archive-items clearfix">
|
||||||
|
<div class="date col-sm-2">{{created_at}}</div>
|
||||||
|
<div class="head col-sm-3">
|
||||||
|
{{archive-title}}
|
||||||
|
<span class="i-archive__status-wrap" data-list="statuses" data-level="2">
|
||||||
|
<span class="i-archive__status label status {{status-class}}">{{status}}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="description col-sm-3" style="border-right: 0.05em solid #333;">{{description}}</div>
|
||||||
|
<div class="i-archive__file-list col-sm-2" data-list="files" data-level="2">
|
||||||
|
<a href="{{file-url}}" class="i-archive-files-item" target="_blank" data-toggle="tooltip" data-placement="bottom" title="{{file-name}}"><span class="label label-primary">{{file-type}}</span></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
if( window.location.href.indexOf('/en/') > -1 ) {
|
||||||
|
$('.date-thead').replaceWith('<div class="col-sm-2 date-thead-en">Updated At</div>')
|
||||||
|
$('.title-thead').replaceWith('<div class="col-sm-7 title-thead-en">Title</div>')
|
||||||
|
$('.file-thead').replaceWith('<div class="col-sm-3 file-thead-en">Download file</div>')
|
||||||
|
}
|
||||||
|
$(document).ready(function(){
|
||||||
|
if(window.innerWidth >= 768){
|
||||||
|
$(".archive-items .date").each(function(i,d){
|
||||||
|
$(d).parent().eq(0).children().css("min-height",$(d).parent().height());
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
$(".archive-items >").css("min-height","");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$(window).resize(function(){
|
||||||
|
if(window.innerWidth >= 768){
|
||||||
|
$(".archive-items .date").each(function(i,d){
|
||||||
|
$(d).parent().eq(0).children().css("min-height",$(d).parent().height());
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
$(".archive-items >").css("min-height","");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
|
@ -0,0 +1,48 @@
|
||||||
|
<div class="i-archive index-archive-6">
|
||||||
|
<h3 class="i-archive-title">
|
||||||
|
<span>{{page-title}}</span>
|
||||||
|
</h3>
|
||||||
|
<div class="i-archive__list list-unstyled" id="index-archive-group" data-list="categories" data-level="0">
|
||||||
|
<h4 class="i-archive__category-title">{{category-title}}</h4>
|
||||||
|
<div class="i-items">
|
||||||
|
<div class="thead row">
|
||||||
|
<div class="col-sm-2 date-thead">上傳日期</div>
|
||||||
|
<div class="col-sm-3 title-thead">標題</div>
|
||||||
|
<div class="col-sm-3 description-thead">{{description-head}}</div>
|
||||||
|
<div class="col-sm-2 file-thead">檔案下載</div>
|
||||||
|
</div>
|
||||||
|
<div class="tbody">
|
||||||
|
<div class="i-archive__category-list list-unstyled" data-list="archives" data-level="1">
|
||||||
|
<div class="archive-items clearfix">
|
||||||
|
<div class="date col-sm-2">{{created_at}}</div>
|
||||||
|
<div class="head col-sm-3">
|
||||||
|
<dl class="i-archive__file" data-list="files" data-level="2">
|
||||||
|
<div class="file-name">
|
||||||
|
<a class="i-archive__file-name" href="{{file-url}}" target="_blank" title="{{file-name}}">{{file-name}}</a>
|
||||||
|
<span class="i-archive__status-wrap" data-list="statuses" data-level="2">
|
||||||
|
<span class="i-archive__status label status {{status-class}}">{{status}}</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
<div class="description col-sm-3">{{description}}</div>
|
||||||
|
<div class="i-archive__file-list col-sm-2" data-list="files" data-level="2">
|
||||||
|
<div class="file-item">
|
||||||
|
<a href="{{file-url}}" class="i-archive-files-item" target="_blank" data-toggle="tooltip" data-placement="bottom" title="{{file-name}}"><span class="label label-primary">{{file-type}}</span></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
if( window.location.href.indexOf('/en/') > -1 ) {
|
||||||
|
$('.date-thead').replaceWith('<div class="col-sm-2 date-thead-en">Updated At</div>')
|
||||||
|
$('.title-thead').replaceWith('<div class="col-sm-7 title-thead-en">Title</div>')
|
||||||
|
$('.file-thead').replaceWith('<div class="col-sm-3 file-thead-en">Download file</div>')
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -1,70 +1 @@
|
||||||
{
|
{"frontend":[{"filename":"archive_index1","name":{"zh_tw":"1. 列表 ( 模組標題, 類別標題, 檔案名稱, 下載連結 )","en":"1. List (widget-title, category, filename, download link)"},"thumbnail":"ar1.png"},{"filename":"archive_index2","name":{"zh_tw":"2. 手風琴式列表 ( 模組標題, 類別標題, 檔案名稱, 下載連結 )","en":"2. Accordion list (widget-title, category, filename, download link)"},"thumbnail":"ar2.png"},{"filename":"archive_index3","name":{"zh_tw":"3. 列表( 無檔案名稱 ) ( 模組標題, 類別標題, 下載連結 )","en":"3. List(no filename) (widget-title, category, download link)"},"thumbnail":"ar3.png"},{"filename":"archive_index4","name":{"zh_tw":"4. 手風琴式列表( 無檔案名稱 ( 模組標題, 類別標題, 下載連結 )","en":"4. Accordion list(no filename) (widget-title, category, download link)"},"thumbnail":"ar4.png"},{"filename":"archive_index5","name":{"zh_tw":"5. 表格列表 ( 模組標題, 類別標題, 檔案名稱, 下載連結 )","en":"5. Table list (widget-title, category, filename, download link)"},"thumbnail":"ar5.png"},{"filename":"archive_index6","name":{"zh_tw":"6. 表格列表 ( 模組標題, 檔案名稱, 下載連結 )","en":"6. Table list (widget-title, filename, download link)"},"thumbnail":"ar5.png"},{"filename":"archive_index7","name":{"zh_tw":"7. 表格列表 ( 模組標題, 類別標題, 檔案名稱, 檔案簡介, 下載連結 )","en":"7. Table list (widget-title, category, filename, download link)"},"thumbnail":"ar5.png"},{"filename":"archive_index8","name":{"zh_tw":"8. 表格列表 ( 模組標題, 檔案名稱, 檔案簡介, 下載連結 )","en":"8. Table list (widget-title, filename, download link)"},"thumbnail":"ar5.png"}],"widgets":[{"filename":"archive_widget1","name":{"zh_tw":"1. 列表 ( 模組標題, 類別標題, 檔案名稱, 下載頁面連結 )","en":"1. List (widget-title, category, link of download page)"},"thumbnail":"thumb.png"},{"filename":"archive_widget2","name":{"zh_tw":"2. 手風琴式列表 ( 模組標題, 類別標題, 下載頁面連結 )","en":"2. Accordion list (widget-title, category, link of download page)"},"thumbnail":"thumb.png"}]}
|
||||||
"frontend": [
|
|
||||||
{
|
|
||||||
"filename" : "archive_index1",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "1. 列表 ( 模組標題, 類別標題, 檔案名稱, 下載連結 )",
|
|
||||||
"en" : "1. List (widget-title, category, filename, download link)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "ar1.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename" : "archive_index2",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "2. 手風琴式列表 ( 模組標題, 類別標題, 檔案名稱, 下載連結 )",
|
|
||||||
"en" : "2. Accordion list (widget-title, category, filename, download link)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "ar2.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename" : "archive_index3",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "3. 列表( 無檔案名稱 ) ( 模組標題, 類別標題, 下載連結 )",
|
|
||||||
"en" : "3. List(no filename) (widget-title, category, download link)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "ar3.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename" : "archive_index4",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "4. 手風琴式列表( 無檔案名稱 ( 模組標題, 類別標題, 下載連結 )",
|
|
||||||
"en" : "4. Accordion list(no filename) (widget-title, category, download link)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "ar4.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename" : "archive_index5",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "5. 表格列表 ( 模組標題, 類別標題, 檔案名稱, 下載連結 )",
|
|
||||||
"en" : "5. Table list (widget-title, category, filename, download link)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "ar5.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename" : "archive_index6",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "6. 表格列表 ( 模組標題, 檔案名稱, 下載連結 )",
|
|
||||||
"en" : "6. Table list (widget-title, filename, download link)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "ar5.png"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"widgets" : [
|
|
||||||
{
|
|
||||||
"filename" : "archive_widget1",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "1. 列表 ( 模組標題, 類別標題, 檔案名稱, 下載頁面連結 )",
|
|
||||||
"en" : "1. List (widget-title, category, link of download page)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "thumb.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filename" : "archive_widget2",
|
|
||||||
"name" : {
|
|
||||||
"zh_tw" : "2. 手風琴式列表 ( 模組標題, 類別標題, 下載頁面連結 )",
|
|
||||||
"en" : "2. Accordion list (widget-title, category, link of download page)"
|
|
||||||
},
|
|
||||||
"thumbnail" : "thumb.png"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -12,6 +12,7 @@
|
||||||
</h4>
|
</h4>
|
||||||
<section class="post">
|
<section class="post">
|
||||||
<p>{{answer}}</p>
|
<p>{{answer}}</p>
|
||||||
|
<div data-list="qa_files" data-level="1"><div><a href="{{file_url}}" target="_blank">{{file_title}}</a></div></div>
|
||||||
</section>
|
</section>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -35,8 +35,8 @@
|
||||||
$('.i-member img').eq(i).parent().attr('title','noname');
|
$('.i-member img').eq(i).parent().attr('title','noname');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(var i = 0;i < $('.i-member span a').length ; i++){
|
for(var i = 0;i < $('.i-member span.member-data-value-name a').length ; i++){
|
||||||
if($('.i-member span a').eq(i).html().trim().replace(' ','') == "")
|
if($('.i-member span.member-data-value-name a').eq(i).html().trim().replace(' ','') == "")
|
||||||
$('.i-member span a').eq(i).html('noname');
|
$('.i-member span.member-data-value-name a').eq(i).html('noname');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -21,7 +21,7 @@
|
||||||
{{data_intro_title}}
|
{{data_intro_title}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="table table-hover table-striped dt-responsive nowrap {{complete_display}}">
|
<table class="table table-hover table-striped dt-responsive {{complete_display}}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr data-list="pd_title" data-level="1">
|
<tr data-list="pd_title" data-level="1">
|
||||||
<th>{{plugin_data_title}}</th>
|
<th>{{plugin_data_title}}</th>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<table class="table table-hover table-striped projects-index activities-index dt-responsive nowrap">
|
<table class="table table-hover table-striped projects-index activities-index dt-responsive">
|
||||||
<caption><h3>{{widget-title}}</h3></caption>
|
<caption><h3>{{widget-title}}</h3></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -26,10 +26,15 @@
|
||||||
{{pagination_goes_here}}
|
{{pagination_goes_here}}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('table.activities-index').DataTable({
|
$('table.activities-index').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -23,7 +23,7 @@ $( ".selectbox" ).ready(function() {
|
||||||
<a id="filter" style="" href="{{url}}">Clear</a>
|
<a id="filter" style="" href="{{url}}">Clear</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-hover table-striped journal-papers-index">
|
<table class="table table-hover table-striped book-index">
|
||||||
<thead>
|
<thead>
|
||||||
<tr data-level="0" data-list="headers">
|
<tr data-level="0" data-list="headers">
|
||||||
<th class="col-md-{{col}}">{{head-title}}</th>
|
<th class="col-md-{{col}}">{{head-title}}</th>
|
||||||
|
|
|
@ -23,7 +23,7 @@ $( ".selectbox" ).ready(function() {
|
||||||
<a id="filter" style="" href="{{url}}">Clear</a>
|
<a id="filter" style="" href="{{url}}">Clear</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-hover table-striped projects-index">
|
<table class="table table-hover table-striped personal_conference-index">
|
||||||
<thead>
|
<thead>
|
||||||
<tr data-level="0" data-list="headers">
|
<tr data-level="0" data-list="headers">
|
||||||
<th class="col-md-{{col}}">{{head-title}}</th>
|
<th class="col-md-{{col}}">{{head-title}}</th>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<table class="table table-hover table-striped projects-index courses-index dt-responsive nowrap">
|
<table class="table table-hover table-striped projects-index courses-index dt-responsive">
|
||||||
<caption><h3>{{widget-title}}</h3></caption>
|
<caption><h3>{{widget-title}}</h3></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -22,10 +22,15 @@
|
||||||
{{pagination_goes_here}}
|
{{pagination_goes_here}}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('table.courses-index').DataTable({
|
$('table.courses-index').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -1,4 +1,4 @@
|
||||||
<table class="table table-hover table-striped projects-index personal-honor dt-responsive nowrap">
|
<table class="table table-hover table-striped projects-index personal-honor dt-responsive">
|
||||||
<caption><h3>{{widget-title}}</h3></caption>
|
<caption><h3>{{widget-title}}</h3></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr data-level="0" data-list="headers">
|
<tr data-level="0" data-list="headers">
|
||||||
|
@ -16,10 +16,15 @@
|
||||||
<script>
|
<script>
|
||||||
$('thead th.col-md-2:nth-child(2)').addClass('min-tablet-l');
|
$('thead th.col-md-2:nth-child(2)').addClass('min-tablet-l');
|
||||||
$('thead th.col-md-2:nth-child(5)').addClass('min-tablet');
|
$('thead th.col-md-2:nth-child(5)').addClass('min-tablet');
|
||||||
$('table.personal-honor').DataTable({
|
$('table.personal-honor').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -23,7 +23,7 @@ $( ".selectbox" ).ready(function() {
|
||||||
<a id="filter" style="" href="{{url}}">Clear</a>
|
<a id="filter" style="" href="{{url}}">Clear</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-hover table-striped projects-index">
|
<table class="table table-hover table-striped personal_journal-index">
|
||||||
<thead>
|
<thead>
|
||||||
<tr data-level="0" data-list="headers">
|
<tr data-level="0" data-list="headers">
|
||||||
<th class="col-md-{{col}}">{{head-title}}</th>
|
<th class="col-md-{{col}}">{{head-title}}</th>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<table class="table table-hover table-striped projects-index personal-lab dt-responsive nowrap">
|
<table class="table table-hover table-striped projects-index personal-lab dt-responsive">
|
||||||
<caption><h3>{{widget-title}}</h3></caption>
|
<caption><h3>{{widget-title}}</h3></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -31,10 +31,15 @@ for ( var i = 0; i < $('thead th').length ; i++ ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('table.personal-lab').DataTable({
|
$('table.personal-lab').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -23,7 +23,7 @@ $( ".selectbox" ).ready(function() {
|
||||||
<a id="filter" style="" href="{{url}}">Clear</a>
|
<a id="filter" style="" href="{{url}}">Clear</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-hover table-striped projects-index">
|
<table class="table table-hover table-striped personal_patent-index">
|
||||||
<thead>
|
<thead>
|
||||||
<tr data-level="0" data-list="headers">
|
<tr data-level="0" data-list="headers">
|
||||||
<th class="col-md-{{col}}">{{head-title}}</th>
|
<th class="col-md-{{col}}">{{head-title}}</th>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<table class="table table-hover table-striped projects-index personal-researchs dt-responsive nowrap">
|
<table class="table table-hover table-striped projects-index personal-researchs dt-responsive">
|
||||||
<caption><h3>{{widget-title}}</h3></caption>
|
<caption><h3>{{widget-title}}</h3></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -31,10 +31,15 @@ for ( var i = 0; i < $('thead th').length ; i++ ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('table.personal-researchs').DataTable({
|
$('table.personal-researchs').each(function(){
|
||||||
searching: false,
|
if($(this).find('thead').length!=0 && $(this).find('td').length!=0 && !$(this).hasClass('dataTable')){
|
||||||
paging: false,
|
$(this).DataTable({
|
||||||
ordering: false,
|
searching: false,
|
||||||
info: false
|
paging: false,
|
||||||
});
|
ordering: false,
|
||||||
|
info: false,
|
||||||
|
autoWidth: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});;
|
||||||
</script>
|
</script>
|
|
@ -0,0 +1,57 @@
|
||||||
|
<div id="{{update_id}}" class="bus_widget1" data-list="bus_infos" data-level="0">
|
||||||
|
<div class="bus_info" id="{{bus_id}}">
|
||||||
|
<div class="row mt-10">
|
||||||
|
<div class="col-sm-12 bus_title">
|
||||||
|
<i class="fa fa-bus"></i>
|
||||||
|
<strong>{{bus_title}}</strong>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row bus_data" data-list="bus_data" data-level="1">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div>
|
||||||
|
<strong class="route_name">{{route_name}}:</strong>
|
||||||
|
<span class="bus_time">{{time_to_arrive}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function update_bus(ele){
|
||||||
|
var $self = $(ele);
|
||||||
|
var bus_info_ids = $.map($self.find('.bus_info'),function(v){
|
||||||
|
return $(v).attr('id');
|
||||||
|
});
|
||||||
|
$.{{update_method}}( "{{update_url}}",
|
||||||
|
{
|
||||||
|
bus_info_ids: bus_info_ids
|
||||||
|
}, function( data ) {
|
||||||
|
$.each(data,function(k,v){
|
||||||
|
var bus_info = $self.find('#'+k);
|
||||||
|
var bus_route_names = $.map(bus_info.find('.route_name'),function(v1){
|
||||||
|
return $(v1).text().slice(0,-1)
|
||||||
|
});
|
||||||
|
var bus_time_span = bus_info.find('.bus_time');
|
||||||
|
$.each(v,function(k,v1){
|
||||||
|
var i = bus_route_names.indexOf(v1.route_name);
|
||||||
|
if (i>=0){
|
||||||
|
bus_time_span.eq(i).html(v1.time_to_arrive);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
window.setTimeout(function(){
|
||||||
|
update_bus(ele);
|
||||||
|
},{{update_interval}});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function update_interval_bus(ele) {
|
||||||
|
window.setTimeout(function(){
|
||||||
|
update_bus(ele);
|
||||||
|
},{{update_interval}});
|
||||||
|
}
|
||||||
|
update_interval_bus($('#{{update_id}}[data-list="bus_infos"]')[0]);
|
||||||
|
</script>
|
||||||
|
<style type="text/css">
|
||||||
|
.bus_widget1 {margin-top: 1em;}
|
||||||
|
.bus_info {line-height: 1.8;}
|
||||||
|
</style>
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"frontend": [
|
||||||
|
],
|
||||||
|
"widgets" : [
|
||||||
|
{
|
||||||
|
"filename" : "ruling_bus_widget1",
|
||||||
|
"name" : {
|
||||||
|
"zh_tw" : "1. 公車呈現樣式1",
|
||||||
|
"en" : "1. Bus layout 1"
|
||||||
|
},
|
||||||
|
"thumbnail" : "bus1_thumbs.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -4,7 +4,10 @@
|
||||||
</h3>
|
</h3>
|
||||||
<ul class="list-unstyled" data-level="0" data-list="web_link">
|
<ul class="list-unstyled" data-level="0" data-list="web_link">
|
||||||
<li class="widget-content">
|
<li class="widget-content">
|
||||||
<a class="widget-content-title" href="{{link_to_show}}" target="_blank" title="{{title}}">{{title}}</a>
|
<div class="link-img-wrap{{display_image}}">
|
||||||
|
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||||
|
</div>
|
||||||
|
<a class="widget-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">{{title}}</a>
|
||||||
<span data-list="statuses" data-level="1">
|
<span data-list="statuses" data-level="1">
|
||||||
<span class="label status {{status-class}}">{{status}}</span>
|
<span class="label status {{status-class}}">{{status}}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
<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">
|
||||||
|
<div class="link-img-wrap{{display_image}}">
|
||||||
|
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||||
|
</div>
|
||||||
|
<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>
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,13 +4,18 @@
|
||||||
</h1>
|
</h1>
|
||||||
<ul class="list-unstyled" data-list="web_link" data-level="0">
|
<ul class="list-unstyled" data-list="web_link" data-level="0">
|
||||||
<li class="index-content">
|
<li class="index-content">
|
||||||
<h4>
|
<a class="index-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">
|
||||||
<a class="index-content-title" href="{{link_to_show}}" target="_blank">{{title}}</a>
|
<h4>
|
||||||
<span data-list="statuses" data-level="1">
|
<div class="link-img-wrap{{display_image}}">
|
||||||
<span class="label status {{status-class}}">{{status}}</span>
|
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||||
</span>
|
</div>
|
||||||
</h4>
|
{{title}}
|
||||||
<small class="index-context">{{context}}</small>
|
<span data-list="statuses" data-level="1">
|
||||||
|
<span class="label status {{status-class}}">{{status}}</span>
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<small class="index-context">{{context}}</small>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,13 +4,20 @@
|
||||||
</h1>
|
</h1>
|
||||||
<ul class="list-unstyled" data-list="web_link" data-level="0">
|
<ul class="list-unstyled" data-list="web_link" data-level="0">
|
||||||
<li class="index-content col-md-4 col-sm-4">
|
<li class="index-content col-md-4 col-sm-4">
|
||||||
<h4>
|
<a class="index-content-title" href="{{link_to_show}}" target="_blank" title="{{title_text}}">
|
||||||
<a class="index-content-title" href="{{link_to_show}}" target="_blank">{{title}}</a>
|
<div class="link-img-wrap{{display_image}}">
|
||||||
<span data-list="statuses" data-level="1">
|
<img src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
|
||||||
<span class="label status {{status-class}}">{{status}}</span>
|
</div>
|
||||||
</span>
|
<h4>
|
||||||
</h4>
|
<span class="link-title">
|
||||||
<small class="index-context">{{context}}</small>
|
{{title}}
|
||||||
|
</span>
|
||||||
|
<span data-list="statuses" data-level="1">
|
||||||
|
<span class="label status {{status-class}}">{{status}}</span>
|
||||||
|
</span>
|
||||||
|
</h4>
|
||||||
|
<small class="index-context">{{context}}</small>
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<%= render 'shared/ie_html5_fix' %>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<%= favicon_link_tag (current_site.favicon.blank? ? 'favicon.ico' : current_site.favicon.url) %>
|
<%= favicon_link_tag (current_site.favicon.blank? ? 'favicon.ico' : current_site.favicon.url) %>
|
||||||
|
@ -9,14 +10,9 @@
|
||||||
<link rel="stylesheet" media="print" type="text/css" href="/assets/template/print.css">
|
<link rel="stylesheet" media="print" type="text/css" href="/assets/template/print.css">
|
||||||
<%= javascript_include_tag "plugin/modernizr.js"%>
|
<%= javascript_include_tag "plugin/modernizr.js"%>
|
||||||
<%= javascript_include_tag "plugin/picturefill.min.js"%>
|
<%= javascript_include_tag "plugin/picturefill.min.js"%>
|
||||||
<%= javascript_include_tag "jquery.min"%>
|
|
||||||
<%= javascript_include_tag "plugin/jquery.mobile.custom.min.js"%>
|
<%= javascript_include_tag "plugin/jquery.mobile.custom.min.js"%>
|
||||||
<%= javascript_include_tag "bootstrap.min"%>
|
<%= javascript_include_tag "bootstrap.min"%>
|
||||||
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.carousel.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.scrollVert.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.tile.min.js"%>
|
|
||||||
<%= javascript_include_tag "plugin/jquery.cycle2.video.min.js"%>
|
<%= javascript_include_tag "plugin/jquery.cycle2.video.min.js"%>
|
||||||
<%= javascript_include_tag "plugin/jquery-bullseye-min.js"%>
|
<%= javascript_include_tag "plugin/jquery-bullseye-min.js"%>
|
||||||
<%= javascript_include_tag "plugin/jquery.scrolling-tabs.min.js"%>
|
<%= javascript_include_tag "plugin/jquery.scrolling-tabs.min.js"%>
|
||||||
|
@ -25,15 +21,10 @@
|
||||||
<link rel="stylesheet" type="text/css" href="/assets/template/owl.carousel.min.css">
|
<link rel="stylesheet" type="text/css" href="/assets/template/owl.carousel.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="/assets/template/owl.theme.default.min.css">
|
<link rel="stylesheet" type="text/css" href="/assets/template/owl.theme.default.min.css">
|
||||||
|
|
||||||
<%= javascript_include_tag "//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js"%>
|
|
||||||
<%= javascript_include_tag "//cdn.datatables.net/responsive/1.0.7/js/dataTables.responsive.min.js"%>
|
|
||||||
<%= stylesheet_link_tag "//cdn.datatables.net/responsive/1.0.7/css/responsive.dataTables.min.css"%>
|
|
||||||
|
|
||||||
<%= javascript_include_tag "app"%>
|
<%= javascript_include_tag "app"%>
|
||||||
<%= javascript_include_tag "#{@dataApi}" if @dataApi != nil%>
|
<%= javascript_include_tag "#{@dataApi}" if @dataApi != nil%>
|
||||||
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
<script src="https://apis.google.com/js/platform.js" async defer></script>
|
||||||
<%= render_google_analytics %>
|
<%= render_google_analytics %>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
|
@ -1,4 +1 @@
|
||||||
{
|
{"key":"default-theme","title":"orbit_bootstrap2.1","author":"chihyu","thumbnail":"assets/images/design_thumb.png"}
|
||||||
"title" : "orbit_bootstrap2.1",
|
|
||||||
"key" : "default-theme",
|
|
||||||
"author" : "chihyu"}
|
|
|
@ -3,7 +3,7 @@
|
||||||
<a id="accesskey_sitemenu" accesskey="S" href="/<%= "#{locale.to_s}" %>/accesskey" title="Sitemenu">:::</a>
|
<a id="accesskey_sitemenu" accesskey="S" href="/<%= "#{locale.to_s}" %>/accesskey" title="Sitemenu">:::</a>
|
||||||
<h3 class="sitemenu-title">{{widget_title}}</h3>
|
<h3 class="sitemenu-title">{{widget_title}}</h3>
|
||||||
<ul data-list="pages" class="sitemenu-list level-1 list-unstyled" data-level="0">
|
<ul data-list="pages" class="sitemenu-list level-1 list-unstyled" data-level="0">
|
||||||
<li class="sitemenu-item level-1">
|
<li class="sitemenu-item level-1 {{active_class}}">
|
||||||
<a class="sitemenu-link level-1" href="{{url}}" target="{{target}}">{{page_name}}</a>
|
<a class="sitemenu-link level-1" href="{{url}}" target="{{target}}">{{page_name}}</a>
|
||||||
<ul class="sitemenu-list level-2" data-list="children" data-level="1">
|
<ul class="sitemenu-list level-2" data-list="children" data-level="1">
|
||||||
<li class="sitemenu-item level-2" style="position: relative;">
|
<li class="sitemenu-item level-2" style="position: relative;">
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<a id="accesskey_sitemenu" accesskey="S" href="/<%= "#{locale.to_s}" %>/accesskey" title="Sitemenu">:::</a>
|
<a id="accesskey_sitemenu" accesskey="S" href="/<%= "#{locale.to_s}" %>/accesskey" title="Sitemenu">:::</a>
|
||||||
<h3 class="sitemenu-title">{{widget_title}}</h3>
|
<h3 class="sitemenu-title">{{widget_title}}</h3>
|
||||||
<ul data-list="pages" class="sitemenu-list level-1 list-unstyled" data-level="0">
|
<ul data-list="pages" class="sitemenu-list level-1 list-unstyled" data-level="0">
|
||||||
<li class="sitemenu-item level-1">
|
<li class="sitemenu-item level-1 {{active_class}}">
|
||||||
<a class="sitemenu-link level-1" href="{{url}}" target="{{target}}">{{page_name}}</a>
|
<a class="sitemenu-link level-1" href="{{url}}" target="{{target}}">{{page_name}}</a>
|
||||||
<ul class="sitemenu-list level-2" data-list="children" data-level="1">
|
<ul class="sitemenu-list level-2" data-list="children" data-level="1">
|
||||||
<li class="sitemenu-item level-2" style="position: relative;">
|
<li class="sitemenu-item level-2" style="position: relative;">
|
||||||
|
|
Loading…
Reference in New Issue