From 94c53b3b23f1922e281d60c145cc571c5a6127ef Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 3 Oct 2020 21:29:17 -0400 Subject: [PATCH] Introduce range percent template - Replace usage in frio theme settings --- view/templates/field/range_percent.tpl | 20 ++++++++++++++++++ view/theme/frio/templates/theme_settings.tpl | 22 +------------------- 2 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 view/templates/field/range_percent.tpl diff --git a/view/templates/field/range_percent.tpl b/view/templates/field/range_percent.tpl new file mode 100644 index 0000000000..0336b616d3 --- /dev/null +++ b/view/templates/field/range_percent.tpl @@ -0,0 +1,20 @@ +
+{{if !isset($label) || $label != false }} + +{{/if}} +
+
+ +
+
+
+ + % +
+
+
+{{if $field.3}} + {{$field.3 nofilter}} +{{/if}} +
+
diff --git a/view/theme/frio/templates/theme_settings.tpl b/view/theme/frio/templates/theme_settings.tpl index 505aa55c22..c9b350865e 100644 --- a/view/theme/frio/templates/theme_settings.tpl +++ b/view/theme/frio/templates/theme_settings.tpl @@ -56,27 +56,7 @@ {{if $background_color}}{{include file="field_colorinput.tpl" field=$background_color}}{{/if}} -{{* The slider for the content opacity - We use no template for this since it is only used at this page *}} -{{if $contentbg_transp}} -
- - -
-
- -
-
-
- - % -
-
-
- - {{$contentbg_transp.3}} -
-
-{{/if}} +{{if $contentbg_transp}}{{include file="field/range_percent.tpl" field=$contentbg_transp}}{{/if}} {{if $background_image}}{{include file="field_fileinput.tpl" field=$background_image}}{{/if}}