Example #1
0
function wpdevbk_show_help_dropdown_menu_in_top_menu_line()
{
    $title = __('Help', 'wpdev-booking');
    ?>
        <span class="dropdown pull-right">
            <a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle nav-tab "
               ><i class="icon-question-sign"></i> <?php 
    echo $title;
    ?>
 <b class="caret" style="border-top-color: #333333 !important;"></b></a>
          <ul class="dropdown-menu" id="menu1" style="right:0px; left:auto;">
            <li><a href="<?php 
    echo esc_url(admin_url(add_query_arg(array('page' => 'wpbc-about'), 'index.php')));
    ?>
"><?php 
    _e('About Booking Calendar', 'wpdev-booking');
    ?>
</a></li>
            <li class="divider"></li>
            <li><a href="http://wpbookingcalendar.com/help/" target="_blank"><?php 
    _e('Help', 'wpdev-booking');
    ?>
</a></li>
            <li><a href="http://wpbookingcalendar.com/faq/" target="_blank"><?php 
    _e('FAQ', 'wpdev-booking');
    ?>
</a></li>
            <li><a href="http://wpbookingcalendar.com/support/" target="_blank"><?php 
    _e('Technical Support', 'wpdev-booking');
    ?>
</a></li>
            <li class="divider"></li>
            <li><a style="font-size: 1.1em;font-weight: bold;" href="<?php 
    echo wpbc_up_link();
    ?>
" target="_blank"><?php 
    if (wpbc_get_ver_sufix() == '') {
        _e('Upgrade Now', 'wpdev-booking');
    } else {
        _e('Upgrade Now', 'wpdev-booking');
    }
    ?>
</a></li>
          </ul>
        </span>
        <?php 
}
Example #2
0
    public function content_premium()
    {
        list($display_version) = explode('-', WPDEV_BK_VERSION);
        // $upgrade_link = esc_url( admin_url( add_query_arg( array( 'page' => 'wpbc-about-premium' ), 'index.php' ) ) );
        ?>
        <div class="wrap about-wrap wpbc-welcome-page">

                <?php 
        $this->title_section();
        ?>

                <table class="about-text" style="margin-bottom:30px;height:auto;font-size:1em;width:100%;" >
                    <tr>
                        <td>
                            <a  href="<?php 
        echo esc_url(admin_url(add_query_arg(array('page' => 'wpbc-getting-started'), 'index.php')));
        ?>
"
                                style="float: left; height: 36px; line-height: 34px;" 
                                class="button-primary"
                                >&nbsp;<span style="font-size: 20px;line-height: 18px;padding-right: 5px;">&lsaquo;&lsaquo;&lsaquo;</span> <strong>Get Started</strong> 
                            </a>
                        </td>
                        <td style="width:50%">                            
                            <a class="button button-primary" style="font-weight: bold;float: right; height: 36px; line-height: 34px;"  href="<?php 
        echo wpbc_up_link();
        ?>
" target="_blank">&nbsp;<?php 
        if (wpbc_get_ver_sufix() == '') {
            _e('Purchase', 'wpdev-booking');
        } else {
            _e('Upgrade Now', 'wpdev-booking');
        }
        ?>
&nbsp;&nbsp;</a>
                        </td>
                    </tr>
                </table>                        
            <?php 
        echo '<div style="color: #999;font-size: 24px;margin-top: 0px;text-align: center;width: 100%;">';
        echo 'Get even more functionality with premium versions...';
        echo '</div>';
        echo $this->get_img('premium/admin-panel-calendar-overvew4.png', 'margin:15px auto; width: 98%;');
        echo '<div class="clear" style="height:30px;"></div>';
        $this->show_header('Booking Calendar Personal version' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 0;" href="http://personal.wpbookingcalendar.com/admin-panel/" target="_blank"' . '> **Live Demo** *Admin Panel*</a>' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 10px 6px 0;" href="http://personal.wpbookingcalendar.com/" target="_blank"' . '> **Live Demo** *Front End*</a><div class="clear"></div>', 'h2', 'font-size: 2.1em;  background:#e5e5e5;color: #777;line-height: 1.5em;padding:5px 15px;');
        $this->show_separator();
        $this->show_col_section(array(array('h4' => 'Unlimited number of **Booking Resources**', 'text' => '<p>Booking resources - it\'s your **services** or **properties** *(like houses, cars, tables, etc...)*, that can be booked by visitors of your website.</p>' . '<p>Each booking resource have own unique calendar *(with  booking form)*, which  will **prevent of double bookings** for the same date(s).</p>' . '<p>It\'s means that you can **receive bookings and show unavailable, booked dates** in different calendars **for different booking resources** *(services or properties)*.</p>' . $this->get_img('premium/2-booking-forms.png', 'margin:0 0 10px 0; width: 97%;') . '<p>You can add/delete/modify your booking resources at the Booking > Resource page. 
You can define the calendar *(booking form)* to the specific booking resources, 
at the popup configuration dialog, during inserting booking shortcode into post or page.</p>'), array('img' => 'premium/booking-resources.png', 'img_style' => 'margin-top:40px;width:95%;')));
        $this->show_col_section(array(array('h4' => 'Configure Booking Form and Email Templates', 'text' => '**Booking Form**<br />' . '<p>Configure any format and view of your booking form *(for example two columns view,  with calendar in left column and form fields at right side, etc...)*</p>' . '<p>Add **any number of new form fields** *(text fields, drop down lists, radio-buttons, check-boxes or textarea elements, etc...)*</p>' . '<br />**Email Templates**<br />' . '<p>You can activate and configure email templates for the different booking actions with shortcodes for any exist form fields and some other system shortcodes *(like inserting address of the page (or user IP), where user made this action)*.</p>'), array('img' => 'premium/booking-form-fields.png', 'img_style' => 'margin-top:20px;width:95%;')));
        $this->show_col_section(array(array('h4' => 'Manage Bookings', 'text' => '<ul>
    <li style="margin-left: 1em;">**Edit** your bookings by changing details or dates of specific booking</li>
    <li style="margin-left: 1em;">Add **notes** to bookings for do not forget important info</li>
    <li style="margin-left: 1em;">**Print** booking listings</li>
    <li style="margin-left: 1em;">**Export** bookings to the **CSV format**</li>
    <li style="margin-left: 1em;">**Import** bookings from **Google Calendar**</li>

    <li style="margin-left: 1em;">And much more...</li>
</ul>'), array('img' => 'premium/booking-actions-buttons.png', 'img_style' => 'margin-top:20px;width:95%;')));
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.95em;font-style:italic;text-align:right;margin:5px 0 10px;">Check many other nice features in  Booking Calendar Personal version at <a target="_blank" href="http://wpbookingcalendar.com/features/">features list</a> and test <a target="_blank" href="http://wpbookingcalendar.com/demo/">live demo</a>.</div>');
        ?>
<div class="clear" style="height:30px;"></div><?php 
        $this->show_header('Booking Calendar Business Small version' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 0;" href="http://bs.wpbookingcalendar.com/admin-panel/" target="_blank"' . '> **Live Demo** *Admin Panel*</a>' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 10px 6px 0;" href="http://bs.wpbookingcalendar.com/" target="_blank"' . '> **Live Demo** *Front End*</a><div class="clear"></div>', 'h2', 'font-size: 2.1em;  background:#e5e5e5;color: #777;line-height: 1.5em;padding:5px 15px;');
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.85em;font-style: italic;margin: 5px 0 0 10px;">**Note!** This version support **all functionality** from the Booking Calendar **Personal** version.</div>');
        $this->show_col_section(array(array('h4' => 'Hourly Bookings', 'text' => '<p>Add ability to make bookings for specific **timeslots** *(like in <a href="http://bs.wpbookingcalendar.com/" targe="_blank">this live demo</a>)*.</p>' . '<p>Configure selections or entering any times interval *(several hours or few minutes)* at the Booking > Settings > Fields page:' . '<ul>
    <li style="margin-left: 1em;">Start time and end **time entering** in *"time text fields"*</li>
    <li style="margin-left: 1em;">Selections specific time in **timeslot** list</li>
    <li style="margin-left: 1em;">Selections **start time and end time**</li>
    <li style="margin-left: 1em;">Selections **start time and duration** of time</li>
</ul></p>' . '<p>**Please note**, if you will make the booking for specific timeslot, this timeslot become unavailable for the other visitors for this selected date.</p>' . '<p>You can even activate booking of same timeslot in the several selected dates during the same booking session.</p>'), array('img' => 'premium/time-slots-booking.png', 'img_style' => 'margin:20px 25% auto;width:50%;')));
        $this->show_col_section(array(array('h4' => 'Online Payments', 'text' => '<p>' . 'You can set cost per specific booking resource and activate online payments' . '</p>' . '<p>' . 'Suport Payment Gateways:' . '<ul>
      <li style="margin-left: 1em;">Direct/wire bank transfer</li>
      <li style="margin-left: 1em;">Cash payments</li>
      <li style="margin-left: 1em;">PayPal Standard</li>
      <li style="margin-left: 1em;">PayPal Pro Hosted Solution *(note, its doesn\'t PayPal Pro)*</li>
      <li style="margin-left: 1em;">Authorize.Net *(Server Integration Method (SIM))*</li>
      <li style="margin-left: 1em;">Sage Pay</li>
      <li style="margin-left: 1em;">iPay88</li>
  </ul></p>' . '<p>' . 'You can activate and configure these gateways at Booking > Settings > Payment page.' . '</p>' . '<p>' . '*You can even send payment request by email for specific booking*.' . '</p>'), array('img' => 'premium/payment-buttons1.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Change over days', 'text' => '<p>' . 'You can use the **same date** as **"check in/out"** for **different bookings**.' . '</p>' . '<p>' . 'These **half booked days** will mark  by vertical line *(as in <a href="http://bm.wpbookingcalendar.com/" targe="_blank">this live demo</a>)*.' . '</p>' . '<p>' . 'It\'s means that  your visitors can start  new booking on the same date,  where some old bookings was ending.' . '</p>' . '<p>' . 'To activate this feature you need select *range days selection* or *multiple days selections* mode on the *General Booking Settings* page in calendar  section.' . ' After  this you can activate the *"Use check in/out time"* option  and configure the check in/out times. For example, check in time as 14:00 and check out time as 12:00.' . '</p>'), array('img' => 'premium/change-over-days2.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Range days selection', 'text' => '<p>' . 'Activate **several days selection with 1 or 2 mouse clicks** *(by selecting check in and check out dates, all middle days will be selected automatically)*.' . '</p>' . '<p>' . 'Its means that you can set only **week(s) selections** or any other number of days selections.' . '</p>' . '<p>' . 'Configure **specific number of days** selections for *range days selection with one mouse click*. ' . 'Or set **minimum and maximum number of days** selections (or even several  specific number of days) for *range days selection with two mouse clicks*.' . '</p>' . '<p>' . 'In addition you can **set start day(s)** selections for only **specific week days**.' . '</p>'), array('img' => 'premium/range-days-settings.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Auto Cancellation  / Auto Approval', 'text' => '<p>' . 'You can activate **auto cancellation of all pending booking(s)**, which have no successfully paid status, after specific amount of time, when booking(s) was making.' . '</p>' . '<p>' . 'This feature will set dates again available for new booking(s) to other visitors.' . '</p>' . '<p>' . 'You can even activate sending of emails to the visitors, during such cancelation.' . '</p>' . '<p>' . 'Or you can activate **auto approval of all incoming bookings**.' . '</p>'), array('img' => 'premium/auto-cancelation-settings.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.95em;font-style:italic;text-align:right;margin:5px 0 10px;">Check many other nice features in Booking Calendar Business Small version at <a target="_blank" href="http://wpbookingcalendar.com/features/">features list</a> and test <a target="_blank" href="http://wpbookingcalendar.com/demo/">live demo</a>.</div>');
        ?>
<div class="clear" style="height:30px;"></div><?php 
        $this->show_header('Booking Calendar Business Medium version' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 0;" href="http://bm.wpbookingcalendar.com/admin-panel/" target="_blank"' . '> **Live Demo** *Admin Panel*</a>' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 10px 6px 0;" href="http://bm.wpbookingcalendar.com/" target="_blank"' . '> **Live Demo** *Front End*</a><div class="clear"></div>', 'h2', 'font-size: 2.1em;  background:#e5e5e5;color: #777;line-height: 1.5em;padding:5px 15px;');
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.85em;font-style: italic;margin: 5px 0 0 10px;">**Note!** This version support **all functionality** from the Booking Calendar **Business Small** version.</div>');
        $this->show_col_section(array(array('h4' => 'Season Availability', 'text' => '<p>' . 'You can set as **unavailable days** in your booking resources **for specific seasons**.' . '</p>' . '<p>' . 'Its useful, when you need to **block days for holidays** or any other seasons during a year.' . '</p>' . '<p>' . 'You can set days as conditional seasons filters *(for example, only weekends during summer)* or simply select range of days for specific seasons.' . '</p>' . '<p>' . 'Note, instead of definition days as unavailable, you can set all days unavailable and only days from specific season filer as available.' . '</p>' . '<p>' . '* **Configuration.** You can create season filters at the Booking > Resources > Filters page and then at the Booking > Resources > **Availability** page set days from  specific season as unavailable for the specific booking resources.*' . '</p>'), array('img' => 'premium/season-filters.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Set Rates for different Seasons', 'text' => '<p>' . 'Set different **daily cost (rates) for** different **seasons**.' . '</p>' . '<p>' . '*For example, you can have higher cost for the "High Season" or at weekends.*' . '</p>' . '<p>' . 'You can set rates as **fixed cost per day** (night) **or as percent** from original cost of booking resource.' . '</p>' . '<p>' . '* **Configuration.** You can set rates for your booking resources at Booking > Resources > **Cost and rates** page by clicking on **Rate** button.*' . '</p>'), array('img' => 'premium/season-rates.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Cost depends from number of selected days', 'text' => '<p>' . 'You can configure **different cost** for different **number of selected days**.' . '</p>' . '<p>' . '*For example, cost of second selected week, can be lower then cost of first week.*' . '</p>' . '<p>' . 'You can set **cost per day(s)** or **percentage** from the original cost:' . '<ul>
      <li style="margin-left: 2em;">**For** specific selected day number</li>
      <li style="margin-left: 2em;">**From** one day number **to** other selected day number</li>
  </ul>' . 'or you can set the **total cost** of booking for **all days**:' . '<ul>
      <li style="margin-left: 2em;">If selected, exactly specific number of days *(term "**Together**")*</li>      
  </ul></p>' . '<p>' . 'In addition, you can even set applying this cost only, if the "Check In" day in specific season filter.' . '</p>' . '<p>' . '* **Configuration.** You can set rates for your booking resources at Booking > Resources > **Cost and rates** page by clicking on "**Valuation days**" button.*' . '</p>'), array('img' => 'premium/valuation-days.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Cost depends from selection options in booking form', 'text' => '<p>' . 'You can set additional costs, like tax or some other additional charges *(cleaning, breakfast,  etc...)*, or just increase the cost of booking depends from the visitor number selection in your booking form.' . '</p>' . '<p>' . 'Its means that you can set additional cost for any selected option(s) in select-boxes or checkboxes at your booking form.' . '</p>' . '<p>' . 'You can set fixed cost or percentage from the total booking cost or additional cost per each selected day or night.' . '</p>' . '<p>' . '* **Configuration.** Firstly you need to configure options selection in select-boxes or checkboxes in your booking form at Booking > Settings > Fields page, then you be able to configure additional cost for each such option at the Booking > Resources > **Advanced cost** page .*' . '</p>' . '<p>' . '* **Tip & Trick.** ' . 'You can **show cost hints** separately for the each items, that have additional cost *at Booking > Resources > Advanced cost page*. 
                                    <br>For example, if you have configured additional cost for **my_tax** option at **Advanced cost page**, 
                                    then in booking form you can use this shortcode <code>[my_tax_hint]</code> to show additional cost of this specific option. 
                                    <br>Add **"_hint"** term to name of shortcode for creation hint shortcode. *' . '</p>'), array('img' => 'premium/advanced-cost.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Deposit payments', 'text' => '<p>' . 'You can activate ability to **pay deposit (part of the booking cost)**, after visitor made the booking. ' . '</p>' . '<p>' . 'It\'s possible to set fixed deposit value or percent from the original cost for the specific booking resource.' . '</p>' . '<p>' . 'You can even activate to show deposit payment form, only when  the difference between *"today"* and *"check in"* days more than specific number of days. Or if *"check in"* day inside of specific season.' . '</p>' . '<p>' . '* **Configuration.** You can activate and configure **deposit** value for specific booking resources at the Booking > Resources > **Cost and rates** page by clicking on "**Deposit amount**" button.*' . '</p>'), array('img' => 'premium/deposit-settings.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Multiple Custom Booking Forms', 'text' => '<p>' . 'You can create **several custom forms** configurations.' . '</p>' . '<p>' . 'Its means that you can have the different booking forms *(which have the different form fields)* for different booking resources.' . '</p>' . '<p>' . 'You can also set specific custom form  as **default booking form to** each  of your **booking resources** at Booking > Resources page.' . '</p>' . '<p>' . '* **Configuration.** You can create several custom booking forms at the Booking > Settings > **Fields** page by clicking on **"Add new Custom Form"** button.*' . '</p>'), array('img' => 'premium/custom-booking-forms.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Advanced days selection', 'text' => '<p>' . 'Specify that on **specific week days** (or during certain seasons), the specific minimum (or fixed) **number of days** must be booked.' . '<br/>*For example: visitor can select only 3 days starting at Friday and Saturday, 4 days – Friday, 5 days – Monday, 7 days – Saturday, etc...*' . '</p>' . '<p>' . 'Also, you can define **specific week day(s) as start day** in calendar selection for the **specific season**.' . '<br/>*For example, in "High Season", you can allow start day selection only at Friday in the "Low Season" to start day selection from any weekday.*' . '</p>' . '<p>' . '*Read more about this configuration <a href="http://wpbookingcalendar.com/help/booking-calendar-shortcodes/" targe="_blank">here</a> (at **options** parameter section).*' . '</p>'), array('h4' => 'Different time slots for different days', 'text' => '<p>' . 'This feature provide ability to use the **different time slots selections** in the booking form **for different selected week days or seasons**.' . '</p>' . '<p>' . 'Each week day (day of specific season filter) can have different time slots list.' . '</p>' . '<p>' . 'You can check more info about this configuration at <a href="http://wpbookingcalendar.com/help/different-time-slots-selections-for-different-days/" targe="_blank">this page</a>.' . '</p>' . '<p>' . '**Note.** In the same way you can configure showing any different form fields, not only  timeslots.' . '</p>')));
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.95em;font-style:italic;text-align:right;margin:5px 0 10px;">Check many other nice features in Booking Calendar Business Medium version at <a target="_blank" href="http://wpbookingcalendar.com/features/">features list</a> and test <a target="_blank" href="http://wpbookingcalendar.com/demo/">live demo</a>.</div>');
        ?>
<div class="clear" style="height:30px;"></div><?php 
        $this->show_header('Booking Calendar Business Large version' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 0;" href="http://bl.wpbookingcalendar.com/admin-panel/" target="_blank"' . '> **Live Demo** *Admin Panel*</a>' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 10px 6px 0;" href="http://bl.wpbookingcalendar.com/" target="_blank"' . '> **Live Demo** *Front End*</a><div class="clear"></div>', 'h2', 'font-size: 2.1em;  background:#e5e5e5;color: #777;line-height: 1.5em;padding:5px 15px;');
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.85em;font-style: italic;margin: 5px 0 0 10px;">**Note!** This version support **all functionality** from the Booking Calendar **Business Medium** version.</div>');
        $this->show_col_section(array(array('h4' => 'Capacity and Availability', 'text' => '<p>' . 'You can receive **several specific number of bookings per same days**. ' . '</p>' . '<p>' . 'Define **capacity** for your **booking resource(s)**, 
          and then **dates** in calendar will be **available until number of bookings less than capacity** of the booking resource.' . '</p>' . '<p>' . '**Note!** Its possible to make reservation only for **entire date(s)**, not a time slots  
   *(data about time slots for booking resources with capacity higher than one, will be record into your DB, but do not apply to availability)*.' . '</p>' . '<p>' . '* **Configuration.** Set capacity of booking resources at Booking > **Resources** page. You can read more info about configurations of booking resources, capacity and availability  at  <a href="http://wpbookingcalendar.com/help/booking-resource/" target="_blank">this page</a>.*' . '</p>'), array('img' => 'premium/capacity3.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Search Availability', 'text' => '<p>' . 'Your visitors can even **search available booking resources** (properties or services) **for specific dates** *(like in this <a href="http://bl.wpbookingcalendar.com/search/" target="_blank">live demo</a>)*.' . '</p>' . '<p>' . 'Beside standard parameters: **check in** and **check out** dates, number of **visitors**, you can define **additional parameters** for your search form *(for example, searching property  with  specific amenities)*.
    <br />You can read more about this configurations at <a href="http://wpbookingcalendar.com/faq/selecting-tags-in-search-form/" target="_blank">FAQ</a>.' . '</p>' . '<p>' . '**Note!** Plugin  will search only among pages with booking forms for *<a href="http://wpbookingcalendar.com/help/booking-resource/" target="_blank">single or parent</a>* booking resources. You need to insert one booking form per page.' . '</p>' . '<p>' . '* **Configuration.** Customize your **search form**  and **search  results** at Booking > Settings > **Search** page. 
    After that you can <a href="http://wpbookingcalendar.com/help/booking-calendar-shortcodes/"  target="_blank">insert search form</a> shortcode into page and test.*' . '</p>'), array('img' => 'premium/search-results2.png', 'img_style' => 'margin:20px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Coupons for Discounts', 'text' => '<p>' . 'You can provide **discounts for bookings** to your visitors. Your visitors can **enter coupon codes** in booking form to **get discount** for booking(s).' . '</p>' . '<p>' . 'Its possible to create coupon code(s), which  will apply to  all or specific booking resources.
    You can set **expiration  date** of coupon code and **minimum cost** of booking, where this coupon code will apply.
    <br/>You can define discount as **fixed cost** or as **percentage** from the total cost  of booking.
' . '</p>' . '<p>' . '* **Configuration.** Create your coupons codes for discounts at Booking > Resources > **Coupons** page. 
    Then insert <a href="http://wpbookingcalendar.com/help/booking-form-fields/" target="_blank">coupon text field</a> into your booking form at Booking > Settings > Fields page.*' . '</p>'), array('img' => 'premium/coupons.png', 'img_style' => 'margin:2px 0;width:99%;')));
        $this->show_col_section(array(array('h4' => 'Pending days as available', 'text' => '<p>' . 'Set **pending days as available** in booking form to prevent from SPAM bookings.' . '</p>' . '<p>' . 'Activate **automatic cancelation** of **pending bookings** for specific date(s), if you **approved booking** on these date(s) at same booking resource.' . '</p>' . '<p>' . '*You can activate this feature at the General Booking Settings page in "Advanced" section.*' . '</p>'), array('img' => 'premium/pending-available.png', 'img_style' => 'margin:40px 0;width:99%;')));
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.95em;font-style:italic;text-align:right;margin:5px 0 10px;">Check many other nice features in Booking Calendar Business Large version at <a target="_blank" href="http://wpbookingcalendar.com/features/">features list</a> and test <a target="_blank" href="http://wpbookingcalendar.com/demo/">live demo</a>.</div>');
        ?>
<div class="clear" style="height:30px;"></div><?php 
        $this->show_header('Booking Calendar MultiUser version' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 0;" href="http://multiuser.wpbookingcalendar.com/admin-panel/" target="_blank"' . '> **Live Demo** *Admin Panel*</a>' . '<a class="button-secondary" style="float: right; height: 36px; line-height: 34px;margin:6px 10px 6px 0;" href="http://multiuser.wpbookingcalendar.com/" target="_blank"' . '> **Live Demo** *Front End*</a><div class="clear"></div>', 'h2', 'font-size: 2.1em;  background:#e5e5e5;color: #777;line-height: 1.5em;padding:5px 15px;');
        $this->show_separator();
        echo wpbc_recheck_strong_symbols('<div style="font-size: 0.85em;font-style: italic;margin: 5px 0 0 10px;">**Note!** This version support **all functionality** from the Booking Calendar **Business Large** version.</div>');
        $this->show_col_section(array(array('h4' => 'Separate Booking Admin Panels for your Users', 'text' => '<p>' . 'You can activate **independent booking admin panels** for each registered wordpress **users of your website** *(withing one website)*. ' . '</p>' . '<p>' . 'Such users *(**owners**)* can **see and manage only own bookings** and booking resources. 
           Other active users *(owners)* will not see the bookings from this owner, they can see only own bookings.' . '</p>' . '<p>' . 'Each *owner* can **configure own booking form**  and **own email templates**, activate and configure payment gateways to **own payment account**. 
           <br />Such users will receive notifications about new bookings to own emails and can approve or decline such  bookings. 
           ' . '</p>' . '<p>' . 'There are 2 types of the users: **super booking admin** and **regular users**. 
          Super booking admins can see and manage the bookings and booking resources from any users. Super booking admin can activate and manage status of other users.' . '</p>' . '<p>' . 'You can read more about the initial configuration at <a href="http://wpbookingcalendar.com/faq/multiuser-version-init-config/" target="_blank">FAQ</a>.' . '</p>'), array('img' => 'premium/users2.png', 'img_style' => 'margin-top:20px;width:95%;')));
        $this->show_separator();
        ?>
<div class="clear" style="height:30px;"></div><?php 
        ?>
            <table class="about-text" style="margin-bottom:30px;height:auto;font-size:1.1em;width:100%;" >
                <tr>
                    <td>
<?php 
        printf('Start using %scurrent version%s of Booking Calendar or upgrade to higher version', '<a class="button-secondary" style="height: 36px; line-height: 32px;font-size:15px;margin-top: -3px;" href="' . 'admin.php?page=' . WPDEV_BK_PLUGIN_DIRNAME . '/' . WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking' . '" >', '</a>');
        ?>
                            <a class="button button-primary" style="font-weight: bold; height: 36px; line-height: 32px;font-size:15px;margin-top: -3px;"  href="<?php 
        echo wpbc_up_link();
        ?>
" target="_blank">&nbsp;<?php 
        if (wpbc_get_ver_sufix() == '') {
            _e('Purchase', 'wpdev-booking');
        } else {
            _e('Upgrade Now', 'wpdev-booking');
        }
        ?>
&nbsp;&nbsp;</a>
                    </td>
                </tr>
            </table> 
            
        </div>
        <?php 
    }
function wpdev_bk_upgrade_window($version)
{
    if (!wpdev_bk_is_this_demo()) {
        ?>
        <div class='meta-box'>
            <div <?php 
        $my_close_open_win_id = 'bk_general_settings_upgrade';
        ?>
  id="<?php 
        echo $my_close_open_win_id;
        ?>
" class="gdrgrid postbox <?php 
        //if ( '1' == get_user_option( 'booking_win_' . $my_close_open_win_id ) ) echo 'closed';
        ?>
" > <?php 
        /*<div title="<?php _e('Click to toggle' ,'booking'); ?>" class="handlediv"  onclick="javascript:verify_window_opening(<?php echo get_bk_current_user_id(); ?>, '<?php echo $my_close_open_win_id; ?>');"><br></div>*/
        ?>
            <h3 class='hndle'><span><span><?php 
        echo 'Upgrade to ';
        if ($version == 'personal') {
            echo 'Business Small /';
        }
        if (in_array($version, array('personal', 'biz_s'))) {
            echo 'Business Medium /';
        }
        if (in_array($version, array('personal', 'biz_s', 'biz_m'))) {
            echo 'Business Large /';
        }
        echo ' MultiUser';
        ?>
</span></span></h3>
            <div class="inside">

                <div style="width:100%;border:none; clear:both;margin:10px 0px;" id="bk_news_section"> 
                        <div id="bk_news"><span style="font-size:11px;text-align:center;">Loading...</span></div>
                        <div id="ajax_bk_respond" style="display:none;"></div>
                                <?php 
        /*
                                        $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 ;
                                        }*/
        ?>
                    
                        <script type="text/javascript">
                            jQuery.ajax({                                           // Start Ajax Sending
                                // url: '<?php 
        echo WPDEV_BK_PLUGIN_URL, '/', WPDEV_BK_PLUGIN_FILENAME;
        ?>
' ,
                                url: '<?php 
        echo admin_url('admin-ajax.php');
        ?>
',
                                type:'POST',
                                success: function (data, textStatus){if( textStatus == 'success')   jQuery('#ajax_bk_respond').html( data );},
                                error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;
                                },                            
                                data:{
                                    // ajax_action : 'CHECK_BK_FEATURES',
                                    action : 'CHECK_BK_FEATURES',
                                    wpbc_nonce: document.getElementById('wpbc_admin_panel_nonce').value         
                                }
                            });
                        </script>                           
                </div>
                <p style="line-height:25px;text-align:center;padding-top:15px;" class="wpdevbk">                    
                    <a class="button button-primary" style="font-size: 1.1em;font-weight: bold;height: 2.5em;line-height: 1.1em;padding: 8px 25px;"  href="<?php 
        echo wpbc_up_link();
        ?>
" target="_blank"><?php 
        if (wpbc_get_ver_sufix() == '') {
            _e('Purchase', 'booking');
        } else {
            _e('Upgrade Now', 'booking');
        }
        ?>
</a>
                </p>    

            </div>
            </div>
        </div>
     <?php 
    }
}
    function dashboard_bk_widget_show()
    {
        wp_nonce_field('wpbc_ajax_admin_nonce', "wpbc_admin_panel_nonce_dashboard", true, true);
        global $wpdb;
        $bk_admin_url = 'admin.php?page=' . WPDEV_BK_PLUGIN_DIRNAME . '/' . WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking&wh_approved=';
        if (wpbc_is_field_in_table_exists('booking', 'is_new') == 0) {
            $update_count = 0;
        } else {
            $update_count = getNumOfNewBookings();
        }
        if ($update_count > 0) {
            $update_count_title = "<span class='update-plugins count-{$update_count}' title=''><span class='update-count bk-update-count'>" . number_format_i18n($update_count) . "</span></span>";
        } else {
            $update_count_title = '0';
        }
        $my_resources = '';
        if (class_exists('wpdev_bk_multiuser')) {
            // If MultiUser so
            $is_superadmin = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin');
            $user = wp_get_current_user();
            $user_bk_id = $user->ID;
            if (!$is_superadmin) {
                // User not superadmin
                $bk_ids = apply_bk_filter('get_bk_resources_of_user', false);
                if ($bk_ids !== false) {
                    foreach ($bk_ids as $bk_id) {
                        $my_resources .= $bk_id->ID . ',';
                    }
                    $my_resources = substr($my_resources, 0, -1);
                }
            }
        }
        $sql_req = "SELECT DISTINCT bk.booking_id as id, dt.approved, dt.booking_date, bk.modification_date as m_date , bk.is_new as new\n                    FROM {$wpdb->prefix}bookingdates as dt\n                    INNER JOIN {$wpdb->prefix}booking as bk\n                        ON bk.booking_id = dt.booking_id ";
        if ($my_resources != '') {
            $sql_req .= " WHERE  bk.booking_type IN ({$my_resources})";
        }
        $sql_req .= "ORDER BY dt.booking_date";
        $sql_results = $wpdb->get_results($sql_req);
        $bk_array = array();
        if (!empty($sql_results)) {
            foreach ($sql_results as $v) {
                if (!isset($bk_array[$v->id])) {
                    $bk_array[$v->id] = array('dates' => array(), 'bk_today' => 0, 'm_today' => 0);
                }
                $bk_array[$v->id]['id'] = $v->id;
                $bk_array[$v->id]['approved'] = $v->approved;
                $bk_array[$v->id]['dates'][] = $v->booking_date;
                $bk_array[$v->id]['m_date'] = $v->m_date;
                $bk_array[$v->id]['new'] = $v->new;
                if (is_today_date($v->booking_date)) {
                    $bk_array[$v->id]['bk_today'] = 1;
                }
                if (is_today_date($v->m_date)) {
                    $bk_array[$v->id]['m_today'] = 1;
                }
            }
        }
        $counter_new = $counter_pending = $counter_all = $counter_approved = 0;
        $counter_bk_today = $counter_m_today = 0;
        if (!empty($bk_array)) {
            foreach ($bk_array as $k => $v) {
                $counter_all++;
                if ($v['approved']) {
                    $counter_approved++;
                } else {
                    $counter_pending++;
                }
                if ($v['new']) {
                    $counter_new++;
                }
                if ($v['m_today']) {
                    $counter_m_today++;
                }
                if ($v['bk_today']) {
                    $counter_bk_today++;
                }
            }
        }
        ?>
        <style type="text/css">

            #dashboard_bk {
                width:100%;
            }
            #dashboard_bk .bk_dashboard_section {
                float:left;
                margin:0px;
                padding:0px;
                width:100%;
            }
            #dashboard-widgets-wrap #dashboard_bk .bk_dashboard_section {
               width:49%;
            }
            #dashboard-widgets-wrap #dashboard_bk .bk_right {
                float:right
            }
            #dashboard_bk .bk_header {
                color: #555555;
                font-size: 13px;
                font-weight: 600;
                line-height: 1em;
            }
            #dashboard_bk .bk_table {
                background:none repeat scroll 0 0 #FFFBFB;
                border-bottom:none;
                border-top:1px solid #ECECEC;
                margin:6px 0 10px 6px;
                padding:2px 10px;
                width:95%;
                -border-radius:4px;
                -moz-border-radius:4px;
                -webkit-border-radius:4px;
                -moz-box-shadow:0 0 2px #C5C3C3;
                -webkit-box-shadow:0 0 2px #C5C3C3;
                -box-shadow:0 0 2px #C5C3C3;
            }
            #dashboard_bk table.bk_table td{
                border-bottom:1px solid #DDDDDD;
                line-height:19px;
                padding:4px 0px 4px 10px;
                font-size:13px;
            }
            #dashboard_bk table.bk_table tr td.first{
               text-align:center;
               padding:4px 0px;
            }
            #dashboard_bk table.bk_table tr td a {
                text-decoration: none;
            }
            #dashboard_bk table.bk_table tr td a span{
                font-size:18px;
                font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
            }
            #dashboard_bk table.bk_table td.bk_spec_font a{
                font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
                font-size:14px;
            }
            #dashboard_bk table.bk_table td.bk_spec_font {
                font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
                font-size:13px;
            }
            #dashboard_bk table.bk_table td.pending a{
                color:#E66F00;
            }
            #dashboard_bk table.bk_table td.new-bookings a{
                color:red;
            }
            #dashboard_bk table.bk_table td.actual-bookings a{
                color:green;
            }
            #dashboard-widgets-wrap #dashboard_bk .border_orrange, #dashboard_bk .border_orrange {
                border:1px solid #EEAB26;
                background: #FFFBCC;
                padding:0px;
                width:98%;  clear:both;
                margin:5px 5px 20px;
                border-radius:10px;
                -webkit-border-radius:10px;
                -moz-border-radius:10px;
            }
            #dashboard_bk .bk_dashboard_section h4 {
                font-size:13px;
                margin:10px 4px;
            }
            #bk_errror_loading {
                 text-align: center;
                 font-style: italic;
                 font-size:11px;
            }
        </style>
        
        <div id="dashboard_bk" >
            <div class="bk_dashboard_section bk_right">
                <span class="bk_header"><?php 
        _e('Statistic', 'wpdev-booking');
        ?>
:</span>
                <table class="bk_table">
                    <tr class="first">
                        <td class="first"> <a href="<?php 
        echo $bk_admin_url, '&wh_is_new=1&wh_booking_date=3&view_mode=vm_listing';
        ?>
"><span class=""><?php 
        echo $counter_new;
        ?>
</span></a> </td>
                        <td class=""> <a href="<?php 
        echo $bk_admin_url, '&wh_is_new=1&wh_booking_date=3&view_mode=vm_listing';
        ?>
"><?php 
        _e('New (unverified) booking(s)', 'wpdev-booking');
        ?>
</a></td>
                    </tr>
                    <tr>
                        <td class="first"> <a href="<?php 
        echo $bk_admin_url, '&wh_approved=0&wh_booking_date=3&view_mode=vm_listing';
        ?>
"><span class=""><?php 
        echo $counter_pending;
        ?>
</span></a></td>
                        <td class="pending"><a href="<?php 
        echo $bk_admin_url, '&wh_approved=0&wh_booking_date=3&view_mode=vm_listing';
        ?>
" class=""><?php 
        _e('Pending booking(s)', 'wpdev-booking');
        ?>
</a></td>
                    </tr>
                </table>
            </div>

            <div class="bk_dashboard_section" >
                <span class="bk_header"><?php 
        _e('Agenda', 'wpdev-booking');
        ?>
:</span>
                <table class="bk_table">
                    <tr class="first">
                        <td class="first"> <a href="<?php 
        echo $bk_admin_url, '&wh_modification_date=1&wh_booking_date=3&view_mode=vm_listing';
        ?>
"><span><?php 
        echo $counter_m_today;
        ?>
</span></a> </td>
                        <td class="new-bookings"><a href="<?php 
        echo $bk_admin_url, '&wh_modification_date=1&wh_booking_date=3&view_mode=vm_listing';
        ?>
" class=""><?php 
        _e('New booking(s) made today', 'wpdev-booking');
        ?>
</a> </td>
                    </tr>
                    <tr>
                        <td class="first"> <a href="<?php 
        echo $bk_admin_url, '&wh_booking_date=1&view_mode=vm_listing';
        ?>
"><span><?php 
        echo $counter_bk_today;
        ?>
</span></a> </td>
                        <td class="actual-bookings"> <a href="<?php 
        echo $bk_admin_url, '&wh_booking_date=1&view_mode=vm_listing';
        ?>
" class=""><?php 
        _e('Bookings for today', 'wpdev-booking');
        ?>
</a> </td>
                    </tr>
                </table>
            </div>
            <div style="clear:both;margin-bottom:20px;"></div>
            <?php 
        $version = 'free';
        $version = get_bk_version();
        if (wpdev_bk_is_this_demo()) {
            $version = 'free';
        }
        if ($version !== 'free' && class_exists('wpdev_bk_multiuser') === false) {
            ?>
                <div class="bk_dashboard_section border_orrange" id="bk_upgrade_section"> 
                    <div style="padding:0px 10px;width:96%;">
                        <h4><?php 
            _e('Upgrade to higher versions', 'wpdev-booking');
            ?>
:</h4>
                        <p> Check additional advanced functionality, which exist in higher versions and can be interesting for you <a href="http://wpbookingcalendar.com/features/" target="_blank">here &raquo;</a></p>
                        <p> <a class="button button-primary" style="font-size: 1.1em;font-weight: bold;height: 2.5em;line-height: 1.1em;padding: 8px 25px;"  href="<?php 
            echo wpbc_up_link();
            ?>
" target="_blank"><?php 
            if (wpbc_get_ver_sufix() == '') {
                _e('Purchase', 'wpdev-booking');
            } else {
                _e('Upgrade Now', 'wpdev-booking');
            }
            ?>
</a> </p>
                    </div>
                </div>
                <div style="clear:both;"></div>
                <?php 
            if (wpbc_get_ver_sufix() != '') {
                ?>
                    <script type="text/javascript">
                        jQuery(document).ready(function(){
                            jQuery('#bk_upgrade_section').animate({opacity:1},5000).fadeOut(2000);
                        });
                    </script>
                <?php 
            }
            ?>
            <?php 
        }
        ?>


            <div class="bk_dashboard_section" >
                <span class="bk_header"><?php 
        _e('Current version', 'wpdev-booking');
        ?>
:</span>
                <table class="bk_table">
                    <tr class="first">
                        <td style="width:35%;text-align: right;;" class=""><?php 
        _e('Version', 'wpdev-booking');
        ?>
:</td>
                        <td style="color: #e50;font-family: Arial;font-size: 13px;font-weight: bold;text-align: left;text-shadow: 0 -1px 0 #eee;;" 
                            class="bk_spec_font"><?php 
        if (substr(WPDEV_BK_VERSION, 0, 2) == '9.') {
            $show_version = substr(WPDEV_BK_VERSION, 2);
            if (substr($show_version, -1 * strlen(WP_BK_VERSION_NUM)) === WP_BK_VERSION_NUM) {
                $show_version = substr($show_version, 0, -1 * strlen(WP_BK_VERSION_NUM) - 1);
                $show_version = str_replace('.', ' ', $show_version) . " <sup><strong style='font-size:12px;'>" . WP_BK_VERSION_NUM . "</strong></sup>";
            }
            echo $show_version;
        } else {
            echo WPDEV_BK_VERSION;
        }
        ?>
</td>
                    </tr>
                    <?php 
        if ($version != 'free') {
            ?>
                    <tr>
                        <td style="width:35%;text-align: right;" class="first b"><?php 
            _e('Type', 'wpdev-booking');
            ?>
:</td>
                        <td style="text-align: left;  font-weight: bold;" class="bk_spec_font"><?php 
            $ver = get_bk_version();
            if (class_exists('wpdev_bk_multiuser')) {
                $ver = 'multiUser';
            }
            $ver = str_replace('_m', ' Medium', $ver);
            $ver = str_replace('_l', ' Large', $ver);
            $ver = str_replace('_s', ' Small', $ver);
            $ver = str_replace('biz', 'Business', $ver);
            echo ucwords($ver);
            ?>
</td>
                    </tr>
                    <tr>
                        <td style="width:35%;text-align: right;" class="first b"><?php 
            _e('Used for', 'wpdev-booking');
            ?>
:</td>
                        <td style="text-align: left;  font-weight: bold;" class="bk_spec_font"><?php 
            $v_type = '';
            if (strpos(strtolower(WPDEV_BK_VERSION), 'multisite') !== false) {
                $v_type = '5';
            } else {
                if (strpos(strtolower(WPDEV_BK_VERSION), 'develop') !== false) {
                    $v_type = '2';
                }
            }
            if (!empty($v_type)) {
                echo ' ' . $v_type . ' ' . __('websites', 'wpdev-booking');
            } else {
                echo ' 1' . ' ' . __('website', 'wpdev-booking');
            }
            ?>
</td>
                    </tr>
                    <?php 
        }
        ?>
                    <tr>
                        <td style="width:35%;text-align: right;" class="first b"><?php 
        _e('Release date', 'wpdev-booking');
        ?>
:</td>
                        <td style="text-align: left;  font-weight: bold;" class="bk_spec_font"><?php 
        echo date("d.m.Y", filemtime(WPDEV_BK_FILE));
        ?>
</td>
                    </tr>
                    
                </table>
                
                <table class="bk_table"style="border:none;">
                    <tr >
                        <td colspan="2" style="border:none;text-align:center;" class=""><?php 
        if ($version == 'free') {
            ?>
<a class="button-primary button" style="font-weight:bold;" target="_blank" href="http://wpbookingcalendar.com/overview/"><?php 
            _e('Check Premium Features', 'wpdev-booking');
            ?>
</a><?php 
        } elseif (wpbc_get_ver_sufix() != '') {
            ?>
<a class="button-primary button"  href="admin.php?page=<?php 
            echo WPDEV_BK_PLUGIN_DIRNAME . '/' . WPDEV_BK_PLUGIN_FILENAME;
            ?>
wpdev-booking-option&tab=upgrade"><?php 
            _e('Upgrade', 'wpdev-booking');
            ?>
</a><?php 
        } else {
            ?>
<a class="button-primary button" target="_blank" href="http://wpbookingcalendar.com/overview/"><?php 
            _e('Explore Premium Features', 'wpdev-booking');
            ?>
</a><?php 
        }
        ?>
</td>
                    </tr>
                    
                </table>
            </div>

            <div class="bk_dashboard_section bk_right">
                <span class="bk_header"><?php 
        _e('Support', 'wpdev-booking');
        ?>
:</span>
                <table class="bk_table">
                    <tr class="first">
                        <td style="text-align:center;" class="bk_spec_font"><a  
                            href="<?php 
        echo esc_url(admin_url(add_query_arg(array('page' => 'wpbc-getting-started'), 'index.php')));
        ?>
"
                            ><?php 
        _e('Getting Started', 'wpdev-booking');
        ?>
</a>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:center;" class="bk_spec_font"><a target="_blank" href="http://wpbookingcalendar.com/help/"><?php 
        _e('Help Info', 'wpdev-booking');
        ?>
</a></td>
                    </tr>
                    <tr>
                        <td style="text-align:center;" class="bk_spec_font"><a target="_blank" href="http://wpbookingcalendar.com/faq/"><?php 
        _e('FAQ', 'wpdev-booking');
        ?>
</a></td>
                    </tr>
                    <tr class="">
                        <td style="text-align:center;" class="bk_spec_font"><a href="mailto:support@wpbookingcalendar.com"><?php 
        _e('Contact email', 'wpdev-booking');
        ?>
</a></td>
                    </tr>                                        
                    <tr>
                        <td style="text-align:center;" class="bk_spec_font"><a target="_blank" href="https://wordpress.org/plugins/booking/"><?php 
        _e('Rate plugin (thanks:)', 'wpdev-booking');
        ?>
</a></td>
                    </tr>
                    
                </table>
            </div>

            <div style="clear:both;"></div>

            
            <div style="width:95%;border:none; clear:both;margin:10px 0px;" id="bk_news_section"> <!-- Section 4 -->
                <div style="width: 96%; margin-right: 0px;; " >
                    <span class="bk_header">Booking Calendar News:</span><br/>
                    <div id="bk_news" class="rssSummary"> <span style="font-size:13px;text-align:center;">Loading...</span></div>
                    <div id="ajax_bk_respond" class="rssSummary"  style="display:none;"></div>
                    <script type="text/javascript">

                        jQuery.ajax({                                           // Start Ajax Sending
                            // url: '<?php 
        echo WPDEV_BK_PLUGIN_URL, '/', WPDEV_BK_PLUGIN_FILENAME;
        ?>
' ,
                            url: '<?php 
        echo admin_url('admin-ajax.php');
        ?>
',
                            type:'POST',
                            success: function (data, textStatus){if( textStatus == 'success')   jQuery('#ajax_bk_respond').html( data );},
                            error:function (XMLHttpRequest, textStatus, errorThrown){window.status = 'Ajax sending Error status:'+ textStatus;
                                //alert(XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText);
                                //if (XMLHttpRequest.status == 500) {alert('Please check at this page according this error:' + ' http://wpbookingcalendar.com/faq/#faq-13');}
                            },
                            // beforeSend: someFunction,
                            data:{
                                // ajax_action : 'CHECK_BK_NEWS',
                                action : 'CHECK_BK_NEWS',
                                wpbc_nonce: document.getElementById('wpbc_admin_panel_nonce_dashboard').value
                            }
                        });

                    </script>                           
                </div>
            </div>
            
            <div style="clear:both;"></div>            
        </div>

        <div style="clear:both;"></div>
        <!--div id="modal_content1" style="display:block;width:100%;height:100px;" class="modal_content_text" >
          <iframe src="http://wpbookingcalendar.com/purchase/#content" style="border:1px solid red; width:100%;height:100px;padding:0px;margin:0px;"></iframe>
        </div-->
        <?php 
    }
function wpbc_up_link()
{
    if (!wpdev_bk_is_this_demo()) {
        $v = wpbc_get_ver_sufix();
    } else {
        $v = '';
    }
    return 'http://wpbookingcalendar.com/' . (empty($v) ? '' : 'upgrade-' . $v . '/');
}