/** * Adjust the content width. * * @since 1.0.0 */ function shrake_content_width() { global $content_width; if (shrake_is_full_width()) { $content_width = 1280; } }
/** * Add custom classes to the array of body classes. * * @since 1.0.0 * * @param array $classes Classes for the body element. * @return array */ function shrake_body_classes($classes) { if (is_singular('post')) { $classes[] = 'layout-side-content'; } if (shrake_is_full_width()) { $classes[] = 'layout-full'; } if (is_home() || is_archive() || is_search() || is_page_template('templates/archive-list.php')) { $classes[] = 'layout-list'; } if (is_multi_author()) { $classes[] = 'group-blog'; } return array_unique($classes); }