function wpdevbk_show_booking_page() { wpbc_welcome_panel(); //////////////////////////////////////////////////////////////////////////////////////////////////////// // Get from SETTINGS (if its not set in request yet) the "tab" & "view_mode" and set to $_REQUEST // If we have the "saved" filter set so LOAD it and set to REQUEST, if REQUEST was not set previously // & skip "wh_booking_type" from the saved filter set //////////////////////////////////////////////////////////////////////////////////////////////////////// wpdevbk_get_default_bk_listing_filter_set_to_params('default'); // Get saved filters set DONE! //debuge($_REQUEST); // Setting $_REQUEST['wh_booking_type'] if (function_exists('wpdevbk_check_wh_booking_type_param_in_request')) { wpdevbk_check_wh_booking_type_param_in_request(); } // DONE! // If "wh_booking_type" is not set, and current user is not superadmin, then set to - $_REQUEST['wh_booking_type'] - booking resource from regular user make_bk_action('check_for_resources_of_notsuperadmin_in_booking_listing'); // DONE! wpdevbk_booking_view_mode_buttons(); // Show switch calendar/listing buttons DONE! //debuge($_REQUEST); switch ($_REQUEST['view_mode']) { case 'vm_calendar': // vm_calendar bookings_overview_in_calendar(); break; default: // vm_listing wpdevbk_show_booking_listings(); } wpdevbk_booking_listing_write_js(); // Wtite inline JS wpdevbk_booking_listing_write_css(); // Write inline CSS }
public function about_screen_5_0() { ?> <div class="wrap about-wrap wpbc-welcome-page"> <?php //$this->title_section(); // Show Title of Welcome page ?> <?php //$this->maintence_section(); // Template for the Minor updates ?> <div class="changelog"> <h3><?php _e('Responsive, stylish and easy to customize design', 'wpdev-booking-overview'); ?> </h3> <div class="feature-section col three-col"> <div> <img src="<?php echo $this->asset_path; ?> 5.0/responsive-design.png" style="border: medium none;box-shadow: 0 0 0;margin: 0 0 0.5em 20px;width: 80%;" > <h4><?php _e("Responsive front end design", 'wpdev-booking-overview'); ?> </h4> <p><?php _e("We have completely rewritten the CSS of calendar skins and booking form. Booking form and calendar support fully responsive design that looks great on any device.", 'wpdev-booking-overview'); ?> </p> </div> <div> <img src="<?php echo $this->asset_path; ?> 5.0/insert.png" style="border:none;box-shadow: 0 1px 3px #777777;margin: 3px 0 1em 3px;width: 99%;" > <h4><?php _e("Easy to customize", 'wpdev-booking-overview'); ?> </h4> <p><?php printf(__("Much more easy to configure for fitting to your site design. Configure calendar width, height or even structure %s(number of months in a row)%s from settings in a minute.", 'wpdev-booking-overview'), '<em>', '</em>'); ?> </p> </div> <div class="last-feature"> <img src="<?php echo $this->asset_path; ?> 5.0/sleek-design.png" style="border:none;box-shadow: 0 1px 3px #777777;margin: 3px 3px 1em 0px;width: 95%;" > <h4><?php _e("Smoother Booking Experience", 'wpdev-booking-overview'); ?> </h4> <p><?php _e("Booking form has new attractive calendar skins and sleek form fields with nice warning messages.", 'wpdev-booking-overview'); ?> </p> </div> </div> </div> <?php if ($_SERVER['HTTP_HOST'] === 'dev' || !class_exists('wpdev_bk_personal')) { ?> <div class="changelog"> <h3><?php _e('Configure your predefined set of form fields', 'wpdev-booking-overview'); ?> </h3> <div class="feature-section images-stagger-right"> <img src="<?php echo $this->asset_path; ?> 5.0/settings-fields-free.png" style="width:40%; border:none;box-shadow: 0 1px 3px #777777;margin-top: 1px;"> <h4><?php _e("Write Labels for your fields", 'wpdev-booking-overview'); ?> </h4> <p><?php printf(__("Now %s(at Booking %s Settings %s Fields page)%s is possible to change the form fields labels.", 'wpdev-booking-overview'), '<em>', '>', '>', '</em>'); ?> </p> <h4><?php _e("Activate or Deactivate fields", 'wpdev-booking-overview'); ?> </h4> <p><?php _e("You can activate or deactivate the fields from the predefined fields set.", 'wpdev-booking-overview'); ?> </p> <h4><?php _e("Set as required specific fields", 'wpdev-booking-overview'); ?> </h4> <p><?php _e("You can set as required specific fields in your booking form from the predefined fields set.", 'wpdev-booking-overview'); ?> </p> </div> </div> <?php } ?> <div class="changelog"> <div class="feature-section"> <h3><?php _e("Nice and Easy to Understand Interface with Buttons for Fast Actions", 'wpdev-booking-overview'); ?> </h3> <img src="<?php echo $this->asset_path; ?> 5.0/interface.png" style="border: medium none;box-shadow: 0 1px 3px #777777;width: 98%;margin:0px 3px;"> <div class="last-feature"> <h4><?php _e("Approve or Reject Booking in 1 Click on Calendar Overview page", 'wpdev-booking-overview'); ?> </h4> <p><?php _e("Make common actions, like Approve, Decline or Delete of the booking in One Click on the Calendar Overview panel", 'wpdev-booking-overview'); ?> . </p> </div> </div> </div> <div class="changelog"> <h3><?php _e('Under the Hood', 'wpdev-booking-overview'); ?> </h3> <div class="feature-section col two-col"> <div> <!--img src="<?php echo $this->asset_path; ?> 5.0/code-css-black10.png" style="border:none;box-shadow: 0 1px 3px #777777;margin: 3px 0 1em 3px;width: 99%;" --> <h4><?php _e("Customize the Calendar Skins", 'wpdev-booking-overview'); ?> </h4> <p><?php printf(__("The calendar skins %s are located separately from the calendar structure file %s and very well commented. So you do not need to worry about the structure, sizes or responsive design of the calendar and concentrate only on design.", 'wpdev-booking-overview'), '<code>../css/skins/</code>', '<code>../css/calendar.css</code>'); ?> </p> </p> </div> <div class="last-feature"> <h4><?php _e("Improved Performance", 'wpdev-booking-overview'); ?> </h4> <p><?php echo "WP Booking Calendar"; _e("%s has been dramatically improved in terms of performance to make your site run better and faster.", 'wpdev-booking-overview'); ?> </p> </div> </div> <p><?php _e("Many other improvements and small issues fixing.", 'wpdev-booking-overview'); ?> <?php printf(__('For more information, see %sthe release notes%s', 'wpdev-booking-overview'), '<a href="http://wpbookingcalendar.com/changelog/" target="_blank">', '</a>'); ?> .</p> </div> <!--div class="return-to-dashboard"> <a href="<?php echo esc_url(admin_url(add_query_arg(array('page' => WPDEV_BK_PLUGIN_DIRNAME . '/' . WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking-option'), 'admin.php'))); ?> "><?php _e('Go to WP Booking Calendar Settings', 'wpdev-booking-overview'); ?> </a> </div--> <?php wpbc_welcome_panel(); ?> <?php if (false) { // Get Remote News or some other info $response = wp_remote_post(OBC_CHECK_URL . 'info/', array()); if (!(is_wp_error($response) || 200 != wp_remote_retrieve_response_code($response))) { $body_to_show = json_decode(wp_remote_retrieve_body($response)); ?> <style type="text/css" media="screen">#bk_news_loaded{display:block !important;}</style><?php echo $body_to_show; } } ?> </div> <?php }