Change event_news to event_news_mod.

This commit is contained in:
BoHung Chiu 2022-03-08 16:55:33 +08:00
parent f19810f5e5
commit c624b5c216
79 changed files with 1943 additions and 1930 deletions

View File

@ -8,7 +8,7 @@ class Admin::EventNewsController < OrbitAdminController
def initialize def initialize
super super
@app_title = "event_news" @app_title = "event_news_mod"
end end
def index def index

View File

@ -1,4 +1,4 @@
class EventNewsController < ApplicationController class EventNewsModsController < ApplicationController
include EventNewsHelper include EventNewsHelper
def index def index
EventNews.remove_expired_status EventNews.remove_expired_status
@ -99,7 +99,7 @@ class EventNewsController < ApplicationController
end end
def tag_cloud def tag_cloud
ma = ModuleApp.where(:key => "event_news").first ma = ModuleApp.where(:key => "event_news_mod").first
temp = [] temp = []
ma.tags.each do |tag| ma.tags.each do |tag|
t1 = tag.taggings.collect{|t| t.taggable_id.to_s} t1 = tag.taggings.collect{|t| t.taggable_id.to_s}
@ -186,10 +186,10 @@ class EventNewsController < ApplicationController
locale = I18n.locale.to_s locale = I18n.locale.to_s
if home_page.respond_to?(:find_page) if home_page.respond_to?(:find_page)
page = home_page.find_page(:page_id=> subpart.read_more_page_id,:enabled_for=>locale).first rescue nil page = home_page.find_page(:page_id=> subpart.read_more_page_id,:enabled_for=>locale).first rescue nil
page = home_page.find_page(:module=>"event_news",:enabled_for=>locale).first rescue nil if page.nil? page = home_page.find_page(:module=>"event_news_mod",:enabled_for=>locale).first rescue nil if page.nil?
else else
page = Page.where(:page_id=> subpart.read_more_page_id,:enabled_for=>locale).first rescue nil page = Page.where(:page_id=> subpart.read_more_page_id,:enabled_for=>locale).first rescue nil
page = Page.where(:module=>"event_news",:enabled_for=>locale).first rescue nil if page.nil? page = Page.where(:module=>"event_news_mod",:enabled_for=>locale).first rescue nil if page.nil?
end end
all_cats = cats.dup all_cats = cats.dup
all_cats.delete "all" all_cats.delete "all"
@ -411,7 +411,7 @@ class EventNewsController < ApplicationController
@image_version = 'thumb' @image_version = 'thumb'
@show_today_data_first = false @show_today_data_first = false
if subpart.methods.include? 'select_options'.to_sym if subpart.methods.include? 'select_options'.to_sym
ModuleApp.all.select{|tmp| tmp.key.to_s=='event_news'}.each do |modile_app| ModuleApp.all.select{|tmp| tmp.key.to_s=='event_news_mod'}.each do |modile_app|
@show_options = modile_app.show_options rescue nil @show_options = modile_app.show_options rescue nil
end end
subpart.select_options.each do |select_option| subpart.select_options.each do |select_option|
@ -789,7 +789,7 @@ class EventNewsController < ApplicationController
@categories = params[:categories] @categories = params[:categories]
end end
OrbitHelper.set_site_locale(I18n.locale) OrbitHelper.set_site_locale(I18n.locale)
OrbitHelper.set_current_widget_module("event_news") OrbitHelper.set_current_widget_module("event_news_mod")
OrbitHelper.set_params(params,current_user) OrbitHelper.set_params(params,current_user)
EventNews.remove_expired_status EventNews.remove_expired_status
OrbitHelper.set_page_number(params[:page_no].to_i) OrbitHelper.set_page_number(params[:page_no].to_i)
@ -896,11 +896,11 @@ class EventNewsController < ApplicationController
all_tags = subpart.tags all_tags = subpart.tags
all_tags = ['all'] if all_tags.length==0 all_tags = ['all'] if all_tags.length==0
page = Page.where(:page_id=> subpart.read_more_page_id).first rescue nil page = Page.where(:page_id=> subpart.read_more_page_id).first rescue nil
page = Page.where(:module => "event_news").first rescue nil if page.nil? page = Page.where(:module => "event_news_mod").first rescue nil if page.nil?
read_more_url_root = "/#{I18n.locale.to_s + page.url}" rescue "" read_more_url_root = "/#{I18n.locale.to_s + page.url}" rescue ""
read_more_url = read_more_url_root + "?" + {"category"=>all_cats,"tags"=> all_tags}.to_param if read_more_url != "" read_more_url = read_more_url_root + "?" + {"category"=>all_cats,"tags"=> all_tags}.to_param if read_more_url != ""
else else
page = Page.where(:module => "event_news").first page = Page.where(:module => "event_news_mod").first
read_more_url_root = "/#{I18n.locale.to_s + page.url}" rescue "" read_more_url_root = "/#{I18n.locale.to_s + page.url}" rescue ""
end end
if params[:unix_start].present? && params[:unix_end].present? if params[:unix_start].present? && params[:unix_end].present?

View File

@ -331,9 +331,9 @@ module EventNewsHelper
if @target_action == "index" if @target_action == "index"
filename = overridehtml.nil? ? params[:layout_type] : overridehtml filename = overridehtml.nil? ? params[:layout_type] : overridehtml
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news', "#{filename}.html.erb") f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news_mod', "#{filename}.html.erb")
if !File.exists?f if !File.exists?f
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news', "index.html.erb") f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news_mod', "index.html.erb")
if !File.exists?f if !File.exists?f
return "<div class='well'>Maybe the administrator has changed the theme, please select the index page design again from the page settings.</div>".html_safe return "<div class='well'>Maybe the administrator has changed the theme, please select the index page design again from the page settings.</div>".html_safe
end end
@ -345,7 +345,7 @@ module EventNewsHelper
begin begin
data = @data# rescue nil data = @data# rescue nil
rescue Exception => e rescue Exception => e
write_debug_file(e,'event_news',@target_action) if Site::DEBUG write_debug_file(e,'event_news_mod',@target_action) if Site::DEBUG
end end
if !data.nil? if !data.nil?
wrap_elements = doc.css("*[data-list][data-level='0']") wrap_elements = doc.css("*[data-list][data-level='0']")
@ -373,7 +373,7 @@ module EventNewsHelper
end end
else else
filename = overridehtml.nil? ? @target_action : overridehtml filename = overridehtml.nil? ? @target_action : overridehtml
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news', "#{filename}.html.erb") f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', 'event_news_mod', "#{filename}.html.erb")
if File.exists?f if File.exists?f
file = File.open(f) file = File.open(f)
doc = Nokogiri::HTML(file, nil, "UTF-8") doc = Nokogiri::HTML(file, nil, "UTF-8")
@ -382,7 +382,7 @@ module EventNewsHelper
begin begin
data = @data# rescue nil data = @data# rescue nil
rescue Exception => e rescue Exception => e
write_debug_file(e,'event_news',@target_action) if Site::DEBUG write_debug_file(e,'event_news_mod',@target_action) if Site::DEBUG
end end
if data.nil? if data.nil?
return "<div class='well'> No content to show. </div>".html_safe return "<div class='well'> No content to show. </div>".html_safe

View File

@ -1,19 +1,19 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head> </head>
<body bgcolor="#FFFFFF"> <body bgcolor="#FFFFFF">
<div style="text-ident:20px"></div> <div style="text-ident:20px"></div>
<%= t('event_news.mail_hi') %> <br /><br /> <%= t('event_news.mail_hi') %> <br /><br />
<%= t('event_news.mail_url_view') %> <br /><br /> <%= t('event_news.mail_url_view') %> <br /><br />
<a href="<%= @data["url"] %>" target="_blank"> <%= @data["title"] %> </a> <br /><br /> <a href="<%= @data["url"] %>" target="_blank"> <%= @data["title"] %> </a> <br /><br />
<span style="color:#555">--<br /> <span style="color:#555">--<br />
<%= t('event_news.mail_source') %> <a href="http://<%= @data["host"] %>" target="_blank"> <%= Site.first.title %> </a><br /> <%= t('event_news.mail_source') %> <a href="http://<%= @data["host"] %>" target="_blank"> <%= Site.first.title %> </a><br />
<%= t('event_news.mail_time') %> <%= DateTime.now %> <%= t('event_news.mail_time') %> <%= DateTime.now %>
</span> </span>
</body> </body>
</html> </html>

View File

