Created
August 4, 2012 07:44
-
-
Save suin/3255616 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ChangeThemeByModule extends XCube_ActionFilter | |
{ | |
public function postFilter() | |
{ | |
$dirname = null; | |
if ( isset($this->mRoot->mContext->mModule->mXoopsModule) and is_object($this->mRoot->mContext->mModule->mXoopsModule) ) { | |
$dirname = $this->mRoot->mContext->mModule->mXoopsModule->get('dirname'); | |
} | |
if ( $dirname == 'message' ) { | |
$this->mRoot->mContext->setThemeName('special_theme'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment