PluginProbe
Image Source Control Lite – Show Image Credits and Captions / trunk
Image Source Control Lite – Show Image Credits and Captions vtrunk
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 / settings / plugin / modules.php

modules.php in Image Source Control Lite – Show Image Credits and Captions trunk, at admin/templates/settings/plugin/modules.php

51 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Render the Modules option for the Plugin options
4 *
5 * @var array $modules_options The options for the modules
6 * @var array $modules_options_selected The selected modules
7 */
8
9 // show a warning if no modules are selected
10 if ( empty( $modules_options_selected ) ) :
11 ?>
12 <div class="message error">
13 <p class="description">
14 <?php esc_html_e( 'No modules selected.', 'image-source-control-isc' ); ?>
15 </p>
16 </div>
17 <?php
18 endif;
19 ?>
20 <div id="isc-settings-plugin-modules" class="isc-settings-highlighted">
21 <?php
22 foreach ( $modules_options as $key => $_options ) :
23 $is_pro = ! empty( $_options['is_pro'] );
24 ?>
25 <label>
26 <input type="checkbox" name="isc_options[modules][]" value="<?php echo esc_attr( $key ); ?>"
27 <?php checked( in_array( $key, $modules_options_selected, true ) ); ?>
28 <?php echo $is_pro ? 'disabled="disabled" class="is-pro"' : ''; ?>
29 />
30 <?php
31 if ( $is_pro ) :
32 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
33 echo ISC\Admin_Utils::get_pro_link( 'plugin-modules-' . sanitize_title( $_options['label'] ) );
34 endif;
35 ?>
36 <?php echo isset( $_options['label'] ) ? esc_html( $_options['label'] ) : ''; ?>
37 </label><br/>
38 <?php
39 if ( isset( $_options['description'] ) ) :
40 ?>
41 <p class="description">
42 <?php
43 echo esc_html( $_options['description'] );
44 ?>
45 </p>
46 <?php
47 endif;
48 endforeach;
49 ?>
50 </div>
51