@ -1,85 +1,85 @@
<% params = OrbitHelper.params <% params = OrbitHelper.params
page = Page.where(url:params['url']).first page = Page.where(url:params['url']).first
enable_search_flag = false enable_search_flag = false
if page.methods.include? 'select_option_items'.to_sym if page.methods.include? 'select_option_items'.to_sym
ModuleApp.all.select{|tmp| tmp.key.to_s=='event_news'}.each do |modile_app| ModuleApp.all.select{|tmp| tmp.key.to_s=='event_news'}.each do |modile_app|
@show_option_items = modile_app.show_option_items rescue nil @show_option_items = modile_app.show_option_items rescue nil
end end
page.select_option_items.each do |select_option_item| page.select_option_items.each do |select_option_item|
if !(@show_option_items.nil?) && select_option_item.field_name == @show_option_items.keys[1].to_s if !(@show_option_items.nil?) && select_option_item.field_name == @show_option_items.keys[1].to_s
value = YAML.load(select_option_item.value) value = YAML.load(select_option_item.value)
if value[I18n.locale] == t('event_news.yes') if value[I18n.locale] == t('event_news.yes')
enable_search_flag = true enable_search_flag = true
end end
end end
end end
end end
%> %>
<% if enable_search_flag %> <% if enable_search_flag %>
<style type="text/css"> <style type="text/css">
#category_select_box{ #category_select_box{
margin: 0; margin: 0;
background: linear-gradient(0deg, #515fff, #ff3e3e); background: linear-gradient(0deg, #515fff, #ff3e3e);
color: white; color: white;
outline: 0; outline: 0;
border-radius: 0.9em; border-radius: 0.9em;
} }
#category_select_box>option{ #category_select_box>option{
background: #5640dd; background: #5640dd;
} }
input.search_box{ input.search_box{
margin: 0; margin: 0;
background: #a2c3df; background: #a2c3df;
font-weight: bold; font-weight: bold;
color: #00008b; color: #00008b;
border-radius: 0.7em; border-radius: 0.7em;
outline: 0; outline: 0;
} }
input.search_box[type='submit']:hover{ input.search_box[type='submit']:hover{
background: #9100ff; background: #9100ff;
color: white; color: white;
} }
input.search_box[type='submit']:active{ input.search_box[type='submit']:active{
background: #7201ff; background: #7201ff;
color: white; color: white;
} }
input.search_box::-webkit-input-placeholder { input.search_box::-webkit-input-placeholder {
color: #aa58e8; color: #aa58e8;
opacity: 1; opacity: 1;
} }
input.search_box:-moz-placeholder { input.search_box:-moz-placeholder {
color: #aa58e8; color: #aa58e8;
opacity: 1; opacity: 1;
} }
input.search_box::-moz-placeholder { input.search_box::-moz-placeholder {
color: #aa58e8; color: #aa58e8;
opacity: 1; opacity: 1;
} }
</style> </style>
<form> <form>
<% cats = Array(page.categories) <% cats = Array(page.categories)
if cats.include? 'all' if cats.include? 'all'
cats = ModuleApp.where(key: 'event_news').first.categories cats = ModuleApp.where(key: 'event_news').first.categories
else else
cats = cats.map{|v| Category.where(id: v).first}.compact cats = cats.map{|v| Category.where(id: v).first}.compact
end end
all_cat = [[t('event_news.all'),'all']] all_cat = [[t('event_news.all'),'all']]
%> %>
<div class="search_widget" style="display: flex;flex-wrap: wrap;font-size: 1.1em;"> <div class="search_widget" style="display: flex;flex-wrap: wrap;font-size: 1.1em;">
<%= select_tag('category',options_for_select(all_cat.concat(cats.map{|v| [v.title,v.id.to_s]}),:selected => params['category'].to_s),:id=>"category_select_box",:prompt => t('event_news.select_prompt')) %> <%= select_tag('category',options_for_select(all_cat.concat(cats.map{|v| [v.title,v.id.to_s]}),:selected => params['category'].to_s),:id=>"category_select_box",:prompt => t('event_news.select_prompt')) %>
<input class="search_box" type="text" name="keywords" value="<%= params['keywords'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('event_news.keywords') %>"> <input class="search_box" type="text" name="keywords" value="<%= params['keywords'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('event_news.keywords') %>">
<div style="display: flex;flex-wrap: wrap;"> <div style="display: flex;flex-wrap: wrap;">
<div class="default_picker"> <div class="default_picker">
<input class="search_box" type="text" name="stime" value="<%= params['stime'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('event_news.stime') %>" data-format="yyyy/mm/dd"> <input class="search_box" type="text" name="stime" value="<%= params['stime'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('event_news.stime') %>" data-format="yyyy/mm/dd">
</div> </div>
~ ~
<div class="default_picker"> <div class="default_picker">
<input class="search_box" type="text" name="etime" value="<%= params['etime'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('event_news.etime') %>" data-format="yyyy/mm/dd"> <input class="search_box" type="text" name="etime" value="<%= params['etime'].to_s.gsub(/\"/,'') %>" placeholder="<%= t('event_news.etime') %>" data-format="yyyy/mm/dd">
</div> </div>
</div> </div>
<input type="hidden" name="authenticity_token" value="<%= (0...46).map { ('a'..'z').to_a[rand(26)] }.join %>"> <input type="hidden" name="authenticity_token" value="<%= (0...46).map { ('a'..'z').to_a[rand(26)] }.join %>">
<input class="search_box" type="submit" value="<%= t('event_news.search') %>"> <input class="search_box" type="submit" value="<%= t('event_news.search') %>">
</div> </div>
</form> </form>
<% end %> <% end %>
<%= render_view %> <%= render_view %>

View File

@ -1,237 +1,237 @@
<% <%
require 'event_news_helper' require 'event_news_helper'
data = action_data data = action_data
params = OrbitHelper.params params = OrbitHelper.params
page = Page.where(url:params['url']).first page = Page.where(url:params['url']).first
@ad_banner_location = 2 @ad_banner_location = 2
@show_back_and_next_flag = 0 @show_back_and_next_flag = 0
if page.methods.include? 'select_option_items'.to_sym if page.methods.include? 'select_option_items'.to_sym
ModuleApp.all.select{|tmp| tmp.key.to_s=='event_news'}.each do |module_app| ModuleApp.all.select{|tmp| tmp.key.to_s=='event_news'}.each do |module_app|
@show_option_items = module_app.show_option_items rescue nil @show_option_items = module_app.show_option_items rescue nil
end end
page.select_option_items.each do |select_option_item| page.select_option_items.each do |select_option_item|
if !(@show_option_items.nil?) if !(@show_option_items.nil?)
if select_option_item.field_name == @show_option_items.keys.first.to_s if select_option_item.field_name == @show_option_items.keys.first.to_s
value = YAML.load(select_option_item.value) value = YAML.load(select_option_item.value)
tmp = value[:en] tmp = value[:en]
I18n.with_locale(:en) do I18n.with_locale(:en) do
if tmp == t('event_news.not_show') if tmp == t('event_news.not_show')
@show_back_and_next_flag = 0 @show_back_and_next_flag = 0
elsif tmp == t('event_news.show_top') elsif tmp == t('event_news.show_top')
@show_back_and_next_flag = 1 @show_back_and_next_flag = 1
elsif tmp == t('event_news.show_bottom') elsif tmp == t('event_news.show_bottom')
@show_back_and_next_flag = 2 @show_back_and_next_flag = 2
end end
end end
elsif select_option_item.field_name == @show_option_items.keys[2].to_s elsif select_option_item.field_name == @show_option_items.keys[2].to_s
value = YAML.load(select_option_item.value) value = YAML.load(select_option_item.value)
tmp = value[:en] tmp = value[:en]
I18n.with_locale(:en) do I18n.with_locale(:en) do
if tmp == t('event_news.show_top') if tmp == t('event_news.show_top')
@ad_banner_location = 1 @ad_banner_location = 1
elsif tmp == t('event_news.show_bottom') elsif tmp == t('event_news.show_bottom')
@ad_banner_location = 2 @ad_banner_location = 2
end end
end end
end end
end end
end end
end end
if @show_back_and_next_flag != 0 if @show_back_and_next_flag != 0
uid = params['uid'] uid = params['uid']
sorted,total_pages = get_sorted_annc(0) sorted,total_pages = get_sorted_annc(0)
now_index = sorted.to_enum.with_index.select{|v| v[0].uid==uid}[0][1] rescue nil now_index = sorted.to_enum.with_index.select{|v| v[0].uid==uid}[0][1] rescue nil
if !now_index.nil? if !now_index.nil?
if now_index != 0 if now_index != 0
prev_result = sorted[now_index-1] prev_result = sorted[now_index-1]
prev_url = params['url'] + '/' + prev_result.to_param prev_url = params['url'] + '/' + prev_result.to_param
prev_content = "<a href='#{prev_url}' title='#{t('event_news.prev')}' class='prev'><b>#{t('event_news.prev')}</b><p>#{prev_result['title'][I18n.locale]}</p></a>" prev_content = "<a href='#{prev_url}' title='#{t('event_news.prev')}' class='prev'><b>#{t('event_news.prev')}</b><p>#{prev_result['title'][I18n.locale]}</p></a>"
end end
if now_index != sorted.length-1 if now_index != sorted.length-1
next_result = sorted[now_index+1] next_result = sorted[now_index+1]
next_url = params['url'] + '/' + next_result.to_param next_url = params['url'] + '/' + next_result.to_param
next_content = "<a href='#{next_url}' title='#{t('event_news.next')}' class='next'><b>#{t('event_news.next')}</b><p>#{next_result['title'][I18n.locale]}</p></a>" next_content = "<a href='#{next_url}' title='#{t('event_news.next')}' class='next'><b>#{t('event_news.next')}</b><p>#{next_result['title'][I18n.locale]}</p></a>"
end end
content = "<div class='see_more_boxTitle'>#{prev_content}#{next_content}</div>".html_safe content = "<div class='see_more_boxTitle'>#{prev_content}#{next_content}</div>".html_safe
else else
content = '' content = ''
end end
end end
ad_banner_content = render_ad_banner(data['event_carousel_images'],data['data']) ad_banner_content = render_ad_banner(data['event_carousel_images'],data['data'])
%> %>
<style type="text/css"> <style type="text/css">
.carousel_images{ .carousel_images{
<%= data['data']['carousel_display_style'] %> <%= data['data']['carousel_display_style'] %>
} }
</style> </style>
<%= stylesheet_link_tag 'event_news_front.css' %> <%= stylesheet_link_tag 'event_news_front.css' %>
<% if @show_back_and_next_flag!=0 %> <% if @show_back_and_next_flag!=0 %>
<style type="text/css"> <style type="text/css">
.see_more_boxTitle{ .see_more_boxTitle{
display: flex; display: flex;
margin: 1em 0em; margin: 1em 0em;
padding: 1em; padding: 1em;
border: 0.2em solid; border: 0.2em solid;
} }
a.prev, a.next{ a.prev, a.next{
width: 50%; width: 50%;
border: 0.2em solid; border: 0.2em solid;
padding: 1em; padding: 1em;
flex: 1; flex: 1;
} }
a.next{ a.next{
margin-left: 1em; margin-left: 1em;
} }
a.prev{ a.prev{
margin-right: 1em; margin-right: 1em;
} }
</style> </style>
<% end %> <% end %>
<% if @show_back_and_next_flag==1 %> <% if @show_back_and_next_flag==1 %>
<%= content %> <%= content %>
<% end %> <% end %>
<% if @ad_banner_location==1 %> <% if @ad_banner_location==1 %>
<%= ad_banner_content %> <%= ad_banner_content %>
<% end %> <% end %>
<%= render_view %> <%= render_view %>
<% if @ad_banner_location==2 %> <% if @ad_banner_location==2 %>
<%= ad_banner_content %> <%= ad_banner_content %>
<% end %> <% end %>
<% if @show_back_and_next_flag==2 %> <% if @show_back_and_next_flag==2 %>
<%= content %> <%= content %>
<% end %> <% end %>
<script> <script>
(function($) { (function($) {
function hideEmptyEl(el, elParent) { function hideEmptyEl(el, elParent) {
if( el.length === 0) { if( el.length === 0) {
elParent.addClass('hide'); elParent.addClass('hide');
} }
} }
// Hiding parent element when children elements are not present // Hiding parent element when children elements are not present
// Tags // Tags
hideEmptyEl($('.s-annc__tag'), $('.s-annc__tag-wrap')); hideEmptyEl($('.s-annc__tag'), $('.s-annc__tag-wrap'));
// Attachments // Attachments
hideEmptyEl($('.s-annc__flie-title'), $('.s-annc__related-file')); hideEmptyEl($('.s-annc__flie-title'), $('.s-annc__related-file'));
// Links // Links
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(){ $('.pause-slide').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('.carousel_images').find('.resume-slide').removeClass('active'); $(this).parents('.carousel_images').find('.resume-slide').removeClass('active');
}); });
$('.resume-slide').click(function(){ $('.resume-slide').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('.carousel_images').find('.pause-slide').removeClass('active'); $(this).parents('.carousel_images').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");
}) })
$('.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");
}) })
window.active_slide = 0; window.active_slide = 0;
$('.prev_img').off('click').on('click',function(){ $('.prev_img').off('click').on('click',function(){
var carousel_images_slide = $('.carousel_images_slide'); var carousel_images_slide = $('.carousel_images_slide');
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide); var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
if(carousel_images_slide_first_child.length > 0){ 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)); 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); content_size = Math.max(content_size,1);
if(carousel_images_slide.find(">li").length > content_size && active_slide > 0){ if(carousel_images_slide.find(">li").length > content_size && active_slide > 0){
active_slide -= content_size; active_slide -= content_size;
carousel_images_slide.find(">li").css("display","none"); carousel_images_slide.find(">li").css("display","none");
for(var i = active_slide; i < active_slide + content_size;i++){ for(var i = active_slide; i < active_slide + content_size;i++){
carousel_images_slide.find(">li").eq(i).css("display","block"); carousel_images_slide.find(">li").eq(i).css("display","block");
} }
} }
} }
}) })
$('.next_img').off('click').on('click',function(){ $('.next_img').off('click').on('click',function(){
var carousel_images_slide = $('.carousel_images_slide'); var carousel_images_slide = $('.carousel_images_slide');
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide); var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
if(carousel_images_slide_first_child.length > 0){ 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)); 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); content_size = Math.max(content_size,1);
var li_length = carousel_images_slide.find(">li").length; var li_length = carousel_images_slide.find(">li").length;
if(li_length > content_size){ if(li_length > content_size){
active_slide += content_size; active_slide += content_size;
active_slide = Math.min(active_slide,li_length - 1); active_slide = Math.min(active_slide,li_length - 1);
carousel_images_slide.find(">li").css("display","none"); carousel_images_slide.find(">li").css("display","none");
for(var i = active_slide; i < active_slide + content_size;i++){ for(var i = active_slide; i < active_slide + content_size;i++){
carousel_images_slide.find(">li").eq(i).css("display","block"); carousel_images_slide.find(">li").eq(i).css("display","block");
} }
} }
} }
}) })
$(".carousel_img_item img").off("click").on("click",function(){ $(".carousel_img_item img").off("click").on("click",function(){
$(".carousel_images .cycle-slideshow").cycle($(this).index(".carousel_img_item img")); $(".carousel_images .cycle-slideshow").cycle($(this).index(".carousel_img_item img"));
}) })
$(document).ready(function(){ $(document).ready(function(){
$(".carousel_images .cycle-slideshow").cycle('pause'); $(".carousel_images .cycle-slideshow").cycle('pause');
var carousel_image_block_width = $('.carousel_images').width(); var carousel_image_block_width = $('.carousel_images').width();
var heights = $(".event_carousel_slide").map(function(i,v){ var heights = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width(); return $(v).height() * carousel_image_block_width / $(v).width();
}) })
var max_height = Math.max.apply(null,heights); var max_height = Math.max.apply(null,heights);
$(".event_carousel_slide").each(function(i,v){ $(".event_carousel_slide").each(function(i,v){
$(v).height(max_height); $(v).height(max_height);
}) })
$(".carousel_images .cycle-slideshow").cycle('resume'); $(".carousel_images .cycle-slideshow").cycle('resume');
$('.carousel_images .resume-slide').addClass('active'); $('.carousel_images .resume-slide').addClass('active');
$('.cycle-slideshow').on('cycle-after',function(){ $('.cycle-slideshow').on('cycle-after',function(){
$(".active_slide").text($('.event_carousel_slide.cycle-slide-active').index()); $(".active_slide").text($('.event_carousel_slide.cycle-slide-active').index());
}) })
}) })
$(window).on("load",function(){ $(window).on("load",function(){
$(".carousel_images .cycle-slideshow").cycle('pause'); $(".carousel_images .cycle-slideshow").cycle('pause');
var carousel_image_block_width = $('.carousel_images').width(); var carousel_image_block_width = $('.carousel_images').width();
var heights = $(".event_carousel_slide").map(function(i,v){ var heights = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width(); return $(v).height() * carousel_image_block_width / $(v).width();
}) })
var max_height = Math.max.apply(null,heights); var max_height = Math.max.apply(null,heights);
$(".event_carousel_slide").each(function(i,v){ $(".event_carousel_slide").each(function(i,v){
$(v).height(max_height); $(v).height(max_height);
}) })
$(".carousel_images .cycle-slideshow").cycle('resume'); $(".carousel_images .cycle-slideshow").cycle('resume');
}) })
$(window).resize(function(){ $(window).resize(function(){
var carousel_images_slide = $('.carousel_images_slide'); var carousel_images_slide = $('.carousel_images_slide');
var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide); var carousel_images_slide_first_child = carousel_images_slide.find(">li").eq(active_slide);
if(carousel_images_slide_first_child.length > 0){ 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)); 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); content_size = Math.max(content_size,1);
carousel_images_slide.find(">li").css("display","none"); carousel_images_slide.find(">li").css("display","none");
var active_count = carousel_images_slide.find(">li").length - active_slide; var active_count = carousel_images_slide.find(">li").length - active_slide;
if(active_count < content_size){ if(active_count < content_size){
active_slide -= (content_size - active_count); active_slide -= (content_size - active_count);
} }
active_slide = Math.max(active_slide,0); active_slide = Math.max(active_slide,0);
console.log(content_size) console.log(content_size)
for(var i = active_slide; i < active_slide + content_size;i++){ for(var i = active_slide; i < active_slide + content_size;i++){
carousel_images_slide.find(">li").eq(i).css("display","block"); carousel_images_slide.find(">li").eq(i).css("display","block");
} }
} }
var carousel_image_block_width = $('.carousel_images').width(); var carousel_image_block_width = $('.carousel_images').width();
$(".event_carousel_slide").css("height",''); $(".event_carousel_slide").css("height",'');
var heights = $(".event_carousel_slide").map(function(i,v){ var heights = $(".event_carousel_slide").map(function(i,v){
return $(v).height() * carousel_image_block_width / $(v).width(); return $(v).height() * carousel_image_block_width / $(v).width();
}) })
var max_height = Math.max.apply(null,heights); var max_height = Math.max.apply(null,heights);
$(".event_carousel_slide").each(function(i,v){ $(".event_carousel_slide").each(function(i,v){
$(v).height(max_height); $(v).height(max_height);
}) })
}) })
}(jQuery)); }(jQuery));
</script> </script>

View File

@ -1,15 +1,15 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title><%= render_site_title %></title> <title><%= render_site_title %></title>
<%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"%> <%= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css"%>
<%= stylesheet_link_tag "event_news/bootstrap/bootstrap.min.css"%> <%= stylesheet_link_tag "event_news/bootstrap/bootstrap.min.css"%>
<%= stylesheet_link_tag "template/template"%> <%= stylesheet_link_tag "template/template"%>
<%= javascript_include_tag "jquery.min"%> <%= javascript_include_tag "jquery.min"%>
<%= javascript_include_tag "bootstrap.min"%> <%= javascript_include_tag "bootstrap.min"%>
</head> </head>
<body> <body>
<% @target_action = "show_widget" %> <% @target_action = "show_widget" %>
<%=render_view_for_event_news((!params[:layout_type].blank? ? params[:layout_type] : 'event_news_index1'))%> <%=render_view_for_event_news((!params[:layout_type].blank? ? params[:layout_type] : 'event_news_index1'))%>
</body> </body>
</html> </html>

View File

@ -1,6 +1,6 @@
en: en:
module_name: module_name:
event_news: Event News event_news_mod: Event News
event_news: event_news:
event_date_setting: "Event date setting" event_date_setting: "Event date setting"
event_date_use_default_setting: "Event date use default setting" event_date_use_default_setting: "Event date use default setting"

View File

@ -1,6 +1,6 @@
zh_tw: zh_tw:
module_name: module_name:
event_news: 活動公告 event_news_mod: 活動公告
event_news: event_news:
event_date_setting: "事件日期設定" event_date_setting: "事件日期設定"
event_date_use_default_setting: "使用預設的事件日期設定" event_date_use_default_setting: "使用預設的事件日期設定"

View File

@ -10,12 +10,13 @@ if bundle_update_flag
app_path = File.expand_path(__dir__) app_path = File.expand_path(__dir__)
template_path = env_pwd + '/app/templates' template_path = env_pwd + '/app/templates'
all_template = Dir.glob(template_path+'/*/') all_template = Dir.glob(template_path+'/*/')
default_event_news_widget_info = JSON.parse(File.read("#{app_path}/modules/event_news/info.json"))["widgets"].sort_by{|h| h["filename"].to_i} rescue [] default_event_news_widget_info = JSON.parse(File.read("#{app_path}/modules/event_news_mod/info.json"))["widgets"].sort_by{|h| h["filename"].to_i} rescue []
all_template.each do |folder| all_template.each do |folder|
if !folder.include?('mobile') if !folder.include?('mobile')
info_json_file = "#{folder}modules/event_news/info.json" info_json_file = "#{folder}modules/event_news_mod/info.json"
if File.exist?(info_json_file) if File.exist?(info_json_file)
Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/event_news/show.html.erb ' + "#{folder}modules/event_news/.")} Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/event_news_mod
/show.html.erb ' + "#{folder}modules/event_news_mod/.")}
update_event_news_template(folder) update_event_news_template(folder)
begin begin
file_text = File.read(info_json_file) rescue "" file_text = File.read(info_json_file) rescue ""
@ -43,9 +44,9 @@ if bundle_update_flag
copy_h["name"][locale] = copy_h["name"][locale].sub(/\d+/){|ff| last_index.to_s} copy_h["name"][locale] = copy_h["name"][locale].sub(/\d+/){|ff| last_index.to_s}
end end
widget_info << copy_h widget_info << copy_h
Bundler.with_clean_env{%x[cp -f #{app_path}/modules/event_news/_#{h["filename"]}.html.erb #{folder}modules/event_news/_#{copy_h["filename"]}.html.erb]} Bundler.with_clean_env{%x[cp -f #{app_path}/modules/event_news_mod/_#{h["filename"]}.html.erb #{folder}modules/event_news_mod/_#{copy_h["filename"]}.html.erb]}
elsif h["force_cover"] == "true" elsif h["force_cover"] == "true"
Bundler.with_clean_env{%x[cp -f #{app_path}/modules/event_news/_#{h["filename"]}.html.erb #{folder}modules/event_news/_#{widget_info[widget_info_index]["filename"]}.html.erb]} Bundler.with_clean_env{%x[cp -f #{app_path}/modules/event_news_mod/_#{h["filename"]}.html.erb #{folder}modules/event_news_mod/_#{widget_info[widget_info_index]["filename"]}.html.erb]}
end end
end end
if update_flag if update_flag

View File

@ -94,7 +94,19 @@ module EventNewsMod
OrbitApp.registration "event_news_mod", :type => "ModuleApp" do OrbitApp.registration "event_news_mod", :type => "ModuleApp" do
db = ::Mongoid::Sessions.default db = ::Mongoid::Sessions.default
collection = db[:module_apps] collection = db[:module_apps]
collection.update_many({key: 'event_news'},'$set'=>{key: 'event_news_mod', title: 'event_news_mod'}) update_results = collection.update_many({key: 'event_news'},'$set'=>{key: 'event_news_mod', title: 'event_news_mod'})
if update_results.n != 0
puts "Updating event_news to event_news_mod!"
collection = db[:pages]
collection.update_many({:module=> 'event_news'},'$set'=>{:module=> 'event_news_mod'})
collection = db[:sub_parts]
collection.update_many({:module=> 'event_news'},'$set'=>{:module=> 'event_news_mod'})
template_path = Rails.root.to_s + '/app/templates'
all_template = Dir.glob(template_path+'/*/')
all_template.each do |folder|
Bundler.with_clean_env{system ("mv #{folder}modules/event_news #{folder}modules/event_news_mod")}
end
end
module_label "event_news.event_news" module_label "event_news.event_news"
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
widget_methods ["widget","random_event_news_widget", "tag_cloud"] widget_methods ["widget","random_event_news_widget", "tag_cloud"]
@ -129,14 +141,14 @@ module EventNewsMod
:available_for => 'sub_managers' :available_for => 'sub_managers'
context_link 'categories', context_link 'categories',
:link_path=>"admin_module_app_categories_path" , :link_path=>"admin_module_app_categories_path" ,
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'event_news').id}", :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'event_news_mod').id}",
:priority=>3, :priority=>3,
:active_for_action=>{'admin/event_news'=>'categories'}, :active_for_action=>{'admin/event_news'=>'categories'},
:active_for_category => 'EventNewsModule', :active_for_category => 'EventNewsModule',
:available_for => 'managers' :available_for => 'managers'
context_link 'tags', context_link 'tags',
:link_path=>"admin_module_app_tags_path" , :link_path=>"admin_module_app_tags_path" ,
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'event_news').id}", :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'event_news_mod').id}",
:priority=>4, :priority=>4,
:active_for_action=>{'admin/event_news'=>'tags'}, :active_for_action=>{'admin/event_news'=>'tags'},
:active_for_tag => 'EventNewsModule', :active_for_tag => 'EventNewsModule',

