PostNuke

Flexible Content Management System

News

different style.css

Contributed by Anonymous on Aug 02, 2001 - 10:27 AM




"As for you second problem try the following : to call a language dependant style.css you will need to modify your header.php and add the following code :












### at the top change :












global $index;












### to :












global $index, $lang, $newlang, $language;






if (isset($newlang)) {






$style = $newlang;






}






elseif (isset($lang)) {






$style = $lang;






}






else {






$style = $language;






}












### and then also in header.php change the line of the style link












echo " ";












### to :












echo " ";












That's all you need to edit but now you will need to create a folder for every language your site supports.






themes/NukeNews/english/style.css






themes/NukeNews/french/style.css






themes/NukeNews/dutch/style.css












Make sure the names of those folders correspond to the names in the language files.


















OR another way is e.g. to leave the style folder as is and add language.css files in it.












echo " ";






themes/NukeNews/style/english.css






themes/NukeNews/style/french.css






themes/NukeNews/style/dutch.css"












also ppl. please change locale to locale translation for dates to ._NukeLike_ translation(maybe small date.js file will do this?).
891