PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 3.11.0
Image Source Control Lite – Show Image Credits and Captions v3.11.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 / settings / caption / style.php

style.php in Image Source Control Lite – Show Image Credits and Captions 3.11.0, at admin/templates/settings/caption/style.php

49 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Render the caption style setting
4 *
5 * @var array $caption_style Caption style
6 * @var array $caption_style_options Available caption style options
7 */
8
9 ?>
10 <div class="isc-settings-highlighted" id="isc-settings-caption-style">
11 <?php
12 foreach ( $caption_style_options as $_key => $style_options ) :
13 $value = $style_options['value'] ?? '';
14 $is_pro = ! empty( $style_options['is_pro'] );
15 ?>
16 <label>
17 <input type="radio" name="isc_options[caption_style]" value="<?php echo esc_attr( $value ); ?>"
18 <?php checked( $caption_style, $value ); ?>
19 <?php echo $is_pro ? 'disabled="disabled" class="is-pro"' : ''; ?>
20 />
21 <?php
22 if ( $is_pro ) :
23 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
24 echo ISC\Admin_Utils::get_pro_link( 'overlay-' . esc_html( $style_options['label'] ) );
25 endif;
26 ?>
27 <?php echo isset( $style_options['label'] ) ? esc_html( $style_options['label'] ) : ''; ?>
28 </label>
29 <?php
30 if ( isset( $style_options['description'] ) ) :
31 ?>
32 <p class="description">
33 <?php
34 echo wp_kses(
35 $style_options['description'],
36 [
37 'code' => [],
38 ]
39 );
40 ?>
41 </p>
42 <?php
43 else :
44 echo '<br>';
45 endif;
46 ?>
47 <?php endforeach; ?>
48 <p><a href="<?php echo esc_url( ISC\Admin_Utils::get_isc_localized_website_url( 'documentation/customizations/#isc_overlay_html_source', 'dokumentation/anpassungen/#isc_overlay_html_source', 'overlay-layout' ) ); ?>" target="_blank"><?php esc_html_e( 'Manual', 'image-source-control-isc' ); ?></a></p>
49 </div>