From c44a8ba8f8bac675155a138699bd8241be6194de Mon Sep 17 00:00:00 2001 From: rulingcom Date: Thu, 24 Mar 2022 07:51:48 +0000 Subject: [PATCH] update template --- .../_ad_banner_widget2_video.html.erb | 7 +- modules/universal_table/index.html.erb | 87 ++++++++++++++++++ modules/universal_table/info.json | 12 +++ modules/universal_table/show.html.erb | 21 +++++ modules/universal_table/thumbs/thumb.png | Bin 0 -> 4075 bytes 5 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 modules/universal_table/index.html.erb create mode 100644 modules/universal_table/info.json create mode 100644 modules/universal_table/show.html.erb create mode 100644 modules/universal_table/thumbs/thumb.png diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index c18fa06..81900bf 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -131,7 +131,9 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){ var banner_wrap = $(iframe).parents('.w-ba-banner__wrap').eq(0); banner_wrap.height(height).css({"padding-bottom":"","padding-top":""}); banner_wrap.find(".cycle-carousel-wrap").css("top","3em"); - delete (event.target.B || event.target.H).onStateChange; + try{ + delete (event.target.B || event.target.H || event.target.I).onStateChange; + }catch(e){console.log("{onReady: true, onStateChange: true} missing!")}; var onStateChange_idx = event.target.l.i.onStateChange; onStateChange_idx.reverse(); var event_size = 3; @@ -194,7 +196,8 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){ /* var height = opts.slides.filter('.active').height() || opts.slides.height(); banner_wrap.height(height)*/ - banner_wrap.css("padding-bottom",""); + if(banner_wrap.find('.cycle-slide-active iframe').length != 0) + banner_wrap.css("padding-bottom",""); {{extra_document_ready_script}} $('.pause-slide').off('click').click(function(){ $(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause'); diff --git a/modules/universal_table/index.html.erb b/modules/universal_table/index.html.erb new file mode 100644 index 0000000..29164e6 --- /dev/null +++ b/modules/universal_table/index.html.erb @@ -0,0 +1,87 @@ + + + + + + + + + + + + + +
+

{{table-name}}

+ Reset +
+ +
{{title}}
+ +
{{text}}
+
{{total_entries}}
+
{{export_button}}
+ {{pagination_goes_here}} diff --git a/modules/universal_table/info.json b/modules/universal_table/info.json new file mode 100644 index 0000000..cda3d13 --- /dev/null +++ b/modules/universal_table/info.json @@ -0,0 +1,12 @@ +{ + "frontend": [ + { + "filename" : "index", + "name" : { + "zh_tw" : "1. 列表", + "en" : "1. List" + }, + "thumbnail" : "thumb.png" + } + ] +} \ No newline at end of file diff --git a/modules/universal_table/show.html.erb b/modules/universal_table/show.html.erb new file mode 100644 index 0000000..de7dd3c --- /dev/null +++ b/modules/universal_table/show.html.erb @@ -0,0 +1,21 @@ + + + + + + + + +
{{title}}{{text}}
\ No newline at end of file diff --git a/modules/universal_table/thumbs/thumb.png b/modules/universal_table/thumbs/thumb.png new file mode 100644 index 0000000000000000000000000000000000000000..266af5606742714c262a949cd58aedc2b84b1959 GIT binary patch literal 4075 zcmcgvYdBPE`=8Q@or=MZk}-~jIXD}qFebzhVvsZ#jA2HMW=0OFFbKQkR5@2;7{)1- z&=wM+oMYofvU8{uIS&7&UHkuj*w_2v{qU~qTI;!=weH`2-_Lz|o)v3@JtZh0Apin_ z1kKIRw!l~h+!g!w0MC|jUMDb!Q%!MHJBk;Th7Tlwj65ms1cm?>ZoCb zunI6C_z=xP0tt2@SbL8Ul825b)X)H;M@Iny{0US%gzoQ04nooOq2J}A0DAj1918i) zLM7=#|1t_^Wdkvx1QH+`FocQ+LK6wmREHte5jyHR$`Dlq5&=i5!Vy|3NCZkl3xz;J zeq2yMTcD>G$`+0Jp$nMlLw%^!02CZfqtReAH5et(8;;b`(SajW;i{@C0EbEtgG|NK zRmedyKP8|EK^}p`04k9}hHOj3yHkRx`cS~qzn0)1U}g2UU~4vB3<+^0l07N3pzZMdwOTYGka&sUi3z0mL%#bLMf?Z- z>ZS-JMhk;Ms+p<-HXx1F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