|
@@ 338-343 (lines=6) @@
|
| 335 |
|
|
| 336 |
|
$branch_class = 'branch-card'; |
| 337 |
|
list( $current_branch, $current_section ) = Jetpack_Beta::get_branch_and_section(); |
| 338 |
|
if ( $current_branch === $branch_key && $current_section === $section ) { |
| 339 |
|
$action = __( 'Active', 'jetpack-beta' ); |
| 340 |
|
$branch_class = 'branch-card-active'; |
| 341 |
|
} else { |
| 342 |
|
$action = self::activate_button( $branch_key, $section ); |
| 343 |
|
} |
| 344 |
|
$header = str_replace( '-', ' ', $header ); |
| 345 |
|
$header = str_replace( '_', ' / ', $header ); |
| 346 |
|
?> |
|
@@ 387-392 (lines=6) @@
|
| 384 |
|
|
| 385 |
|
$class_name = 'tag-card'; |
| 386 |
|
list( $current_branch, $current_section ) = Jetpack_Beta::get_branch_and_section(); |
| 387 |
|
if ( $current_branch === $tag && $current_section === $section ) { |
| 388 |
|
$action = __( 'Active', 'jetpack-beta' ); |
| 389 |
|
$class_name = 'tag-card-active'; |
| 390 |
|
} else { |
| 391 |
|
$action = self::activate_button( $tag, $section ); |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
$header = str_replace( '-', ' ', $header ); |
| 395 |
|
$header = str_replace( '_', ' / ', $header ); |