| @@ -536,8 +536,12 @@ | ||
| 536 | 536 | if ( substr( WPDEV_BK_VERSION, 0, 3 ) == '11.' ) { |
| 537 | 537 | |
| 538 | 538 | $show_version = substr( WPDEV_BK_VERSION, 3 ); |
| 539 | 539 | |
| 540 | + if ( ( '' === trim( $show_version ) ) || ( '0' === trim( $show_version ) ) ) { | |
| 541 | + return esc_attr( WP_BK_VERSION_NUM ); | |
| 542 | + } | |
| 543 | + | |
| 540 | 544 | if ( substr( $show_version, ( - 1 * ( strlen( WP_BK_VERSION_NUM ) ) ) ) === WP_BK_VERSION_NUM ) { |
| 541 | 545 | $show_version = substr( $show_version, 0, ( - 1 * ( strlen( WP_BK_VERSION_NUM ) ) - 1 ) ); |
| 542 | 546 | $show_version = str_replace( '.', ' ', $show_version ) . " <sup><strong style='font-size:12px;'>" . esc_attr( WP_BK_VERSION_NUM ) . "</strong></sup>"; |
| 543 | 547 | } |
| @@ -558,9 +562,9 @@ | ||
| 558 | 562 | |
| 559 | 563 | Disbale hidded notice about Upgrade to higher version in paid versions |
| 560 | 564 | // FixIn: 8.0.1.6. |
| 561 | 565 | if ( ( $version !== 'free' ) && ( class_exists('wpdev_bk_multiuser') === false ) ) { ?> |
| 562 | - <div class="wpbc_dashboard_section border_orrange" id="bk_upgrade_section"> | |
| 566 | + <div class="wpbc_dashboard_section border_orrange" id="bk_upgrade_section"> | |
| 563 | 567 | <div style="padding:0px 10px;width:96%;"> |
| 564 | 568 | <h4><?php esc_html_e('Upgrade to higher versions' , 'booking' ); ?>:</h4> |
| 565 | 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> |
| 566 | 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> |
| @@ -573,9 +577,9 @@ | ||
| 573 | 577 | jQuery('#bk_upgrade_section').animate({opacity:1},7000).fadeOut(2000); |
| 574 | 578 | }); |
| 575 | 579 | </script> |
| 576 | 580 | <?php } ?> |
| 577 | - <?php } | |
| 581 | + <?php } | |
| 578 | 582 | */ |
| 579 | 583 | ?> |
| 580 | 584 | <div id="wpbc_dashboard_section_current_version" class="wpbc_dashboard_section" > |
| 581 | 585 | <span class="bk_header"><?php esc_html_e('Current version' ,'booking'); ?>:</span> |
| @@ -587,10 +591,10 @@ | ||
| 587 | 591 | </tr> |
| 588 | 592 | <?php } ?> |
| 589 | 593 | <tr class="first"> |
| 590 | 594 | <td style="width:35%;text-align: right;;" class=""><?php esc_html_e('Version' ,'booking'); ?>:</td> |
| 591 | - <td style="color: #e50;font-size: 13px;font-weight: 600;text-align: left;text-shadow: 0 -1px 0 #eee;;" | |
| 592 | - 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 | |
| 593 | 597 | // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 594 | 598 | echo wpbc_dashboard_info_get_version_number(); |
| 595 | 599 | |
| 596 | 600 | ?></td> |
| @@ -636,10 +640,10 @@ | ||
| 636 | 640 | </tr> |
| 637 | 641 | </table> |
| 638 | 642 | </div> |
| 639 | 643 | </div> |
| 640 | - | |
| 641 | - <?php | |
| 644 | + | |
| 645 | + <?php | |
| 642 | 646 | } |
| 643 | 647 | |
| 644 | 648 | |
| 645 | 649 | /** Dashboard Statistic Section */ |
| @@ -934,5 +938,5 @@ | ||
| 934 | 938 | </div> |
| 935 | 939 | </div> |
| 936 | 940 | <?php |
| 937 | 941 | |
| 938 | - } | |
| 942 | + } | |