update template

This commit is contained in:
rulingcom 2022-03-29 07:44:41 +00:00
parent 4d47175ee7
commit 988cb13556
71 changed files with 472 additions and 697 deletions

View File

@ -1,35 +0,0 @@
<div class="w-event_news widget-event_news-13">
<h3 class="w-event_news__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-event_news__table table">
<thead>
<tr>
<th class="w-event_news__th w-event_news__th--date">{{event_date-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{title-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{subtitle-head}}</th>
<th class="w-event_news__th w-event_news__th--date">{{speaker-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{host-head}}</th>
<th class="w-event_news__th w-event_news__th--title">{{notes-head}}</th>
</tr>
</thead>
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-event_news__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-event_news_content">
<span class="w-event_news__status-wrap" data-list="statuses" data-level="1">
<span class="w-event_news__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-event_news__title" href="{{link_to_show}}">【講題】{{title}}</a>
</td>
<td class="w-event_news__speaker">【講者】{{speaker}}</td>
<td class="w-event_news__host">{{host}}</td>
<td class="w-event_news__subtitle">{{subtitle}}</td>
<td class="w-event_news__notes">【備註】{{notes}}</td>
</tr>
</tbody>
</table>
<div class="w-event_news__more-wrap clearfix">
<a class="w-event_news__more btn btn-primary pull-right" href="{{more_url}}"><%= (I18n.locale.to_s =="zh_tw") ? "更多→" : "More NEWS" %></a>
</div>
</div>

View File

@ -1,286 +0,0 @@
{
"frontend": [
{
"filename" : "event_news_index1",
"name" : {
"zh_tw" : "1. 標準標題列表-1A ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "1. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_index1_thumbs.png"
},
{
"filename" : "event_news_index2",
"name" : {
"zh_tw" : "2. 標準標題列表-1B ( 模組標題, 類別, 狀態, 標題, 日期, 瀏覽人次 )",
"en" : "2. Standard Title List-1B (widget-title, category, status, title, postdate, view-count)"
},
"thumbnail" : "event_news_index2_thumbs.png"
},
{
"filename" : "event_news_index3",
"name" : {
"zh_tw" : "3. 標準表格列表-2A ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "3. Standard Table List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_index3_thumbs.png"
},
{
"filename" : "event_news_index4",
"name" : {
"zh_tw" : "4. 標準表格列表-2B ( 模組標題, 日期, 狀態, 標題, 類別, 瀏覽人次 )",
"en" : "4. Standard Table List-2 (widget-title, postdate, status, title, category, view-count)"
},
"thumbnail" : "event_news_index4_thumbs.png"
},
{
"filename" : "event_news_index5",
"name" : {
"zh_tw" : "5. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "5. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_index5_thumbs.png"
},
{
"filename" : "event_news_index6",
"name" : {
"zh_tw" : "6. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "6. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_index6_thumbs.png"
},
{
"filename" : "event_news_index7",
"name" : {
"zh_tw" : "7. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "7. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_index7_thumbs.png"
},
{
"filename" : "event_news_index8",
"name" : {
"zh_tw" : "8. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
"en" : "8. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
},
"thumbnail" : "event_news_index8_thumbs.png"
},
{
"filename" : "event_news_index9",
"name" : {
"zh_tw" : "9. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "9. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_index9_thumbs.png"
},
{
"filename" : "event_news_index10",
"name" : {
"zh_tw" : "10. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "10. Standard Title List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_index10_thumbs.png"
},
{
"filename" : "event_news_index11",
"name" : {
"zh_tw" : "11. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "11. Simple Title List-1 (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_index11_thumbs.png"
},
{
"filename" : "event_news_index12",
"name" : {
"zh_tw" : "12. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "12. Simple Title List-2 (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_index12_thumbs.png"
},
{
"filename" : "event_news_index13",
"name" : {
"zh_tw" : "13. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "13. Simple Table List (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_index13_thumbs.png"
},
{
"filename" : "event_news_index14",
"name" : {
"zh_tw" : "14. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "14. Simple Table List (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_index14_thumbs.png"
},
{
"filename" : "event_news_index15",
"name" : {
"zh_tw" : "15. 精簡表格列表-3 ( 模組標題, 日期, 狀態, 標題, 瀏覽人次 )",
"en" : "15. Simple Table List (widget-title, postdate, status, title, view-count)"
},
"thumbnail" : "event_news_index15_thumbs.png"
},
{
"filename" : "event_news_index16",
"name" : {
"zh_tw" : "16. 連結 + 附件表格列表 ( 模組標題, 類別, 狀態, 標題 )",
"en" : "16. Table List including Links and attachments (widget-title, category, status, title, view-count)"
},
"thumbnail" : "event_news_index16_thumbs.png"
},
{
"filename" : "event_news_index17",
"name" : {
"zh_tw" : "17. 標準標題列表-1A ( 類別, 標題, 日期, 張貼人 )",
"en" : "17. Standard Title List-1 ( category, title, postdate, department)"
},
"thumbnail" : "event_news_index1_thumbs.png"
},
{
"filename" : "event_news_index18",
"name" : {
"zh_tw" : "18. 標準標題列表-2 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en" : "18. Standard Title List-2 ( EventDate, speaker, status, title, host, notes)"
},
"thumbnail" : "event_news_index1_thumbs.png"
}
],
"widgets" : [
{
"filename" : "event_news_widget1",
"name" : {
"zh_tw" : "1. 標準圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "1. Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget1_thumbs.png"
},
{
"filename" : "event_news_widget2",
"name" : {
"zh_tw" : "2. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "2. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget2_thumbs.png"
},
{
"filename" : "event_news_widget3",
"name" : {
"zh_tw" : "3. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "3. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget3_thumbs.png"
},
{
"filename" : "event_news_widget4",
"name" : {
"zh_tw" : "4. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "4. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget4_thumbs.png"
},
{
"filename" : "event_news_widget15",
"name" : {
"zh_tw" : "4.5. 三欄圖文-slide ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en" : "4.5. 3-Column Standard Image + Text -slide(widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail" : "event_news_widget4_thumbs.png"
},
{
"filename" : "event_news_widget5",
"name" : {
"zh_tw" : "5. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
"en" : "5. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
},
"thumbnail" : "event_news_widget5_thumbs.png"
},
{
"filename" : "event_news_widget6",
"name" : {
"zh_tw" : "6. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "6. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_widget6_thumbs.png"
},
{
"filename" : "event_news_widget7",
"name" : {
"zh_tw" : "7. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "7. Standard Title List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_widget7_thumbs.png"
},
{
"filename" : "event_news_widget8",
"name" : {
"zh_tw" : "8. 標準表格列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "8. Standard Table List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail" : "event_news_widget8_thumbs.png"
},
{
"filename" : "event_news_widget9",
"name" : {
"zh_tw" : "9. 標準表格列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "9. Standard Table List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail" : "event_news_widget9_thumbs.png"
},
{
"filename" : "event_news_widget10",
"name" : {
"zh_tw" : "10. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "10. Simple Title List-1 (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_widget10_thumbs.png"
},
{
"filename" : "event_news_widget11",
"name" : {
"zh_tw" : "11. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "11. Simple Title List-2 (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_widget11_thumbs.png"
},
{
"filename" : "event_news_widget12",
"name" : {
"zh_tw" : "12. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "12. Simple Table List (widget-title, status, title, postdate)"
},
"thumbnail" : "event_news_widget12_thumbs.png"
},
{
"filename" : "event_news_widget13",
"name" : {
"zh_tw" : "13. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "13. Simple Table List (widget-title, postdate, status, title)"
},
"thumbnail" : "event_news_widget13_thumbs.png"
},
{
"filename" : "event_news_widget14",
"name" : {
"zh_tw" : "14. 一圖 + 標題列表 ( 模組標題, 圖片, 狀態, 標題, 日期 )",
"en" : "14. 1 Image + Title List (widget-title, image, status, title, postdate)"
},
"thumbnail" : "event_news_widget14_thumbs.png"
},
{
"filename" : "event_news_widget16",
"name" : {
"zh_tw" : "15. 標準表格列表-3 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en" : "15. Standard Table List (EventDate, speaker, status, title, host, notes)"
},
"thumbnail" : "event_news_widget13_thumbs.png"
},
{
"filename" : "event_news_widget17",
"name" : {
"zh_tw" : "16. 標準表格列表-3 ( 日期, 狀態, 標題, 演講者, 主持人, 備註 )",
"en" : "16. Standard Table List (EventDate, status, title, speaker, host, notes)"
},
"thumbnail" : "event_news_widget13_thumbs.png"
}
]
}

View File

@ -1,374 +0,0 @@
<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>
<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>
<article class="s-annc show-annc">
<h1 class="s-annc__show-title">{{title}}</h1>
<ul class="s-annc__meta-wrap list-unstyled no-print">
<li class="s-annc__date-wrap s-annc__meta--item">
<i class="fa fa-calendar-o"></i>
<span class="s-annc__date" date-format="%Y-%m-%d">{{updated_at}}</span>
</li>
<li class="s-annc__author-wrap s-annc__meta--item">
<i class="fa fa-male"></i>
<span class="s-annc__author">{{update_user}}</span>
</li>
<li class="s-annc__tag-wrap s-annc__meta--item ">
<i class="fa fa-tags"></i>
<span data-list="tags" data-level="0">
<a href="{{url}}"><span class="s-annc__tag label label-default">{{tag}}</span></a>
</span>
</li>
<li class="s-annc__extra_info-wrap s-annc__meta--item ">
<span style="{{speaker-css}}">
<span>{{speaker-head}}:</span>
<span>{{speaker}}</span>
</span>
<span style="{{host-css}}">
<span>&nbsp;/&nbsp;</span>
<span style="display: inline-block;">
<span>{{host-head}}:</span>
<span>{{host}}</span>
</span>
</span>
<div>{{place_text}}</div>
</li>
</ul>
<section class="s-annc__post-wrap">
<div class="s-annc__sub-img {{hide_class}}">
<img src="{{img_src}}"></img>
<span class="s-annc__img_description">{{img_description}}</span>
</div>
<div class="s-annc__subtitle">{{subtitle_ann}}</div>
<p class="s-annc__post-body">{{body}}</p>
</section>
<hr>
<section class="s-annc__post-wrap">
<p class="s-annc__post-notes">{{notes}}</p>
</section>
<ul class="s-annc__related-wrap list-unstyled no-print">
<li class="s-annc__related-file">
<i class="fa fa-fw fa-paperclip"></i>
<div class="s-annc__related-file-list" data-list="event_news_files" data-level="0">
<a class="s-annc__flie-title btn btn-default btn-sm" href="{{file_url}}">{{file_title}}</a>
</div>
</li>
<li class="s-annc__related-link">
<i class="fa fa-fw fa-link"></i>
<div class="s-annc__related-link-list" data-list="event_news_links" data-level="0">
<a class="s-annc__link-title btn btn-default btn-sm" href="{{link_url}}" target="_blank">{{link_title}}</a>
</div>
</li>
</ul>
</article>
<div class="carousel_images">
<div class="w-ba-banner ba-banner-widget-1">
<div class="w-ba-banner__wrap cycle-slideshow"
data-list="event_carousel_images"
data-level="0"
data-cycle-slides=".event_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 event_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 event_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="event_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}}
<script>
(function($) {
function hideEmptyEl(el, elParent) {
if( el.length === 0) {
elParent.addClass('hide');
}
}
// Hiding parent element when children elements are not present
// Tags
hideEmptyEl($('.s-annc__tag'), $('.s-annc__tag-wrap'));
// Attachments
hideEmptyEl($('.s-annc__flie-title'), $('.s-annc__related-file'));
// Links
hideEmptyEl($('.s-annc__link-title'), $('.s-annc__related-link'));
$("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 = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width();
})
var max_height = Math.max.apply(null,heights);
$(".event_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($('.event_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 = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width();
})
var max_height = Math.max.apply(null,heights);
$(".event_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();
$(".event_carousel_slide").css("height",'');
var heights = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width();
})
var max_height = Math.max.apply(null,heights);
$(".event_carousel_slide").each(function(i,v){
$(v).height(max_height);
})
})
}(jQuery));
</script>

View File

@ -24,8 +24,8 @@
<a class="w-event_news__title" href="{{link_to_show}}">{{title}}</a>
</h4>
<div class="w-event_news__subtitle">{{subtitle}}</div>
<div class="w-event_news__speaker">【{{speaker-head}}】 {{speaker}}</div>
<div class="w-event_news__host">【{{host-head}}】 {{host}}</div>
<div class="w-event_news__speaker" style="{{speaker-css}}">【{{speaker-head}}】 {{speaker}}</div>
<div class="w-event_news__host" style="{{host-css}}">【{{host-head}}】 {{host}}</div>
</li>
</ul>
<div class="w-event_news__more-wrap clearfix">

View File

@ -0,0 +1,27 @@
<div class="w-annc widget-announcement-13">
<h3 class="w-annc__widget-title">
<span>{{widget-title}}</span>
</h3>
<table class="w-annc__table table">
<tbody data-level="0" data-list="event_news">
<tr>
<td class="w-annc__postdate">{{postdate}}</td>
<td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span>
<a class="w-annc__title" href="{{link_to_show}}">{{title-head}}{{title}}</a>
</td>
<td style="{{speaker-css}}" class="w-annc__speaker">{{speaker-head}}{{speaker}}</td>
<td style="{{host-css}}" class="w-annc__host">{{host-head}}{{host}}</td>
<td style="{{place-css}}" class="w-annc__host">{{place-head}}{{place}}</td>
<td style="{{event-time-css}}" class="w-annc__host">{{event_date-head}}{{event-time-formated}}</td>
<td class="w-annc__subtitle">{{subtitle}}</td>
<td style="{{notes-css}}" class="w-annc__notes">{{notes-head}}{{notes}}</td>
</tr>
</tbody>
</table>
<div class="w-annc__more-wrap clearfix">
<a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div>
</div>

View File

@ -0,0 +1,83 @@
<div class="w-calendar widget-calendar-2 widget-event-news-calendar-2" data-module="event_news">
<div class="w-calendar-title {{widget_title_class}}">
<span>{{calendar_title}}</span>
<span>{{widget_title}}</span>
</div>
<div class='month_template'>
<h4 class="widget-title ">
<span class="text"><span style="display: none;">placeholder</span></span>
<i class="fa fa-circle-o-notch fa-spin fa-fw loading hide"></i>
</h4>
<div class="w-calendar-nav">
<a href="#" class="w-calendar-nav-prev">
<i class="fa fa-chevron-left"></i>
<span class="w-calendar-nav-prev-text hide">Prev</span>
</a>
<a href="#" class="w-calendar-nav-next">
<i class="fa fa-chevron-right"></i>
<span class="w-calendar-nav-next-text hide">Next</span>
</a>
</div>
<table class="table table-condensed w-calendar-table">
<thead>
<tr>
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th>Sat</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div class="calendar-events" style="display: none;">
<div class="event">
<div class="event-header">
<div class="date">
<div class="day"></div>
<div class="month"></div>
</div>
<div class="event-title">
<div class="event-inner-title"></div>
<div class="duration"></div>
</div>
</div>
<div class="event-wraper">
<div class="event-containers">
</div>
</div>
</div>
</div>
</div>
<%= stylesheet_link_tag "event_news_calendar_widget2" %>
<script>
$(document).ready(function(){
if(document.getElementById("event-news-calendar-widget_module2") == null){
var tag = document.createElement('script');
tag.setAttribute("id", "event-news-calendar-widget_module2");
tag.src = "<%= asset_path('event_news_calendar_widget2.js') %>";
tag.onload = function(){
$("div.widget-calendar-2[data-module=event_news]").each(function(index){
var calendar = $(this),
cmi = new EventCalendarModuleMonth2(new Date(), calendar,calendar.data("subpart-id"),"{{more_url}}",false);
cmi.currentMonth();
calendar.find("div.w-calendar-nav a").on("click",function(){
var el = $(this);
if(el.hasClass("w-calendar-nav-prev")){
cmi.prevMonth();
}else if(el.hasClass("w-calendar-nav-next")){
cmi.nextMonth();
}
return false;
})
})
}
var head = document.getElementsByTagName("head");
head[0].appendChild(tag);
}
})
</script>

View File

@ -0,0 +1,295 @@
{
"frontend": [
{
"filename": "event_news_index1",
"name": {
"zh_tw": "1. 標準標題列表-1A ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en": "1. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail": "event_news_index1_thumbs.png"
},
{
"filename": "event_news_index2",
"name": {
"zh_tw": "2. 標準標題列表-1B ( 模組標題, 類別, 狀態, 標題, 日期, 瀏覽人次 )",
"en": "2. Standard Title List-1B (widget-title, category, status, title, postdate, view-count)"
},
"thumbnail": "event_news_index2_thumbs.png"
},
{
"filename": "event_news_index3",
"name": {
"zh_tw": "3. 標準表格列表-2A ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en": "3. Standard Table List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail": "event_news_index3_thumbs.png"
},
{
"filename": "event_news_index4",
"name": {
"zh_tw": "4. 標準表格列表-2B ( 模組標題, 日期, 狀態, 標題, 類別, 瀏覽人次 )",
"en": "4. Standard Table List-2 (widget-title, postdate, status, title, category, view-count)"
},
"thumbnail": "event_news_index4_thumbs.png"
},
{
"filename": "event_news_index5",
"name": {
"zh_tw": "5. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "5. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_index5_thumbs.png"
},
{
"filename": "event_news_index6",
"name": {
"zh_tw": "6. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "6. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_index6_thumbs.png"
},
{
"filename": "event_news_index7",
"name": {
"zh_tw": "7. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "7. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_index7_thumbs.png"
},
{
"filename": "event_news_index8",
"name": {
"zh_tw": "8. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
"en": "8. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
},
"thumbnail": "event_news_index8_thumbs.png"
},
{
"filename": "event_news_index9",
"name": {
"zh_tw": "9. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en": "9. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail": "event_news_index9_thumbs.png"
},
{
"filename": "event_news_index10",
"name": {
"zh_tw": "10. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en": "10. Standard Title List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail": "event_news_index10_thumbs.png"
},
{
"filename": "event_news_index11",
"name": {
"zh_tw": "11. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en": "11. Simple Title List-1 (widget-title, status, title, postdate)"
},
"thumbnail": "event_news_index11_thumbs.png"
},
{
"filename": "event_news_index12",
"name": {
"zh_tw": "12. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en": "12. Simple Title List-2 (widget-title, postdate, status, title)"
},
"thumbnail": "event_news_index12_thumbs.png"
},
{
"filename": "event_news_index13",
"name": {
"zh_tw": "13. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en": "13. Simple Table List (widget-title, status, title, postdate)"
},
"thumbnail": "event_news_index13_thumbs.png"
},
{
"filename": "event_news_index14",
"name": {
"zh_tw": "14. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en": "14. Simple Table List (widget-title, postdate, status, title)"
},
"thumbnail": "event_news_index14_thumbs.png"
},
{
"filename": "event_news_index15",
"name": {
"zh_tw": "15. 精簡表格列表-3 ( 模組標題, 日期, 狀態, 標題, 瀏覽人次 )",
"en": "15. Simple Table List (widget-title, postdate, status, title, view-count)"
},
"thumbnail": "event_news_index15_thumbs.png"
},
{
"filename": "event_news_index16",
"name": {
"zh_tw": "16. 連結 + 附件表格列表 ( 模組標題, 類別, 狀態, 標題 )",
"en": "16. Table List including Links and attachments (widget-title, category, status, title, view-count)"
},
"thumbnail": "event_news_index16_thumbs.png"
},
{
"filename": "event_news_index17",
"name": {
"zh_tw": "17. 標準標題列表-1A ( 類別, 標題, 日期, 張貼人 )",
"en": "17. Standard Title List-1 ( category, title, postdate, department)"
},
"thumbnail": "event_news_index1_thumbs.png"
},
{
"filename": "event_news_index18",
"name": {
"zh_tw": "18. 標準標題列表-2 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en": "18. Standard Title List-2 ( EventDate, speaker, status, title, host, notes)"
},
"thumbnail": "event_news_index1_thumbs.png"
}
],
"widgets": [
{
"filename": "event_news_widget1",
"name": {
"zh_tw": "1. 標準圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "1. Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_widget1_thumbs.png"
},
{
"filename": "event_news_widget2",
"name": {
"zh_tw": "2. 左圖右文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "2. Balanced Image + Text(Left) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_widget2_thumbs.png"
},
{
"filename": "event_news_widget3",
"name": {
"zh_tw": "3. 右圖左文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "3. Balanced Image + Text(Right) (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_widget3_thumbs.png"
},
{
"filename": "event_news_widget4",
"name": {
"zh_tw": "4. 三欄圖文 ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "4. 3-Column Standard Image + Text (widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_widget4_thumbs.png"
},
{
"filename": "event_news_widget15",
"name": {
"zh_tw": "4.5. 三欄圖文-slide ( 模組標題, 圖片, 狀態, 日期, 類別, 標題, 副標題 )",
"en": "4.5. 3-Column Standard Image + Text -slide(widget-title, image, status, postdate, category, title, subtitle)"
},
"thumbnail": "event_news_widget4_thumbs.png"
},
{
"filename": "event_news_widget5",
"name": {
"zh_tw": "5. 標準文字列表 ( 模組標題, 日期, 類別, 狀態, 標題, 副標題 )",
"en": "5. Standard Text List (widget-title, postdate, category, status, title, subtitle)"
},
"thumbnail": "event_news_widget5_thumbs.png"
},
{
"filename": "event_news_widget6",
"name": {
"zh_tw": "6. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en": "6. Standard Title List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail": "event_news_widget6_thumbs.png"
},
{
"filename": "event_news_widget7",
"name": {
"zh_tw": "7. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en": "7. Standard Title List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail": "event_news_widget7_thumbs.png"
},
{
"filename": "event_news_widget8",
"name": {
"zh_tw": "8. 標準表格列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en": "8. Standard Table List-1 (widget-title, category, status, title, postdate)"
},
"thumbnail": "event_news_widget8_thumbs.png"
},
{
"filename": "event_news_widget9",
"name": {
"zh_tw": "9. 標準表格列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en": "9. Standard Table List-2 (widget-title, postdate, status, title, category)"
},
"thumbnail": "event_news_widget9_thumbs.png"
},
{
"filename": "event_news_widget10",
"name": {
"zh_tw": "10. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en": "10. Simple Title List-1 (widget-title, status, title, postdate)"
},
"thumbnail": "event_news_widget10_thumbs.png"
},
{
"filename": "event_news_widget11",
"name": {
"zh_tw": "11. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en": "11. Simple Title List-2 (widget-title, postdate, status, title)"
},
"thumbnail": "event_news_widget11_thumbs.png"
},
{
"filename": "event_news_widget12",
"name": {
"zh_tw": "12. 精簡表格列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en": "12. Simple Table List (widget-title, status, title, postdate)"
},
"thumbnail": "event_news_widget12_thumbs.png"
},
{
"filename": "event_news_widget13",
"name": {
"zh_tw": "13. 精簡表格列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en": "13. Simple Table List (widget-title, postdate, status, title)"
},
"thumbnail": "event_news_widget13_thumbs.png"
},
{
"filename": "event_news_widget14",
"name": {
"zh_tw": "14. 一圖 + 標題列表 ( 模組標題, 圖片, 狀態, 標題, 日期 )",
"en": "14. 1 Image + Title List (widget-title, image, status, title, postdate)"
},
"thumbnail": "event_news_widget14_thumbs.png"
},
{
"filename": "event_news_widget16",
"name": {
"zh_tw": "15. 標準表格列表-3 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en": "15. Standard Table List (EventDate, speaker, status, title, host, notes)"
},
"thumbnail": "event_news_widget13_thumbs.png"
},
{
"filename": "event_news_widget17",
"name": {
"zh_tw": "16. 標準表格列表-3 ( 日期, 狀態, 標題, 演講者, 主持人, 備註 )",
"en": "16. Standard Table List (EventDate, status, title, speaker, host, notes)"
},
"thumbnail": "event_news_widget13_thumbs.png"
},
{
"filename": "event_news_widget18",
"name": {
"zh_tw": "18. 日歷",
"en": "18. Calendar"
},
"force_cover": "true",
"thumbnail": "event_news_widget13_thumbs.png"
}
]
}

View File

@ -0,0 +1,65 @@
<article class="s-annc show-annc">
<h1 class="s-annc__show-title">{{title}}</h1>
<ul class="s-annc__meta-wrap list-unstyled no-print">
<li class="s-annc__date-wrap s-annc__meta--item">
<span style="display: inline-block;{{event-time-css}}">
<span>{{event_date-head}}:</span>
<span class="s-annc__date" date-format="%Y-%m-%d">{{updated_at}}</span>
</span>
</li>
<li class="s-annc__author-wrap s-annc__meta--item" style="display: none;">
<i class="fa fa-male"></i>
<span class="s-annc__author">{{update_user}}</span>
</li>
<li class="s-annc__tag-wrap s-annc__meta--item ">
<i class="fa fa-tags"></i>
<span data-list="tags" data-level="0">
<a href="{{url}}"><span class="s-annc__tag label label-default">{{tag}}</span></a>
</span>
</li>
<li class="s-annc__extra_info-wrap s-annc__meta--item ">
<span style="display: inline-block;{{speaker-css}}">
<span>{{speaker-head}}:</span>
<span>{{speaker}}</span>
<span>&nbsp;/&nbsp;</span>
</span>
<span style="{{host-css}}">
<span style="display: inline-block;">
<span>{{host-head}}:</span>
<span>{{host}}</span>
</span>
</span>
<div>{{place_text}}</div>
</li>
</ul>
<section class="s-annc__post-wrap">
<div class="s-annc__sub-img {{hide_class}}">
<img src="{{img_src}}"></img>
<span class="s-annc__img_description">{{img_description}}</span>
</div>
<div class="s-annc__subtitle">{{subtitle_ann}}</div>
<p class="s-annc__post-body">{{body}}</p>
</section>
<hr>
<section class="s-annc__post-wrap">
<p class="s-annc__post-notes">{{notes}}</p>
</section>
<ul class="s-annc__related-wrap list-unstyled no-print">
<li class="s-annc__related-file">
<i class="fa fa-fw fa-paperclip"></i>
<div class="s-annc__related-file-list" data-list="event_news_files" data-level="0">
<a class="s-annc__flie-title btn btn-default btn-sm" href="{{file_url}}">{{file_title}}</a>
</div>
</li>
<li class="s-annc__related-link">
<i class="fa fa-fw fa-link"></i>
<div class="s-annc__related-link-list" data-list="event_news_links" data-level="0">
<a class="s-annc__link-title btn btn-default btn-sm" href="{{link_url}}" target="_blank">{{link_title}}</a>
</div>
</li>
</ul>
</article>
{{link_to_edit}}

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB