function includeCssFiles()
{
global $template;
$nArgs = func_num_args();
$args = func_get_args();
for( $i = 0; $i < $nArgs; $i++ )
{
$file = $args[$i];
$appRoot = $smarty->get_config_vars('APPLICATON_ROOT');
$ts = filemtime( "$appRoot/templates/$template/css/$file.css" );
?>
<link rel="stylesheet" type="text/css" media="screen" href="<? echo "templates/$template/css/$file.css?ts$ts=1" ?>" />
<?php
}
}
function includeInlineCssFiles()
{
global $template;
$nArgs = func_num_args();
$args = func_get_args();
?>
<style>
<?php
for( $i = 0; $i < $nArgs; $i++ )
{
$file = $args[$i];
require("templates/$template/css/$file.css");
}
?>
</style>
<?php
}
No comments:
Post a Comment