View File

@ -1,34 +1,34 @@
<div class="w-annc widget-announcement-1"> <div class="w-annc widget-announcement-1">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list" data-level="0" data-list="event_news"> <ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item"> <li class="w-annc__item">
<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>
<div class="w-annc__meta"> <div class="w-annc__meta">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{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> <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> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="w-annc__entry-title"> <h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<div class="w-annc__subtitle">{{subtitle}}</div> <div class="w-annc__subtitle">{{subtitle}}</div>
<div class="w-annc__speaker" style="{{speaker-css}}">【{{speaker-head}}】 {{speaker}}</div> <div class="w-annc__speaker" style="{{speaker-css}}">【{{speaker-head}}】 {{speaker}}</div>
<div class="w-annc__host" style="{{host-css}}">【{{host-head}}】 {{host}}</div> <div class="w-annc__host" style="{{host-css}}">【{{host-head}}】 {{host}}</div>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,22 +1,22 @@
<div class="w-annc widget-announcement-10"> <div class="w-annc widget-announcement-10">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list" data-level="0" data-list="event_news"> <ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row"> <li class="w-annc__item row">
<h4 class="w-annc__entry-title col-sm-9"> <h4 class="w-annc__entry-title col-sm-9">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d"> <span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span> <span class="w-annc__postdate">{{postdate}}</span>
</span> </span>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,22 +1,22 @@
<div class="w-annc widget-announcement-11"> <div class="w-annc widget-announcement-11">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list" data-level="0" data-list="event_news"> <ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row"> <li class="w-annc__item row">
<span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d"> <span class="w-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span> <span class="w-annc__postdate">{{postdate}}</span>
</span> </span>
<h4 class="w-annc__entry-title col-sm-9"> <h4 class="w-annc__entry-title col-sm-9">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,27 +1,27 @@
<div class="w-annc widget-announcement-12"> <div class="w-annc widget-announcement-12">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<table class="w-annc__table table"> <table class="w-annc__table table">
<thead> <thead>
<tr> <tr>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th> <th class="w-annc__th w-annc__th--title">{{title-head}}</th>
<th class="w-annc__th w-annc__th--date">{{date-head}}</th> <th class="w-annc__th w-annc__th--date">{{date-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="w-annc_content"> <td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,27 +1,27 @@
<div class="w-annc widget-announcement-13"> <div class="w-annc widget-announcement-13">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<table class="w-annc__table table"> <table class="w-annc__table table">
<thead> <thead>
<tr> <tr>
<th class="w-annc__th w-annc__th--date">{{date-head}}</th> <th class="w-annc__th w-annc__th--date">{{date-head}}</th>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th> <th class="w-annc__th w-annc__th--title">{{title-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-annc_content"> <td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,29 +1,29 @@
<div class="w-annc widget-announcement-14"> <div class="w-annc widget-announcement-14">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<div class="w-annc__inner row"> <div class="w-annc__inner row">
<div class="w-annc__img-wrap col-xs-4 bullseye"> <div class="w-annc__img-wrap col-xs-4 bullseye">
<img class="w-annc__img" src="{{main_picture}}" alt="{{main_picture_description}}" title="{{main_picture_description}}"> <img class="w-annc__img" src="{{main_picture}}" alt="{{main_picture_description}}" title="{{main_picture_description}}">
</div> </div>
<ul class="w-annc__list col-xs-8" data-level="0" data-list="event_news"> <ul class="w-annc__list col-xs-8" data-level="0" data-list="event_news">
<li class="w-annc__item"> <li class="w-annc__item">
<div class="w-annc__content row"> <div class="w-annc__content row">
<h4 class="w-annc__entry-title col-xs-9"> <h4 class="w-annc__entry-title col-xs-9">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label {{status-class}}">{{status}}</span> <span class="w-annc__status label {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="w-annc__postdate-wrap col-xs-3" date-format="%Y-%m-%d"> <span class="w-annc__postdate-wrap col-xs-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span> <span class="w-annc__postdate">{{postdate}}</span>
</span> </span>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,162 +1,162 @@
<div class="w-annc widget-announcement-4 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}}"><%= t("event_news.more") %></a> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
<div style="position: absolute;top: 50%;bottom: 50%;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.6%;"></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%;"></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%;"></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%;"></button>
</div> </div>
<ul class="w-annc__list row" data-level="0" data-list="event_news"> <ul class="w-annc__list row" data-level="0" data-list="event_news">
<li class="w-annc__item col-md-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>
<div class="w-annc__content-wrap"> <div class="w-annc__content-wrap">
<div class="w-annc__meta"> <div class="w-annc__meta">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<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> <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> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="w-annc__entry-title"> <h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="w-annc__subtitle">{{subtitle}}</p> <p class="w-annc__subtitle">{{subtitle}}</p>
</div> </div>
</li> </li>
</ul> </ul>
</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_{{subpart-id}}(){ function combineul_{{subpart-id}}(){
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent(); var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
parents.each(function(i,v){ parents.each(function(i,v){
for(var i=1;i<$(v).find('ul.w-annc__list').length;i++) 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()); $(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; var ullength = $(v).find('ul.w-annc__list').length;
for(var i = 1;i < ullength;i++) for(var i = 1;i < ullength;i++)
$(v).find('ul.w-annc__list').eq(-1).remove(); $(v).find('ul.w-annc__list').eq(-1).remove();
}) })
}; };
var num; var num;
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length; var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
function reorganize_{{subpart-id}}(num){ function reorganize_{{subpart-id}}(num){
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').toArray(); var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').toArray();
var currentul = uls.findIndex(function(v){ var currentul = uls.findIndex(function(v){
return $(v).hasClass("active") && !$(v).hasClass("hidden_item"); return $(v).hasClass("active") && !$(v).hasClass("hidden_item");
}) })
if(currentul == -1) if(currentul == -1)
currentul = 0; currentul = 0;
var li_active_idx = 0; var li_active_idx = 0;
if(currentul != 0) if(currentul != 0)
li_active_idx = $(uls[currentul]).find("li.w-annc__item").eq(0).index("li.w-annc__item"); li_active_idx = $(uls[currentul]).find("li.w-annc__item").eq(0).index("li.w-annc__item");
combineul_{{subpart-id}}(); combineul_{{subpart-id}}();
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent(); var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
parents.each(function(i,v){ parents.each(function(i,v){
var lilength = $(v).find('li.w-annc__item').length; var lilength = $(v).find('li.w-annc__item').length;
var ul_length = Math.ceil(lilength/num); var ul_length = Math.ceil(lilength/num);
for(var ii=1;ii< ul_length;ii++){ for(var ii=1;ii< ul_length;ii++){
var clone_ul = $(v).find('ul.w-annc__list').eq(-1).clone(); var clone_ul = $(v).find('ul.w-annc__list').eq(-1).clone();
clone_ul.empty(); clone_ul.empty();
clone_ul.removeClass("active"); clone_ul.removeClass("active");
clone_ul.css("display",""); clone_ul.css("display","");
$(v).find('ul.w-annc__list').eq(-1).after(clone_ul.prop("outerHTML")); $(v).find('ul.w-annc__list').eq(-1).after(clone_ul.prop("outerHTML"));
var lihtml=""; var lihtml="";
if(ii != (ul_length-1)){ if(ii != (ul_length-1)){
for(var j=0;j<num;j++){ for(var j=0;j<num;j++){
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML"); lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
}; };
}else{ }else{
for(var j=0;j< lilength - num *(ul_length-1) ;j++){ for(var j=0;j< lilength - num *(ul_length-1) ;j++){
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML"); lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
}; };
}; };
$(v).find('ul.w-annc__list').eq(-1).html(lihtml); $(v).find('ul.w-annc__list').eq(-1).html(lihtml);
} }
if(ul_length != 1 ) if(ul_length != 1 )
for(var i=0;i< lilength -num ; i++) for(var i=0;i< lilength -num ; i++)
$(v).find('ul.w-annc__list').eq(0).find("li.w-annc__item").eq(num).remove(); $(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').css("display","none"); $('[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'); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('padding','0 1.125em');
$('[data-subpart-id=\"{{subpart-id}}\"] button').css('z-index','10'); $('[data-subpart-id=\"{{subpart-id}}\"] button').css('z-index','10');
$('[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('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('float','left'); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('float','left');
var active_ul = $("[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item").eq(li_active_idx).parents("ul.w-annc__list"); var active_ul = $("[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item").eq(li_active_idx).parents("ul.w-annc__list");
active_ul.addClass("active"); active_ul.addClass("active");
active_ul.removeClass("hidden_item"); active_ul.removeClass("hidden_item");
active_ul.css("display",""); active_ul.css("display","");
}; };
$(window).resize(function(){ $(window).resize(function(){
if($(window).width()>1024){ if($(window).width()>1024){
reorganize_{{subpart-id}}(3); reorganize_{{subpart-id}}(3);
num=3; num=3;
}else if($(window).width()>576){ }else if($(window).width()>576){
reorganize_{{subpart-id}}(2); reorganize_{{subpart-id}}(2);
num=2; num=2;
}else{ }else{
reorganize_{{subpart-id}}(1); reorganize_{{subpart-id}}(1);
num=1; num=1;
} }
}) })
$(document).ready(function(){ $(document).ready(function(){
if($(window).width()>1024){ if($(window).width()>1024){
reorganize_{{subpart-id}}(3); reorganize_{{subpart-id}}(3);
num=3; num=3;
}else if($(window).width()>576){ }else if($(window).width()>576){
reorganize_{{subpart-id}}(2); reorganize_{{subpart-id}}(2);
num=2; num=2;
}else{ }else{
reorganize_{{subpart-id}}(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 uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray(); var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();
var ul_length = uls.length; var ul_length = uls.length;
var currentul = uls.findIndex(function(v){ var currentul = uls.findIndex(function(v){
return $(v).hasClass("active"); return $(v).hasClass("active");
}) })
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none'); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none');
if(currentul - 1 < 0) if(currentul - 1 < 0)
currentul += ul_length; currentul += ul_length;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active"); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active");
var active_item = $(uls[currentul-1]); var active_item = $(uls[currentul-1]);
active_item.addClass("active"); active_item.addClass("active");
active_item.find("li").css("display","block"); active_item.find("li").css("display","block");
flag=true; flag=true;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;}); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;});
}; };
}); });
$('.btn-right').click(function(){ $('.btn-right').click(function(){
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length; var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
if(!flag){ if(!flag){
var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray(); var uls = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').toArray();
var ul_length = uls.length; var ul_length = uls.length;
var currentul = uls.findIndex(function(v){ var currentul = uls.findIndex(function(v){
return $(v).hasClass("active"); return $(v).hasClass("active");
}) })
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none'); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').css('display','none');
if(currentul + 1 > ul_length - 1) if(currentul + 1 > ul_length - 1)
currentul -= ul_length; currentul -= ul_length;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active"); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list:not(.hidden_item)').removeClass("active");
var active_item = $(uls[currentul+1]); var active_item = $(uls[currentul+1]);
active_item.addClass("active"); active_item.addClass("active");
active_item.find("li").css("display","block"); active_item.find("li").css("display","block");
flag=true; flag=true;
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;}); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list.active').eq(0).effect("slide", { direction: "left", mode: 'show', duration: 500},function(){flag=false;});
}; };
}); });
}); });
</script> </script>

