Jump to content

Locate Active Skin Directory from Plug-In ...


Recommended Posts

Try $style = $GLOBALS['gui']->getStyle(); and $skin = $GLOBALS['gui']->getSkin(); returns the name of the folder of the skin.

However, the results are for the session in PHP in which is relative to the visitor, whether that be you or a customer. Which is to say, if the customer has chosen to view the site in a skin different than the default, or different than the skin you choose to view the site, the results will be different.

In the rare instance where there is more than one administration skin, $GLOBALS['config']->get('config','admin_skin') will have the folder name of the admin skin.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...