PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 2.5.0
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v2.5.0
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
blockspare / freemius / templates / plugin-info / screenshots.php

screenshots.php in BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites 2.5.0, at freemius/templates/plugin-info/screenshots.php

35 lines 906 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
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 ?>
30 <li>
31 <a href="<?php echo $url ?>" title="<?php echo esc_attr( sprintf( fs_text_inline( 'Click to view full-size screenshot %d', 'view-full-size-x', $plugin->slug ), $i ) ) ?>"><img src="<?php echo $url ?>"></a>
32 </li>
33 <?php $i ++; endforeach ?>
34 </ol>
35