From 42ae7d6e457b50ed4b6bf5892463f6452f124086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 11 Apr 2021 00:37:14 +0800 Subject: [PATCH] add theme --- modules/ad_banner/_ad_banner_widget1.html.erb | 46 +++++++----- .../_ad_banner_widget2_video.html.erb | 57 ++++++++++++--- modules/gallery/_gallery_widget3.html.erb | 2 +- modules/gallery/_gallery_widget4.html.erb | 38 ++++++++++ modules/gallery/_gallery_widget5.html.erb | 72 +++++++++++++++++++ modules/gallery/gallery_index5.html.erb | 32 +++++++++ modules/gallery/info.json | 36 +++++++++- modules/gallery/show.html.erb | 2 +- 8 files changed, 253 insertions(+), 32 deletions(-) create mode 100644 modules/gallery/_gallery_widget4.html.erb create mode 100644 modules/gallery/_gallery_widget5.html.erb create mode 100644 modules/gallery/gallery_index5.html.erb diff --git a/modules/ad_banner/_ad_banner_widget1.html.erb b/modules/ad_banner/_ad_banner_widget1.html.erb index dfd56e9..5686156 100644 --- a/modules/ad_banner/_ad_banner_widget1.html.erb +++ b/modules/ad_banner/_ad_banner_widget1.html.erb @@ -30,26 +30,38 @@
- - \ No newline at end of file + + \ No newline at end of file diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index 003f7d8..725db51 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -1,8 +1,7 @@ -
+
{{html}}
- +
+ +
    - - -
-
+ + + +
+ \ No newline at end of file + + \ No newline at end of file diff --git a/modules/gallery/_gallery_widget3.html.erb b/modules/gallery/_gallery_widget3.html.erb index 91a290e..0400a9b 100644 --- a/modules/gallery/_gallery_widget3.html.erb +++ b/modules/gallery/_gallery_widget3.html.erb @@ -3,7 +3,7 @@ {{widget-title}} -->
diff --git a/modules/gallery/_gallery_widget4.html.erb b/modules/gallery/_gallery_widget4.html.erb new file mode 100644 index 0000000..67da31d --- /dev/null +++ b/modules/gallery/_gallery_widget4.html.erb @@ -0,0 +1,38 @@ + \ No newline at end of file diff --git a/modules/gallery/_gallery_widget5.html.erb b/modules/gallery/_gallery_widget5.html.erb new file mode 100644 index 0000000..70896f8 --- /dev/null +++ b/modules/gallery/_gallery_widget5.html.erb @@ -0,0 +1,72 @@ + + + +
\ No newline at end of file diff --git a/modules/gallery/gallery_index5.html.erb b/modules/gallery/gallery_index5.html.erb new file mode 100644 index 0000000..051a164 --- /dev/null +++ b/modules/gallery/gallery_index5.html.erb @@ -0,0 +1,32 @@ + +{{pagination_goes_here}} diff --git a/modules/gallery/info.json b/modules/gallery/info.json index ba96b1c..fbf4ac8 100644 --- a/modules/gallery/info.json +++ b/modules/gallery/info.json @@ -31,6 +31,14 @@ "en" : "4. Thumbnail ( gallery thumbnail, page navigation )" }, "thumbnail" : "thumb.png" + }, + { + "filename" : "gallery_index5", + "name" : { + "zh_tw" : "5. 卡片", + "en" : "5. Card" + }, + "thumbnail" : "thumb.png" } ], "widgets" : [ @@ -45,8 +53,32 @@ { "filename" : "gallery_widget2", "name" : { - "zh_tw" : "2. 相本排版", - "en" : "2. Thumbnail" + "zh_tw" : "2. 相本排版 ( 模組標題, 圖片 )", + "en" : "2. Thumbnail (widget-title, image)" + }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "gallery_widget3", + "name" : { + "zh_tw" : "3. 單本相簿跑馬燈 ( 圖片 )", + "en" : "3. Single Picture With Carousel Effect (image)" + }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "gallery_widget4", + "name" : { + "zh_tw" : "4. 卡片", + "en" : "4. Card" + }, + "thumbnail" : "thumb.png" + }, + { + "filename" : "gallery_widget5", + "name" : { + "zh_tw" : "5. 投影片式輪播", + "en" : "5. Slide" }, "thumbnail" : "thumb.png" } diff --git a/modules/gallery/show.html.erb b/modules/gallery/show.html.erb index f3083ff..2cb9386 100644 --- a/modules/gallery/show.html.erb +++ b/modules/gallery/show.html.erb @@ -7,7 +7,7 @@
- + {{alt_title}}

{{image-description}}