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

78 lines
2.7 KiB
PHP

<form class="ppw_main_container" id="wp_protect_password_general_form">
<input type="hidden" id="ppw_general_form_nonce"
value="<?php echo esc_attr( wp_create_nonce( PPW_Constants::GENERAL_FORM_NONCE ) ); ?>"/>
<table class="ppwp_settings_table" cellpadding="4">
<tr id="pda-password-protection">
<td colspan="2">
<h3><?php echo esc_html__( 'PASSWORD PROTECTION', 'password-protect-page' ); ?></h3>
</td>
</tr>
<?php
include PPW_DIR_PATH . 'includes/views/general/view-ppw-custom-column-permission.php';
include PPW_DIR_PATH . 'includes/views/general/view-ppw-expired-cookie.php';
include PPW_DIR_PATH . 'includes/views/general/view-ppw-whitelist-roles.php';
include PPW_DIR_PATH . 'includes/views/general/view-ppw-auto-protect-child-page.php';
// include PPW_DIR_PATH . 'includes/views/general/view-ppw-protect-private-pages.php';
include PPW_DIR_PATH . 'includes/views/general/view-ppw-hide-protected-post.php';
?>
<tr>
<td colspan="2">
<hr>
</td>
</tr>
<tr id="wpp-password-form">
<td colspan="2">
<h3><?php echo esc_html__( 'PASSWORD FORM CUSTOMIZATION', 'password-protect-page' ); ?></h3>
</td>
</tr>
<tr>
<td class="feature-input"><span class="feature-input"></span></td>
<td>
<?php
$link_error_message = sprintf(
'<a target="_blank" rel="noopener" href="%s">error message & password form</a>',
'https://passwordprotectwp.com/customize-password-form-wordpress-customizer/?utm_source=user-website&utm_medium=settings-general-tab&utm_campaign=ppwp-free'
);
$link_customizer = sprintf(
'<a target="_blank" rel="noopener" href="%s">WordPress Customizer</a>',
'customize.php?autofocus[panel]=ppwp'
);
$form_message = sprintf(
// translators: %s: Link to documentation.
esc_html__( 'Customize the default %1$s including headline, description and button under %2$s.', 'password-protect-page' ),
$link_error_message,
$link_customizer
);
?>
<?php echo wp_kses_post( $form_message ); ?>
</td>
</tr>
<?php
// include PPW_DIR_PATH . 'includes/views/general/view-ppw-form-message.php';
// include PPW_DIR_PATH . 'includes/views/general/view-ppw-error-message.php';
?>
<tr>
<td colspan="2">
<hr>
</td>
</tr>
<tr id="wpp-password-form">
<td colspan="2">
<h3><?php echo esc_html__( 'ADVANCED OPTIONS', 'password-protect-page' ); ?></h3>
</td>
</tr>
<?php
include PPW_DIR_PATH . 'includes/views/general/view-ppw-remove-search-engine.php';
include PPW_DIR_PATH . 'includes/views/general/view-ppw-remove-data.php';
?>
</table>
<?php
submit_button();
?>
<table class="ppwp_settings_table" cellpadding="4">
<?php
include PPW_DIR_PATH . 'includes/views/general/view-ppw-notices-cache.php';
?>
</table>
</form>