revert addon Smarty3 templates to non-variable-based includes

This commit is contained in:
Zach Prezkuta 2012-12-25 13:25:09 -07:00
parent 75f47b74d2
commit c12542ef96
53 changed files with 75 additions and 146 deletions

View file

@ -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 <a href="http://wiki.openstreetmap.org/wiki/TMS" target="_blank">public tile servers</a>')),
'$zoom' => array('zoom', t('Default zoom'), $zoom, t('The default zoom level. (1:world, 18:highest)')),