static function pageBodyClass($classes) { if (self::$query->is_single()) { $template = CMA_Settings::getThreadPageTemplate(); } else { $template = CMA_Settings::getIndexPageTemplate(); } $classes[] = 'page'; $classes[] = 'page-template'; $classes[] = 'page-template-' . sanitize_html_class(str_replace('.', '-', $template)); if (stripos($template, 'full-width') !== false) { $classes[] = 'full-width'; } return $classes; }