Initial commit after correcting all Plugin Check errors - including renaming the plugin and all parameters, functions, etc

This commit is contained in:
2025-02-21 22:07:40 +01:00
commit fad1c6c3c6
7 changed files with 834 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<div class="wrap">
<?php settings_errors();?>
<form method="POST" action="options.php">
<?php settings_fields( 'out-of-office-for-woo' ); ?>
<?php do_settings_sections( 'out-of-office-for-woo' ); ?>
<?php submit_button( ); ?>
</form>
</div>
<?php
$ooo_woo_message = esc_attr(get_option( 'ooo_woo_message', '' ));
$ooo_woo_title = esc_attr(get_option( 'ooo_woo_title', '' ));
$ooo_woo_start_date = esc_attr(get_option( 'ooo_woo_start_date', '' ));
$ooo_woo_end_date = esc_attr(get_option( 'ooo_woo_end_date', '' ));
$ooo_woo_message_compiled = out_of_office_for_woo_include_dates_in_message($ooo_woo_start_date, $ooo_woo_end_date, $ooo_woo_message);
echo '<br>';
if (out_of_office_for_woo_is_active()) {
echo "Out of office is <b>ACTIVE</b>!";
} else {
echo "Out of office is <b>NOT</b> active!";
}
echo '<br>';
echo "The message will be displayed like this:";
echo '<br>';
?>
<table id="add-vacation_info" cellspacing="0" cellpadding="0" style="width: 100%; vertical-align: top; margin-bottom: 40px; margin-top: 20px; padding: 0; border= 2px solid black; border-collapse: collapse;">
<tr>
<td style="text-align: left; border: 0; padding: 0;" valign="top">
<hr>
<h2>
<?php echo esc_html( $ooo_woo_title) ; ?>
</h2>
<hr style="border: 0; border-top: 1px solid #8c8c8c; border-bottom: 1px solid #fff;">
<p>
<?php echo wp_kses_post(wpautop($ooo_woo_message_compiled) ) ; ?>
</p>
<hr style="border: 0; border-top: 1px solid #8c8c8c; border-bottom: 1px solid #fff;">
</td>
</tr>
</table>
<?php