News:

SMF 2.1.5 has been released! Take it for a spin! Read more.

Main Menu

[4808] Multi-Style (smf 2.0 gold)

Started by ^HeRaCLeS^, July 20, 2011, 06:20:45 PM

Previous topic - Next topic

^HeRaCLeS^

Maybe it's a bug or not, but I ran into a problem when creating Multi-Style themes.
Created all files necessary and created the variable in file index.template.php:
$settings['theme_variants'] = array('style1', 'style2', 'style3');

So far, so perfect.
But in the file index.template.php the css is called like this:
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?fin20" />

and several files require index.css therefore do not take variations of the theme.

Errors.template.php: (183)

   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />

Help.template.php: (24) and (47)

   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />

ModerationCenter.template.php: (778)

   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />

Packages.template.php: (1526)

   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />

Post.template.php: (888)

   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />

Register.template.php: (483)

   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />


Themes.php: (1358) 1728) and (1754)

   $to_copy = array('/index.php', '/index.template.php', '/css/index.css', '/css/rtl.css', '/scripts/theme.js');
   if (!file_exists($theme['theme_dir'] . '/index.template.php') && !file_exists($theme['theme_dir'] . '/css/index.css'))
   $context['themes'][$key]['can_edit_style'] = file_exists($theme['theme_dir'] . '/css/index.css');

ViewQuery.php: (59)

   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index.css" />

^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •פ*



^HeRaCLeS^

^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •פ*


Skaty

Hi, sorry for wake up this post but i think i have issue about that.

i add a new theme to my site and i have a mod (alerts) using some css files, when i installed this mod to my new theme too, one of css files is not working. and one of feature of this mod is opening a popup box, but without this css popup is not opening. i have no idea this css file is not working, i installed it exactly the same way i did it before, all js and css files is in right place.

Can anyone has an idea about that ?

TheListener

Skaty

Rather than reopening an old post please start a fresh topic.

Advertisement: