';
- $s .= '
' . t('Current Weather Settings') . '
';
- $s .= '
';
- $s .= '
Find the location code for the airport/weather station nearest you here.
';
- $s .= '
';
- $s .= '
';
- $s .= '
';
- $s .= '
';
- $s .= '
';
- $s .= '
';
-
- $s .= '
';
-
- /* provide a submit button */
-
- $s .= '
';
+ // load template and replace the macros
+ $t = get_markup_template("settings.tpl", "addon/curweather/" );
+ $s = replace_macros ($t, array(
+ '$submit' => t('Save Settings'),
+ '$header' => t('Current Weather').' '.t('Settings'),
+ '$noappidtext' => $noappidtext,
+ '$info' => t('Enter either the name of your location or the zip code.'),
+ '$curweather_loc' => array( 'curweather_loc', t('Your Location'), $curweather_loc, t('Identifier of your location (name or zip code), e.g.