' . sprintf( /* translators: Paginated content title suffix. %d: page number. */ esc_html__( '(page %d)', 'michelle' ), number_format_i18n( $paginated ) ) . ''; } // Output return $output; } // /get_paged_info /** * Do we need to display primary title? * * Used to enable/disable `#primary` section H1 title. * * @since 1.0.0 * * @param mixed $body_classes Optional forced array of body classes when using the method within `body_class` hook. * * @return bool */ public static function show_primary_title( $body_classes = array() ): bool { // Variables $is_blog_homepage = is_front_page() && is_home(); $has_no_intro_body_class = stripos( implode( ' ', Body_Class::get_body_class( $body_classes ) ), '-no-intro' ); // Output /** * Whether to show content primary title. * * @since 1.0.0 * * @param bool $show Default: ! $is_blog_homepage && ! $has_no_intro_body_class. */ return (bool) apply_filters( 'michelle/content/show_primary_title', ! $is_blog_homepage && ! $has_no_intro_body_class ); } // /show_primary_title }