@@ 146-156 (lines=11) @@ | ||
143 | $new_crumbs = array(); |
|
144 | $new_crumbs[0] = $crumbs[0]; |
|
145 | ||
146 | if ( function_exists( 'woocommerce_breadcrumb' ) ) { |
|
147 | $new_crumbs[1] = array( |
|
148 | 0 => __( 'Events', 'lsx' ), |
|
149 | 1 => get_post_type_archive_link( 'tribe_events' ), |
|
150 | ); |
|
151 | } else { |
|
152 | $new_crumbs[1] = array( |
|
153 | 'text' => __( 'Events', 'lsx' ), |
|
154 | 'url' => get_post_type_archive_link( 'tribe_events' ), |
|
155 | ); |
|
156 | } |
|
157 | ||
158 | if ( tribe_is_community_my_events_page() ) { |
|
159 | $new_crumbs[2] = $crumbs[2]; |
|
@@ 162-172 (lines=11) @@ | ||
159 | $new_crumbs[2] = $crumbs[2]; |
|
160 | } else if ( tribe_is_community_edit_event_page() ) { |
|
161 | ||
162 | if ( function_exists( 'woocommerce_breadcrumb' ) ) { |
|
163 | $new_crumbs[2] = array( |
|
164 | 0 => apply_filters( 'tribe_ce_submit_event_page_title', __( 'My Events', 'lsx' ) ), |
|
165 | 1 => tribe_community_events_list_events_link( ), |
|
166 | ); |
|
167 | } else { |
|
168 | $new_crumbs[2] = array( |
|
169 | 'text' => apply_filters( 'tribe_ce_submit_event_page_title', __( 'My Events', 'lsx' ) ), |
|
170 | 'url' => tribe_community_events_list_events_link( ), |
|
171 | ); |
|
172 | } |
|
173 | ||
174 | $new_crumbs[3] = $crumbs[2]; |
|
175 | } else { |