Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Alternate Icon Set: Difference between revisions

From MoodleDocs
m Text replacement - "<code>" to "<syntaxhighlight lang="php">"
m Text replacement - "</code>" to "</syntaxhighlight>"
 
Line 7: Line 7:
To use the alternate icon set
To use the alternate icon set


#Amend <syntaxhighlight lang="php">$THEME->custompix = false;</code> to <syntaxhighlight lang="php">$THEME->custompix = true;</code> in ''theme/yourtheme/config.php''  
#Amend <syntaxhighlight lang="php">$THEME->custompix = false;</syntaxhighlight> to <syntaxhighlight lang="php">$THEME->custompix = true;</syntaxhighlight> in ''theme/yourtheme/config.php''  


#Copy the pix directory to the theme folder
#Copy the pix directory to the theme folder

Latest revision as of 13:09, 14 July 2021

Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.

An alternate icon set may be used with any Moodle theme.

An icon set consists of a pix directory containing copies of all files from the moodle/pix directory plus a pix/mod directory containing all activity module icons.

To use the alternate icon set

  1. Amend
    $THEME->custompix = false;
    
    to
    $THEME->custompix = true;
    
    in theme/yourtheme/config.php
  1. Copy the pix directory to the theme folder

That is, in order to use an alternate icon set associated to a specific theme, you need to make a whole tree of icons in the pix subdirectory of the theme. Your pix folder will look like the example below, probably with some more theme-specific pictures included:

yourtheme/
-- pix/
-- -- c/
-- -- f/
-- -- g/
-- -- i/
-- -- m/
-- -- mod/
-- -- nuvolaLicense/
-- -- s/
-- -- t/
-- -- u/
-- -- b.gif
-- -- help.gif
-- -- madewithmoodle.gif
-- -- moodlelogo.gif
-- -- moodlelogo-med.gif
-- -- movehere.gif
-- -- spacer.gif
-- -- webding.gif
-- -- webding.png
-- -- some_more.gif
-- -- theme_specific.jpg
-- -- pictures.png

See also