Unverified Commit a7c09030 authored by Ammar Abdulhamid's avatar Ammar Abdulhamid Committed by GitHub
Browse files

Add hook handler

parent 6d54c5f2
......@@ -924,5 +924,13 @@ class TweekiHooks {
}
return true;
}
public static function onOutputPageBodyAttributes( $out, $sk, &$bodyAttrs ) {
if ( isset( $bodyAttrs['class'] ) && strlen( $bodyAttrs['class'] ) > 0 ) {
$bodyAttrs['class'] .= ' ' . implode( ' ', SkinTweeki::$bodyClasses );
} else {
$bodyAttrs['class'] = implode( ' ', SkinTweeki::$bodyClasses );
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment