| @@ -51,12 +51,17 @@ | ||
| 51 | 51 | </div> |
| 52 | 52 | <?php if ( ! empty( $plugin->info->screenshots ) ) : ?> |
| 53 | 53 | <?php $screenshots = $plugin->info->screenshots ?> |
| 54 | 54 | <div class="fs-screenshots clearfix"> |
| 55 | - <h3><?php fs_esc_html_echo_inline( 'Screenshots', 'screenshots', $plugin->slug ) ?></h3> | |
| 55 | + <h2><?php fs_esc_html_echo_inline( 'Screenshots', 'screenshots', $plugin->slug ) ?></h2> | |
| 56 | 56 | <ul> |
| 57 | 57 | <?php $i = 0; |
| 58 | 58 | foreach ( $screenshots as $s => $url ) : ?> |
| 59 | + <?php | |
| 60 | + // Relative URLs are replaced with WordPress.org base URL | |
| 61 | + // therefore we need to set absolute URLs. | |
| 62 | + $url = 'http' . ( WP_FS__IS_HTTPS ? 's' : '' ) . ':' . $url; | |
| 63 | + ?> | |
| 59 | 64 | <li class="<?php echo ( 0 === $i % 2 ) ? 'odd' : 'even' ?>"> |
| 60 | 65 | <style> |
| 61 | 66 | #section-description .fs-screenshots <?php echo ".fs-screenshot-{$i}" ?> |
| 62 | 67 | { |