Skip to content

Commit

Permalink
#4077 Added in 1.0 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zabi09 committed Feb 10, 2020
1 parent 30b5862 commit 0221237
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/breadcrumb/breadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function amp_breadcrumb_output(){

// Build the breadcrums
echo '<ul id="' . esc_attr($breadcrums_id) . '" class="' . esc_attr($breadcrums_class) . '">';

$home_url = ampforwp_url_controller( get_home_url('', '/'), $home_non_amp );
$home_url = apply_filters('ampforwp_breadcrumbs_home_url',$home_url,$post->ID);
// Home page
echo '<li class="item-home"><a class="bread-link bread-home" href="' . ampforwp_url_controller( get_home_url('', '/'), $home_non_amp ) . '" title="' . esc_attr($home_title) . '">' . esc_html($home_title) . '</a></li>';

echo '<li class="item-home"><a class="bread-link bread-home" href="' . esc_url($home_url) . '" title="' . esc_attr($home_title) . '">' . esc_html($home_title) . '</a></li>';
if ( is_archive() && !is_tax() && !is_category() && !is_tag() && !is_author() ) {


Expand Down Expand Up @@ -135,6 +135,7 @@ function amp_breadcrumb_output(){
if(ampforwp_get_setting('ampforwp-archive-support-cat') == true && ampforwp_get_setting('ampforwp-archive-support') == true){
$cat_link = ampforwp_url_controller( $cat_link );
}
$cat_link = apply_filters('ampforwp_breadcrumbs_category_url', $cat_link,$post->ID);
$cat_display .= '<li class="item-cat item-cat-' . esc_attr($cat_id) . '"><a class="bread-cat bread-cat-' . esc_attr($cat_id) . ' bread-cat-' . $parents. '" href="'. esc_url($cat_link).'" title="' . esc_attr($parents) . '">' . esc_html($parents) . '</a></li>';
}
if(ampforwp_get_setting('ampforwp-bread-crumb-post')){
Expand Down

0 comments on commit 0221237

Please sign in to comment.