Jump to content

foreach from=$css_files confusion


Digital Essence

Recommended Posts

Hi,

 

In my /theme/header.tpl file I have the following:

 

{if isset($css_files)}

<!-- start of auto css -->

{foreach from=$css_files key=css_uri item=media}

<link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />

{/foreach}

<!-- end of auto css -->

 

which I assumed would pick up any css files but it seems to just chose a few.

 

For example it has produced:

 

<!-- start of auto css -->

<link href="/themes/dev/css/global.css" rel="stylesheet" type="text/css" media="all" />

<link href="/css/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" media="screen" />

<link href="/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="all" />

<!-- end of auto css -->

 

whereas my /themes/dev/css/ dir contains the following:

 

global.css

global_original.css

reset.css

styles.css

 

and the root/css/ dir contains a lot more than just the two jquery.*.css files

 

Am I getting this wrong or is this behaviour correct?

 

thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...