themeObject

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

themeObject

Post 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
Post Reply

Return to “Tips and Tricks”