PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 3.12.0
Image Source Control Lite – Show Image Credits and Captions v3.12.0
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
image-source-control-isc / admin / templates / sources / storage.php

storage.php in Image Source Control Lite – Show Image Credits and Captions 3.12.0, at admin/templates/sources/storage.php

32 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Render the Debug section on the ISC Tools page
4 *
5 * @var integer $storage_size size of the storage
6 */
7
8 ?>
9 <p class="description"><?php esc_html_e( 'ISC keeps an internal index of image URLs and IDs from the media library to limit the number of database requests in the frontend.', 'image-source-control-isc' ); ?>
10 <br/><?php esc_html_e( 'Click the button above to clear that index.', 'image-source-control-isc' ); ?>
11 <a href="<?php echo esc_url( ISC\Admin_Utils::get_manual_url( 'tools-clear-index' ) ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'Manual', 'image-source-control-isc' ); ?></a>
12 </p>
13 <p>
14 <?php
15 printf(
16 // translators: %d is the number of images in storage
17 esc_html__( '%d images in storage', 'image-source-control-isc' ),
18 (int) $storage_size
19 );
20 ?>
21 </p>
22 <button id="isc-clear-storage" class="button button-secondary"><?php esc_html_e( 'clear storage', 'image-source-control-isc' ); ?></button>
23 <div id="isc-clear-storage-feedback"></div>
24 <?php
25 // show the button to list the storage content
26 if ( $storage_size > 0 ) :
27 ?>
28 <br/>
29 <button id="isc-show-storage" class="button button-secondary"><?php esc_html_e( 'show storage', 'image-source-control-isc' ); ?></button>
30 <pre id="isc-show-storage-output"></pre>
31 <?php
32 endif; ?>