diff options
Diffstat (limited to 'Toha.skin.php')
-rw-r--r-- | Toha.skin.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Toha.skin.php b/Toha.skin.php index 26a7ea6..e4cb89a 100644 --- a/Toha.skin.php +++ b/Toha.skin.php @@ -18,7 +18,7 @@ class SkinToha extends SkinTemplate { $template = 'TohaTemplate', $useHeadElement = true; /** - * initialize the page + * Initialize the page */ public function initPage( OutputPage $out ) { parent::initPage( $out ); @@ -40,7 +40,7 @@ class SkinToha extends SkinTemplate { } /** - * initialize various variables and generate the template + * Initialize various variables and generate the template * * @since 1.23 * @return QuickTemplate The template to be executed by outputPage @@ -53,6 +53,22 @@ class SkinToha extends SkinTemplate { } + /** + * Override the creation of the "<body>" tag to add attributes. + * + * @param Title $title + */ + function getPageClasses( $title ) { + + $list = parent::getPageClasses( $title ); + + if ( $title->isMainPage() ) + $list .= ' main_page'; + + return $list; + + } + } /** |