| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package Freemius |
| 4 | 4 | * @copyright Copyright (c) 2015, Freemius, Inc. |
| 5 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| 5 | + * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 | |
| 6 | 6 | * @since 1.0.6 |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | <?php for ( $i = 0; $i < 3; $i ++ ) : ?> |
| 27 | 27 | <?php if ( ! empty( $plugin->info->{'selling_point_' . $i} ) ) : ?> |
| 28 | 28 | <li><i class="dashicons dashicons-yes"></i> |
| 29 | 29 | |
| 30 | - <h3><?php echo $plugin->info->{'selling_point_' . $i} ?></h3></li> | |
| 30 | + <h3><?php echo esc_html( $plugin->info->{'selling_point_' . $i} ) ?></h3></li> | |
| 31 | 31 | <?php endif ?> |
| 32 | 32 | <?php endfor ?> |
| 33 | 33 | </ul> |
| 34 | 34 | </div> |
| @@ -51,16 +51,12 @@ | ||
| 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 | - <h2><?php fs_echo( 'screenshots', $plugin->slug ) ?></h2> | |
| 55 | + <h3><?php fs_esc_html_echo_inline( 'Screenshots', 'screenshots', $plugin->slug ) ?></h3> | |
| 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 | <li class="<?php echo ( 0 === $i % 2 ) ? 'odd' : 'even' ?>"> |
| 64 | 60 | <style> |
| 65 | 61 | #section-description .fs-screenshots <?php echo ".fs-screenshot-{$i}" ?> |
| 66 | 62 | { |
| @@ -67,9 +63,9 @@ | ||
| 67 | 63 | background-image: url('<?php echo $url ?>'); |
| 68 | 64 | } |
| 69 | 65 | </style> |
| 70 | 66 | <a href="<?php echo $url ?>" |
| 71 | - title="<?php printf( fs_text( 'view-full-size-x', $plugin->slug ), $i ) ?>" | |
| 67 | + title="<?php echo esc_attr( sprintf( fs_text_inline( 'Click to view full-size screenshot %d', 'view-full-size-x', $plugin->slug ), $i ) ) ?>" | |
| 72 | 68 | class="fs-screenshot-<?php echo $i ?>"></a> |
| 73 | 69 | </li> |
| 74 | 70 | <?php $i ++; endforeach ?> |
| 75 | 71 | </ul> |