]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy/config.php
simplify by making Smarty include directives behave like Friendica native ones
[friendica.git] / view / theme / dispy / config.php
index a24288bf86c72e0774414f73540362347e64fe77..628d5eefa0169e3ee868d6e621a4f953189d99e7 100644 (file)
@@ -41,17 +41,17 @@ function theme_admin_post(&$a) {
 
 function dispy_form(&$a, $font_size, $line_height, $colour) {
        $line_heights = array(
-               "1.3"=>"1.3",
-               "---"=>"---",
-               "1.6"=>"1.6",                           
-               "1.5"=>"1.5",           
-               "1.4"=>"1.4",
-               "1.2"=>"1.2",
-               "1.1"=>"1.1",
+               "1.3" => "1.3",
+               "---" => "---",
+               "1.6" => "1.6",                         
+               "1.5" => "1.5",         
+               "1.4" => "1.4",
+               "1.2" => "1.2",
+               "1.1" => "1.1",
        );      
        $font_sizes = array(
                '12' => '12',
-               '14' =>'14',
+               '14' => '14',
                "---" => "---",
                "16" => "16",           
                "15" => "15",
@@ -65,7 +65,7 @@ function dispy_form(&$a, $font_size, $line_height, $colour) {
                'dark' => 'dark',                                               
        );
 
-       $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
+       $t = get_markup_template("theme_settings.tpl" );
        $o .= replace_macros($t, array(
                '$submit' => t('Submit'),
                '$baseurl' => $a->get_baseurl(),