External CSS Config in .8
Posted: Thu Jan 27, 2005 6:38 am
Once I upgraded my testbed to .8 I noticed that the external style sheet stored in the configuration page was not being applied to pages and wasn't included in the default/index.tpl template.
I noticed that the variable extCSS wasn't included in the functions_smarty.inc.php array. So after the line:
I added this line:
Then to my new index.tpl file I added the line:
Is this a reasonable way to add back in the external style sheet? I noticed the serendipity_genpage.inc.php had a lot of additional conditionals on the extCSS and uses an import statement.
I noticed that the variable extCSS wasn't included in the functions_smarty.inc.php array. So after the line:
Code: Select all
'head_link_stylesheet' => serendipity_rewriteURL('serendipity.\
css'),Code: Select all
'head_ExtCSS' => $serendipity['extCSS'],Code: Select all
<link rel="stylesheet" type="text/css" href="{$head_ExtCSS}" />Code: Select all
<?php if (strlen($serendipity['extCSS']) > 0 && strtolower($serendipity['extCSS\
'])!='none') { ?>
<style type="text/css">@import "<?php echo $serendipity['extCSS']; ?>";</style>