diff --git a/app/controllers/event_news_mods_controller.rb b/app/controllers/event_news_mods_controller.rb index 1afb3ad..1d6deed 100644 --- a/app/controllers/event_news_mods_controller.rb +++ b/app/controllers/event_news_mods_controller.rb @@ -681,7 +681,8 @@ class EventNewsModsController < ApplicationController "next_btn_title" => next_btn_title, "carousel_display_style" => (event_carousel_images.count == 0 ? 'display: none' : "width: #{event_news.carousel_image_width};margin: auto;"), "carousel_count" => event_carousel_images.count, - "place_text" => (event_news.place.present? rescue false) ? "#{EventNewsCustomTitle.get_trans("place")}: #{event_news.place}" : "" + "place_text" => (event_news.place.blank? ? "" : "#{EventNewsCustomTitle.get_trans("place")}: #{event_news.place}"), + "place-css" => (event_news.place.blank? ? "display: none;" : "") }, "impressionist" => (event_news.is_preview ? nil : event_news), "url_to_edit"=>url_to_edit @@ -779,7 +780,8 @@ class EventNewsModsController < ApplicationController "next_btn_title" => next_btn_title, "carousel_display_style" => (event_carousel_images.count == 0 ? 'display: none' : "width: #{EventNewsSetting.last.carousel_image_width};margin: auto;"), "carousel_count" => event_carousel_images.count, - "place_text" => (event_news["place"].present? rescue false) ? "#{I18n.t("event_news.place")}: #{event_news["place"]}" : "" + "place_text" => (event_news["place"].blank? ? "" : "#{I18n.t("event_news.place")}: #{event_news["place"]}"), + "place-css" => (event_news["place"].blank? ? "display: none;" : "") }, "impressionist" => nil, "url_to_edit" => url_to_edit diff --git a/modules/event_news_mod/info.json b/modules/event_news_mod/info.json index 7cdae46..4f19e06 100644 --- a/modules/event_news_mod/info.json +++ b/modules/event_news_mod/info.json @@ -317,5 +317,23 @@ }, "thumbnail" : "event_news_widget7_thumbs.png" } + ], + "show" : [ + { + "filename" : "show", + "name" : { + "zh_tw" : "1. 標準內容頁", + "en" : "1. Standard Content Page" + }, + "thumbnail" : "event_news_widget1_thumbs.png" + }, + { + "filename" : "show2", + "name" : { + "zh_tw" : "2. 內容頁樣式2", + "en" : "2. Standard Content Page Style 2" + }, + "thumbnail" : "event_news_widget1_thumbs.png" + } ] } \ No newline at end of file diff --git a/modules/event_news_mod/show2.html.erb b/modules/event_news_mod/show2.html.erb new file mode 100644 index 0000000..e09ec6f --- /dev/null +++ b/modules/event_news_mod/show2.html.erb @@ -0,0 +1,65 @@ +
+

{{title}}

+ + + +
+
+ + {{img_description}} +
+
{{subtitle_ann}}
+

{{body}}

+
+
+
+

{{notes}}

+
+ +
+{{link_to_edit}} \ No newline at end of file