mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
update addons to support Smarty3
This commit is contained in:
parent
66334ec5cb
commit
3da6f1471c
62 changed files with 778 additions and 468 deletions
|
@ -93,8 +93,14 @@ function altpager_settings(&$a,&$s) {
|
|||
}
|
||||
|
||||
function altpager_plugin_admin(&$a, &$o){
|
||||
$t = file_get_contents( "addon/altpager/admin.tpl" );
|
||||
$o = replace_macros($t, array(
|
||||
$t = get_markup_template( "admin.tpl", "addon/altpager/" );
|
||||
|
||||
$includes = array(
|
||||
'$field_radio' => 'field_radio.tpl',
|
||||
);
|
||||
$includes = set_template_includes($a->theme['template_engine'], $includes);
|
||||
|
||||
$o = replace_macros($t, $includes + array(
|
||||
'$submit' => t('Submit'),
|
||||
'$global' => array('altpagerchoice', t('Global'), 1, t('Force global use of the alternate pager'), get_config('alt_pager', 'global') == 1),
|
||||
'$individual' => array('altpagerchoice', t('Individual'), 2, t('Each user chooses whether to use the alternate pager'), get_config('alt_pager', 'global') == 0)
|
||||
|
@ -106,3 +112,4 @@ function altpager_plugin_admin_post(&$a){
|
|||
set_config('alt_pager','global',($choice == 1 ? 1 : 0));
|
||||
info( t('Settings updated.'). EOL );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue