diff --git a/altpager.tgz b/altpager.tgz
index 87bb2f8fc..fbfd55949 100644
Binary files a/altpager.tgz and b/altpager.tgz differ
diff --git a/altpager/altpager.php b/altpager/altpager.php
index ddb6d3520..c6f537bd4 100755
--- a/altpager/altpager.php
+++ b/altpager/altpager.php
@@ -94,13 +94,7 @@ function altpager_settings(&$a,&$s) {
function altpager_plugin_admin(&$a, &$o){
$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(
+ $o = replace_macros($t, 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)
diff --git a/altpager/view/admin.tpl b/altpager/view/admin.tpl
old mode 100755
new mode 100644
index 1176db41c..605588084
--- a/altpager/view/admin.tpl
+++ b/altpager/view/admin.tpl
@@ -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 }}
diff --git a/altpager/view/smarty3/admin.tpl b/altpager/view/smarty3/admin.tpl
index 507802318..e67afd737 100644
--- a/altpager/view/smarty3/admin.tpl
+++ b/altpager/view/smarty3/admin.tpl
@@ -1,3 +1,3 @@
-{{include file="file:{{$field_radio}}" field=$global}}
-{{include file="file:{{$field_radio}}" field=$individual}}
+{{include file="field_radio.tpl" field=$global}}
+{{include file="field_radio.tpl" field=$individual}}
diff --git a/blackout.tgz b/blackout.tgz
index 4b5a5d312..6d081dc4a 100644
Binary files a/blackout.tgz and b/blackout.tgz differ
diff --git a/blackout/blackout.php b/blackout/blackout.php
index 4c2a74b6d..834956114 100644
--- a/blackout/blackout.php
+++ b/blackout/blackout.php
@@ -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 (YYYY-MM-DD hh:mm)", $mystart, "format is YYYY year, MM month, DD day, hh hour and mm minute"),
diff --git a/blackout/view/admin.tpl b/blackout/view/admin.tpl
index e19bd246a..25922193d 100644
--- a/blackout/view/admin.tpl
+++ b/blackout/view/admin.tpl
@@ -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 }}
Note: The redirect will be active from the moment you
diff --git a/blackout/view/smarty3/admin.tpl b/blackout/view/smarty3/admin.tpl
index f77a59484..11a4d9140 100644
--- a/blackout/view/smarty3/admin.tpl
+++ b/blackout/view/smarty3/admin.tpl
@@ -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}}
Note: The redirect will be active from the moment you
diff --git a/communityhome.tgz b/communityhome.tgz
index 20f7b9642..71f1f8e30 100755
Binary files a/communityhome.tgz and b/communityhome.tgz differ
diff --git a/forumdirectory.tgz b/forumdirectory.tgz
index 09fcb4ce9..249cd2264 100644
Binary files a/forumdirectory.tgz and b/forumdirectory.tgz differ
diff --git a/fromgplus.tgz b/fromgplus.tgz
index 712019e45..0a402b765 100644
Binary files a/fromgplus.tgz and b/fromgplus.tgz differ
diff --git a/gravatar.tgz b/gravatar.tgz
index 25106f265..561c4aaec 100644
Binary files a/gravatar.tgz and b/gravatar.tgz differ
diff --git a/gravatar/gravatar.php b/gravatar/gravatar.php
index a0b5a02b3..12a8e44f2 100644
--- a/gravatar/gravatar.php
+++ b/gravatar/gravatar.php
@@ -91,13 +91,7 @@ function gravatar_plugin_admin (&$a, &$o) {
// output Gravatar settings
$o .= '';
-
- $includes = array(
- '$field_select' => 'field_select.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o .= replace_macros( $t, $includes + array(
+ $o .= replace_macros( $t, array(
'$submit' => t('Submit'),
'$default_avatar' => array('avatar', t('Default avatar image'), $default_avatar, t('Select default avatar image if none was found at Gravatar. See README'), $default_avatars),
'$rating' => array('rating', t('Rating of images'), $rating, t('Select the appropriate avatar rating for your site. See README'), $ratings),
diff --git a/gravatar/view/admin.tpl b/gravatar/view/admin.tpl
index b187e1ea4..83144e432 100644
--- a/gravatar/view/admin.tpl
+++ b/gravatar/view/admin.tpl
@@ -1,3 +1,3 @@
-{{ inc $field_select with $field=$default_avatar}}{{ endinc }}
-{{ inc $field_select with $field=$rating }}{{ endinc }}
+{{ inc field_select.tpl with $field=$default_avatar}}{{ endinc }}
+{{ inc field_select.tpl with $field=$rating }}{{ endinc }}
diff --git a/gravatar/view/smarty3/admin.tpl b/gravatar/view/smarty3/admin.tpl
index 30d760afd..5dfd4488e 100644
--- a/gravatar/view/smarty3/admin.tpl
+++ b/gravatar/view/smarty3/admin.tpl
@@ -1,3 +1,3 @@
-{{include file="file:{{$field_select}}" field=$default_avatar}}
-{{include file="file:{{$field_select}}" field=$rating}}
+{{include file="field_select.tpl" field=$default_avatar}}
+{{include file="field_select.tpl" field=$rating}}
diff --git a/impressum.tgz b/impressum.tgz
index 8c36df6f2..b47b625cf 100755
Binary files a/impressum.tgz and b/impressum.tgz differ
diff --git a/impressum/impressum.php b/impressum/impressum.php
index 305dd9a94..3c1106c9a 100755
--- a/impressum/impressum.php
+++ b/impressum/impressum.php
@@ -79,14 +79,7 @@ function impressum_plugin_admin_post (&$a) {
}
function impressum_plugin_admin (&$a, &$o) {
$t = get_markup_template( "admin.tpl", "addon/impressum/" );
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- '$field_textarea' => 'field_textarea.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o = replace_macros($t, $includes + array(
+ $o = replace_macros($t, array(
'$submit' => t('Submit'),
'$owner' => array('owner', t('Site Owner'), get_config('impressum','owner'), t('The page operators name.')),
'$ownerprofile' => array('ownerprofile', t('Site Owners Profile'), get_config('impressum','ownerprofile'), t('Profile address of the operator.')),
diff --git a/impressum/view/admin.tpl b/impressum/view/admin.tpl
old mode 100755
new mode 100644
index e3651137a..901df73fa
--- a/impressum/view/admin.tpl
+++ b/impressum/view/admin.tpl
@@ -1,7 +1,7 @@
-{{ inc $field_input with $field=$owner }}{{ endinc }}
-{{ inc $field_input with $field=$ownerprofile }}{{ endinc }}
-{{ inc $field_textarea with $field=$postal }}{{ endinc }}
-{{ inc $field_textarea with $field=$notes }}{{ endinc }}
-{{ inc $field_input with $field=$email }}{{ endinc }}
-{{ inc $field_textarea with $field=$footer_text }}{{ endinc }}
+{{ inc field_input.tpl with $field=$owner }}{{ endinc }}
+{{ inc field_input.tpl with $field=$ownerprofile }}{{ endinc }}
+{{ inc field_textarea.tpl with $field=$postal }}{{ endinc }}
+{{ inc field_textarea.tpl with $field=$notes }}{{ endinc }}
+{{ inc field_input.tpl with $field=$email }}{{ endinc }}
+{{ inc field_textarea.tpl with $field=$footer_text }}{{ endinc }}
diff --git a/impressum/view/smarty3/admin.tpl b/impressum/view/smarty3/admin.tpl
index a3b0ef272..80b678241 100644
--- a/impressum/view/smarty3/admin.tpl
+++ b/impressum/view/smarty3/admin.tpl
@@ -1,7 +1,7 @@
-{{include file="file:{{$field_input}}" field=$owner}}
-{{include file="file:{{$field_input}}" field=$ownerprofile}}
-{{include file="file:{{$field_textarea}}" field=$postal}}
-{{include file="file:{{$field_textarea}}" field=$notes}}
-{{include file="file:{{$field_input}}" field=$email}}
-{{include file="file:{{$field_textarea}}" field=$footer_text}}
+{{include file="field_input.tpl" field=$owner}}
+{{include file="field_input.tpl" field=$ownerprofile}}
+{{include file="field_textarea.tpl" field=$postal}}
+{{include file="field_textarea.tpl" field=$notes}}
+{{include file="field_input.tpl" field=$email}}
+{{include file="field_textarea.tpl" field=$footer_text}}
diff --git a/libravatar.tgz b/libravatar.tgz
index 0405af9bd..d61f63baf 100644
Binary files a/libravatar.tgz and b/libravatar.tgz differ
diff --git a/libravatar/libravatar.php b/libravatar/libravatar.php
index c966052f7..8cbf1e980 100644
--- a/libravatar/libravatar.php
+++ b/libravatar/libravatar.php
@@ -95,13 +95,7 @@ function libravatar_plugin_admin (&$a, &$o) {
// output Libravatar settings
$o .= '';
-
- $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'),
'$default_avatar' => array('avatar', t('Default avatar image'), $default_avatar, t('Select default avatar image if none was found. See README'), $default_avatars),
));
diff --git a/libravatar/view/admin.tpl b/libravatar/view/admin.tpl
index 01b113c4b..814f4a44a 100644
--- a/libravatar/view/admin.tpl
+++ b/libravatar/view/admin.tpl
@@ -1,2 +1,2 @@
-{{ inc $field_select with $field=$default_avatar}}{{ endinc }}
+{{ inc field_select.tpl with $field=$default_avatar}}{{ endinc }}
diff --git a/libravatar/view/smarty3/admin.tpl b/libravatar/view/smarty3/admin.tpl
index 4e930a743..ee958287a 100644
--- a/libravatar/view/smarty3/admin.tpl
+++ b/libravatar/view/smarty3/admin.tpl
@@ -1,2 +1,2 @@
-{{include file="file:{{$field_select}}" field=$default_avatar}}
+{{include file="field_select.tpl" field=$default_avatar}}
diff --git a/mathjax.tgz b/mathjax.tgz
index 37bfbf616..a340aee47 100644
Binary files a/mathjax.tgz and b/mathjax.tgz differ
diff --git a/mathjax/mathjax.php b/mathjax/mathjax.php
index 33cdd4393..e57d69bf5 100644
--- a/mathjax/mathjax.php
+++ b/mathjax/mathjax.php
@@ -71,12 +71,7 @@ function mathjax_plugin_admin (&$a, &$o) {
set_config('mathjax','baseurl','http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML');
}
- $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(
'$baseurl' => array('baseurl', t('MathJax Base URL'), get_config('mathjax','baseurl' ), t('The URL for the javascript file that should be included to use MathJax. Can be either the MathJax CDN or another installation of MathJax.')),
));
}
diff --git a/mathjax/view/admin.tpl b/mathjax/view/admin.tpl
index ed60d7349..1c723cddd 100644
--- a/mathjax/view/admin.tpl
+++ b/mathjax/view/admin.tpl
@@ -1,2 +1,2 @@
-{{ inc $field_input with $field=$baseurl }}{{endinc }}
+{{ inc field_input.tpl with $field=$baseurl }}{{endinc }}
diff --git a/mathjax/view/smarty3/admin.tpl b/mathjax/view/smarty3/admin.tpl
index 8d0388ca0..f6ec03e0d 100644
--- a/mathjax/view/smarty3/admin.tpl
+++ b/mathjax/view/smarty3/admin.tpl
@@ -1,2 +1,2 @@
-{{include file="file:{{$field_input}}" field=$baseurl}}
+{{include file="field_input.tpl" field=$baseurl}}
diff --git a/openstreetmap.tgz b/openstreetmap.tgz
index c195d151c..967b56017 100644
Binary files a/openstreetmap.tgz and b/openstreetmap.tgz differ
diff --git a/openstreetmap/openstreetmap.php b/openstreetmap/openstreetmap.php
index bf6632539..cb9abcd7d 100755
--- a/openstreetmap/openstreetmap.php
+++ b/openstreetmap/openstreetmap.php
@@ -58,7 +58,6 @@ function openstreetmap_location($a, &$item) {
function openstreetmap_plugin_admin (&$a, &$o) {
-# $t = file_get_contents( dirname(__file__)."/admin.tpl");
$t = get_markup_template( "admin.tpl", "addon/openstreetmap/" );
$tmsserver = get_config('openstreetmap','tmsserver');
if(! $tmsserver)
@@ -67,12 +66,7 @@ function openstreetmap_plugin_admin (&$a, &$o) {
if(! $zoom)
$zoom = 17;
- $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'),
'$tmsserver' => array('tmsserver', t('Tile Server URL'), $tmsserver, t('A list of public tile servers')),
'$zoom' => array('zoom', t('Default zoom'), $zoom, t('The default zoom level. (1:world, 18:highest)')),
diff --git a/openstreetmap/view/admin.tpl b/openstreetmap/view/admin.tpl
index f733a9174..75db9cd7b 100644
--- a/openstreetmap/view/admin.tpl
+++ b/openstreetmap/view/admin.tpl
@@ -1,3 +1,3 @@
-{{ inc $field_input with $field=$tmsserver }}{{ endinc }}
-{{ inc $field_input with $field=$zoom }}{{ endinc }}
+{{ inc field_input.tpl with $field=$tmsserver }}{{ endinc }}
+{{ inc field_input.tpl with $field=$zoom }}{{ endinc }}
diff --git a/openstreetmap/view/smarty3/admin.tpl b/openstreetmap/view/smarty3/admin.tpl
index 90baf1bea..6ee07174b 100644
--- a/openstreetmap/view/smarty3/admin.tpl
+++ b/openstreetmap/view/smarty3/admin.tpl
@@ -1,3 +1,3 @@
-{{include file="file:{{$field_input}}" field=$tmsserver}}
-{{include file="file:{{$field_input}}" field=$zoom}}
+{{include file="field_input.tpl" field=$tmsserver}}
+{{include file="field_input.tpl" field=$zoom}}
diff --git a/page.tgz b/page.tgz
index 02140ce92..c9610e28b 100644
Binary files a/page.tgz and b/page.tgz differ
diff --git a/piwik.tgz b/piwik.tgz
index 080dd9e32..a5bd437aa 100755
Binary files a/piwik.tgz and b/piwik.tgz differ
diff --git a/piwik/piwik.php b/piwik/piwik.php
index a0dd1c257..3501b2c8c 100755
--- a/piwik/piwik.php
+++ b/piwik/piwik.php
@@ -84,16 +84,8 @@ function piwik_analytics($a,&$b) {
}
}
function piwik_plugin_admin (&$a, &$o) {
-# $t = file_get_contents( dirname(__file__)."/admin.tpl");
$t = get_markup_template( "admin.tpl", "addon/piwik/" );
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- '$field_checkbox' => 'field_select.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o = replace_macros( $t, $includes + array(
+ $o = replace_macros( $t, array(
'$submit' => t('Submit'),
'$baseurl' => array('baseurl', t('Piwik Base URL'), get_config('piwik','baseurl' ), t('Absolute path to your Piwik installation. (without protocol (http/s), with trailing slash)')),
'$siteid' => array('siteid', t('Site ID'), get_config('piwik','siteid' ), ''),
diff --git a/piwik/view/admin.tpl b/piwik/view/admin.tpl
old mode 100755
new mode 100644
index 21a6ea870..e57758a9d
--- a/piwik/view/admin.tpl
+++ b/piwik/view/admin.tpl
@@ -1,5 +1,5 @@
-{{ inc $field_input with $field=$baseurl }}{{ endinc }}
-{{ inc $field_input with $field=$siteid }}{{ endinc }}
-{{ inc $field_checkbox with $field=$optout }}{{ endinc }}
-{{ inc $field_checkbox with $field=$async }}{{ endinc }}
+{{ inc field_input.tpl with $field=$baseurl }}{{ endinc }}
+{{ inc field_input.tpl with $field=$siteid }}{{ endinc }}
+{{ inc field_checkbox.tpl with $field=$optout }}{{ endinc }}
+{{ inc field_checkbox.tpl with $field=$async }}{{ endinc }}
diff --git a/piwik/view/smarty3/admin.tpl b/piwik/view/smarty3/admin.tpl
index 3fd397371..bfe04aa31 100644
--- a/piwik/view/smarty3/admin.tpl
+++ b/piwik/view/smarty3/admin.tpl
@@ -1,5 +1,5 @@
-{{include file="file:{{$field_input}}" field=$baseurl}}
-{{include file="file:{{$field_input}}" field=$siteid}}
-{{include file="file:{{$field_checkbox}}" field=$optout}}
-{{include file="file:{{$field_checkbox}}" field=$async}}
+{{include file="field_input.tpl" field=$baseurl}}
+{{include file="field_input.tpl" field=$siteid}}
+{{include file="field_checkbox.tpl" field=$optout}}
+{{include file="field_checkbox.tpl" field=$async}}
diff --git a/privacy_image_cache.tgz b/privacy_image_cache.tgz
index 13239d904..b0690fc2b 100644
Binary files a/privacy_image_cache.tgz and b/privacy_image_cache.tgz differ
diff --git a/remote_permissions.tgz b/remote_permissions.tgz
index 8c137d10f..fef4f39bf 100644
Binary files a/remote_permissions.tgz and b/remote_permissions.tgz differ
diff --git a/remote_permissions/remote_permissions.php b/remote_permissions/remote_permissions.php
index 3c99f0084..8955130f8 100644
--- a/remote_permissions/remote_permissions.php
+++ b/remote_permissions/remote_permissions.php
@@ -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)
diff --git a/remote_permissions/view/admin.tpl b/remote_permissions/view/admin.tpl
index 1176db41c..605588084 100644
--- a/remote_permissions/view/admin.tpl
+++ b/remote_permissions/view/admin.tpl
@@ -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 }}
diff --git a/statusnet.tgz b/statusnet.tgz
index 92a103174..9801af556 100755
Binary files a/statusnet.tgz and b/statusnet.tgz differ
diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php
index d7af352ea..4781fcc25 100755
--- a/statusnet/statusnet.php
+++ b/statusnet/statusnet.php
@@ -699,14 +699,7 @@ function statusnet_plugin_admin(&$a, &$o){
$t = get_markup_template( "admin.tpl", "addon/statusnet/" );
-
- $includes = array(
- '$field_input' => 'field_input.tpl',
- '$field_checkbox' => 'field_checkbox.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
-
- $o = replace_macros($t, $includes + array(
+ $o = replace_macros($t, array(
'$submit' => t('Submit'),
'$sites' => $sitesform,
diff --git a/statusnet/view/admin.tpl b/statusnet/view/admin.tpl
old mode 100755
new mode 100644
index 02eacf733..b40adf35a
--- a/statusnet/view/admin.tpl
+++ b/statusnet/view/admin.tpl
@@ -1,10 +1,10 @@
{{ for $sites as $s }}
- {{ inc $field_input with $field=$s.sitename }}{{ endinc }}
- {{ inc $field_input with $field=$s.apiurl }}{{ endinc }}
- {{ inc $field_input with $field=$s.secret }}{{ endinc }}
- {{ inc $field_input with $field=$s.key }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$s.sitename }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$s.apiurl }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$s.secret }}{{ endinc }}
+ {{ inc field_input.tpl with $field=$s.key }}{{ endinc }}
{{ if $s.delete }}
- {{ inc $field_checkbox with $field=$s.delete }}{{ endinc }}
+ {{ inc field_checkbox.tpl with $field=$s.delete }}{{ endinc }}
{{ else }}