description.php
9 years ago
features.php
9 years ago
index.php
9 years ago
screenshots.php
9 years ago
screenshots.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package Freemius |
| 4 | * @copyright Copyright (c) 2015, Freemius, Inc. |
| 5 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 6 | * @since 1.0.6 |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * @var array $VARS |
| 15 | * |
| 16 | * @var FS_Plugin $plugin |
| 17 | */ |
| 18 | $plugin = $VARS['plugin']; |
| 19 | |
| 20 | $screenshots = $VARS['screenshots']; |
| 21 | ?> |
| 22 | <ol> |
| 23 | <?php $i = 0; |
| 24 | foreach ( $screenshots as $s => $url ) : ?> |
| 25 | <?php |
| 26 | // Relative URLs are replaced with WordPress.org base URL |
| 27 | // therefore we need to set absolute URLs. |
| 28 | $url = 'http' . ( WP_FS__IS_HTTPS ? 's' : '' ) . ':' . $url; ?> |
| 29 | <li> |
| 30 | <a href="<?php echo $url ?>" |
| 31 | title="<?php printf( __fs( 'view-full-size-x', $plugin->slug ), $i ) ?>"><img |
| 32 | src="<?php echo $url ?>"></a> |
| 33 | </li> |
| 34 | <?php $i ++; endforeach ?> |
| 35 | </ol> |
| 36 |