| 1 |
<?php |
| 2 |
/** |
| 3 |
* Render layout settings for the Per-page lists in the content |
| 4 |
* |
| 5 |
* @var bool $list_layout_details value of the list_layout[details] option. |
| 6 |
* @var bool $is_pro_enabled whether the Pro version is enabled. |
| 7 |
*/ |
| 8 |
|
| 9 |
?> |
| 10 |
<div class="isc-settings-highlighted"> |
| 11 |
<label> |
| 12 |
<input type="checkbox" name="isc_options[list_layout][details]" value="1" <?php checked( $list_layout_details ); ?> <?php echo ! $is_pro_enabled ? 'disabled="disabled"' : ''; ?>/> |
| 13 |
<?php |
| 14 |
if ( ! $is_pro_enabled ) : |
| 15 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 16 |
echo ISC\Admin_Utils::get_pro_link( 'page-list-layout-details' ); |
| 17 |
endif; |
| 18 |
?> |
| 19 |
<?php |
| 20 |
esc_html_e( 'Expandable list', 'image-source-control-isc' ); |
| 21 |
?> |
| 22 |
</label> |
| 23 |
<p class="description"> |
| 24 |
<?php |
| 25 |
esc_html_e( 'Show as an expandable list that opens on click.', 'image-source-control-isc' ); |
| 26 |
?> |
| 27 |
</div> |
| 28 |
<?php |
| 29 |
|