mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +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
|
@ -191,15 +191,8 @@ function remote_permissions_content($a, $item_copy) {
|
|||
}
|
||||
|
||||
function remote_permissions_plugin_admin(&$a, &$o){
|
||||
// $t = file_get_contents( "addon/remote_permissions/admin.tpl" );
|
||||
$t = get_markup_template( "admin.tpl", "addon/remote_permissions/" );
|
||||
|
||||
$includes = array(
|
||||
'$field_radio' => 'field_radio.tpl',
|
||||
);
|
||||
$includes = set_template_includes($a->theme['template_engine'], $includes);
|
||||
|
||||
$o = replace_macros($t, $includes + array(
|
||||
$o = replace_macros($t, array(
|
||||
'$submit' => t('Submit'),
|
||||
'$global' => array('remotepermschoice', t('Global'), 1, t('The posts of every user on this server show the post recipients'), get_config('remote_perms', 'global') == 1),
|
||||
'$individual' => array('remotepermschoice', t('Individual'), 2, t('Each user chooses whether his/her posts show the post recipients'), get_config('remote_perms', 'global') == 0)
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{ inc $field_radio with $field=$global }}{{ endinc }}
|
||||
{{ inc $field_radio with $field=$individual }}{{ endinc }}
|
||||
{{ inc field_radio.tpl with $field=$global }}{{ endinc }}
|
||||
{{ inc field_radio.tpl with $field=$individual }}{{ endinc }}
|
||||
<div class="submit"><input type="submit" name="page_site" value="$submit" /></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue