Using Javascript to apply 'alternative' css style for fonts

Using Javascript to apply 'alternative' css style for fonts

di corcoran _ -
Numero di risposte: 3

hello you crazy moodling cats.

 

 

*chuckle*

anyhow - I'm quite keen to re-model my moodle with a seperate stylesheet, using the time-honour 'alt' to apply to a different stylesheet (one that will make everything much bigger for 1280/1024 res. screens).

I'm seeing at the top of each page that the style sheets are driven by styles.php within each theme-set (in my case i have:

<link rel="stylesheet" type="text/css" href="/standard/styles.php" />
<link rel="stylesheet" type="text/css" href="/bdstheme/styles.php" />

(with full URLs removed to protect the innocent))

Can anyone help me set an alternative set of style-sheets, as obviously this needs coding into the php on every applicable page!

 

anyone with no idea what i'm talking about should bow before ALA: http://alistapart.com/stories/alternate/ (more info here too).

 

anyone, anyone? sorridente

 

moi.

Media dei voti:  -
In riposta a corcoran _

Re: Using Javascript to apply 'alternative' css style for fonts

di Tim Hunt -
Immagine Core developers Immagine Documentation writers Immagine Particularly helpful Moodlers Immagine Peer reviewers Immagine Plugin developers
You need to look in /theme/whatever/header.html
In riposta a Tim Hunt

Re: Using Javascript to apply 'alternative' css style for fonts

di corcoran _ -
meh hmmmm... looked in there but no references in the <head> to any css or styles.php..
In riposta a corcoran _

Re: Using Javascript to apply 'alternative' css style for fonts

di Tim Hunt -
Immagine Core developers Immagine Documentation writers Immagine Particularly helpful Moodlers Immagine Peer reviewers Immagine Plugin developers
Actually, they get added to the $meta variable in print_header in lib/weblib.php

/// Add the required stylesheets
    $stylesheetshtml = '';
    foreach ($CFG->stylesheets as $stylesheet) {
        $stylesheetshtml .= '<link rel="stylesheet" type="text/css" href="'.$stylesheet.'" />'."\n";
    }
    $meta = $stylesheetshtml.$meta;