Current Path : /home/church/www/edssnow.com/wp-content/plugins/appointment-hour-booking/ |
Current File : /home/church/www/edssnow.com/wp-content/plugins/appointment-hour-booking/cp-settings.inc.php |
<?php if ( !is_admin() ) { echo 'Direct access not allowed.'; exit; } $nonce = wp_create_nonce( 'cpappb_actions_admin' ); $cpid = 'CP_AHB'; $gotab = ''; if (isset($_POST["gotab"])) { $gotab = $_POST["gotab"]; if ($gotab == '') $message = 'Email report settings updated.'; else if ($gotab == 'fixarea') $message = 'Troubleshoot settings updated.'; else if ($gotab == 'csvarea') $message = 'CSV settings updated.'; else if ($gotab == 'schedulecalarea') $message = 'Schedule Calendar View settings updated.'; else if ($gotab == 'miscsettings') $message = 'Misc settings updated.'; else if ($gotab == 'css') $message = 'Custom CSS updated.'; else if ($gotab == 'js') $message = 'Custom javascript updated.'; } else if (isset($_GET["gotab"])) $gotab = sanitize_text_field($_GET["gotab"]); ?> <style> .ahb-tab{display:none;} .ahb-tab label{font-weight:600;} .tab-active{display:block;} .ahb-code-editor-container{border:1px solid #DDDDDD;margin-bottom:20px;} .ahb-csssample { margin-top: 15px; margin-left:20px; margin-right:20px;} .ahb-csssampleheader { font-weight: bold; background: #dddddd; padding:10px 20px;-webkit-box-shadow: 0px 2px 2px 0px rgba(100, 100, 100, 0.1);-moz-box-shadow: 0px 2px 2px 0px rgba(100, 100, 100, 0.1);box-shadow: 0px 2px 2px 0px rgba(100, 100, 100, 0.1); } .ahb-csssamplecode { background: #f4f4f4; border: 1px solid #ddd; border-left: 3px solid #f36d33; color: #666; page-break-inside: avoid; font-family: monospace; font-size: 15px; line-height: 1.6; margin-bottom: 1.6em; max-width: 100%; overflow: auto; padding: 1em 1.5em; display: block; word-wrap: break-word; } </style> <script> // Move to an external file jQuery(function(){ var $ = jQuery, flag_css_editor = true, flag_js_editor = true; <?php if ($gotab == 'css' || $gotab == 'js') { if(function_exists('wp_enqueue_code_editor')) { $settings_js = wp_enqueue_code_editor(array('type' => 'application/javascript')); $settings_css = wp_enqueue_code_editor(array('type' => 'text/css')); // Bail if user disabled CodeMirror. if(!(false === $settings_js && false === $settings_css)) { if ($gotab == 'css') print sprintf('{flag_css_editor = false; wp.codeEditor.initialize( "ahb_styles_container", %s );}',wp_json_encode( $settings_css )); if ($gotab == 'js') print sprintf('{flag_js_editor = false; wp.codeEditor.initialize( "ahb_javascript_container", %s );}',wp_json_encode( $settings_js )); } } } ?> $('.ahb-tab-wrapper .nav-tab').click( function(){ $('.ahb-tab-wrapper .nav-tab.nav-tab-active').removeClass('nav-tab-active'); $(this).addClass('nav-tab-active'); var tab = $(this).data('tab'); $('.ahb-tab.tab-active').removeClass('tab-active'); $('.ahb-tab[data-tab="'+tab+'"]').addClass('tab-active'); <?php // This function is used to load the code editor of WordPress if(function_exists('wp_enqueue_code_editor')) { $settings_js = wp_enqueue_code_editor(array('type' => 'application/javascript')); $settings_css = wp_enqueue_code_editor(array('type' => 'text/css')); // Bail if user disabled CodeMirror. if(!(false === $settings_js && false === $settings_css)) { print sprintf('if(tab == 3 && flag_css_editor){flag_css_editor = false; wp.codeEditor.initialize( "ahb_styles_container", %s );}',wp_json_encode( $settings_css )); print sprintf('if(tab == 4 && flag_js_editor){flag_js_editor = false; wp.codeEditor.initialize( "ahb_javascript_container", %s );}',wp_json_encode( $settings_js )); } } ?> } ); }); </script> <h1><?php _e('Appointment Hour Booking - General Settings','appointment-hour-booking'); ?></h1> <?php if (isset($message) && $message != '') echo "<div id='setting-error-settings_updated' class='updated'><h2>".esc_html($message)."</h2></div>"; ?> <nav class="nav-tab-wrapper ahb-tab-wrapper"> <a href="javascript:void(0);" class="nav-tab<?php if ($gotab == '') echo ' nav-tab-active'; ?>" data-tab="1"><?php _e('Email Report Settings','appointment-hour-booking'); ?></a> <a href="javascript:void(0);" class="nav-tab<?php if ($gotab == 'fixarea') echo ' nav-tab-active'; ?>" data-tab="2"><?php _e('Troubleshoot Area','appointment-hour-booking'); ?></a> <a href="javascript:void(0);" class="nav-tab<?php if ($gotab == 'csvarea') echo ' nav-tab-active'; ?>" data-tab="5"><?php _e('CSV Settings','appointment-hour-booking'); ?></a> <a href="javascript:void(0);" class="nav-tab<?php if ($gotab == 'schedulecalarea') echo ' nav-tab-active'; ?>" data-tab="6"><?php _e('Schedule Calendar Contents','appointment-hour-booking'); ?></a> <a href="javascript:void(0);" class="nav-tab<?php if ($gotab == 'miscsettings') echo ' nav-tab-active'; ?>" data-tab="7"><?php _e('Misc Settings','appointment-hour-booking'); ?></a> <a href="javascript:void(0);" class="nav-tab<?php if ($gotab == 'css') echo ' nav-tab-active'; ?>" data-tab="3"><?php _e('Edit Styles','appointment-hour-booking'); ?></a> <a href="javascript:void(0);" class="nav-tab<?php if ($gotab == 'js') echo ' nav-tab-active'; ?>" data-tab="4"><?php _e('Edit Scripts','appointment-hour-booking'); ?></a> </nav> <!-- TAB 1 --> <div class="ahb-tab<?php if ($gotab == '') echo ' tab-active'; ?>" data-tab="1"> <h2><?php _e('Automatic Email Reports','appointment-hour-booking'); ?></h2> <p><?php _e('Automatic email reports for <b>ALL forms</b>: Send submissions in CSV format via email.','appointment-hour-booking'); ?></p> <form name="updatereportsettings" action="" method="post"> <input name="<?php echo $cpid; ?>_post_edition" type="hidden" value="1" /> <input name="gotab" type="hidden" value="" /> <input name="nonce" type="hidden" value="<?php echo $nonce; ?>" /> <table class="form-table"> <tr valign="top"> <td scope="row" colspan="2"><strong><?php _e('Enable Reports?','appointment-hour-booking'); ?></strong> <?php $option = get_option('cp_cpappb_rep_enable', 'no'); ?> <select name="cp_cpappb_rep_enable"> <option value="no"<?php if ($option == 'no' || $option == '') echo ' selected'; ?>><?php _e('No','appointment-hour-booking'); ?></option> <option value="yes"<?php if ($option == 'yes') echo ' selected'; ?>><?php _e('Yes','appointment-hour-booking'); ?></option> </select> <strong><?php _e('Send report every','appointment-hour-booking'); ?>:</strong> <input type="text" name="cp_cpappb_rep_days" size="1" value="<?php echo esc_attr(get_option('cp_cpappb_rep_days', '1')); ?>" /> <?php _e('days','appointment-hour-booking'); ?> <strong><?php _e('Send after this hour (server time)','appointment-hour-booking'); ?>:</strong> <select name="cp_cpappb_rep_hour"> <?php $hour = get_option('cp_cpappb_rep_hour', '0'); for ($k=0;$k<24;$k++) echo '<option value="'.$k.'"'.($hour==$k?' selected':'').'>'.($k<10?'0':'').$k.'</option>'; ?> </select> </td> <tr valign="top"> <th scope="row"><?php _e('Send email from','appointment-hour-booking'); ?></th> <td><input type="text" name="cp_cpappb_fp_from_email" size="70" value="<?php echo esc_attr(get_option('cp_cpappb_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) )); ?>" /></td> </tr> <tr valign="top"> <th scope="row"><?php _e('Send to email(s)','appointment-hour-booking'); ?></th> <td><input type="text" name="cp_cpappb_rep_emails" size="70" value="<?php echo esc_attr(get_option('cp_cpappb_rep_emails', '')); ?>" /></td> </tr> <tr valign="top"> <th scope="row"><?php _e('Email subject','appointment-hour-booking'); ?></th> <td><input type="text" name="cp_cpappb_rep_subject" size="70" value="<?php echo esc_attr(get_option('cp_cpappb_rep_subject', 'Submissions report...')); ?>" /></td> </tr> <tr valign="top"> <th scope="row"><?php _e('Email format?','appointment-hour-booking'); ?></th> <td> <?php $option = get_option('cp_cpappb_rep_emailformat', 'text'); ?> <select name="cp_cpappb_rep_emailformat"> <option value="text"<?php if ($option != 'html') echo ' selected'; ?>><?php _e('Plain Text (default)','appointment-hour-booking'); ?></option> <option value="html"<?php if ($option == 'html') echo ' selected'; ?>><?php _e('HTML (use html in the textarea below)','appointment-hour-booking'); ?></option> </select> </td> </tr> <tr valign="top"> <th scope="row"><?php _e('Email Text (CSV file will be attached','appointment-hour-booking'); ?>)</th> <td><textarea type="text" name="cp_cpappb_rep_message" rows="3" cols="80"><?php echo htmlspecialchars(get_option('cp_cpappb_rep_message', 'Attached you will find the data from the form submissions.')); ?></textarea></td> </tr> </table> <input type="submit" value="<?php _e('Update Report Settings','appointment-hour-booking'); ?>" class="button button-primary" /> </form> <div class="clear"></div> <p><?php _e('Note: For setting up a report only for a specific form use the setting area available for that when editing each form settings','appointment-hour-booking'); ?>.</p> </div> <!-- TAB 2 --> <div class="ahb-tab<?php if ($gotab == 'fixarea') echo ' tab-active'; ?>" data-tab="2"> <h2><?php _e('Troubleshoot Area','appointment-hour-booking'); ?></h2> <p><b><?php _e('Important!','appointment-hour-booking'); ?>:</b> <?php _e('Use this area only if you are experiencing conflicts with third party plugins, with the theme scripts or with the character encoding.','appointment-hour-booking'); ?></p> <form method="post" action="" name="cpformconf2"> <input name="<?php echo $cpid; ?>_post_edition" type="hidden" value="1" /> <input name="nonce" type="hidden" value="<?php echo $nonce; ?>" /> <input name="gotab" type="hidden" value="fixarea" /> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label><?php _e('Script load method','appointment-hour-booking'); ?></label> </th> <td> <select id="ccscriptload" name="ccscriptload"> <option value="0" <?php if (get_option('CP_APPB_LOAD_SCRIPTS',"1") == "1") echo 'selected'; ?>><?php _e('Classic (Recommended)','appointment-hour-booking'); ?></option> <option value="1" <?php if (get_option('CP_APPB_LOAD_SCRIPTS',"1") != "1") echo 'selected'; ?>><?php _e('Direct','appointment-hour-booking'); ?></option> </select><br> <em><?php _e('Change the script load method if the form doesn\'t appear in the public website.','appointment-hour-booking'); ?></em> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Character encoding','appointment-hour-booking'); ?></label> </th> <td> <select id="cccharsets" name="cccharsets"> <option value=""><?php _e('Keep current charset (Recommended)','appointment-hour-booking'); ?></option> <option value="utf8_general_ci">UTF-8 (<?php _e('try this first','appointment-hour-booking'); ?>)</option> <option value="latin1_swedish_ci">latin1_swedish_ci</option> </select><br> <em><?php _e('Update the charset if you are getting problems displaying special/non-latin characters. After updated you need to edit the special characters again.','appointment-hour-booking'); ?></em> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Auto-fix character for CSV files?','appointment-hour-booking'); ?></label> </th> <td> <select id="csvcharautofix" name="csvcharautofix"> <option <?php if (get_option('CP_APPB_CSV_CHARFIX',"") == "") echo 'selected'; ?> value=""><?php _e('Yes','appointment-hour-booking'); ?></option> <option <?php if (get_option('CP_APPB_CSV_CHARFIX',"") == "1") echo 'selected'; ?> value="1"><?php _e('No','appointment-hour-booking'); ?></option> </select><br> <em><?php _e('Set to "No" if special characters appear with question marks "?" in the CSV file.','appointment-hour-booking'); ?></em> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Field separator for CSV files?','appointment-hour-booking'); ?></label> </th> <td> <select id="csvseparator" name="csvseparator"> <option <?php if (get_option('CP_APPB_CSV_SEPARATOR',",") == ",") echo 'selected'; ?> value=","><?php _e('comma: ","','appointment-hour-booking'); ?></option> <option <?php if (get_option('CP_APPB_CSV_SEPARATOR',",") == ";") echo 'selected'; ?> value=";"><?php _e('semicolon: ";"','appointment-hour-booking'); ?></option> </select><br> <em><?php _e('Change it if you get the CSV columns mixed','appointment-hour-booking'); ?></em> </td> </tr> </tbody> </table> <input type="submit" value="Update Changes" class="button button-primary" /> </form> </div> <!-- TAB 5 --> <div class="ahb-tab<?php if ($gotab == 'csvarea') echo ' tab-active'; ?>" data-tab="5"> <h2><?php _e('CSV Settings Area','appointment-hour-booking'); ?></h2> <form method="post" action="" name="cpformconf5"> <input name="<?php echo $cpid; ?>_post_edition" type="hidden" value="1" /> <input name="nonce" type="hidden" value="<?php echo $nonce; ?>" /> <input name="gotab" type="hidden" value="csvarea" /> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label><?php _e('Exclude fields from "Booking Orders" CSV export','appointment-hour-booking'); ?></label> </th> <td> <input name="bocsvexclude" type="text" value="<?php echo esc_attr(get_option('cp_cpappb_bocsvexclude',"")); ?>" /><br /> <em><?php _e('Enter field names comma separated, example: <b>final_price,referrer,fieldname1,fieldname2<b>','appointment-hour-booking'); ?></em> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Exclude fields from "Schedule List View" CSV export','appointment-hour-booking'); ?></label> </th> <td> <input name="schcsvexclude" type="text" value="<?php echo esc_attr(get_option('cp_cpappb_schcsvexclude',"")); ?>" /><br /> <em><?php _e('Enter field names comma separated, example: <b>paid,cancelled<b>','appointment-hour-booking'); ?></em> </td> </tr> </tbody> </table> <input type="submit" value="<?php _e('Update Changes','appointment-hour-booking'); ?>" class="button button-primary" /> </form> </div> <!-- TAB 6 --> <div class="ahb-tab<?php if ($gotab == 'schedulecalarea') echo ' tab-active'; ?>" data-tab="6"> <h2><?php _e('Schedule Calendar Contents','appointment-hour-booking'); ?></h2> <p>In this area you can customize the data displayed in the "<strong>Schedule Calendar View</strong>" of the dashboard accessible through the "<strong>Schedule</strong>" button in the <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>">calendars list</a>. For the commercial version of the plugin this also allows to customize the data displayed in the schedule calendar view you can publish in the public website. <form method="post" action="" name="cpformconf6"> <input name="nonce" type="hidden" value="<?php echo $nonce; ?>" /> <input name="<?php echo $cpid; ?>_post_edition" type="hidden" value="1" /> <input name="gotab" type="hidden" value="schedulecalarea" /> <table class="form-table"> <tbody> <tr valign="top"> <th colspan="2" style="border-top: 1px dotted black"> <label><?php _e('CONTENTS FOR CALENDAR DISPLAYED ADMIN AREA','appointment-hour-booking'); ?>:</label> </th> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Event title','appointment-hour-booking'); ?></label> </th> <td> <input name="schcaltitle_admin" type="text" value="<?php echo esc_attr(get_option('cp_cpappb_schcaltitle_admin',CP_CPAPPB_SCHCALTITLE_ADMIN)); ?>" /><br /> <em>Check the <a href="https://apphourbooking.dwbooster.com/faq#q81" target="_blank">list of tags available for the contents</a>.</em> <em><br />The following additional tags are available for the specific time listed: <b>%app_service% - %app_date% - %app_slot% - %app_quantity% - %app_status%</b> </em> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Event Content','appointment-hour-booking'); ?></label> </th> <td> <textarea cols="80" rows="3" name="schcalcontent_admin"><?php echo esc_textarea(get_option('cp_cpappb_schcalcontent_admin',CP_CPAPPB_SCHCALCONTENT_ADMIN)); ?></textarea><br /> <em>Check the <a href="https://apphourbooking.dwbooster.com/faq#q81" target="_blank">list of tags available for the contents</a>.</em> <em><br />The following additional tags are available for the specific time listed: <b>%app_service% - %app_date% - %app_slot% - %app_quantity% - %app_status%</b> </em> </td> </tr> <tr valign="top"> <th colspan="2" style="border-top: 1px dotted black"> <label><?php _e('CONTENTS FOR CALENDAR DISPLAYED PUBLIC WEBSITE','appointment-hour-booking'); ?>:</label> </th> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Event title','appointment-hour-booking'); ?></label> </th> <td> <input name="schcaltitle_public" type="text" value="<?php echo esc_attr(get_option('cp_cpappb_schcaltitle_public',CP_CPAPPB_SCHCALTITLE_PUBLIC)); ?>" /><br /> <em>Check the <a href="https://apphourbooking.dwbooster.com/faq#q81" target="_blank">list of tags available for the contents</a>.</em> <em><br />The following additional tags are available for the specific time listed: <b>%app_service% - %app_date% - %app_slot% - %app_quantity% - %app_status%</b> </em> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Event Content','appointment-hour-booking'); ?></label> </th> <td> <textarea cols="80" rows="3" name="schcalcontent_public"><?php echo esc_textarea(get_option('cp_cpappb_schcalcontent_public',CP_CPAPPB_SCHCALCONTENT_PUBLIC)); ?></textarea><br /> <em>Check the <a href="https://apphourbooking.dwbooster.com/faq#q81" target="_blank">list of tags available for the contents</a>.</em> <em><br />The following additional tags are available for the specific time listed: <b>%app_service% - %app_date% - %app_slot% - %app_quantity% - %app_status%</b> </em> </td> </tr> <tr valign="top"> <th colspan="2" style="border-top: 1px dotted black"> <label><?php _e('ADVANCED SETTINGS','appointment-hour-booking'); ?>:</label> </th> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Include admin blocked times?','appointment-hour-booking'); ?></label> </th> <td> <select id="cp_cpappb_sch_admin_blockedt" name="cp_cpappb_sch_admin_blockedt"> <option value="" <?php if (get_option('cp_cpappb_sch_admin_blockedt','') != "Yes") echo 'selected'; ?> >No</option> <option value="Yes" <?php if (get_option('cp_cpappb_sch_admin_blockedt','') == 'Yes') echo 'selected'; ?> >Yes</option> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Exclude calendar from schedule contents','appointment-hour-booking'); ?></label> </th> <td> <input size="80" name="cp_cpappb_schcalcontent_exclude" value="<?php echo esc_attr(get_option('cp_cpappb_schcalcontent_exclude','')); ?>" /><br /> <em>Indicate the calendar ID to be excluded, ex: <strong>fieldname1</strong>. Comma separated for multiple IDs.</em> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Other parameters','appointment-hour-booking'); ?></label> </th> <td> <textarea cols="80" rows="3" name="cp_cpappb_schcalcontent_otherparams"><?php echo esc_textarea(get_option('cp_cpappb_schcalcontent_otherparams','')); ?></textarea><br /> <em><a href="https://wordpress.dwbooster.com/demos/multi-view/17-selecting-hours-to-be-shown.html" target="_blank">Click for sample "Other Parameters"</a>.</em> </td> </tr> </tbody> </table> <input type="submit" value="Update Changes" class="button button-primary" /> </form> </div> <!-- TAB 6 --> <div class="ahb-tab<?php if ($gotab == 'miscsettings') echo ' tab-active'; ?>" data-tab="7"> <h2><?php _e('Misc Settings','appointment-hour-booking'); ?></h2> <form method="post" action="" name="cpformconf7"> <input name="nonce" type="hidden" value="<?php echo $nonce; ?>" /> <input name="<?php echo $cpid; ?>_post_edition" type="hidden" value="1" /> <input name="gotab" type="hidden" value="miscsettings" /> <table class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <label><?php _e('Protect the forms against the spam bots','appointment-hour-booking'); ?></label> </th> <td> <select id="cp_cpappb_honeypot" name="cp_cpappb_honeypot"> <option value="" <?php if (get_option('cp_cpappb_honeypot','') == "") echo 'selected'; ?> ><?php _e('No','appointment-hour-booking'); ?></option> <option value="Yes" <?php if (get_option('cp_cpappb_honeypot','') != '') echo 'selected'; ?> ><?php _e('Yes','appointment-hour-booking'); ?></option> </select> <br /> <?php _e('* Adds a hidden text field to the forms to trap the spam bots (honeypot feature).','appointment-hour-booking'); ?> </td> </tr> <tr valign="top"> <th scope="row"> <label><?php _e('Store user\'s IP address?','appointment-hour-booking'); ?></label> </th> <td> <select id="cp_cpappb_storeip" name="cp_cpappb_storeip"> <option value="" <?php if (get_option('cp_cpappb_storeip', CP_APPBOOK_DEFAULT_track_IP) == "") echo 'selected'; ?> ><?php _e('No','appointment-hour-booking'); ?></option> <option value="Yes" <?php if (get_option('cp_cpappb_storeip',CP_APPBOOK_DEFAULT_track_IP) != '') echo 'selected'; ?> ><?php _e('Yes','appointment-hour-booking'); ?></option> </select> <br /> </td> </tr> </tbody> </table> <input type="submit" value="Update Changes" class="button button-primary" /> </form> </div> <!-- TAB 3 --> <div class="ahb-tab<?php if ($gotab == 'css') echo ' tab-active'; ?>" data-tab="3"> <h2><?php _e('Edit Styles','appointment-hour-booking'); ?></h2> <p><?php _e('Use this area to add custom CSS styles. These styles will be keep safe even after updating the plugin.','appointment-hour-booking'); ?></p> <p><?php _e('For commonly used CSS styles please check the following FAQ section:','appointment-hour-booking'); ?> <a href="https://apphourbooking.dwbooster.com/faq#design">https://apphourbooking.dwbooster.com/faq#design</a></p> <form method="post" action="" name="cpformconf3"> <input name="<?php echo $cpid; ?>_post_edition" type="hidden" value="1" /> <input name="cfwpp_edit" type="hidden" value="css" /> <input name="nonce" type="hidden" value="<?php echo $nonce; ?>" /> <input name="gotab" type="hidden" value="css" /> <div class="ahb-code-editor-container"> <textarea name="editionarea" id="ahb_styles_container" style="width:100%;min-height:500px;"><?php if (get_option($cpid.'_CSS', '')) echo base64_decode(get_option($cpid.'_CSS', '')); else echo '/* Styles definition here */'; ?></textarea> </div> <input type="submit" value="Save Styles" class="button button-primary" /> </form> <br /><hr /><br /> <div class="ahb-statssection-container" style="background:#f6f6f6;"> <div class="ahb-statssection-header" style="background:white; padding:10px 20px;-webkit-box-shadow: 0px 2px 2px 0px rgba(100, 100, 100, 0.1);-moz-box-shadow: 0px 2px 2px 0px rgba(100, 100, 100, 0.1);box-shadow: 0px 2px 2px 0px rgba(100, 100, 100, 0.1);"> <h3><?php _e('Sample Styles','appointment-hour-booking'); ?>:</h3> </div> <div class="ahb-statssection"> <div class="ahb-csssample"> <div class="ahb-csssampleheader"> <?php _e('Make the calendar 100% width / responsive:','appointment-hour-booking'); ?> </div> <div class="ahb-csssamplecode"> #fbuilder .ui-datepicker-inline { max-width:none !important; } </div> </div> <div class="ahb-csssample"> <div class="ahb-csssampleheader"> <?php _e('Hide the service drop-down:','appointment-hour-booking'); ?> </div> <div class="ahb-csssamplecode"> .ahbfield_service { display: none } </div> </div> <div class="ahb-csssample"> <div class="ahb-csssampleheader"> <?php _e('Make the send button in a hover format:','appointment-hour-booking'); ?> </div> <div class="ahb-csssamplecode"> .pbSubmit:hover { background-color: #4CAF50; color: white; } </div> </div> <div class="ahb-csssample"> <div class="ahb-csssampleheader"> <?php _e('Change the color of all form field labels:','appointment-hour-booking'); ?> </div> <div class="ahb-csssamplecode"> #fbuilder, #fbuilder label, #fbuilder span { color: #00f; } </div> </div> <div class="ahb-csssample"> <div class="ahb-csssampleheader"> <?php _e('Change color of fonts into all fields','appointment-hour-booking'); ?>: </div> <div class="ahb-csssamplecode"> #fbuilder input[type=text], #fbuilder textarea, #fbuilder select { color: #00f; } </div> </div> <div class="ahb-csssample"> <div class="ahb-csssampleheader"> <?php _e('Change the calendar header color:','appointment-hour-booking'); ?> </div> <div class="ahb-csssamplecode"> #fbuilder .ui-datepicker-header { background:#6cc72b ; color:#444; text-shadow:none; } </div> </div> <div class="ahb-csssample"> <div class="ahb-csssampleheader"> <?php _e('Other styles:','appointment-hour-booking'); ?> </div> <div class="ahb-csssamplecode"> <?php _e('For other styles check the design section in the FAQ:','appointment-hour-booking'); ?> <a href="https://apphourbooking.dwbooster.com/faq#design">https://apphourbooking.dwbooster.com/faq#design</a> </div> </div> </div> </div> </div> <!-- TAB 4 --> <div class="ahb-tab<?php if ($gotab == 'js') echo ' tab-active'; ?>" data-tab="4"> <h2><?php _e('Edit Scripts','appointment-hour-booking'); ?></h2> <p><?php _e('Use this area to add custom custom scripts. These scripts will be keep safe even after updating the plugin.','appointment-hour-booking'); ?></p> <form method="post" action="" name="cpformconf4"> <input name="<?php echo $cpid; ?>_post_edition" type="hidden" value="1" /> <input name="cfwpp_edit" type="hidden" value="js" /> <input name="nonce" type="hidden" value="<?php echo $nonce; ?>" /> <input name="gotab" type="hidden" value="js" /> <div class="ahb-code-editor-container"> <textarea name="editionarea" id="ahb_javascript_container" style="width:100%;min-height:500px;"><?php if (get_option($cpid.'_JS', '')) echo base64_decode(get_option($cpid.'_JS', '')); else echo '// Javascript code here'; ?></textarea> </div> <input type="submit" value="Save Scripts" class="button button-primary" /> </form> </div>