'',// code before the breadcrumb section 'after' => '', // code after the breadcrumb section 'showCurrent'=> 1,// 1 - show current post/page title in breadcrumbs, 0 - don't show //'echo' => true, 'linkBefore' => '', 'linkAfter' => '', ); $atts = wp_parse_args( $atts, $defaults ); $content= $atts['before']; $catch_breadcrumb_options = catch_breadcrumb_get_options(); if ( $catch_breadcrumb_options['breadcrumb_separator'] ) { $catch_breadcrumb_options['breadcrumb_separator'] = '' . $catch_breadcrumb_options['breadcrumb_separator'] . ''; } /* === OPTIONS === */ $text['home'] = esc_html__( 'Home', 'catch-breadcrumb' ); // text for the 'Home' link /* translators: 1: before text/html, 2: after text/html. */ $text['category'] = esc_html__( '%1$s Archive for %2$s', 'catch-breadcrumb' ); // text for a category page /* translators: 1: before text/html, 2: after text/html. */ $text['search'] = esc_html__( '%1$sSearch results for: %2$s', 'catch-breadcrumb' ); // text for a search results page /* translators: 1: before text/html, 2: after text/html. */ $text['tag'] = esc_html__( '%1$sPosts tagged %2$s', 'catch-breadcrumb' ); // text for a tag page /* translators: 1: before text/html, 2: after text/html. */ $text['author'] = esc_html__( '%1$sView all posts by %2$s', 'catch-breadcrumb' ); // text for an author page $text['404'] = esc_html__( 'Error 404', 'catch-breadcrumb' ); // text for the 404 page /* === END OF OPTIONS === */ global $post, $paged, $page; $homeLink = home_url( '/' ); $style = ''; if( $style ){ echo ''; } $linkAttr = ' rel="v:url" property="v:title"'; $home_icon = ''; if ( $catch_breadcrumb_options['breadcrumb_home_icon'] ){ $home_icon = ''; } $link_home = $atts['linkBefore'] . ''. $home_icon . '%2$s' . wp_kses_post( $catch_breadcrumb_options['breadcrumb_separator'] ) . $atts['linkAfter']; $link = $atts['linkBefore'] . '' . '%2$s' . wp_kses_post( $catch_breadcrumb_options['breadcrumb_separator'] ) . $atts['linkAfter']; if ( is_front_page() ) { if ( $catch_breadcrumb_options['breadcrumb_display_home'] ) { echo ' ';$atts['linkAfter']; } } else { echo ''; } } } new Catch_Breadcrumb_Shortcode();