| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | . " WHERE {$trash_bookings} " ; |
| 50 | 50 | if ($my_resources!='') $sql_req .= " AND bk.booking_type IN ({$my_resources}) "; |
| 51 | 51 | |
| 52 | 52 | $sql_req .= "ORDER BY dt.booking_date" ; |
| 53 | - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared | |
| 53 | + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter | |
| 54 | 54 | $sql_results = $wpdb->get_results( $sql_req ); |
| 55 | 55 | |
| 56 | 56 | // </editor-fold> |
| 57 | 57 | |
| @@ -459,25 +459,26 @@ | ||
| 459 | 459 | <div style="width:95%;border:none;clear:both;margin:10px 6px;" id="bk_news_section"> |
| 460 | 460 | <div style="width: 99%;margin-right:0;" > |
| 461 | 461 | <span class="bk_header" style="padding: 0;">Booking Calendar News:</span><?php |
| 462 | 462 | |
| 463 | - wpbc_is_dismissed( 'wpbc_dashboard_section_news' ); // FixIn: 8.1.3.10. | |
| 464 | - | |
| 465 | - ?><br/><br/> | |
| 466 | - <div id="bk_news" class="rssSummary"> <span style="font-size:13px;text-align:center;">Loading...</span></div> | |
| 467 | - <div id="ajax_bk_respond" class="rssSummary" style="display:none;"></div> | |
| 468 | - <script type="text/javascript"> | |
| 469 | - jQuery.ajax({ | |
| 470 | - url: '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', | |
| 471 | - type:'POST', | |
| 472 | - success: function (data, textStatus){ if( textStatus == 'success' ) jQuery('#ajax_bk_respond').html( data ); }, | |
| 473 | - error: function (XMLHttpRequest, textStatus, errorThrown){ window.status = 'Ajax sending Error status:' + textStatus; }, | |
| 474 | - data:{ | |
| 475 | - action: 'CHECK_BK_NEWS', | |
| 476 | - wpbc_nonce: document.getElementById('wpbc_admin_panel_nonce_dashboard').value | |
| 477 | - } | |
| 478 | - }); | |
| 479 | - </script> | |
| 463 | + $is_panel_visible = wpbc_is_dismissed( 'wpbc_dashboard_section_news' ); // FixIn: 10.10.3.1. | |
| 464 | + if ( $is_panel_visible ) { | |
| 465 | + ?><br/><br/> | |
| 466 | + <div id="bk_news" class="rssSummary"> <span style="font-size:13px;text-align:center;">Loading...</span></div> | |
| 467 | + <div id="ajax_bk_respond" class="rssSummary" style="display:none;"></div> | |
| 468 | + <script type="text/javascript"> | |
| 469 | + jQuery.ajax({ | |
| 470 | + url: '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', | |
| 471 | + type:'POST', | |
| 472 | + success: function (data, textStatus){ if( textStatus == 'success' ) jQuery('#ajax_bk_respond').html( data ); }, | |
| 473 | + error: function (XMLHttpRequest, textStatus, errorThrown){ window.status = 'Ajax sending Error status:' + textStatus; }, | |
| 474 | + data:{ | |
| 475 | + action: 'CHECK_BK_NEWS', | |
| 476 | + wpbc_nonce: document.getElementById('wpbc_admin_panel_nonce_dashboard').value | |
| 477 | + } | |
| 478 | + }); | |
| 479 | + </script> | |
| 480 | + <?php } ?> | |
| 480 | 481 | </div> |
| 481 | 482 | </div> |
| 482 | 483 | |
| 483 | 484 | </div> |
| @@ -509,12 +510,18 @@ | ||
| 509 | 510 | } |
| 510 | 511 | |
| 511 | 512 | function wpbc_dashboard_info_get_version_type_sites() { |
| 512 | 513 | |
| 514 | + $json_version = wpbc_get_json_property_from_meta( 'max usage' ); | |
| 515 | + if ( ! empty( $json_version ) ) { | |
| 516 | + // $json_edition = wpbc_get_json_property_from_meta( 'edition' ); if ( ! empty( $json_edition ) ) { $json_version = $json_version . ' | ' . $json_edition; } | |
| 517 | + return $json_version; | |
| 518 | + } | |
| 519 | + | |
| 513 | 520 | $v_type = ''; |
| 514 | - if ( strpos( strtolower( WPDEV_BK_VERSION ), 'multisite' ) !== false ) { | |
| 521 | + if ( false !== strpos( strtolower( WPDEV_BK_VERSION ), 'multisite' ) ) { | |
| 515 | 522 | $v_type = '5'; |
| 516 | - } else if ( strpos( strtolower( WPDEV_BK_VERSION ), 'develop' ) !== false ) { | |
| 523 | + } else if ( false !== strpos( strtolower( WPDEV_BK_VERSION ), 'develop' ) ) { | |
| 517 | 524 | $v_type = '2'; |
| 518 | 525 | } |
| 519 | 526 | |
| 520 | 527 | if ( ! empty( $v_type ) ) { |
| @@ -519,9 +526,9 @@ | ||
| 519 | 526 | |
| 520 | 527 | if ( ! empty( $v_type ) ) { |
| 521 | 528 | return ' ' . $v_type . ' ' . __( 'websites', 'booking' ); |
| 522 | 529 | } else { |
| 523 | - return ' 1' . ' ' . __( 'website', 'booking' ); | |
| 530 | + return ' 1' . ' ' . __( 'website', 'booking' ); | |
| 524 | 531 | } |
| 525 | 532 | } |
| 526 | 533 | |
| 527 | 534 | function wpbc_dashboard_info_get_version_number() { |
| @@ -529,8 +536,12 @@ | ||
| 529 | 536 | if ( substr( WPDEV_BK_VERSION, 0, 3 ) == '11.' ) { |
| 530 | 537 | |
| 531 | 538 | $show_version = substr( WPDEV_BK_VERSION, 3 ); |
| 532 | 539 | |
| 540 | + if ( ( '' === trim( $show_version ) ) || ( '0' === trim( $show_version ) ) ) { | |
| 541 | + return esc_attr( WP_BK_VERSION_NUM ); | |
| 542 | + } | |
| 543 | + | |
| 533 | 544 | if ( substr( $show_version, ( - 1 * ( strlen( WP_BK_VERSION_NUM ) ) ) ) === WP_BK_VERSION_NUM ) { |
| 534 | 545 | $show_version = substr( $show_version, 0, ( - 1 * ( strlen( WP_BK_VERSION_NUM ) ) - 1 ) ); |
| 535 | 546 | $show_version = str_replace( '.', ' ', $show_version ) . " <sup><strong style='font-size:12px;'>" . esc_attr( WP_BK_VERSION_NUM ) . "</strong></sup>"; |
| 536 | 547 | } |
| @@ -551,9 +562,9 @@ | ||
| 551 | 562 | |
| 552 | 563 | Disbale hidded notice about Upgrade to higher version in paid versions |
| 553 | 564 | // FixIn: 8.0.1.6. |
| 554 | 565 | if ( ( $version !== 'free' ) && ( class_exists('wpdev_bk_multiuser') === false ) ) { ?> |
| 555 | - <div class="wpbc_dashboard_section border_orrange" id="bk_upgrade_section"> | |
| 566 | + <div class="wpbc_dashboard_section border_orrange" id="bk_upgrade_section"> | |
| 556 | 567 | <div style="padding:0px 10px;width:96%;"> |
| 557 | 568 | <h4><?php esc_html_e('Upgrade to higher versions' , 'booking' ); ?>:</h4> |
| 558 | 569 | <p>Check additional advanced functionality, which exist in higher versions and can be interesting for you <a href="https://wpbookingcalendar.com/features/" target="_blank">here »</a></p> |
| 559 | 570 | <p><a class="button button-primary" style="margin-top: 10px;font-weight: 600;" href="<?php echo wpbc_up_link(); ?>" target="_blank"><?php if ( wpbc_get_ver_sufix() == '' ) { esc_html_e('Purchase' ,'booking'); } else { esc_html_e('Upgrade Now' ,'booking'); } ?></a> </p> |
| @@ -566,9 +577,9 @@ | ||
| 566 | 577 | jQuery('#bk_upgrade_section').animate({opacity:1},7000).fadeOut(2000); |
| 567 | 578 | }); |
| 568 | 579 | </script> |
| 569 | 580 | <?php } ?> |
| 570 | - <?php } | |
| 581 | + <?php } | |
| 571 | 582 | */ |
| 572 | 583 | ?> |
| 573 | 584 | <div id="wpbc_dashboard_section_current_version" class="wpbc_dashboard_section" > |
| 574 | 585 | <span class="bk_header"><?php esc_html_e('Current version' ,'booking'); ?>:</span> |
| @@ -580,10 +591,10 @@ | ||
| 580 | 591 | </tr> |
| 581 | 592 | <?php } ?> |
| 582 | 593 | <tr class="first"> |
| 583 | 594 | <td style="width:35%;text-align: right;;" class=""><?php esc_html_e('Version' ,'booking'); ?>:</td> |
| 584 | - <td style="color: #e50;font-size: 13px;font-weight: 600;text-align: left;text-shadow: 0 -1px 0 #eee;;" | |
| 585 | - class="bk_spec_font"><?php | |
| 595 | + <td style="color: #e50;font-size: 13px;font-weight: 600;text-align: left;text-shadow: 0 -1px 0 #eee;;" | |
| 596 | + class="bk_spec_font"><?php | |
| 586 | 597 | // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 587 | 598 | echo wpbc_dashboard_info_get_version_number(); |
| 588 | 599 | |
| 589 | 600 | ?></td> |
| @@ -629,10 +640,10 @@ | ||
| 629 | 640 | </tr> |
| 630 | 641 | </table> |
| 631 | 642 | </div> |
| 632 | 643 | </div> |
| 633 | - | |
| 634 | - <?php | |
| 644 | + | |
| 645 | + <?php | |
| 635 | 646 | } |
| 636 | 647 | |
| 637 | 648 | |
| 638 | 649 | /** Dashboard Statistic Section */ |
| @@ -648,22 +659,22 @@ | ||
| 648 | 659 | <div class="wpbc_dashboard_section bk_right"> |
| 649 | 660 | <span class="bk_header"><?php esc_html_e('Statistic' ,'booking'); ?>:</span> |
| 650 | 661 | <table class="bk_table"> |
| 651 | 662 | <tr> |
| 652 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&view_mode=vm_listing&overwrite=1' ); ?>"><span><?php echo esc_html( $counter['booking_today'] ); ?></span></a> </td> | |
| 653 | - <td class="actual-bookings"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&view_mode=vm_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Bookings for today' ,'booking'); ?></a> </td> | |
| 663 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&tab=vm_booking_listing&overwrite=1' ); ?>"><span><?php echo esc_html( $counter['booking_today'] ); ?></span></a> </td> | |
| 664 | + <td class="actual-bookings"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&tab=vm_booking_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Bookings for today' ,'booking'); ?></a> </td> | |
| 654 | 665 | </tr> |
| 655 | 666 | <tr class="first"> |
| 656 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"><span><?php echo esc_html( $counter['was_made_today'] ); ?></span></a> </td> | |
| 657 | - <td class="new-bookings"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('New booking(s) made today' ,'booking'); ?></a> </td> | |
| 667 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"><span><?php echo esc_html( $counter['was_made_today'] ); ?></span></a> </td> | |
| 668 | + <td class="new-bookings"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('New booking(s) made today' ,'booking'); ?></a> </td> | |
| 658 | 669 | </tr> |
| 659 | 670 | <tr class="first"> |
| 660 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['new'] ); ?></span></a> </td> | |
| 661 | - <td class=""> <a href="<?php echo esc_url( $bk_admin_url.'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"><?php esc_html_e('New (unverified) booking(s)' ,'booking'); ?></a></td> | |
| 671 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['new'] ); ?></span></a> </td> | |
| 672 | + <td class=""> <a href="<?php echo esc_url( $bk_admin_url.'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"><?php esc_html_e('New (unverified) booking(s)' ,'booking'); ?></a></td> | |
| 662 | 673 | </tr> |
| 663 | 674 | <tr> |
| 664 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['pending'] ); ?></span></a></td> | |
| 665 | - <td class="pending"><a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Pending booking(s)' ,'booking'); ?></a></td> | |
| 675 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['pending'] ); ?></span></a></td> | |
| 676 | + <td class="pending"><a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Pending booking(s)' ,'booking'); ?></a></td> | |
| 666 | 677 | </tr> |
| 667 | 678 | </table> |
| 668 | 679 | </div> |
| 669 | 680 | <div class="wpbc_dashboard_section" > |
| @@ -669,22 +680,22 @@ | ||
| 669 | 680 | <div class="wpbc_dashboard_section" > |
| 670 | 681 | <span class="bk_header"><?php esc_html_e('Agenda' ,'booking'); ?>:</span> |
| 671 | 682 | <table class="bk_table"> |
| 672 | 683 | <tr> |
| 673 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=10&view_mode=vm_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_in_today'] ); ?></span></a></td> | |
| 674 | - <td class="pending"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=10&view_mode=vm_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check in - Today', 'booking'); ?></a></td> | |
| 684 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=10&tab=vm_booking_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_in_today'] ); ?></span></a></td> | |
| 685 | + <td class="pending"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=10&tab=vm_booking_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check in - Today', 'booking'); ?></a></td> | |
| 675 | 686 | </tr> |
| 676 | 687 | <tr> |
| 677 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=11&view_mode=vm_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_out_today'] ); ?></span></a></td> | |
| 678 | - <td class=""><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=11&view_mode=vm_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check out - Today', 'booking'); ?></a></td> | |
| 688 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=11&tab=vm_booking_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_out_today'] ); ?></span></a></td> | |
| 689 | + <td class=""><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=11&tab=vm_booking_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check out - Today', 'booking'); ?></a></td> | |
| 679 | 690 | </tr> |
| 680 | 691 | <tr> |
| 681 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=7&view_mode=vm_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_in_tomorrow'] ); ?></span></a></td> | |
| 682 | - <td class="new-bookings"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=7&view_mode=vm_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check in - Tomorrow', 'booking'); ?></a></td> | |
| 692 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=7&tab=vm_booking_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_in_tomorrow'] ); ?></span></a></td> | |
| 693 | + <td class="new-bookings"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=7&tab=vm_booking_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check in - Tomorrow', 'booking'); ?></a></td> | |
| 683 | 694 | </tr> |
| 684 | 695 | <tr> |
| 685 | - <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=8&view_mode=vm_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_out_tomorrow'] ); ?></span></a></td> | |
| 686 | - <td class="actual-bookings"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=8&view_mode=vm_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check out - Tomorrow', 'booking'); ?></a></td> | |
| 696 | + <td class="first"> <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=8&tab=vm_booking_listing&overwrite=1' ); ?>"><span class=""><?php echo esc_html( $counter['check_out_tomorrow'] ); ?></span></a></td> | |
| 697 | + <td class="actual-bookings"><a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=8&tab=vm_booking_listing&overwrite=1' ); ?>" class=""><?php esc_html_e('Check out - Tomorrow', 'booking'); ?></a></td> | |
| 687 | 698 | </tr> |
| 688 | 699 | |
| 689 | 700 | </table> |
| 690 | 701 | </div> |
| @@ -833,14 +844,14 @@ | ||
| 833 | 844 | // Was made today ----------------------------------------------------------------------------------------------------- |
| 834 | 845 | ?> |
| 835 | 846 | <div class="wpbc_flex_dashboard_item"> |
| 836 | 847 | <div class="wpbc_flex_dashboard_item_number"> |
| 837 | - <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"> | |
| 848 | + <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"> | |
| 838 | 849 | <span><?php echo esc_html( $counter['was_made_today'] ); ?></span> |
| 839 | 850 | </a> |
| 840 | 851 | </div> |
| 841 | 852 | <div class="wpbc_flex_dashboard_item_text wpbc_flex_dashboard_item_text_was_made_today"> |
| 842 | - <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>" class=""> | |
| 853 | + <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>" class=""> | |
| 843 | 854 | <?php esc_html_e('New booking(s) made today' ,'booking');?> |
| 844 | 855 | </a> |
| 845 | 856 | </div> |
| 846 | 857 | </div> |
| @@ -849,14 +860,14 @@ | ||
| 849 | 860 | // For today --------------------------------------------------------------------------------------------------- |
| 850 | 861 | ?> |
| 851 | 862 | <div class="wpbc_flex_dashboard_item"> |
| 852 | 863 | <div class="wpbc_flex_dashboard_item_number"> |
| 853 | - <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&view_mode=vm_listing&overwrite=1' ); ?>"> | |
| 864 | + <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&tab=vm_booking_listing&overwrite=1' ); ?>"> | |
| 854 | 865 | <span><?php echo esc_html( $counter['booking_today'] ); ?></span> |
| 855 | 866 | </a> |
| 856 | 867 | </div> |
| 857 | 868 | <div class="wpbc_flex_dashboard_item_text wpbc_flex_dashboard_item_text_made_for_today"> |
| 858 | - <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&view_mode=vm_listing&overwrite=1' ); ?>" class=""> | |
| 869 | + <a href="<?php echo esc_url( $bk_admin_url.'&wh_trash=0&wh_booking_date[]=1&tab=vm_booking_listing&overwrite=1' ); ?>" class=""> | |
| 859 | 870 | <?php esc_html_e('Booking(s) for today' ,'booking');?> |
| 860 | 871 | </a> |
| 861 | 872 | </div> |
| 862 | 873 | </div> |
| @@ -865,14 +876,14 @@ | ||
| 865 | 876 | // Pending ----------------------------------------------------------------------------------------------------- |
| 866 | 877 | ?> |
| 867 | 878 | <div class="wpbc_flex_dashboard_item"> |
| 868 | 879 | <div class="wpbc_flex_dashboard_item_number"> |
| 869 | - <a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"> | |
| 880 | + <a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"> | |
| 870 | 881 | <span class=""><?php echo esc_html( $counter['pending'] ); ?></span> |
| 871 | 882 | </a> |
| 872 | 883 | </div> |
| 873 | 884 | <div class="wpbc_flex_dashboard_item_text wpbc_flex_dashboard_item_text_pending"> |
| 874 | - <a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>" class=""> | |
| 885 | + <a href="<?php echo esc_url( $bk_admin_url.'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>" class=""> | |
| 875 | 886 | <?php esc_html_e('Pending booking(s)' ,'booking');?> |
| 876 | 887 | </a> |
| 877 | 888 | </div> |
| 878 | 889 | </div> |
| @@ -882,14 +893,14 @@ | ||
| 882 | 893 | // New --------------------------------------------------------------------------------------------------------- |
| 883 | 894 | ?> |
| 884 | 895 | <div class="wpbc_flex_dashboard_item"> |
| 885 | 896 | <div class="wpbc_flex_dashboard_item_number"> |
| 886 | - <a href="<?php echo esc_url( $bk_admin_url.'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"> | |
| 897 | + <a href="<?php echo esc_url( $bk_admin_url.'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"> | |
| 887 | 898 | <span class=""><?php echo esc_html( $counter['new'] ); ?></span> |
| 888 | 899 | </a> |
| 889 | 900 | </div> |
| 890 | 901 | <div class="wpbc_flex_dashboard_item_text wpbc_flex_dashboard_item_text_new"> |
| 891 | - <a href="<?php echo esc_url( $bk_admin_url. '&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&view_mode=vm_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'New (unverified) booking(s)', 'booking' ); ?> | |
| 902 | + <a href="<?php echo esc_url( $bk_admin_url. '&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'New (unverified) booking(s)', 'booking' ); ?> | |
| 892 | 903 | </a> |
| 893 | 904 | </div> |
| 894 | 905 | </div> |
| 895 | 906 | <?php |
| @@ -927,5 +938,5 @@ | ||
| 927 | 938 | </div> |
| 928 | 939 | </div> |
| 929 | 940 | <?php |
| 930 | 941 | |
| 931 | - } | |
| 942 | + } | |