Page 1 of 1

themeObject

Posted: Sat Sep 17, 2005 3:58 pm
by kishman155
For all who not know.

There are some images used in CMSMS.
If you want to use these images you could take this little codes it makes it easier;

first you need a variable it was set by whisy(thanks) in the header.php.

Code: Select all

$themeObject = $gCms->variables['admintheme'];
and then it's simple

Code: Select all

$image_true = $themeObject->DisplayImage('icons/system/true.gif', lang('true'),'','','systemicon');
        $image_false = $themeObject->DisplayImage('icons/system/false.gif', lang('false'),'','','systemicon');
        $image_edit = $themeObject->DisplayImage('icons/system/edit.gif', lang('edit'),'','','systemicon');
        $image_delete = $themeObject->DisplayImage('icons/system/delete.gif', lang('delete'),'','','systemicon');
with

Code: Select all

$themeObject->DisplayImage(
you are at
admin/themes/default/images/
and you could choose the images you like

and if you change the theme (not yet available)
then the images get changed too

i hope i could help with that

mfg
Kishman155