= 1 && ! empty ( $post_excerpt ) ); } /** * A helper conditional function. * Theme has Read More Label or Not * * @return bool */ function anther_has_read_more_label() { // Read More Label $read_more_label = anther_mod( 'anther_read_more_label' ); /** * Read More Label Filter * @return bool */ return apply_filters( 'anther_has_read_more_label', (bool) ! empty ( $read_more_label ) ); } /** * A helper conditional function. * Theme has Sidebar or Not * * @return bool */ function anther_has_sidebar() { /** * Sidebar Filter * @return bool */ return apply_filters( 'anther_has_sidebar', (bool) is_active_sidebar( 'sidebar-1' ) ); } /** * A helper conditional function. * Theme has Front Page or Not * * @see https://developer.wordpress.org/reference/functions/is_home/ * @return bool */ function anther_has_front_page() { /** * Featured Content Filter * @return bool */ return apply_filters( 'anther_has_front_page', (bool) ( is_front_page() || is_home() ) ); } /** * A helper conditional function. * Theme has Site Hero slot or Not * * @return bool */ function anther_has_site_hero_slot() { /** * Site Hero Slot Filter * @return bool */ return apply_filters( 'anther_has_site_hero_slot', (bool) ( is_singular() && ! is_attachment() && ! anther_has_front_page() ) ); }