View File

@ -1,32 +1,32 @@
<div class="w-annc widget-announcement-13"> <div class="w-annc widget-announcement-13">
<table class="w-annc__table table"> <table class="w-annc__table table">
<thead> <thead>
<tr> <tr>
<th class="w-annc__th w-annc__th--date">{{event_date-head}}</th> <th class="w-annc__th w-annc__th--date">{{event_date-head}}</th>
<th class="w-annc__th w-annc__th--date">{{speaker-head}}</th> <th class="w-annc__th w-annc__th--date">{{speaker-head}}</th>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th> <th class="w-annc__th w-annc__th--title">{{title-head}}</th>
<th class="w-annc__th w-annc__th--title">{{subtitle-head}}</th> <th class="w-annc__th w-annc__th--title">{{subtitle-head}}</th>
<th class="w-annc__th w-annc__th--title">{{host-head}}</th> <th class="w-annc__th w-annc__th--title">{{host-head}}</th>
<th class="w-annc__th w-annc__th--title">{{notes-head}}</th> <th class="w-annc__th w-annc__th--title">{{notes-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-annc__speaker">{{speaker}}</td> <td class="w-annc__speaker">{{speaker}}</td>
<td class="w-annc_content"> <td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="w-annc_subtitle">{{subtitle}}</td> <td class="w-annc_subtitle">{{subtitle}}</td>
<td class="w-annc__host">{{host}}</td> <td class="w-annc__host">{{host}}</td>
<td class="w-annc__notes">{{notes}}</td> <td class="w-annc__notes">{{notes}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

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

View File

@ -1,34 +1,34 @@
<div class="w-annc widget-announcement-2"> <div class="w-annc widget-announcement-2">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list" data-level="0" data-list="event_news"> <ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row"> <li class="w-annc__item row">
<div class="w-annc__img-wrap col-sm-4 bullseye"> <div class="w-annc__img-wrap col-sm-4 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>
<div class="w-annc__content-wrap col-sm-8"> <div class="w-annc__content-wrap col-sm-8">
<div class="w-annc__meta"> <div class="w-annc__meta">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{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> <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> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="w-annc__entry-title"> <h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="w-annc__subtitle">{{subtitle}}</p> <p class="w-annc__subtitle">{{subtitle}}</p>
</div> </div>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,34 +1,34 @@
<div class="w-annc widget-announcement-3"> <div class="w-annc widget-announcement-3">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list" data-level="0" data-list="event_news"> <ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row"> <li class="w-annc__item row">
<div class="w-annc__content-wrap col-sm-8"> <div class="w-annc__content-wrap col-sm-8">
<div class="w-annc__meta"> <div class="w-annc__meta">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{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> <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> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="w-annc__entry-title"> <h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="w-annc__subtitle">{{subtitle}}</p> <p class="w-annc__subtitle">{{subtitle}}</p>
</div> </div>
<div class="w-annc__img-wrap col-sm-4 bullseye"> <div class="w-annc__img-wrap col-sm-4 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>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,108 +1,108 @@
<div class="w-annc widget-announcement-4"> <div class="w-annc widget-announcement-4">
<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}}"><%= t("event_news.more") %></a> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
<ul class="w-annc__list row" data-level="0" data-list="event_news"> <ul class="w-annc__list row" data-level="0" data-list="event_news">
<li class="w-annc__item col-md-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>
<div class="w-annc__content-wrap"> <div class="w-annc__content-wrap">
<div class="w-annc__meta"> <div class="w-annc__meta">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<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> <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> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="w-annc__entry-title"> <h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="w-annc__subtitle">{{subtitle}}</p> <p class="w-annc__subtitle">{{subtitle}}</p>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<style type="text/css"> <style type="text/css">
[data-subpart-id="{{subpart-id}}"] .bullseye{ [data-subpart-id="{{subpart-id}}"] .bullseye{
overflow: hidden; overflow: hidden;
} }
</style> </style>
<script> <script>
function combineul_{{subpart-id}}(){ function combineul_{{subpart-id}}(){
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent(); var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
parents.each(function(i,v){ parents.each(function(i,v){
for(var i=1;i<$(v).find('ul.w-annc__list').length;i++) 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()); $(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; var ullength = $(v).find('ul.w-annc__list').length;
for(var i = 1;i < ullength;i++) for(var i = 1;i < ullength;i++)
$(v).find('ul.w-annc__list').eq(-1).remove(); $(v).find('ul.w-annc__list').eq(-1).remove();
}) })
}; };
var num; var num;
var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length; var lilength = $('[data-subpart-id=\"{{subpart-id}}\"] li.w-annc__item').length;
function reorganize_{{subpart-id}}(num){ function reorganize_{{subpart-id}}(num){
combineul_{{subpart-id}}(); combineul_{{subpart-id}}();
var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent(); var parents = $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list').parent();
parents.each(function(i,v){ parents.each(function(i,v){
var lilength = $(v).find('li.w-annc__item').length; var lilength = $(v).find('li.w-annc__item').length;
var ul_length = Math.ceil(lilength/num); var ul_length = Math.ceil(lilength/num);
for(var ii=1;ii< ul_length;ii++){ for(var ii=1;ii< ul_length;ii++){
var clone_ul = $(v).find('ul.w-annc__list').eq(-1).clone(); var clone_ul = $(v).find('ul.w-annc__list').eq(-1).clone();
clone_ul.empty(); clone_ul.empty();
clone_ul.removeClass("active"); clone_ul.removeClass("active");
clone_ul.css("display",""); clone_ul.css("display","");
$(v).find('ul.w-annc__list').eq(-1).after(clone_ul.prop("outerHTML")); $(v).find('ul.w-annc__list').eq(-1).after(clone_ul.prop("outerHTML"));
var lihtml=""; var lihtml="";
if(ii != (ul_length-1)){ if(ii != (ul_length-1)){
for(var j=0;j<num;j++){ for(var j=0;j<num;j++){
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML"); lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
}; };
}else{ }else{
for(var j=0;j< lilength - num *(ul_length-1) ;j++){ for(var j=0;j< lilength - num *(ul_length-1) ;j++){
lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML"); lihtml += $(v).find('li.w-annc__item').eq(ii*num+j).prop("outerHTML");
}; };
}; };
$(v).find('ul.w-annc__list').eq(-1).html(lihtml); $(v).find('ul.w-annc__list').eq(-1).html(lihtml);
} }
if(ul_length != 1 ) if(ul_length != 1 )
for(var i=0;i< lilength -num ; i++) for(var i=0;i< lilength -num ; i++)
$(v).find('ul.w-annc__list').eq(0).find("li.w-annc__item").eq(num).remove(); $(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('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
$('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('float','left'); $('[data-subpart-id=\"{{subpart-id}}\"] ul.w-annc__list >li').css('float','left');
}; };
$(window).resize(function(){ $(window).resize(function(){
if($(window).width()>1024){ if($(window).width()>1024){
reorganize_{{subpart-id}}(3); reorganize_{{subpart-id}}(3);
num=3; num=3;
}else if($(window).width()>576){ }else if($(window).width()>576){
reorganize_{{subpart-id}}(2); reorganize_{{subpart-id}}(2);
num=2; num=2;
}else{ }else{
reorganize_{{subpart-id}}(1); reorganize_{{subpart-id}}(1);
num=1; num=1;
} }
}) })
$(document).ready(function(){ $(document).ready(function(){
if($(window).width()>1024){ if($(window).width()>1024){
reorganize_{{subpart-id}}(3); reorganize_{{subpart-id}}(3);
num=3; num=3;
}else if($(window).width()>576){ }else if($(window).width()>576){
reorganize_{{subpart-id}}(2); reorganize_{{subpart-id}}(2);
num=2; num=2;
}else{ }else{
reorganize_{{subpart-id}}(1); reorganize_{{subpart-id}}(1);
num=1; num=1;
} }
}) })
</script> </script>

View File

@ -1,31 +1,31 @@
<div class="w-annc widget-announcement-5"> <div class="w-annc widget-announcement-5">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list row" data-level="0" data-list="event_news"> <ul class="w-annc__list row" data-level="0" data-list="event_news">
<li class="w-annc__item"> <li class="w-annc__item">
<div class="w-annc__content-wrap"> <div class="w-annc__content-wrap">
<div class="w-annc__meta"> <div class="w-annc__meta">
<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> <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> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
</div> </div>
<h4 class="w-annc__entry-title"> <h4 class="w-annc__entry-title">
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="w-annc__subtitle">{{subtitle}}</p> <p class="w-annc__subtitle">{{subtitle}}</p>
</div> </div>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,26 +1,26 @@
<div class="w-annc widget-announcement-6"> <div class="w-annc widget-announcement-6">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list" data-level="0" data-list="event_news"> <ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row"> <li class="w-annc__item row">
<span class="w-annc__category-wrap col-sm-2"> <span class="w-annc__category-wrap col-sm-2">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
<h4 class="w-annc__entry-title col-sm-8"> <h4 class="w-annc__entry-title col-sm-8">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="w-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d"> <span class="w-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span> <span class="w-annc__postdate">{{postdate}}</span>
</span> </span>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,26 +1,26 @@
<div class="w-annc widget-announcement-7"> <div class="w-annc widget-announcement-7">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<ul class="w-annc__list" data-level="0" data-list="event_news"> <ul class="w-annc__list" data-level="0" data-list="event_news">
<li class="w-annc__item row"> <li class="w-annc__item row">
<span class="w-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d"> <span class="w-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span> <span class="w-annc__postdate">{{postdate}}</span>
</span> </span>
<h4 class="w-annc__entry-title col-sm-8"> <h4 class="w-annc__entry-title col-sm-8">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="w-annc__category-wrap col-sm-2"> <span class="w-annc__category-wrap col-sm-2">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="w-annc__category">{{category}}</span> <span class="w-annc__category">{{category}}</span>
</span> </span>
</li> </li>
</ul> </ul>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,29 +1,29 @@
<div class="w-annc widget-announcement-8"> <div class="w-annc widget-announcement-8">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<table class="w-annc__table table"> <table class="w-annc__table table">
<thead> <thead>
<tr> <tr>
<th class="w-annc__th w-annc__th--category">{{category-head}}</th> <th class="w-annc__th w-annc__th--category">{{category-head}}</th>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th> <th class="w-annc__th w-annc__th--title">{{title-head}}</th>
<th class="w-annc__th w-annc__th--date">{{date-head}}</th> <th class="w-annc__th w-annc__th--date">{{date-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="w-annc__category">{{category}}</td> <td class="w-annc__category">{{category}}</td>
<td class="w-annc_content"> <td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,29 +1,29 @@
<div class="w-annc widget-announcement-9"> <div class="w-annc widget-announcement-9">
<h3 class="w-annc__widget-title"> <h3 class="w-annc__widget-title">
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<table class="w-annc__table table"> <table class="w-annc__table table">
<thead> <thead>
<tr> <tr>
<th class="w-annc__th w-annc__th--date">{{date-head}}</th> <th class="w-annc__th w-annc__th--date">{{date-head}}</th>
<th class="w-annc__th w-annc__th--title">{{title-head}}</th> <th class="w-annc__th w-annc__th--title">{{title-head}}</th>
<th class="w-annc__th w-annc__th--category">{{category-head}}</th> <th class="w-annc__th w-annc__th--category">{{category-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="w-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="w-annc_content"> <td class="w-annc_content">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label status {{status-class}}">{{status}}</span> <span class="w-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="w-annc__category">{{category}}</td> <td class="w-annc__category">{{category}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="w-annc__more-wrap clearfix"> <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> <a class="w-annc__more btn btn-primary pull-right" href="{{more_url}}"><%= t("event_news.more") %></a>
</div> </div>
</div> </div>

View File

@ -1,25 +1,25 @@
<div class="i-annc index-announcement-1 {{display}}"> <div class="i-annc index-announcement-1 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--category">{{category-head}}</th> <th class="i-annc__th i-annc__th--category">{{category-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__category">{{category}}</td> <td class="i-annc__category">{{category}}</td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td> <td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,22 +1,22 @@
<div class="i-annc index-announcement-10"> <div class="i-annc index-announcement-10">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<ul class="i-annc__list" data-level="0" data-list="event_news"> <ul class="i-annc__list" data-level="0" data-list="event_news">
<li class="i-annc__item row"> <li class="i-annc__item row">
<span class="i-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
<h4 class="i-annc__entry-title col-sm-8"> <h4 class="i-annc__entry-title col-sm-8">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="i-annc__category-wrap col-sm-2"> <span class="i-annc__category-wrap col-sm-2">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="i-annc__category">{{category}}</span> <span class="i-annc__category">{{category}}</span>
</span> </span>
</li> </li>
</ul>> </ul>>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,18 +1,18 @@
<div class="i-annc index-announcement-11"> <div class="i-annc index-announcement-11">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<ul class="i-annc__list" data-level="0" data-list="event_news"> <ul class="i-annc__list" data-level="0" data-list="event_news">
<li class="i-annc__item row"> <li class="i-annc__item row">
<h4 class="i-annc__entry-title col-sm-9"> <h4 class="i-annc__entry-title col-sm-9">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="i-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
</li> </li>
</ul> </ul>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,18 +1,18 @@
<div class="i-annc index-announcement-12"> <div class="i-annc index-announcement-12">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<ul class="i-annc__list" data-level="0" data-list="event_news"> <ul class="i-annc__list" data-level="0" data-list="event_news">
<li class="i-annc__item row"> <li class="i-annc__item row">
<span class="i-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap col-sm-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
<h4 class="i-annc__entry-title col-sm-9"> <h4 class="i-annc__entry-title col-sm-9">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
</li> </li>
</ul> </ul>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,23 +1,23 @@
<div class="i-annc index-announcement-13 {{display}}"> <div class="i-annc index-announcement-13 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,23 +1,23 @@
<div class="i-annc index-announcement-14 {{display}}"> <div class="i-annc index-announcement-14 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,25 +1,25 @@
<div class="i-annc index-announcement-15 {{display}}"> <div class="i-annc index-announcement-15 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--category">{{view-count-head}}</th> <th class="i-annc__th i-annc__th--category">{{view-count-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__view-count">{{view_count}}</td> <td class="i-annc__view-count">{{view_count}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,39 +1,39 @@
<div class="i-annc index-announcement-16 {{display}}"> <div class="i-annc index-announcement-16 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--title">{{link-head}}</th> <th class="i-annc__th i-annc__th--title">{{link-head}}</th>
<th class="i-annc__th i-annc__th--title">{{file-head}}</th> <th class="i-annc__th i-annc__th--title">{{file-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td> <td class="i-annc__postdate" date-format="%Y-%m-%d">{{postdate}}</td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__links"> <td class="i-annc__links">
<ul data-list="event_news_links" data-level="1"> <ul data-list="event_news_links" data-level="1">
<li> <li>
<a class="i-annc__title" href="{{link_url}}">{{link_title}}</a> <a class="i-annc__title" href="{{link_url}}">{{link_title}}</a>
</li> </li>
</ul> </ul>
</td> </td>
<td class="i-annc__files"> <td class="i-annc__files">
<ul data-list="event_news_files" data-level="1"> <ul data-list="event_news_files" data-level="1">
<li> <li>
<a class="i-annc__title" href="{{file_url}}">{{file_title}}</a> <a class="i-annc__title" href="{{file_url}}">{{file_title}}</a>
</li> </li>
</ul> </ul>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,27 +1,27 @@
<div class="i-annc index-announcement-1 {{display}}"> <div class="i-annc index-announcement-1 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--category">{{category-head}}</th> <th class="i-annc__th i-annc__th--category">{{category-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
<th class="i-annc__th i-annc__th--department">{{department-head}}</th> <th class="i-annc__th i-annc__th--department">{{department-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__category">{{category}}</td> <td class="i-annc__category">{{category}}</td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td> <td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-annc__department"><span class="i-annc__department-content">{{department}}</span></td> <td class="i-annc__department"><span class="i-annc__department-content">{{department}}</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,29 +1,29 @@
<div class="i-annc index-announcement-1 {{display}}"> <div class="i-annc index-announcement-1 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--event_date">{{event_date-head}}</th> <th class="i-annc__th i-annc__th--event_date">{{event_date-head}}</th>
<th class="i-annc__th i-annc__th--speaker">{{speaker-head}}</th> <th class="i-annc__th i-annc__th--speaker">{{speaker-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--host">{{host-head}}</th> <th class="i-annc__th i-annc__th--host">{{host-head}}</th>
<th class="i-annc__th i-annc__th--notes">{{notes-head}}</th> <th class="i-annc__th i-annc__th--notes">{{notes-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td> <td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-annc__speaker">{{speaker}}</td> <td class="i-annc__speaker">{{speaker}}</td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__host">{{host}}</td> <td class="i-annc__host">{{host}}</td>
<td class="i-annc__notes">{{notes}}</td> <td class="i-annc__notes">{{notes}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,27 +1,27 @@
<div class="i-annc index-announcement-2 {{display}}"> <div class="i-annc index-announcement-2 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--category">{{category-head}}</th> <th class="i-annc__th i-annc__th--category">{{category-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
<th class="i-annc__th i-annc__th--category">{{view-count-head}}</th> <th class="i-annc__th i-annc__th--category">{{view-count-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__category">{{category}}</td> <td class="i-annc__category">{{category}}</td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td> <td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-annc__view-count">{{view_count}}</td> <td class="i-annc__view-count">{{view_count}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,25 +1,25 @@
<div class="i-annc index-announcement-3 {{display}}"> <div class="i-annc index-announcement-3 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--category">{{category-head}}</th> <th class="i-annc__th i-annc__th--category">{{category-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td> <td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__category">{{category}}</td> <td class="i-annc__category">{{category}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,27 +1,27 @@
<div class="i-annc index-announcement-4 {{display}}"> <div class="i-annc index-announcement-4 {{display}}">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<table class="i-annc__table table table-striped"> <table class="i-annc__table table table-striped">
<thead> <thead>
<tr> <tr>
<th class="i-annc__th i-annc__th--date">{{date-head}}</th> <th class="i-annc__th i-annc__th--date">{{date-head}}</th>
<th class="i-annc__th i-annc__th--title">{{title-head}}</th> <th class="i-annc__th i-annc__th--title">{{title-head}}</th>
<th class="i-annc__th i-annc__th--category">{{category-head}}</th> <th class="i-annc__th i-annc__th--category">{{category-head}}</th>
<th class="i-annc__th i-annc__th--category">{{view-count-head}}</th> <th class="i-annc__th i-annc__th--category">{{view-count-head}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="0" data-list="event_news"> <tbody data-level="0" data-list="event_news">
<tr> <tr>
<td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td> <td class="i-annc__postdate"><span class="i-annc__postdate-content" date-format="%Y-%m-%d">{{postdate}}</span></td>
<td class="i-annc__content"> <td class="i-annc__content">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</td> </td>
<td class="i-annc__category">{{category}}</td> <td class="i-annc__category">{{category}}</td>
<td class="i-annc__view-count">{{view_count}}</td> <td class="i-annc__view-count">{{view_count}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,30 +1,30 @@
<div class="i-annc index-announcement-5"> <div class="i-annc index-announcement-5">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<ul class="i-annc__list" data-level="0" data-list="event_news"> <ul class="i-annc__list" data-level="0" data-list="event_news">
<li class="i-annc__item row"> <li class="i-annc__item row">
<div class="i-annc__img-wrap col-sm-4"> <div class="i-annc__img-wrap col-sm-4">
<img class="i-annc__img" src="{{img_src}}" alt="{{img_description}}"> <img class="i-annc__img" src="{{img_src}}" alt="{{img_description}}">
</div> </div>
<div class="i-annc__content-wrap col-sm-8"> <div class="i-annc__content-wrap col-sm-8">
<div class="i-annc__meta"> <div class="i-annc__meta">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<span class="i-annc__postdate-wrap" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
<span class="i-annc__category-wrap"> <span class="i-annc__category-wrap">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="i-annc__category">{{category}}</span> <span class="i-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="i-annc__entry-title"> <h4 class="i-annc__entry-title">
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="i-annc__subtitle">{{subtitle}}</p> <p class="i-annc__subtitle">{{subtitle}}</p>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,30 +1,30 @@
<div class="i-annc index-announcement-6"> <div class="i-annc index-announcement-6">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<ul class="i-annc__list" data-level="0" data-list="event_news"> <ul class="i-annc__list" data-level="0" data-list="event_news">
<li class="i-annc__item row"> <li class="i-annc__item row">
<div class="i-annc__content-wrap col-sm-8"> <div class="i-annc__content-wrap col-sm-8">
<div class="i-annc__meta"> <div class="i-annc__meta">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<span class="i-annc__postdate-wrap" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
<span class="i-annc__category-wrap"> <span class="i-annc__category-wrap">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="i-annc__category">{{category}}</span> <span class="i-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="i-annc__entry-title"> <h4 class="i-annc__entry-title">
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="i-annc__subtitle">{{subtitle}}</p> <p class="i-annc__subtitle">{{subtitle}}</p>
</div> </div>
<div class="i-annc__img-wrap col-sm-4"> <div class="i-annc__img-wrap col-sm-4">
<img class="i-annc__img" src="{{img_src}}" alt="{{img_description}}"> <img class="i-annc__img" src="{{img_src}}" alt="{{img_description}}">
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,83 +1,83 @@
<div class="i-annc index-announcement-7"> <div class="i-annc index-announcement-7">
<h3 class="i-annc__page-title">{{page-title}}</h3> <h3 class="i-annc__page-title">{{page-title}}</h3>
<ul class="i-annc__list row" data-level="0" data-list="event_news"> <ul class="i-annc__list row" data-level="0" data-list="event_news">
<li class="i-annc__item col-md-4"> <li class="i-annc__item col-md-4">
<div class="i-annc__img-wrap bullseye"> <div class="i-annc__img-wrap bullseye">
<img class="i-annc__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}"> <img class="i-annc__img" src="{{img_src}}" alt="{{img_description}}" title="{{img_description}}">
</div> </div>
<div class="i-annc__content-wrap"> <div class="i-annc__content-wrap">
<div class="i-annc__meta"> <div class="i-annc__meta">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label {{status-class}}">{{status}}</span> <span class="i-annc__status label {{status-class}}">{{status}}</span>
</span> </span>
<span class="i-annc__postdate-wrap" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
<span class="i-annc__category-wrap"> <span class="i-annc__category-wrap">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="i-annc__category">{{category}}</span> <span class="i-annc__category">{{category}}</span>
</span> </span>
</div> </div>
<h4 class="i-annc__entry-title"> <h4 class="i-annc__entry-title">
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="i-annc__subtitle">{{subtitle}}</p> <p class="i-annc__subtitle">{{subtitle}}</p>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}
<script> <script>
var lilength = $('.i-annc.index-announcement-7 li.i-annc__item').length; var lilength = $('.i-annc.index-announcement-7 li.i-annc__item').length;
function combineul(){ function combineul(){
for(var i=1;i<$('.i-annc.index-announcement-7 ul.i-annc__list').length;i++) for(var i=1;i<$('.i-annc.index-announcement-7 ul.i-annc__list').length;i++)
$('.i-annc.index-announcement-7 ul.i-annc__list').eq(0).find('>li').eq(-1).after($('.i-annc.index-announcement-7 ul.i-annc__list').eq(i).html()); $('.i-annc.index-announcement-7 ul.i-annc__list').eq(0).find('>li').eq(-1).after($('.i-annc.index-announcement-7 ul.i-annc__list').eq(i).html());
var ullength = $('.i-annc.index-announcement-7 ul.i-annc__list').length; var ullength = $('.i-annc.index-announcement-7 ul.i-annc__list').length;
for(var i = 1;i < ullength;i++) for(var i = 1;i < ullength;i++)
$('.i-annc.index-announcement-7 ul.i-annc__list').eq(-1).remove(); $('.i-annc.index-announcement-7 ul.i-annc__list').eq(-1).remove();
}; };
function reorganize(num){ function reorganize(num){
combineul(); combineul();
for(var i=1;i< Math.ceil(lilength/num);i++){ for(var i=1;i< Math.ceil(lilength/num);i++){
$('.i-annc.index-announcement-7 ul.i-annc__list').eq(-1).after('<ul class="i-annc__list row" data-level="0" data-list="event_news"></ul>') $('.i-annc.index-announcement-7 ul.i-annc__list').eq(-1).after('<ul class="i-annc__list row" data-level="0" data-list="event_news"></ul>')
var lihtml=""; var lihtml="";
if(i != (Math.ceil(lilength/num)-1)){ if(i != (Math.ceil(lilength/num)-1)){
for(var j=0;j<num;j++) for(var j=0;j<num;j++)
lihtml += "<li class='i-annc__item col-md-4'>"+$('.i-annc.index-announcement-7 li.i-annc__item').eq(i*num+j).html()+"</li>" lihtml += "<li class='i-annc__item col-md-4'>"+$('.i-annc.index-announcement-7 li.i-annc__item').eq(i*num+j).html()+"</li>"
}else{ }else{
for(var j=0;j< lilength - num *(Math.ceil(lilength/num)-1) ;j++) for(var j=0;j< lilength - num *(Math.ceil(lilength/num)-1) ;j++)
lihtml += "<li class='i-annc__item col-md-4'>"+$('.i-annc.index-announcement-7 li.i-annc__item').eq(i*num+j).html()+"</li>" lihtml += "<li class='i-annc__item col-md-4'>"+$('.i-annc.index-announcement-7 li.i-annc__item').eq(i*num+j).html()+"</li>"
}; };
$('.i-annc.index-announcement-7 ul.i-annc__list').eq(-1).html(lihtml); $('.i-annc.index-announcement-7 ul.i-annc__list').eq(-1).html(lihtml);
}; };
if(Math.ceil(lilength/num) != 1 ) if(Math.ceil(lilength/num) != 1 )
for(var i=0;i< lilength -num ; i++ ) for(var i=0;i< lilength -num ; i++ )
$('.i-annc.index-announcement-7 ul.i-annc__list').eq(0).find("li.i-annc__item").eq(num).remove(); $('.i-annc.index-announcement-7 ul.i-annc__list').eq(0).find("li.i-annc__item").eq(num).remove();
$('.i-annc.index-announcement-7 ul.i-annc__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin $('.i-annc.index-announcement-7 ul.i-annc__list >li').css('width','calc('+100/num+'% - '+20/16+'em)'); //20px=>li的margin
}; };
$(document).ready(function(){ $(document).ready(function(){
if($(window).width()>1024){ if($(window).width()>1024){
reorganize(3); reorganize(3);
num=3; num=3;
}else if($(window).width()>576){ }else if($(window).width()>576){
reorganize(2); reorganize(2);
num=2; num=2;
}else{ }else{
reorganize(1); reorganize(1);
num=1; num=1;
} }
}); });
$(window).resize(function(){ $(window).resize(function(){
if($(window).width()>1024){ if($(window).width()>1024){
reorganize(3); reorganize(3);
num=3; num=3;
}else if($(window).width()>576){ }else if($(window).width()>576){
reorganize(2); reorganize(2);
num=2; num=2;
}else{ }else{
reorganize(1); reorganize(1);
num=1; num=1;
} }
}) })
</script> </script>

View File

@ -1,26 +1,26 @@
<div class="i-annc index-announcement-8"> <div class="i-annc index-announcement-8">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<ul class="i-annc__list row" data-level="0" data-list="event_news"> <ul class="i-annc__list row" data-level="0" data-list="event_news">
<li class="i-annc__item"> <li class="i-annc__item">
<div class="i-annc__content-wrap"> <div class="i-annc__content-wrap">
<div class="i-annc__meta"> <div class="i-annc__meta">
<span class="i-annc__postdate-wrap" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
<span class="i-annc__category-wrap"> <span class="i-annc__category-wrap">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="i-annc__category">{{category}}</span> <span class="i-annc__category">{{category}}</span>
</span> </span>
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
</div> </div>
<h4 class="i-annc__entry-title"> <h4 class="i-annc__entry-title">
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<p class="i-annc__subtitle">{{subtitle}}</p> <p class="i-annc__subtitle">{{subtitle}}</p>
</div> </div>
</li> </li>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,22 +1,22 @@
<div class="i-annc index-announcement-9"> <div class="i-annc index-announcement-9">
<h1 class="i-annc__page-title">{{page-title}}</h1> <h1 class="i-annc__page-title">{{page-title}}</h1>
<ul class="i-annc__list" data-level="0" data-list="event_news"> <ul class="i-annc__list" data-level="0" data-list="event_news">
<li class="i-annc__item row"> <li class="i-annc__item row">
<span class="i-annc__category-wrap col-sm-2"> <span class="i-annc__category-wrap col-sm-2">
<i class="fa fa-tasks"></i> <i class="fa fa-tasks"></i>
<span class="i-annc__category">{{category}}</span> <span class="i-annc__category">{{category}}</span>
</span> </span>
<h4 class="i-annc__entry-title col-sm-8"> <h4 class="i-annc__entry-title col-sm-8">
<span class="i-annc__status-wrap" data-list="statuses" data-level="1"> <span class="i-annc__status-wrap" data-list="statuses" data-level="1">
<span class="i-annc__status label status {{status-class}}">{{status}}</span> <span class="i-annc__status label status {{status-class}}">{{status}}</span>
</span> </span>
<a class="i-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="i-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="i-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d"> <span class="i-annc__postdate-wrap col-sm-2" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="i-annc__postdate">{{postdate}}</span> <span class="i-annc__postdate">{{postdate}}</span>
</span> </span>
</li> </li>
</ul> </ul>
</div> </div>
{{pagination_goes_here}} {{pagination_goes_here}}

View File

@ -1,296 +1,296 @@
{ {
"frontend": [ "frontend": [
{ {
"filename" : "event_news_index1", "filename" : "event_news_index1",
"name" : { "name" : {
"zh_tw" : "1. 標準標題列表-1A ( 模組標題, 類別, 狀態, 標題, 日期 )", "zh_tw" : "1. 標準標題列表-1A ( 模組標題, 類別, 狀態, 標題, 日期 )",
"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" : "event_news_index1_thumbs.png" "thumbnail" : "event_news_index1_thumbs.png"
}, },
{ {
"filename" : "event_news_index2", "filename" : "event_news_index2",
"name" : { "name" : {
"zh_tw" : "2. 標準標題列表-1B ( 模組標題, 類別, 狀態, 標題, 日期, 瀏覽人次 )", "zh_tw" : "2. 標準標題列表-1B ( 模組標題, 類別, 狀態, 標題, 日期, 瀏覽人次 )",
"en" : "2. Standard Title List-1B (widget-title, category, status, title, postdate, view-count)" "en" : "2. Standard Title List-1B (widget-title, category, status, title, postdate, view-count)"
}, },
"thumbnail" : "event_news_index2_thumbs.png" "thumbnail" : "event_news_index2_thumbs.png"
}, },
{ {
"filename" : "event_news_index3", "filename" : "event_news_index3",
"name" : { "name" : {
"zh_tw" : "3. 標準表格列表-2A ( 模組標題, 日期, 狀態, 標題, 類別 )", "zh_tw" : "3. 標準表格列表-2A ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "3. Standard Table List-2 (widget-title, postdate, status, title, category)" "en" : "3. Standard Table List-2 (widget-title, postdate, status, title, category)"
}, },
"thumbnail" : "event_news_index3_thumbs.png" "thumbnail" : "event_news_index3_thumbs.png"
}, },
{ {
"filename" : "event_news_index4", "filename" : "event_news_index4",
"name" : { "name" : {
"zh_tw" : "4. 標準表格列表-2B ( 模組標題, 日期, 狀態, 標題, 類別, 瀏覽人次 )", "zh_tw" : "4. 標準表格列表-2B ( 模組標題, 日期, 狀態, 標題, 類別, 瀏覽人次 )",
"en" : "4. Standard Table List-2 (widget-title, postdate, status, title, category, view-count)" "en" : "4. Standard Table List-2 (widget-title, postdate, status, title, category, view-count)"
}, },
"thumbnail" : "event_news_index4_thumbs.png" "thumbnail" : "event_news_index4_thumbs.png"
}, },
{ {
"filename" : "event_news_index5", "filename" : "event_news_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" : "event_news_index5_thumbs.png" "thumbnail" : "event_news_index5_thumbs.png"
}, },
{ {
"filename" : "event_news_index6", "filename" : "event_news_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" : "event_news_index6_thumbs.png" "thumbnail" : "event_news_index6_thumbs.png"
}, },
{ {
"filename" : "event_news_index7", "filename" : "event_news_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" : "event_news_index7_thumbs.png" "thumbnail" : "event_news_index7_thumbs.png"
}, },
{ {
"filename" : "event_news_index8", "filename" : "event_news_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" : "event_news_index8_thumbs.png" "thumbnail" : "event_news_index8_thumbs.png"
}, },
{ {
"filename" : "event_news_index9", "filename" : "event_news_index9",
"name" : { "name" : {
"zh_tw" : "9. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )", "zh_tw" : "9. 標準標題列表-1 ( 模組標題, 類別, 狀態, 標題, 日期 )",
"en" : "9. Standard Title List-1 (widget-title, category, status, title, postdate)" "en" : "9. Standard Title List-1 (widget-title, category, status, title, postdate)"
}, },
"thumbnail" : "event_news_index9_thumbs.png" "thumbnail" : "event_news_index9_thumbs.png"
}, },
{ {
"filename" : "event_news_index10", "filename" : "event_news_index10",
"name" : { "name" : {
"zh_tw" : "10. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )", "zh_tw" : "10. 標準標題列表-2 ( 模組標題, 日期, 狀態, 標題, 類別 )",
"en" : "10. Standard Title List-2 (widget-title, postdate, status, title, category)" "en" : "10. Standard Title List-2 (widget-title, postdate, status, title, category)"
}, },
"thumbnail" : "event_news_index10_thumbs.png" "thumbnail" : "event_news_index10_thumbs.png"
}, },
{ {
"filename" : "event_news_index11", "filename" : "event_news_index11",
"name" : { "name" : {
"zh_tw" : "11. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )", "zh_tw" : "11. 精簡標題列表-1 ( 模組標題, 狀態, 標題, 日期 )",
"en" : "11. Simple Title List-1 (widget-title, status, title, postdate)" "en" : "11. Simple Title List-1 (widget-title, status, title, postdate)"
}, },
"thumbnail" : "event_news_index11_thumbs.png" "thumbnail" : "event_news_index11_thumbs.png"
}, },
{ {
"filename" : "event_news_index12", "filename" : "event_news_index12",
"name" : { "name" : {
"zh_tw" : "12. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )", "zh_tw" : "12. 精簡標題列表-2 ( 模組標題, 日期, 狀態, 標題 )",
"en" : "12. Simple Title List-2 (widget-title, postdate, status, title)" "en" : "12. Simple Title List-2 (widget-title, postdate, status, title)"
}, },
"thumbnail" : "event_news_index12_thumbs.png" "thumbnail" : "event_news_index12_thumbs.png"
}, },
{ {
"filename" : "event_news_index13", "filename" : "event_news_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" : "event_news_index13_thumbs.png" "thumbnail" : "event_news_index13_thumbs.png"
}, },
{ {
"filename" : "event_news_index14", "filename" : "event_news_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" : "event_news_index14_thumbs.png" "thumbnail" : "event_news_index14_thumbs.png"
}, },
{ {
"filename" : "event_news_index15", "filename" : "event_news_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" : "event_news_index15_thumbs.png" "thumbnail" : "event_news_index15_thumbs.png"
}, },
{ {
"filename" : "event_news_index16", "filename" : "event_news_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" : "event_news_index16_thumbs.png" "thumbnail" : "event_news_index16_thumbs.png"
}, },
{ {
"filename" : "event_news_index17", "filename" : "event_news_index17",
"name" : { "name" : {
"zh_tw" : "17. 標準標題列表-1A ( 類別, 標題, 日期, 張貼人 )", "zh_tw" : "17. 標準標題列表-1A ( 類別, 標題, 日期, 張貼人 )",
"en" : "17. Standard Title List-1 ( category, title, postdate, department)" "en" : "17. Standard Title List-1 ( category, title, postdate, department)"
}, },
"thumbnail" : "event_news_index1_thumbs.png" "thumbnail" : "event_news_index1_thumbs.png"
}, },
{ {
"filename" : "event_news_index18", "filename" : "event_news_index18",
"name" : { "name" : {
"zh_tw" : "18. 標準標題列表-2 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )", "zh_tw" : "18. 標準標題列表-2 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en" : "18. Standard Title List-2 ( EventDate, speaker, status, title, host, notes)" "en" : "18. Standard Title List-2 ( EventDate, speaker, status, title, host, notes)"
}, },
"thumbnail" : "event_news_index1_thumbs.png" "thumbnail" : "event_news_index1_thumbs.png"
} }
], ],
"widgets" : [ "widgets" : [
{ {
"filename" : "event_news_widget1", "filename" : "event_news_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" : "event_news_widget1_thumbs.png" "thumbnail" : "event_news_widget1_thumbs.png"
}, },
{ {
"filename" : "event_news_widget2", "filename" : "event_news_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" : "event_news_widget2_thumbs.png" "thumbnail" : "event_news_widget2_thumbs.png"
}, },
{ {
"filename" : "event_news_widget3", "filename" : "event_news_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" : "event_news_widget3_thumbs.png" "thumbnail" : "event_news_widget3_thumbs.png"
}, },
{ {
"filename" : "event_news_widget4", "filename" : "event_news_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" : "event_news_widget4_thumbs.png" "thumbnail" : "event_news_widget4_thumbs.png"
}, },
{ {
"filename" : "event_news_widget15", "filename" : "event_news_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" : "event_news_widget4_thumbs.png" "thumbnail" : "event_news_widget4_thumbs.png"
}, },
{ {
"filename" : "event_news_widget5", "filename" : "event_news_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" : "event_news_widget5_thumbs.png" "thumbnail" : "event_news_widget5_thumbs.png"
}, },
{ {
"filename" : "event_news_widget6", "filename" : "event_news_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" : "event_news_widget6_thumbs.png" "thumbnail" : "event_news_widget6_thumbs.png"
}, },
{ {
"filename" : "event_news_widget7", "filename" : "event_news_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" : "event_news_widget7_thumbs.png" "thumbnail" : "event_news_widget7_thumbs.png"
}, },
{ {
"filename" : "event_news_widget8", "filename" : "event_news_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" : "event_news_widget8_thumbs.png" "thumbnail" : "event_news_widget8_thumbs.png"
}, },
{ {
"filename" : "event_news_widget9", "filename" : "event_news_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" : "event_news_widget9_thumbs.png" "thumbnail" : "event_news_widget9_thumbs.png"
}, },
{ {
"filename" : "event_news_widget10", "filename" : "event_news_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" : "event_news_widget10_thumbs.png" "thumbnail" : "event_news_widget10_thumbs.png"
}, },
{ {
"filename" : "event_news_widget11", "filename" : "event_news_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" : "event_news_widget11_thumbs.png" "thumbnail" : "event_news_widget11_thumbs.png"
}, },
{ {
"filename" : "event_news_widget12", "filename" : "event_news_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" : "event_news_widget12_thumbs.png" "thumbnail" : "event_news_widget12_thumbs.png"
}, },
{ {
"filename" : "event_news_widget13", "filename" : "event_news_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" : "event_news_widget13_thumbs.png" "thumbnail" : "event_news_widget13_thumbs.png"
}, },
{ {
"filename" : "event_news_widget14", "filename" : "event_news_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" : "event_news_widget14_thumbs.png" "thumbnail" : "event_news_widget14_thumbs.png"
}, },
{ {
"filename" : "event_news_widget16", "filename" : "event_news_widget16",
"name" : { "name" : {
"zh_tw" : "15. 標準表格列表-3 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )", "zh_tw" : "15. 標準表格列表-3 ( 日期, 演講者, 狀態, 標題, 主持人, 備註 )",
"en" : "15. Standard Table List (EventDate, speaker, status, title, host, notes)" "en" : "15. Standard Table List (EventDate, speaker, status, title, host, notes)"
}, },
"thumbnail" : "event_news_widget13_thumbs.png" "thumbnail" : "event_news_widget13_thumbs.png"
}, },
{ {
"filename" : "event_news_widget17", "filename" : "event_news_widget17",
"name" : { "name" : {
"zh_tw" : "16. 標準表格列表-3 ( 日期, 狀態, 標題, 演講者, 主持人, 備註 )", "zh_tw" : "16. 標準表格列表-3 ( 日期, 狀態, 標題, 演講者, 主持人, 備註 )",
"en" : "16. Standard Table List (EventDate, status, title, speaker, host, notes)" "en" : "16. Standard Table List (EventDate, status, title, speaker, host, notes)"
}, },
"thumbnail" : "event_news_widget13_thumbs.png", "thumbnail" : "event_news_widget13_thumbs.png",
"force_cover" : "true" "force_cover" : "true"
}, },
{ {
"filename" : "event_news_widget18", "filename" : "event_news_widget18",
"name" : { "name" : {
"zh_tw" : "18. 日歷", "zh_tw" : "18. 日歷",
"en" : "18. Calendar" "en" : "18. Calendar"
}, },
"force_cover" : "true", "force_cover" : "true",
"thumbnail" : "event_news_widget13_thumbs.png" "thumbnail" : "event_news_widget13_thumbs.png"
} }
] ]
} }

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