Files
szkoleniauryzaj.pl/wp-content/plugins/password-protect-page/includes/views/misc/view-ppw-no-reload-page.php
2026-04-26 23:47:49 +02:00

26 lines
1.2 KiB
PHP

<?php
$no_reload_page = PPW_Constants::NO_RELOAD_PAGE;
$checked = ppw_core_get_setting_type_bool_by_option_name( $no_reload_page, PPW_Constants::MISC_OPTIONS ) ? 'checked' : '';
$message = array(
'label' => 'Unlock Protected Content without Page Refresh',
'description' => '<a target="_blank" rel="noreferrer noopener" href="https://passwordprotectwp.com/docs/unlock-password-protected-content-without-page-refresh/?utm_source=user-website&utm_medium=settings-advanced-tab&utm_campaign=ppwp-free">Use Ajax to display protected content</a> without having to reload the entire page. It will help improve user experience and avoid server caching after users enter their passwords.'
);
?>
<tr>
<td>
<label class="pda_switch" for="<?php echo esc_attr( $no_reload_page ); ?>">
<input type="checkbox"
id="<?php echo esc_attr( $no_reload_page ); ?>" <?php echo esc_attr( $checked ); ?>/>
<span class="pda-slider round"></span>
</label>
</td>
<td>
<p>
<label><?php echo esc_html__( $message['label'], $no_reload_page ); ?>
</label>
<?php echo __( $message['description'], $no_reload_page ) // phpcs:ignore -- There is no value to escape on description ?>
</p>
</td>
</tr>