/** * Before main content * * @since biography 1.0.0 * * @param null * @return null * */ function biography_front_page() { if ('posts' == get_option('show_on_front')) { include get_home_template(); } elseif (1 == biography_if_all_disable()) { /** * homepage hook * @since Biography 1.0.0 * * @hooked biography_home_service - 10 * @hooked biography_home_review - 20 * @subhooked biography_home_testimonial 10 * @hooked biography_home_history - 30 */ do_action('homepage'); } else { include get_page_template(); } }
/** * add body class * * @since Biography 1.0.0 * * @param null * @return null * */ function biography_body_class($biography_body_classes) { if (!is_front_page() || is_front_page() && 1 != biography_if_all_disable()) { $biography_default_layout = biography_default_layout(); if (!empty($biography_default_layout)) { if ('left-sidebar' == $biography_default_layout) { $biography_body_classes[] = 'biography-left-sidebar'; } elseif ('right-sidebar' == $biography_default_layout) { $biography_body_classes[] = 'biography-right-sidebar'; } elseif ('no-sidebar' == $biography_default_layout) { $biography_body_classes[] = 'biography-no-sidebar'; } else { $biography_body_classes[] = 'biography-right-sidebar'; } } else { $biography_body_classes[] = 'biography-right-sidebar'; } } return $biography_body_classes; }