Merge pull request #13 from fermionic/20130105-smarty3
implement smarty3
This commit is contained in:
@@ -65,7 +65,7 @@ function redbasic_form(&$a, $font_size, $line_height, $colour) {
|
||||
'dark' => 'dark',
|
||||
);
|
||||
|
||||
$t = file_get_contents( dirname(__file__). "/../tpl/theme_settings.tpl" );
|
||||
$t = get_markup_template('theme_settings.tpl');
|
||||
$o .= replace_macros($t, array(
|
||||
'$submit' => t('Submit'),
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
function redbasic_init(&$a) {
|
||||
$a->set_template_engine('smarty3');
|
||||
// head_add_js('redbasic.js');
|
||||
}
|
||||
|
||||
7
view/theme/redbasic/tpl/smarty3/theme_settings.tpl
Normal file
7
view/theme/redbasic/tpl/smarty3/theme_settings.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{{include file="field_select.tpl" field=$font_size}}
|
||||
|
||||
{{include file="field_select.tpl" field=$line_height}}
|
||||
|
||||
<div class="settings-submit-wrapper">
|
||||
<input type="submit" value="{{$submit}}" class="settings-submit" name="redbasic-settings-submit" />
|
||||
</div>
|
||||
Reference in New Issue
Block a user