n $input;
}
// render email to customer message (approve)
public function render_email_customer_approve_message()
{
$value = get_option( 'wbk_email_customer_approve_message', '
Your appointment bookin on #appointment_day at #appointment_time has been approved.
' );
$args = array(
'media_buttons' => false,
'editor_height' => 300,
);
echo '' . __( 'Toggle editor', 'wbk' ) . ' ' ;
wp_editor( $value, 'wbk_email_customer_approve_message', $args );
echo '
' ;
}
// validate email to customer message (approve)
public function validate_email_customer_approve_message( $input )
{
return $input;
}
// render customer email subject (on booking)
public function render_email_customer_book_subject()
{
$value = get_option( 'wbk_email_customer_book_subject' );
$value = sanitize_text_field( $value );
$html = ' ';
$html .= '' . __( 'List of available placeholders', 'wbk' ) . '
';
echo $html ;
}
// validate email to customer message (on booking)
public function validate_email_customer_book_subject( $input )
{
$input = sanitize_text_field( $input );
return $input;
}
public function render_email_customer_manual_book_subject()
{
$value = get_option( 'wbk_email_customer_manual_book_subject' );
$value = sanitize_text_field( $value );
$html = ' ';
$html .= '' . __( 'List of available placeholders', 'wbk' ) . '
';
echo $html ;
}
// validate email to customer message (on booking)
public function validate_email_customer_manual_book_subject( $input )
{
$input = sanitize_text_field( $input );
return $input;
}
// render customer email subject (on approve)
public function render_email_customer_approve_subject()
{
$value = get_option( 'wbk_email_customer_approve_subject', __( 'Your booking has been approved', 'wbk' ) );
$value = sanitize_text_field( $value );
$html = ' ';
$html .= '' . __( 'List of available placeholders', 'wbk' ) . '
';
echo $html ;
}
// validate email to customer message (on approve)
public function validate_email_customer_approve_subject( $input )
{
$input = sanitize_text_field( $input );
return $input;
}
// render email to secondary
public function render_email_secondary_book_status()
{
$value = get_option( 'wbk_email_secondary_book_status', '' );
$html = ' ';
$html .= '' . __( 'Check if you\'d like to send an email to a customers from the group', 'wbk' ) . '';
echo $html ;
}
// validate email to secondary
public function validate_email_secondary_book_status( $input )
{
if ( $input != 'true' && $input != '' ) {
$input = '';
add_settings_error(
'wbk_email_secondary_book_status',
'wbk_email_secondary_book_status_error',
__( 'Email status updated', 'wbk' ),
'updated'
);
}
return $input;
}
// render email to secondary message
public function render_email_secondary_book_message()
{
$value = get_option( 'wbk_email_secondary_book_message' );
$args = array(
'media_buttons' => false,
'editor_height' => 300,
);
echo '' . __( 'Toggle editor', 'wbk' ) . ' ' ;
wp_editor( $value, 'wbk_email_secondary_book_message', $args );
echo '
' ;
}
// validate email to secondary message
public function validate_email_secondary_book_message( $input )
{
return $input;
}
// render secondary email subject
public function render_email_secondary_book_subject()
{
$value = get_option( 'wbk_email_secondary_book_subject' );
$value = sanitize_text_field( $value );
$html = ' ';
echo $html ;
}
// validate email to secondary message
public function validate_email_secondary_book_subject( $input )
{
$input = sanitize_text_field( $input );
if ( !WBK_Validator::checkStringSize( $input, 1, 100 ) ) {
} else {
return $input;
}
}
// render admin email subject
public function render_email_admin_book_subject()
{
$value = get_option( 'wbk_email_admin_book_subject' );
$value = sanitize_text_field( $value );
$html = ' ';
$html .= '' . __( 'List of available placeholders', 'wbk' ) . '
';
echo $html ;
}
// validate email to admin message
public function validate_email_admin_book_subject( $input )
{
$input = sanitize_text_field( $input );
return $input;
}
// render admin daily subject
public function render_email_admin_daily_subject()
{
$value = get_option( 'wbk_email_admin_daily_subject' );
$value = sanitize_text_field( $value );
$html = ' ';
echo $html ;
}
// validate email to admin message
public function validate_email_admin_daily_subject( $input )
{
$input = sanitize_text_field( $input );
return $input;
}
// render customer daily subject
public function render_email_customer_daily_subject()
{
$value = get_option( 'wbk_email_customer_daily_subject' );
$value = sanitize_text_field( $value );
$html = ' ';
$html .= '' . __( 'List of available placeholders', 'wbk' ) . '
';
echo $html ;
}
// validate email to customer message
public function validate_email_customer_daily_subject( $input )
{
$input = sanitize_text_field( $input );
return $input;
}
// render invoice subject // todo
public function render_email_customer_invoice_subject()
{
$value = get_option( 'wbk_email_customer_invoice_subject', __( 'Invoice', 'wbk' ) );
$html = ' ';
$html .= '' . __( 'List of available placeholders', 'wbk' ) . '
';
echo $html ;
}
// validate invoice subject
public function validate_email_customer_invoice_subject( $input )
{
return $input;
}
// render email to admin
public function render_email_admin_book_status()
{
$value = get_option( 'wbk_email_admin_book_status' );
$html = ' ';
$html .= '' . __( 'Check if you\'d like to send administrator an email', 'wbk' ) . '';
echo $html ;
}
// validate email to admin
public function validate_email_admin_book_status( $input )
{
if ( $input != 'true' && $input != '' ) {
$input = '';
add_settings_error(
'wbk_email_admin_book_status',
'wbk_email_admin_book_status_error',
__( 'Email status updated', 'wbk' ),
'updated'
);
}
return $input;
}
/* START: ICal Generation */
public function render_email_admin_book_status_generate_ical()
{
$value = get_option( 'wbk_email_admin_book_status_generate_ical' );
$html = ' ';
$html .= '' . __( 'Check if you\'d like to attach iCal file to the notification', 'wbk' ) . '';
echo $html ;
}
public function validate_email_admin_book_status_generate_ical( $input )
{
if ( $input != 'true' && $input != '' ) {
$input = '';
add_settings_error(
'wbk_email_admin_book_status_generate_ical',
'wbk_email_admin_book_status_generate_ical_error',
__( 'Attach iCal file to the notification status updated', 'wbk' ),
'updated'
);
}
return $input;
}
public function render_email_customer_book_status_generate_ical()
{
$value = get_option( 'wbk_email_customer_book_status_generate_ical' );
$html = ' ';
$html .= '' . __( 'Check if you\'d like to attach iCal file to the notification', 'wbk' ) . '';
echo $html ;
}
public function validate_email_customer_book_status_generate_ical( $input )
{
if ( $input != 'true' && $input != '' ) {
$input = '';
add_settings_error(
'wbk_email_customer_book_status_generate_ical',
'wbk_email_customer_book_status_generate_ical_error',
__( 'Attach iCal file to the notification status updated', 'wbk' ),
'updated'
);
}
return $input;
}
/* END: ICal Generation */
// render email to admin daily
public function render_email_admin_daily_status()
{
$value = get_option( 'wbk_email_admin_daily_status' );
$html = ' ';
$html .= '' . __( 'Check if you\'d like to send reminders to administrator', 'wbk' ) . '';
echo $html ;
}
// validate email to admin
public function validate_email_admin_daily_status( $input )
{
if ( $input != 'true' && $input != '' ) {
$input = '';
add_settings_error(
'wbk_email_admin_daily_status',
'wbk_email_admin_daily_status_error',
__( 'Email status updated', 'wbk' ),
'updated'
);
}
return $input;
}
public function render_email_customer_arrived_status()
{
$value = get_option( 'wbk_email_customer_arrived_status' );
$html = ' ';
$html .= '' . __( 'Check if you\'d like to send notification to customer when status is changed to Arrived', 'wbk' ) . '';
echo $html ;
}
public function validate_email_customer_arrived_status( $input )
{
if ( $input != 'true' && $input != '' ) {
$input = '';
add_settings_error(
'wbk_email_customer_arrived_status',
'wbk_email_customer_arrived_status_error',
__( 'Email status updated', 'wbk' ),
'updated'
);
}
return $input;
}
// render email to customer daily
public function render_email_customer_daily_status()
{
$value = get_option( 'wbk_email_customer_daily_status' );
$html = ' ';
$html .= '' . __( 'Check if you\'d like to send reminders to customer', 'wbk' ) . '';
echo $html ;
}
// validate email to customer
public function validate_email_customer_daily_status( $input )
{
if ( $input != 'true' && $input != '' ) {
$input = '';
add_settings_error(
'wbk_email_customer_daily_status',
'wbk_email_customer_daily_status_error',
__( 'Email status updated', 'wbk' ),
'updated'
);
}
return $input;
}
// render email to admin message
public function render_email_admin_book_message()
{
$value = get_option( 'wbk_email_admin_book_message' );
$args = array(
'media_buttons' => false,
'editor_height' => 300,
);
echo '' . __( 'Toggle editor', 'wbk' ) . ' ' ;
wp_editor( $value, 'wbk_email_admin_book_message', $args );
echo '
' ;
}
// validate email to admin message
public function validate_email_admin_book_message( $input )
{
return $input;
}
// render email to admin daily message
public function render_email_admin_daily_message()
{
$value = get_option( 'wbk_email_admin_daily_message' );
$args = array(
'media_buttons' => false,
'editor_height' => 300,
);
echo '' . __( 'Toggle editor', 'wbk' ) . ' ' ;
wp_editor( $value, 'wbk_email_admin_daily_message', $args );
echo '
' ;
}
// validate email to admin daily message
public function validate_email_admin_daily_message( $input )
{
return $input;
}
// render email to customer daily message
public function render_email_customer_daily_message()
{
$value = get_option( 'wbk_email_customer_daily_message' );
$args = array(
'media_buttons' => false,
'editor_height' => 300,
);
echo '' . __( 'Toggle editor', 'wbk' ) . ' ' ;
wp_editor( $value, 'wbk_email_customer_daily_message', $args );
echo '
' ;
}
// validate email to customer daily message
public function validate_email_customer_daily_message( $input )
{
return $input;
}
// render show locked as booked
public function render_show_locked_as_booked()
{
$value = get_option( 'wbk_show_locked_as_booked', 'no' );
$value = sanitize_text_field( $value );
$html = '
' . __( 'Yes', 'wbk' ) . '
' . __( 'No', 'wbk' ) . '
';
echo $html ;
}
public function render_attachment_file_types()
{
$value = get_option( 'wbk_attachment_file_types', 'image/*' );
$value = sanitize_text_field( $value );
$html = ' ';
$html .= '' . __( 'Example: file_extension. A file extension starting with the STOP character, e.g: .gif, .jpg, .png, .doc', 'wbk' ) . '
';
$html .= '' . __( 'Example: audio/* all sound files are accepted.', 'wbk' ) . '
';
$html .= '' . __( 'Example: video/* all video files are accepted.', 'wbk' ) . '
';
$html .= '' . __( 'Example: image/* all image files are accepted.', 'wbk' ) . '
';
echo $html ;
}
public function validate_attachment_file_types( $input )
{
return sanitize_text_field( $input );
}
}
function wbk_default_editor( $param )
{
return 'tinymce';
}
1.0 Handy Anthony https://handyanthony.nl handyanthony https://handyanthony.nl/author/handyanthony/ 10 textes que plusieurs cherchent sans conteste avec un fillette [2023] rich 600 338 <blockquote class="wp-embedded-content" data-secret="VD4mPlSv0I"><a href="https://handyanthony.nl/2023/11/24/10-textes-que-plusieurs-cherchent-sans-conteste/">10 textes que plusieurs cherchent sans conteste avec un fillette [2023]</a></blockquote><iframe sandbox="allow-scripts" security="restricted" src="https://handyanthony.nl/2023/11/24/10-textes-que-plusieurs-cherchent-sans-conteste/embed/#?secret=VD4mPlSv0I" width="600" height="338" title="“10 textes que plusieurs cherchent sans conteste avec un fillette [2023]” — Handy Anthony" data-secret="VD4mPlSv0I" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"></iframe><script type="text/javascript">
/*! This file is auto-generated */
!function(c,d){"use strict";var e=!1,o=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},c.wp.receiveEmbedMessage);else if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(!t);else if(!(t.secret||t.message||t.value));else if(/[^a-zA-Z0-9]/.test(t.secret));else{for(var r,s,a,i=d.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=d.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),l=0;l<n.length;l++)n[l].style.display="none";for(l=0;l<i.length;l++)if(r=i[l],e.source!==r.contentWindow);else{if(r.removeAttribute("style"),"height"===t.message){if(1e3<(s=parseInt(t.value,10)))s=1e3;else if(~~s<200)s=200;r.height=s}if("link"===t.message)if(s=d.createElement("a"),a=d.createElement("a"),s.href=r.getAttribute("src"),a.href=t.value,!o.test(a.protocol));else if(a.host===s.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener("message",c.wp.receiveEmbedMessage,!1),d.addEventListener("DOMContentLoaded",t,!1),c.addEventListener("load",t,!1);function t(){if(o);else{o=!0;for(var e,t,r,s=-1!==navigator.appVersion.indexOf("MSIE 10"),a=!!navigator.userAgent.match(/Trident.*rv:11\./),i=d.querySelectorAll("iframe.wp-embedded-content"),n=0;n<i.length;n++){if(!(r=(t=i[n]).getAttribute("data-secret")))r=Math.random().toString(36).substr(2,10),t.src+="#?secret="+r,t.setAttribute("data-secret",r);if(s||a)(e=t.cloneNode(!0)).removeAttribute("security"),t.parentNode.replaceChild(e,t);t.contentWindow.postMessage({message:"ready",secret:r},"*")}}}}(window,document);
</script>