From 74d813042fa96dd90955cc5c0da8cf4716485cb8 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sun, 15 Oct 2017 18:45:49 +0200 Subject: [PATCH] extend checkbox template for customized attributes --- mod/events.php | 4 ++-- view/templates/field_checkbox.tpl | 2 +- view/theme/frio/templates/field_checkbox.tpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/events.php b/mod/events.php index 4959212ec6..eec970d036 100644 --- a/mod/events.php +++ b/mod/events.php @@ -442,7 +442,7 @@ function events_content(App $a) { } if ($cid || ($mode !== 'new')) { - $sh_checked .= ' disabled="disabled" '; + $sh_disabled = 'disabled="disabled"'; } $sdt = ((x($orig_event)) ? $orig_event['start'] : 'now'); @@ -511,7 +511,7 @@ function events_content(App $a) { '$t_orig' => $t_orig, '$summary' => array('summary', t('Title:'), $t_orig, '', '*'), '$sh_text' => t('Share this event'), - '$share' => array('share', t('Share this event'), $sh_checked, ''), + '$share' => array('share', t('Share this event'), $sh_checked, '', $sh_disabled), '$sh_checked' => $sh_checked, '$nofinish' => array('nofinish', t('Finish date/time is not known or not relevant'), $n_checked), '$adjust' => array('adjust', t('Adjust for viewer timezone'), $a_checked), diff --git a/view/templates/field_checkbox.tpl b/view/templates/field_checkbox.tpl index 3d4a4284b6..b66cced876 100644 --- a/view/templates/field_checkbox.tpl +++ b/view/templates/field_checkbox.tpl @@ -1,6 +1,6 @@
- + {{$field.3}}
diff --git a/view/theme/frio/templates/field_checkbox.tpl b/view/theme/frio/templates/field_checkbox.tpl index f938b55aa1..787a82ebdc 100644 --- a/view/theme/frio/templates/field_checkbox.tpl +++ b/view/theme/frio/templates/field_checkbox.tpl @@ -1,7 +1,7 @@
- +