@@ 169-179 (lines=11) @@ | ||
166 | $new_crumbs = array(); |
|
167 | $new_crumbs[0] = $crumbs[0]; |
|
168 | ||
169 | if ( function_exists( 'woocommerce_breadcrumb' ) ) { |
|
170 | $new_crumbs[1] = array( |
|
171 | 0 => __( 'Events', 'lsx' ), |
|
172 | 1 => get_post_type_archive_link( 'tribe_events' ), |
|
173 | ); |
|
174 | } else { |
|
175 | $new_crumbs[1] = array( |
|
176 | 'text' => __( 'Events', 'lsx' ), |
|
177 | 'url' => get_post_type_archive_link( 'tribe_events' ), |
|
178 | ); |
|
179 | } |
|
180 | ||
181 | if ( tribe_is_community_my_events_page() ) { |
|
182 | $new_crumbs[2] = $crumbs[2]; |
|
@@ 185-195 (lines=11) @@ | ||
182 | $new_crumbs[2] = $crumbs[2]; |
|
183 | } elseif ( tribe_is_community_edit_event_page() ) { |
|
184 | ||
185 | if ( function_exists( 'woocommerce_breadcrumb' ) ) { |
|
186 | $new_crumbs[2] = array( |
|
187 | 0 => apply_filters( 'tribe_ce_submit_event_page_title', __( 'My Events', 'lsx' ) ), |
|
188 | 1 => tribe_community_events_list_events_link(), |
|
189 | ); |
|
190 | } else { |
|
191 | $new_crumbs[2] = array( |
|
192 | 'text' => apply_filters( 'tribe_ce_submit_event_page_title', __( 'My Events', 'lsx' ) ), |
|
193 | 'url' => tribe_community_events_list_events_link(), |
|
194 | ); |
|
195 | } |
|
196 | ||
197 | $new_crumbs[3] = $crumbs[2]; |
|
198 | } else { |