@@ 323-339 (lines=17) @@ | ||
320 | $new_crumbs = array(); |
|
321 | $new_crumbs[0] = $crumbs[0]; |
|
322 | ||
323 | if ( function_exists( 'woocommerce_breadcrumb' ) ) { |
|
324 | $new_crumbs[1] = array( |
|
325 | 0 => __( 'All Courses', 'lsx' ), |
|
326 | 1 => $course_page_url, |
|
327 | ); |
|
328 | $new_crumbs[2] = array( |
|
329 | 0 => $lesson, |
|
330 | ); |
|
331 | } else { |
|
332 | $new_crumbs[1] = array( |
|
333 | 'text' => __( 'All Courses', 'lsx' ), |
|
334 | 'url' => $course_page_url, |
|
335 | ); |
|
336 | $new_crumbs[2] = array( |
|
337 | 'text' => $lesson, |
|
338 | ); |
|
339 | } |
|
340 | $crumbs = $new_crumbs; |
|
341 | } |
|
342 | } |
|
@@ 430-446 (lines=17) @@ | ||
427 | $new_crumbs = array(); |
|
428 | $new_crumbs[0] = $crumbs[0]; |
|
429 | ||
430 | if ( function_exists( 'woocommerce_breadcrumb' ) ) { |
|
431 | $new_crumbs[1] = array( |
|
432 | 0 => __( 'Courses', 'lsx' ), |
|
433 | 1 => $course_page_url, |
|
434 | ); |
|
435 | $new_crumbs[2] = array( |
|
436 | 0 => $lesson, |
|
437 | ); |
|
438 | } else { |
|
439 | $new_crumbs[1] = array( |
|
440 | 'text' => __( 'Courses', 'lsx' ), |
|
441 | 'url' => $course_page_url, |
|
442 | ); |
|
443 | $new_crumbs[2] = array( |
|
444 | 'text' => $lesson, |
|
445 | ); |
|
446 | } |
|
447 | $crumbs = $new_crumbs; |
|
448 | } |
|
449 | return $crumbs; |