| 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> |