@@ 356-361 (lines=6) @@ | ||
353 | ||
354 | $branch_class = 'branch-card'; |
|
355 | list( $current_branch, $current_section ) = Jetpack_Beta::get_branch_and_section(); |
|
356 | if ( $current_branch === $branch_key && $current_section === $section ) { |
|
357 | $action = __( 'Active', 'jetpack-beta' ); |
|
358 | $branch_class = 'branch-card-active'; |
|
359 | } else { |
|
360 | $action = self::activate_button( $branch_key, $section ); |
|
361 | } |
|
362 | $header = str_replace( '-', ' ', $header ); |
|
363 | $header = str_replace( '_', ' / ', $header ); |
|
364 | ?> |
|
@@ 405-410 (lines=6) @@ | ||
402 | ||
403 | $class_name = 'tag-card'; |
|
404 | list( $current_branch, $current_section ) = Jetpack_Beta::get_branch_and_section(); |
|
405 | if ( $current_branch === $tag && $current_section === $section ) { |
|
406 | $action = __( 'Active', 'jetpack-beta' ); |
|
407 | $class_name = 'tag-card-active'; |
|
408 | } else { |
|
409 | $action = self::activate_button( $tag, $section ); |
|
410 | } |
|
411 | ||
412 | $header = str_replace( '-', ' ', $header ); |
|
413 | $header = str_replace( '_', ' / ', $header ); |