| @@ -352,8 +352,9 @@ | ||
| 352 | 352 | <th><?php fs_esc_html_echo_inline( 'Actions' ) ?></th> |
| 353 | 353 | </tr> |
| 354 | 354 | </thead> |
| 355 | 355 | <tbody> |
| 356 | + <?php $alternate = false; ?> | |
| 356 | 357 | <?php foreach ( $modules as $slug => $data ) : ?> |
| 357 | 358 | <?php |
| 358 | 359 | if ( WP_FS__MODULE_TYPE_THEME !== $module_type ) { |
| 359 | 360 | $is_active = is_plugin_active( $data->file ); |
| @@ -375,14 +376,14 @@ | ||
| 375 | 376 | |
| 376 | 377 | $active_modules_by_id[ $data->id ] = true; |
| 377 | 378 | } |
| 378 | 379 | ?> |
| 379 | - <tr<?php if ( $is_active ) { | |
| 380 | + <tr<?php if ( $alternate ) { echo ' class="alternate" '; } ?><?php if ( $is_active ) { | |
| 380 | 381 | $has_api_connectivity = $fs->has_api_connectivity(); |
| 381 | 382 | |
| 382 | 383 | if ( true === $has_api_connectivity && $fs->is_on() ) { |
| 383 | 384 | echo ' style="background: #E6FFE6; font-weight: bold"'; |
| 384 | - } else { | |
| 385 | + } else if ( false === $has_api_connectivity || ! $fs->is_on() ) { | |
| 385 | 386 | echo ' style="background: #ffd0d0; font-weight: bold"'; |
| 386 | 387 | } |
| 387 | 388 | } ?>> |
| 388 | 389 | <td><?php echo $data->id ?></td> |
| @@ -388,9 +389,9 @@ | ||
| 388 | 389 | <td><?php echo $data->id ?></td> |
| 389 | 390 | <td><?php echo $slug ?></td> |
| 390 | 391 | <td><?php echo $data->version ?></td> |
| 391 | 392 | <td><?php echo $data->title ?></td> |
| 392 | - <td<?php if ( $is_active && true !== $has_api_connectivity ) { | |
| 393 | + <td<?php if ( $is_active && false === $has_api_connectivity ) { | |
| 393 | 394 | echo ' style="color: red; text-transform: uppercase;"'; |
| 394 | 395 | } ?>><?php if ( $is_active ) { |
| 395 | 396 | echo esc_html( true === $has_api_connectivity ? |
| 396 | 397 | fs_text_x_inline( 'Connected', 'as connection was successful' ) : |
| @@ -395,9 +396,9 @@ | ||
| 395 | 396 | echo esc_html( true === $has_api_connectivity ? |
| 396 | 397 | fs_text_x_inline( 'Connected', 'as connection was successful' ) : |
| 397 | 398 | ( false === $has_api_connectivity ? |
| 398 | 399 | fs_text_x_inline( 'Blocked', 'as connection blocked' ) : |
| 399 | - fs_text_x_inline( 'Unknown', 'API connectivity state is unknown' ) ) | |
| 400 | + fs_text_x_inline( 'No requests yet', 'API connectivity state is unknown' ) ) | |
| 400 | 401 | ); |
| 401 | 402 | } ?></td> |
| 402 | 403 | <td<?php if ( $is_active && ! $fs->is_on() ) { |
| 403 | 404 | echo ' style="color: red; text-transform: uppercase;"'; |
| @@ -449,8 +450,9 @@ | ||
| 449 | 450 | <?php endif ?> |
| 450 | 451 | <?php endif ?> |
| 451 | 452 | </td> |
| 452 | 453 | </tr> |
| 454 | + <?php $alternate = ! $alternate ?> | |
| 453 | 455 | <?php endforeach ?> |
| 454 | 456 | </tbody> |
| 455 | 457 | </table> |
| 456 | 458 | <?php endif ?> |