| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * @package Booking Manager |
| 4 | 4 | * @category Content of item Listing page |
| 5 | 5 | * @author wpdevelop |
| 6 | 6 | * |
| 7 | - * @web-site http://oplugins.com/ | |
| 7 | + * @web-site https://oplugins.com/ | |
| 8 | 8 | * @email [email protected] |
| 9 | 9 | * |
| 10 | 10 | * @modified 2015-11-13 |
| 11 | 11 | */ |
| @@ -100,13 +100,13 @@ | ||
| 100 | 100 | , 'font_icon' => 'glyphicon glyphicon-info-sign' |
| 101 | 101 | , 'position' => 'right' |
| 102 | 102 | , 'items' => array( |
| 103 | 103 | array( 'type' => 'link', 'title' => __('Shortcode configuration', 'booking-manager') |
| 104 | - , 'url' => 'http://oplugins.com/plugins/wp-booking-manager/booking-manager-help/' //esc_url( admin_url( add_query_arg( array( 'page' => 'oplugins', 'tab' => 'wpbm', 'subtab' => 'help_shortcodes' ), 'admin.php' ) ) ) | |
| 104 | + , 'url' => 'https://oplugins.com/plugins/wp-booking-manager/booking-manager-help/' //esc_url( admin_url( add_query_arg( array( 'page' => 'oplugins', 'tab' => 'wpbm', 'subtab' => 'help_shortcodes' ), 'admin.php' ) ) ) | |
| 105 | 105 | ) |
| 106 | 106 | , array( 'type' => 'divider' ) |
| 107 | - , array( 'type' => 'link', 'title' => __('Help', 'booking-manager'), 'url' => 'http://oplugins.com/plugins/booking-manager/#faq' ) | |
| 108 | - //, array( 'type' => 'link', 'title' => __('FAQ', 'booking-manager'), 'url' => 'http://oplugins.com/plugins/booking-manager/#faq' ) | |
| 107 | + , array( 'type' => 'link', 'title' => __('Help', 'booking-manager'), 'url' => 'https://oplugins.com/plugins/booking-manager/#faq' ) | |
| 108 | + //, array( 'type' => 'link', 'title' => __('FAQ', 'booking-manager'), 'url' => 'https://oplugins.com/plugins/booking-manager/#faq' ) | |
| 109 | 109 | , array( 'type' => 'link', 'title' => __('Technical Support', 'booking-manager'), 'url' => 'mailto:[email protected]?subject=booking-manager' ) |
| 110 | 110 | , array( 'type' => 'divider' ) |
| 111 | 111 | , array( 'type' => 'link', 'title' => __('Upgrade Now', 'booking-manager'), 'url' => wpbm_up_link() |
| 112 | 112 | , 'attr' => array( |
| @@ -320,22 +320,31 @@ | ||
| 320 | 320 | |
| 321 | 321 | } |
| 322 | 322 | .wpbm_listing_ics_bar .wpbm_listing_div { |
| 323 | 323 | float:left; |
| 324 | - width:100%; | |
| 324 | + width:100%; | |
| 325 | + display: flex; | |
| 326 | + flex-flow: row wrap; | |
| 327 | + gap: 10px; | |
| 328 | + justify-content: flex-start; | |
| 329 | + align-items: center; | |
| 325 | 330 | } |
| 326 | 331 | .wpbm_listing_ics_bar .wpbm_listing_br_selection, |
| 327 | 332 | .wpbm_listing_ics_bar .wpbm_listing_url { |
| 328 | - float:left; | |
| 329 | - width:28%; | |
| 330 | - height: 2em; | |
| 331 | - padding: 2px; | |
| 332 | - border-radius: 0; | |
| 333 | - margin:10px 5px 10px 1px; | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 334 | 341 | } |
| 335 | 342 | .wpbm_listing_ics_bar .wpbm_listing_url { |
| 336 | - width:50%; | |
| 337 | - padding: 2px 5px; | |
| 343 | + flex: 1 1 auto; | |
| 344 | + height: 40px; | |
| 345 | + max-width: Min( 500px, 100% ); | |
| 346 | + margin-right: 20px; | |
| 338 | 347 | } |
| 339 | 348 | .wpbm_system_info_log { |
| 340 | 349 | font-size: 11px; |
| 341 | 350 | line-height: 1.5em; |
| @@ -461,9 +470,9 @@ | ||
| 461 | 470 | return false; |
| 462 | 471 | } |
| 463 | 472 | |
| 464 | 473 | $params = array( |
| 465 | - 'url' => esc_url( $_POST[ 'params' ][ 'wpbm_listing_url'] ) | |
| 474 | + 'url' => esc_url_raw( $_POST[ 'params' ][ 'wpbm_listing_url'] ) //FixIn: 2.0.14.3 | |
| 466 | 475 | , 'from' => 'any' //'today' // '00:00 today' |
| 467 | 476 | , 'from_offset' => '' |
| 468 | 477 | , 'until' => 'any' //'year-end' // '00:00 today' |
| 469 | 478 | , 'until_offset' => '' |
| @@ -471,9 +480,10 @@ | ||
| 471 | 480 | , 'is_all_dates_in' => true |
| 472 | 481 | ); |
| 473 | 482 | $listing_echo = wpbm_ics_get_listing( $params ); |
| 474 | 483 | |
| 475 | - do_action( 'wpbm_show_debug', array( '$listing_echo', $listing_echo ) ); // S_Y_S_T_E_M L_O_G | |
| 484 | + if ( $is_show_debug_info ) | |
| 485 | + do_action( 'wpbm_show_debug', array( '$listing_echo', $is_show_debug_info, $listing_echo ) ); // S_Y_S_T_E_M L_O_G | |
| 476 | 486 | |
| 477 | 487 | /////////////////////////////////////////////////////////////////////////////////////// |
| 478 | 488 | // Get Listing Shortcode |
| 479 | 489 | /////////////////////////////////////////////////////////////////////////////////////// |
| @@ -503,8 +513,11 @@ | ||
| 503 | 513 | ?><script type="text/javascript"> jQuery( '.wpbm_system_info_log' ).show(); </script><?php |
| 504 | 514 | } |
| 505 | 515 | */ |
| 506 | 516 | |
| 507 | - // send JSON | |
| 508 | - wp_send_json( array( 'response' => 'success' ) ); // Return JS OBJ: response_data = { response: "success" } | |
| 517 | + // send JSON | |
| 518 | + // FixIn: 2.0.2.1 //Fix: We need to comment this line, because previously its possible that we already sent some messages, and its does not correct json format in this case. | |
| 519 | + //Fix: of showing "parsererror ~ SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data" | |
| 520 | + //wp_send_json( array( 'response' => 'success' ) ); // Return JS OBJ: response_data = { response: "success" } | |
| 521 | + wp_die( '', '', array( 'response' => null ) ); | |
| 509 | 522 | } |
| 510 | 523 | // </editor-fold> |