mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 02:18:48 +00:00
revert addon Smarty3 templates to non-variable-based includes
This commit is contained in:
parent
75f47b74d2
commit
c12542ef96
53 changed files with 75 additions and 146 deletions
|
@ -95,12 +95,7 @@ function blackout_plugin_admin(&$a, &$o) {
|
|||
if (! is_string($myurl)) { $myurl = "http://www.example.com"; }
|
||||
$t = get_markup_template( "admin.tpl", "addon/blackout/" );
|
||||
|
||||
$includes = array(
|
||||
'$field_input' => 'field_input.tpl',
|
||||
);
|
||||
$includes = set_template_includes($a->theme['template_engine'], $includes);
|
||||
|
||||
$o = replace_macros($t, $includes + array(
|
||||
$o = replace_macros($t, array(
|
||||
'$submit' => t('Submit'),
|
||||
'$rurl' => array("rurl", "Redirect URL", $myurl, "all your visitors from the web will be redirected to this URL"),
|
||||
'$startdate' => array("startdate", "Begin of the Blackout<br />(YYYY-MM-DD hh:mm)", $mystart, "format is <em>YYYY</em> year, <em>MM</em> month, <em>DD</em> day, <em>hh</em> hour and <em>mm</em> minute"),
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{ inc $field_input with $field=$startdate }}{{ endinc }}
|
||||
{{ inc $field_input with $field=$enddate }}{{ endinc }}
|
||||
{{ inc $field_input with $field=$rurl }}{{ endinc }}
|
||||
{{ inc field_input.tpl with $field=$startdate }}{{ endinc }}
|
||||
{{ inc field_input.tpl with $field=$enddate }}{{ endinc }}
|
||||
{{ inc field_input.tpl with $field=$rurl }}{{ endinc }}
|
||||
|
||||
<div style="border: 2px solid #f00; padding: 10px; margin:
|
||||
10px;font-size: 1.2em;"><strong>Note</strong>: The redirect will be active from the moment you
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{include file="file:{{$field_input}}" field=$startdate}}
|
||||
{{include file="file:{{$field_input}}" field=$enddate}}
|
||||
{{include file="file:{{$field_input}}" field=$rurl}}
|
||||
{{include file="field_input.tpl" field=$startdate}}
|
||||
{{include file="field_input.tpl" field=$enddate}}
|
||||
{{include file="field_input.tpl" field=$rurl}}
|
||||
|
||||
<div style="border: 2px solid #f00; padding: 10px; margin:
|
||||
10px;font-size: 1.2em;"><strong>Note</strong>: The redirect will be active from the moment you
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue