%s', __( 'Homepage', 'agama' ) ); $output = ''; self::html_markup( $h1, $output ); } /** * Is Single or Is Page * * @since 1.2.9 */ private static function is_single_or_page() { global $post; $h1 = sprintf( '

%s

', $post->post_title ); $output = sprintf( '
  • %s
  • ', $post->post_title ); self::html_markup( $h1, $output ); } /** * Is Category * * @since 1.2.9 */ private static function is_category() { $span = ''; if( category_description() ) { $cat_desc = strip_tags( category_description() ); $span = sprintf( '%s', $cat_desc ); } $category = get_the_category(); $cat_ID = $category[0]->cat_ID; $h1 = sprintf( '

    %s

    ', single_cat_title( '', false ) ) . $span; $output = sprintf( '
  • %s
  • ', single_cat_title( '', false ) ); self::html_markup( $h1, $output ); } /** * Is Tag * * @since 1.2.9 */ private static function is_tag() { $h1 = sprintf( '

    %s

    ', __( 'Tag', 'agama' ) ); $output = sprintf( '
  • %s
  • ', single_tag_title('', false) ); self::html_markup( $h1, $output ); } /** * Is Search * * @since 1.2.9 */ private static function is_search() { $h1 = sprintf( '

    %s

    ', __( 'Search', 'agama' ) ); $output = sprintf( '
  • %s
  • ', __( 'Search', 'agama' ) ); self::html_markup( $h1, $output ); } /** * Is Shop * * @since 1.2.9 */ private static function is_shop() { $h1 = sprintf( '

    %s

    ', __( 'Shop', 'agama' ) ); $output = sprintf( '
  • %s
  • ', __( 'Shop', 'agama' ) ); self::html_markup( $h1, $output ); } /** * Is Archive * * @since 1.2.9 */ private static function is_archive() { $span = ''; if ( is_day() ) : $h1 = sprintf( '

    %s

    %s', __( 'Daily Archives', 'agama' ), get_the_date() ); $output = sprintf( '
  • %s
  • ', __( 'Daily Archives', 'agama' ) ); elseif ( is_month() ) : $h1 = sprintf( '

    %s

    %s', __( 'Monthly Archives', 'agama' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'agama' ) ) ); $output = sprintf( '
  • %s
  • ', __( 'Monthly Archives', 'agama' ) ); elseif ( is_year() ) : $h1 = sprintf( '

    %s

    %s', __( 'Yearly Archives', 'agama' ), get_the_date( _x( 'Y', 'yearly archives date format', 'agama' ) ) ); $output = sprintf( '
  • %s
  • ', __( 'Yearly Archives', 'agama' ) ); else : $h1 = __( 'Archives', 'agama' ); $output = sprintf( '
  • %s
  • ', __( 'Archives', 'agama' ) ); endif; self::html_markup( $h1, $output ); } /** * Is 404 * * @since 1.2.9 */ private static function is_404() { $h1 = sprintf( '

    %s

    %s', '404', __( 'Page not Found', 'agama' ) ); $output = sprintf( '
  • %s
  • ', __( 'Page not Found', 'agama' ) ); self::html_markup( $h1, $output ); } /** * HTML Markup * * @since 1.2.9 */ private static function html_markup( $heading = false, $title = false ) { $enabled = esc_attr( get_theme_mod( 'agama_breadcrumb', true ) ); $on_homepage = esc_attr( get_theme_mod( 'agama_breadcrumb_homepage', true ) ); $style = get_theme_mod( 'agama_breadcrumb_style', 'mini' ) == 'mini' ? ' class="'. esc_attr( 'page-title-mini' ) .'"' : ''; if( ! $on_homepage && is_home() || ! $on_homepage && is_front_page() ) { $enabled = false; } if( $enabled ) { echo ''; echo '
    '; echo '
    '; echo $heading; echo ''; echo '
    '; echo '
    '; } } } /* Omit closing PHP tag to avoid "Headers already sent" issues. */