Booking Calendar - Version 6.2.2

Version Description

  • Features and issue fixings in All versions:
    • Compatibility Fix CSS for correctly showing fonts in new WordPress 4.6
    • Fix Improve security checking during saving settings.
  • Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
    • Fix Checking string parameter during payment request (fix:6.2.2.1) (Business Small/Medium/Large, MultiUser)
    • Ability to customize to open the "Payment page" with Payment Form(s) at actual website instead of showing payment form(s) at same page after submit of booking. (fix:6.2.2.2) (Business Small/Medium/Large, MultiUser)
Download this release

Release Info

Developer wpdevelop
Plugin Icon 128x128 Booking Calendar
Version 6.2.2
Comparing to
See all releases

Code changes from version 6.2.1 to 6.2.2

css/admin-booking-listing.css CHANGED
@@ -22,7 +22,7 @@
22
  -ms-border-radius: 5px 5px 0 0;
23
  color: #333;
24
  font-size: 12px;
25
- font-weight: bold;
26
  margin: 0;
27
  padding: 2px 0px;
28
  text-shadow: 0 1px 1px #F5F5F5;
@@ -61,10 +61,9 @@
61
  border: 1px solid #FFF;
62
  border-radius: 10px 10px 10px 10px;
63
  box-shadow: 0 0 2px #888;
64
- color: #EEE;
65
- font-family: sans-serif;
66
  font-size: 9px;
67
- font-weight: bold;
68
  padding: 2px 4px;
69
  text-shadow: 0 0 3px #333;
70
  margin: 0 10px;
@@ -90,11 +89,12 @@
90
  border-radius: 5px 5px 5px 5px;
91
  box-shadow: 0 0 1px #CCC;
92
  color: #FFF;
93
- font-weight: bold;
94
- line-height: 22px;
95
- padding: 4px 10px 3px;
 
96
  text-decoration: none;
97
- text-shadow: 0 -1px 0 #CCC;
98
  white-space: nowrap;
99
  }
100
  .booking-listing-collumn .field-booking-date.approved,
@@ -115,7 +115,7 @@
115
  .booking-listing-collumn .cost-fields-group {
116
  color: #444;
117
  font-size: 15px;
118
- font-weight: bold;
119
  white-space: nowrap;
120
  float:left;
121
  margin-left: 5px;
@@ -136,7 +136,7 @@
136
  color: #444;
137
  display: inline;
138
  font-size: 15px;
139
- font-weight: bold;
140
  line-height: 28px;
141
  vertical-align: top;
142
  }
@@ -176,15 +176,16 @@
176
  background: none repeat scroll 0 0 #FE9;
177
  border-radius: 3px 3px 3px 3px;
178
  color: #333;
179
- font-size: 11px;
180
- font-weight: bold;
 
181
  margin: 0 3px 0 0;
182
- padding: 2px 3px;
183
  text-shadow: 0 1px 1px #EEE;
184
  }
185
  .label_resource_not_exist {
186
  color: #000;
187
- font-weight: bold;
188
  text-shadow: 0 1px 0 #59D;
189
  text-transform: none;
190
  }
@@ -229,7 +230,7 @@
229
  }
230
  .date_tire {
231
  font-size: 17px;
232
- font-weight: bold;
233
  }
234
  .booking_dates_small,
235
  .booking_dates_full {
22
  -ms-border-radius: 5px 5px 0 0;
23
  color: #333;
24
  font-size: 12px;
25
+ font-weight: 600;
26
  margin: 0;
27
  padding: 2px 0px;
28
  text-shadow: 0 1px 1px #F5F5F5;
61
  border: 1px solid #FFF;
62
  border-radius: 10px 10px 10px 10px;
63
  box-shadow: 0 0 2px #888;
64
+ color: #EEE;
 
65
  font-size: 9px;
66
+ font-weight: 600;
67
  padding: 2px 4px;
68
  text-shadow: 0 0 3px #333;
69
  margin: 0 10px;
89
  border-radius: 5px 5px 5px 5px;
90
  box-shadow: 0 0 1px #CCC;
91
  color: #FFF;
92
+ font-weight: 600;
93
+ font-size: 12px;
94
+ line-height: 24px;
95
+ padding: 3px 10px 2px;
96
  text-decoration: none;
97
+ text-shadow: 0 0px 0 #CCC;
98
  white-space: nowrap;
99
  }
100
  .booking-listing-collumn .field-booking-date.approved,
115
  .booking-listing-collumn .cost-fields-group {
116
  color: #444;
117
  font-size: 15px;
118
+ font-weight: 600;
119
  white-space: nowrap;
120
  float:left;
121
  margin-left: 5px;
136
  color: #444;
137
  display: inline;
138
  font-size: 15px;
139
+ font-weight: 600;
140
  line-height: 28px;
141
  vertical-align: top;
142
  }
176
  background: none repeat scroll 0 0 #FE9;
177
  border-radius: 3px 3px 3px 3px;
178
  color: #333;
179
+ line-height: 21px;
180
+ font-size: 12px;
181
+ font-weight: 400;
182
  margin: 0 3px 0 0;
183
+ padding: 1px 3px;
184
  text-shadow: 0 1px 1px #EEE;
185
  }
186
  .label_resource_not_exist {
187
  color: #000;
188
+ font-weight: 600;
189
  text-shadow: 0 1px 0 #59D;
190
  text-transform: none;
191
  }
230
  }
231
  .date_tire {
232
  font-size: 17px;
233
+ font-weight: 600;
234
  }
235
  .booking_dates_small,
236
  .booking_dates_full {
css/admin-mobile.css CHANGED
@@ -63,7 +63,7 @@
63
  .wpbc_mobile_legend {
64
  display:inline;
65
  font-size: 14px;
66
- font-weight: normal;
67
  float: left;
68
  line-height: 1.3em;
69
  }
@@ -327,7 +327,7 @@
327
  text-align:left !important;
328
  border-left:0px !important;
329
  border-top:0px !important;
330
- font-weight: normal;
331
  padding:10px !important;
332
  line-height: 19px;
333
  min-height: 1em;
63
  .wpbc_mobile_legend {
64
  display:inline;
65
  font-size: 14px;
66
+ font-weight: 400;
67
  float: left;
68
  line-height: 1.3em;
69
  }
327
  text-align:left !important;
328
  border-left:0px !important;
329
  border-top:0px !important;
330
+ font-weight: 400;
331
  padding:10px !important;
332
  line-height: 19px;
333
  min-height: 1em;
css/admin.css CHANGED
@@ -13,7 +13,7 @@
13
  .wpbc-settings-data-field {
14
  text-align: left;
15
  vertical-align: middle;
16
- font-weight: bold;
17
  padding: 10px 0;
18
  }
19
  .wpbc-settings-help-field{
@@ -26,12 +26,12 @@
26
  }
27
  /* Second Collumn */
28
  .wpbc-settings-data-field{
29
- font-weight: normal;
30
  }
31
  /* Labels */
32
  .wpbc-settings .wpbc-settings-table .wpbc-settings-label-field label{
33
  margin:0px;
34
- font-weight: bold;
35
  text-shadow: 0 1px 0 #FFFFFF;
36
  }
37
  /* TEXT, SELECTBOX, etc...*/
@@ -78,7 +78,7 @@
78
  -webkit-box-shadow:0 1px 0 #CCCCCC;
79
  color:#FFFFFF;
80
  font-size:10px;
81
- font-weight:bold;
82
  letter-spacing:1px;
83
  line-height:25px;
84
  padding:1px 5px;
@@ -93,7 +93,7 @@
93
  display: block;
94
  margin: 10px 0;
95
  padding: 5px 10px;
96
- font-weight: normal;
97
  text-align: center;
98
  color:#777;
99
  background-color: #faf8f8;
@@ -125,7 +125,7 @@
125
  .wpbc-demo-alert-not-allow {
126
  color: #AA4400;
127
  font-size: 1.1em;
128
- font-weight: normal;
129
  text-shadow: 0 -1px 0 #FFEEEE;
130
  }
131
 
@@ -153,7 +153,7 @@ a.wpbc-help-tooltip:hover{
153
  box-shadow: 0 0 2px #333333;
154
  color: #FFFFFF;
155
  font-size: 1em;
156
- font-weight: bold;
157
  padding: 1px 4px;
158
  text-shadow: 0 0 1px #555555;
159
  text-decoration: none;
@@ -487,7 +487,7 @@ a.button:hover {
487
  border-radius: 5px 5px 0px 0px;
488
  margin: 0px 0px -1px;
489
  padding:8px;
490
- font-weight: bold;
491
  width: auto;
492
  background: none repeat scroll 0% 0% #eee;
493
  }
@@ -728,7 +728,7 @@ a.bk_top_menu.selected:hover {
728
  -webkit-border-radius: 2px;
729
  background: none repeat scroll 0 0 #789;
730
  border: 1px solid #DDD;
731
- font-size: 11px;
732
  line-height: 18px;
733
  padding: 0 1px 0 3px;
734
  vertical-align: top;
@@ -737,7 +737,7 @@ a.bk_top_menu.selected:hover {
737
  color: #FFF;
738
  }
739
  .selected_bk_type {
740
- font-weight: bold;
741
  line-height: 50px;
742
  }
743
  a.bktypetitle,
@@ -750,7 +750,7 @@ a.bk_top_menu {
750
  border: 1px solid #ABB;
751
  color: #789;
752
  font-size: 12px;
753
- font-weight: bold;
754
  line-height: 49px;
755
  margin: 5px;
756
  padding: 4px 15px;
@@ -760,7 +760,7 @@ a.bk_top_menu {
760
  }
761
  a.selected,
762
  .selected_bk_type a.bktypetitle {
763
- font-weight: bold;
764
  /* background:#888888;
765
  border:1px solid #DDDDDD;
766
  color:#FFFFFF;
@@ -770,7 +770,7 @@ a.selected,
770
  border: 1px solid #DDD;
771
  background-color: #789;
772
  color: #FFF;
773
- font-weight: bold; /**/
774
  }
775
  input.wpdev-validates-as-time {
776
  width: 50px;
@@ -793,7 +793,7 @@ input.wpdev-validates-as-time {
793
  border: none;
794
  border-bottom: 1px solid #CCC;
795
  padding: 10px;
796
- font-weight: bold;
797
  }
798
  .filter_div_title input[type=checkbox]{
799
  margin: -1px 1px 0 0;
@@ -835,7 +835,7 @@ div.inside_hint {
835
  color: #AAA;
836
  margin: -5px 0 -29px 8px;
837
  padding: 8px 0px;
838
- font-size: 11px;
839
  position: relative;
840
  z-index: 2;
841
  }
@@ -869,7 +869,7 @@ a.buttonlinktext {
869
  color: white;
870
  font-size: 18px;
871
  text-shadow: 0 1px 2px #DDD;
872
- font-weight: normal;
873
  padding: 6px 0px 0px 0px;
874
  width: 109px;
875
  clear: none;
@@ -903,8 +903,8 @@ a.buttonlinktext:visited {
903
  background: none repeat scroll 0 0 #FCFCFF;
904
  border: 1px solid #ABB;
905
  float: left;
906
- font-size: 11px;
907
- /* font-weight: bold;*/
908
  height: auto;
909
  line-height: 14px;
910
  margin: 5px;
@@ -946,7 +946,7 @@ div.selected_bk_typenew span.bktypecount {
946
  }
947
  span.bktypecount a {
948
  color: #FFF;
949
- font-weight: bold;
950
  text-decoration: none;
951
  }
952
  .topmenuitemborder_plus {
@@ -957,7 +957,7 @@ span.bktypecount a {
957
  .topmenuitemborder_plus a {
958
  color: #FFF;
959
  font-size: 17px;
960
- font-weight: bold;
961
  margin: 0;
962
  padding: 0;
963
  text-shadow: -1px -1px 0 #999;
@@ -1142,7 +1142,7 @@ html[xmlns] .clearfix-height.hidden_items {
1142
  color: #333;
1143
  display: inline;
1144
  font-size: 10px;
1145
- font-weight: bold;
1146
  padding: 2px 5px;
1147
  text-shadow: none;
1148
  }
@@ -1229,7 +1229,7 @@ html[xmlns] .clearfix-height.hidden_items {
1229
  background: #EEFDED none repeat scroll 0 0;
1230
  border: 2px solid #ACCFC9;
1231
  font-size: 14px;
1232
- font-weight: bold;
1233
  padding: 5px 20px;
1234
  color: black;
1235
  }
@@ -1268,7 +1268,6 @@ html[xmlns] .clearfix-height.hidden_items {
1268
  .booking_table td {
1269
  padding: 5px 10px;
1270
  border: none;
1271
- font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
1272
  }
1273
  .booking_table th {
1274
  padding: 5px 10px;
@@ -1284,7 +1283,7 @@ html[xmlns] .clearfix-height.hidden_items {
1284
  border-bottom: 1px solid #C6C6C6;
1285
  color: #2F2D2D;
1286
  font-size: 12px;
1287
- font-weight: bold;
1288
  padding: 0px 5px;
1289
  text-shadow: 0 0 1px #DAD8D8;
1290
  }
@@ -1399,7 +1398,7 @@ a.wpbc-season-filter-link {
1399
  line-height: 2.3em;
1400
  }
1401
  .wpbc_season_filter_hedear_section .wpbc_selected_resources {
1402
- font-weight: bold;
1403
  color:#f00;
1404
  }
1405
  .wpbc_season_filter_hedear_section .wpbc_label_available,
@@ -1422,7 +1421,7 @@ a.wpbc-season-filter-link {
1422
  }
1423
  #selectword {
1424
  background:#f90;
1425
- font-weight:bold;
1426
  }
1427
  .wpbc_season_filter_hedear_section .wpbc-help-message .button{
1428
  margin:5px;
@@ -1471,7 +1470,7 @@ a.wpbc-season-filter-link {
1471
  }
1472
  .wpbc_valuationdays_table td .wpbc_text-label{
1473
  line-height: 28px;
1474
- font-weight:bold;
1475
  padding: 0 5px;
1476
  }
1477
  .wpbc_valuationdays_table td.wpbc_column_2 select {
@@ -1583,7 +1582,7 @@ a.wpbc-season-filter-link {
1583
  }
1584
  .users_table .user-table-field-user_labels .label {
1585
  font-size: 9px;
1586
- font-weight: normal;
1587
  text-shadow: 0 -1px 0 #AAAA33;
1588
  margin:0;
1589
  white-space: nowrap;
@@ -1610,9 +1609,9 @@ a.wpbc-season-filter-link {
1610
  }
1611
  .settings-resource-label {
1612
  color: #888;
1613
- font-size: 11px;
1614
  font-style: italic;
1615
- font-weight: normal;
1616
  margin: 0;
1617
  text-shadow: 0 1px 0 #FFF;
1618
  }
@@ -1687,7 +1686,7 @@ a.wpbc-season-filter-link {
1687
  border: 1px solid #CCC;
1688
  color: #333;
1689
  font-size: 10px;
1690
- font-weight: normal;
1691
  padding: 0 4px !important;
1692
  text-shadow: none !important;
1693
  }
@@ -1706,10 +1705,10 @@ a.wpbc-season-filter-link {
1706
  }
1707
  #print_loyout_content tr.booking-listing-row td {
1708
  padding: 5px 10px;
1709
- font-size: 11px;
1710
  }
1711
  #print_loyout_content tr.booking-listing-row td strong {
1712
- font-size: 11px;
1713
  }
1714
 
1715
  /* TOP TAB Menu line *************************************************************************************************************************/
@@ -1746,8 +1745,7 @@ a.wpbc-season-filter-link {
1746
  background: none repeat scroll 0 0 #F4F4F4;
1747
  background: #DFDFDF;
1748
  color: #464646;
1749
- font-weight: bold;
1750
- font-family: Arial;
1751
  font-size: 13px;
1752
  text-decoration: none;
1753
  text-shadow: 0 1px 0 #F1F1F1;
@@ -1802,7 +1800,7 @@ a.wpbc-season-filter-link {
1802
  border: #BBB solid 1px;
1803
  background: #F5F5F5;
1804
  color: #777;
1805
- font-weight: bold;
1806
  font-size: 13px;
1807
  padding: 6px 10px 4px;
1808
  margin: 5px 2px;
@@ -1966,7 +1964,7 @@ a.wpbc-season-filter-link {
1966
  .booking-submenu-tab.go-to-link:hover,
1967
  .booking-submenu-tab.go-to-link:active {
1968
  box-shadow: 0 0 0;
1969
- font-weight: normal;
1970
  border:none;
1971
  background: transparent;
1972
  margin:0px 0 10px;
@@ -2023,7 +2021,7 @@ a.wpbc-season-filter-link {
2023
  }
2024
  .range_season_filter td {
2025
  border-bottom: 1px solid #CCC;
2026
- font-size: 11px;
2027
  height: auto;
2028
  line-height: 18px;
2029
  margin: 0;
@@ -2055,7 +2053,7 @@ a.wpbc-season-filter-link {
2055
  .range_season_filter td.month_title {
2056
  width: 100px;
2057
  text-align: left;
2058
- font-weight: bold;
2059
  white-space: nowrap;
2060
  padding: 5px;
2061
  }
@@ -2218,7 +2216,7 @@ input.filter_avalaibility {
2218
  .calendar_timeline_frame .month_year {
2219
  color: #C32;
2220
  font-size: 9px;
2221
- font-weight: bold;
2222
  margin-left: 2px;
2223
  margin-top: 27px;
2224
  padding: 0;
@@ -2232,7 +2230,7 @@ input.filter_avalaibility {
2232
  .table .calendar_timeline_header td.weekday6,
2233
  .table .calendar_timeline_header td.weekday7 {
2234
  color: #E33;
2235
- font-weight: bold;
2236
  }
2237
  .bookings_overview_in_calendar .resource_dates .container-fluid .span12 {
2238
  height: 34px;
@@ -2254,7 +2252,7 @@ input.filter_avalaibility {
2254
  .resource_title a, .resource_title a:hover{
2255
  border-bottom: 1px dashed;
2256
  color: #789 !important;
2257
- font-size: 11px;
2258
  text-decoration: none;
2259
  text-shadow: 0 -1px 0 #EEEEEE;
2260
  }
@@ -2298,9 +2296,8 @@ input.filter_avalaibility {
2298
  text-shadow: 0 1px 0 #F1F1F1;
2299
  background: #DFDFDF;
2300
  color: #464646;
2301
- font-weight: bold;
2302
  margin-bottom: 0;
2303
- font-family: Arial;
2304
  font-size: 13px;
2305
  line-height: 18px;
2306
  padding: 4px 14px 4px 32px;
@@ -2345,7 +2342,7 @@ input.filter_avalaibility {
2345
  .bookings_overview_in_calendar .resource_id {
2346
  float: left;
2347
  font-size: 10px;
2348
- font-weight: bold;
2349
  width: 20px;
2350
  padding-right: 8px;
2351
  }
@@ -2355,7 +2352,7 @@ input.filter_avalaibility {
2355
  text-shadow: 0 -1px 0 #EEE;
2356
  }
2357
  .bookings_overview_in_calendar .resource_title.parent {
2358
- font-weight: bold;
2359
  }
2360
  .bookings_overview_in_calendar .resource_title.child {
2361
  margin-left: 20px;
@@ -2386,7 +2383,7 @@ input.filter_avalaibility {
2386
  .calendar_timeline_frame .calendar_overview_cell.weekday6,
2387
  .calendar_timeline_frame .calendar_overview_cell.weekday7 {
2388
  color: #E33;
2389
- font-weight: bold;
2390
  }
2391
  .calendar_timeline_frame .calendar_overview_cell.cell_header a,
2392
  .calendar_timeline_frame .calendar_overview_cell.cell_header a:hover{
@@ -2427,8 +2424,8 @@ input.filter_avalaibility {
2427
  width: 4.069%; /*3.89%;*/
2428
  }
2429
  .time_in_days_num_1 .day_num {
2430
- font-size: 11px;
2431
- font-weight: bold;
2432
  }
2433
  .timeslots_in_this_day24.time_section_in_day.time_hour23,
2434
  .time_in_days_num_1 .time_section_in_day_header.time_hour23 {
@@ -2445,8 +2442,8 @@ input.filter_avalaibility {
2445
  width: 46%;
2446
  }
2447
  .time_in_days_num_7 .day_num {
2448
- font-size: 11px;
2449
- font-weight: bold;
2450
  }
2451
  .timeslots_in_this_day4.time_section_in_day.time_hour18,
2452
  .time_in_days_num_7 .time_section_in_day_header.time_hour18 {
@@ -2472,7 +2469,7 @@ input.filter_avalaibility {
2472
  box-shadow: 1px 1px 2px #AAA;
2473
  color: #FFF;
2474
  font-size: 7px;
2475
- font-weight: normal;
2476
  text-shadow: none;
2477
  }
2478
  .time_booked_in_day.approved {
@@ -2483,7 +2480,7 @@ a.first_day_in_bookin {
2483
  border-radius: 5px 5px 5px 5px;
2484
  color: #FFF !important;
2485
  font-size: 9px;
2486
- font-weight: normal;
2487
  line-height: 15px;
2488
  margin: 13px 2px 4px 0px;
2489
  overflow: visible;
@@ -2531,7 +2528,7 @@ a.first_day_in_bookin {
2531
  .single_resource .calendar_timeline_frame .calendar_overview_cell.weekday6,
2532
  .single_resource .calendar_timeline_frame .calendar_overview_cell.weekday7 {
2533
  color: #777;
2534
- font-weight: normal;
2535
  /*border-bottom: 1px solid #EE3333;*/
2536
  background: none repeat scroll 0 0 #FEB;
2537
  }
@@ -2606,7 +2603,7 @@ td.bk_resource_selector {
2606
  cursor: pointer;
2607
  float: right;
2608
  font-size: 8px;
2609
- font-weight: normal;
2610
  line-height: 15px;
2611
  margin: -4px 0 0;
2612
  overflow: visible;
@@ -2662,7 +2659,7 @@ td.bk_resource_selector {
2662
  .matrix_resources .calendar_timeline_frame .calendar_overview_cell.weekday6,
2663
  .matrix_resources .calendar_timeline_frame .calendar_overview_cell.weekday7 {
2664
  color: #c33; /*#777;*/
2665
- font-weight: normal;
2666
  /*border-bottom: 1px solid #EE3333;*/
2667
  background: none repeat scroll 0 0 #FEB;
2668
  }
@@ -2721,3 +2718,15 @@ td.bk_resource_selector {
2721
  .calendar_overview_cell.today_date .time_booked_in_day.past_time.booking_trash{
2722
  background-color: #a44;
2723
  }
 
 
 
 
 
 
 
 
 
 
 
 
13
  .wpbc-settings-data-field {
14
  text-align: left;
15
  vertical-align: middle;
16
+ font-weight: 600;
17
  padding: 10px 0;
18
  }
19
  .wpbc-settings-help-field{
26
  }
27
  /* Second Collumn */
28
  .wpbc-settings-data-field{
29
+ font-weight: 400;
30
  }
31
  /* Labels */
32
  .wpbc-settings .wpbc-settings-table .wpbc-settings-label-field label{
33
  margin:0px;
34
+ font-weight: 600;
35
  text-shadow: 0 1px 0 #FFFFFF;
36
  }
37
  /* TEXT, SELECTBOX, etc...*/
78
  -webkit-box-shadow:0 1px 0 #CCCCCC;
79
  color:#FFFFFF;
80
  font-size:10px;
81
+ font-weight: 600;
82
  letter-spacing:1px;
83
  line-height:25px;
84
  padding:1px 5px;
93
  display: block;
94
  margin: 10px 0;
95
  padding: 5px 10px;
96
+ font-weight: 400;
97
  text-align: center;
98
  color:#777;
99
  background-color: #faf8f8;
125
  .wpbc-demo-alert-not-allow {
126
  color: #AA4400;
127
  font-size: 1.1em;
128
+ font-weight: 400;
129
  text-shadow: 0 -1px 0 #FFEEEE;
130
  }
131
 
153
  box-shadow: 0 0 2px #333333;
154
  color: #FFFFFF;
155
  font-size: 1em;
156
+ font-weight: 600;
157
  padding: 1px 4px;
158
  text-shadow: 0 0 1px #555555;
159
  text-decoration: none;
487
  border-radius: 5px 5px 0px 0px;
488
  margin: 0px 0px -1px;
489
  padding:8px;
490
+ font-weight: 600;
491
  width: auto;
492
  background: none repeat scroll 0% 0% #eee;
493
  }
728
  -webkit-border-radius: 2px;
729
  background: none repeat scroll 0 0 #789;
730
  border: 1px solid #DDD;
731
+ font-size: 12px;
732
  line-height: 18px;
733
  padding: 0 1px 0 3px;
734
  vertical-align: top;
737
  color: #FFF;
738
  }
739
  .selected_bk_type {
740
+ font-weight: 600;
741
  line-height: 50px;
742
  }
743
  a.bktypetitle,
750
  border: 1px solid #ABB;
751
  color: #789;
752
  font-size: 12px;
753
+ font-weight: 600;
754
  line-height: 49px;
755
  margin: 5px;
756
  padding: 4px 15px;
760
  }
761
  a.selected,
762
  .selected_bk_type a.bktypetitle {
763
+ font-weight: 600;
764
  /* background:#888888;
765
  border:1px solid #DDDDDD;
766
  color:#FFFFFF;
770
  border: 1px solid #DDD;
771
  background-color: #789;
772
  color: #FFF;
773
+ font-weight: 600; /**/
774
  }
775
  input.wpdev-validates-as-time {
776
  width: 50px;
793
  border: none;
794
  border-bottom: 1px solid #CCC;
795
  padding: 10px;
796
+ font-weight: 600;
797
  }
798
  .filter_div_title input[type=checkbox]{
799
  margin: -1px 1px 0 0;
835
  color: #AAA;
836
  margin: -5px 0 -29px 8px;
837
  padding: 8px 0px;
838
+ font-size: 12px;
839
  position: relative;
840
  z-index: 2;
841
  }
869
  color: white;
870
  font-size: 18px;
871
  text-shadow: 0 1px 2px #DDD;
872
+ font-weight: 400;
873
  padding: 6px 0px 0px 0px;
874
  width: 109px;
875
  clear: none;
903
  background: none repeat scroll 0 0 #FCFCFF;
904
  border: 1px solid #ABB;
905
  float: left;
906
+ font-size: 12px;
907
+ /* font-weight: 600;*/
908
  height: auto;
909
  line-height: 14px;
910
  margin: 5px;
946
  }
947
  span.bktypecount a {
948
  color: #FFF;
949
+ font-weight: 600;
950
  text-decoration: none;
951
  }
952
  .topmenuitemborder_plus {
957
  .topmenuitemborder_plus a {
958
  color: #FFF;
959
  font-size: 17px;
960
+ font-weight: 600;
961
  margin: 0;
962
  padding: 0;
963
  text-shadow: -1px -1px 0 #999;
1142
  color: #333;
1143
  display: inline;
1144
  font-size: 10px;
1145
+ font-weight: 600;
1146
  padding: 2px 5px;
1147
  text-shadow: none;
1148
  }
1229
  background: #EEFDED none repeat scroll 0 0;
1230
  border: 2px solid #ACCFC9;
1231
  font-size: 14px;
1232
+ font-weight: 600;
1233
  padding: 5px 20px;
1234
  color: black;
1235
  }
1268
  .booking_table td {
1269
  padding: 5px 10px;
1270
  border: none;
 
1271
  }
1272
  .booking_table th {
1273
  padding: 5px 10px;
1283
  border-bottom: 1px solid #C6C6C6;
1284
  color: #2F2D2D;
1285
  font-size: 12px;
1286
+ font-weight: 600;
1287
  padding: 0px 5px;
1288
  text-shadow: 0 0 1px #DAD8D8;
1289
  }
1398
  line-height: 2.3em;
1399
  }
1400
  .wpbc_season_filter_hedear_section .wpbc_selected_resources {
1401
+ font-weight: 600;
1402
  color:#f00;
1403
  }
1404
  .wpbc_season_filter_hedear_section .wpbc_label_available,
1421
  }
1422
  #selectword {
1423
  background:#f90;
1424
+ font-weight: 600;
1425
  }
1426
  .wpbc_season_filter_hedear_section .wpbc-help-message .button{
1427
  margin:5px;
1470
  }
1471
  .wpbc_valuationdays_table td .wpbc_text-label{
1472
  line-height: 28px;
1473
+ font-weight: 600;
1474
  padding: 0 5px;
1475
  }
1476
  .wpbc_valuationdays_table td.wpbc_column_2 select {
1582
  }
1583
  .users_table .user-table-field-user_labels .label {
1584
  font-size: 9px;
1585
+ font-weight: 400;
1586
  text-shadow: 0 -1px 0 #AAAA33;
1587
  margin:0;
1588
  white-space: nowrap;
1609
  }
1610
  .settings-resource-label {
1611
  color: #888;
1612
+ font-size: 12px;
1613
  font-style: italic;
1614
+ font-weight: 400;
1615
  margin: 0;
1616
  text-shadow: 0 1px 0 #FFF;
1617
  }
1686
  border: 1px solid #CCC;
1687
  color: #333;
1688
  font-size: 10px;
1689
+ font-weight: 400;
1690
  padding: 0 4px !important;
1691
  text-shadow: none !important;
1692
  }
1705
  }
1706
  #print_loyout_content tr.booking-listing-row td {
1707
  padding: 5px 10px;
1708
+ font-size: 12px;
1709
  }
1710
  #print_loyout_content tr.booking-listing-row td strong {
1711
+ font-size: 12px;
1712
  }
1713
 
1714
  /* TOP TAB Menu line *************************************************************************************************************************/
1745
  background: none repeat scroll 0 0 #F4F4F4;
1746
  background: #DFDFDF;
1747
  color: #464646;
1748
+ font-weight: 600;
 
1749
  font-size: 13px;
1750
  text-decoration: none;
1751
  text-shadow: 0 1px 0 #F1F1F1;
1800
  border: #BBB solid 1px;
1801
  background: #F5F5F5;
1802
  color: #777;
1803
+ font-weight: 600;
1804
  font-size: 13px;
1805
  padding: 6px 10px 4px;
1806
  margin: 5px 2px;
1964
  .booking-submenu-tab.go-to-link:hover,
1965
  .booking-submenu-tab.go-to-link:active {
1966
  box-shadow: 0 0 0;
1967
+ font-weight: 400;
1968
  border:none;
1969
  background: transparent;
1970
  margin:0px 0 10px;
2021
  }
2022
  .range_season_filter td {
2023
  border-bottom: 1px solid #CCC;
2024
+ font-size: 12px;
2025
  height: auto;
2026
  line-height: 18px;
2027
  margin: 0;
2053
  .range_season_filter td.month_title {
2054
  width: 100px;
2055
  text-align: left;
2056
+ font-weight: 600;
2057
  white-space: nowrap;
2058
  padding: 5px;
2059
  }
2216
  .calendar_timeline_frame .month_year {
2217
  color: #C32;
2218
  font-size: 9px;
2219
+ font-weight: 600;
2220
  margin-left: 2px;
2221
  margin-top: 27px;
2222
  padding: 0;
2230
  .table .calendar_timeline_header td.weekday6,
2231
  .table .calendar_timeline_header td.weekday7 {
2232
  color: #E33;
2233
+ font-weight: 600;
2234
  }
2235
  .bookings_overview_in_calendar .resource_dates .container-fluid .span12 {
2236
  height: 34px;
2252
  .resource_title a, .resource_title a:hover{
2253
  border-bottom: 1px dashed;
2254
  color: #789 !important;
2255
+ font-size: 12px;
2256
  text-decoration: none;
2257
  text-shadow: 0 -1px 0 #EEEEEE;
2258
  }
2296
  text-shadow: 0 1px 0 #F1F1F1;
2297
  background: #DFDFDF;
2298
  color: #464646;
2299
+ font-weight: 600;
2300
  margin-bottom: 0;
 
2301
  font-size: 13px;
2302
  line-height: 18px;
2303
  padding: 4px 14px 4px 32px;
2342
  .bookings_overview_in_calendar .resource_id {
2343
  float: left;
2344
  font-size: 10px;
2345
+ font-weight: 600;
2346
  width: 20px;
2347
  padding-right: 8px;
2348
  }
2352
  text-shadow: 0 -1px 0 #EEE;
2353
  }
2354
  .bookings_overview_in_calendar .resource_title.parent {
2355
+ font-weight: 600;
2356
  }
2357
  .bookings_overview_in_calendar .resource_title.child {
2358
  margin-left: 20px;
2383
  .calendar_timeline_frame .calendar_overview_cell.weekday6,
2384
  .calendar_timeline_frame .calendar_overview_cell.weekday7 {
2385
  color: #E33;
2386
+ font-weight: 600;
2387
  }
2388
  .calendar_timeline_frame .calendar_overview_cell.cell_header a,
2389
  .calendar_timeline_frame .calendar_overview_cell.cell_header a:hover{
2424
  width: 4.069%; /*3.89%;*/
2425
  }
2426
  .time_in_days_num_1 .day_num {
2427
+ font-size: 12px;
2428
+ font-weight: 600;
2429
  }
2430
  .timeslots_in_this_day24.time_section_in_day.time_hour23,
2431
  .time_in_days_num_1 .time_section_in_day_header.time_hour23 {
2442
  width: 46%;
2443
  }
2444
  .time_in_days_num_7 .day_num {
2445
+ font-size: 12px;
2446
+ font-weight: 600;
2447
  }
2448
  .timeslots_in_this_day4.time_section_in_day.time_hour18,
2449
  .time_in_days_num_7 .time_section_in_day_header.time_hour18 {
2469
  box-shadow: 1px 1px 2px #AAA;
2470
  color: #FFF;
2471
  font-size: 7px;
2472
+ font-weight: 400;
2473
  text-shadow: none;
2474
  }
2475
  .time_booked_in_day.approved {
2480
  border-radius: 5px 5px 5px 5px;
2481
  color: #FFF !important;
2482
  font-size: 9px;
2483
+ font-weight: 400;
2484
  line-height: 15px;
2485
  margin: 13px 2px 4px 0px;
2486
  overflow: visible;
2528
  .single_resource .calendar_timeline_frame .calendar_overview_cell.weekday6,
2529
  .single_resource .calendar_timeline_frame .calendar_overview_cell.weekday7 {
2530
  color: #777;
2531
+ font-weight: 400;
2532
  /*border-bottom: 1px solid #EE3333;*/
2533
  background: none repeat scroll 0 0 #FEB;
2534
  }
2603
  cursor: pointer;
2604
  float: right;
2605
  font-size: 8px;
2606
+ font-weight: 400;
2607
  line-height: 15px;
2608
  margin: -4px 0 0;
2609
  overflow: visible;
2659
  .matrix_resources .calendar_timeline_frame .calendar_overview_cell.weekday6,
2660
  .matrix_resources .calendar_timeline_frame .calendar_overview_cell.weekday7 {
2661
  color: #c33; /*#777;*/
2662
+ font-weight: 400;
2663
  /*border-bottom: 1px solid #EE3333;*/
2664
  background: none repeat scroll 0 0 #FEB;
2665
  }
2718
  .calendar_overview_cell.today_date .time_booked_in_day.past_time.booking_trash{
2719
  background-color: #a44;
2720
  }
2721
+
2722
+ /* FixIn: 6.2.2.4 */
2723
+ .wpdevbk .label,
2724
+ .wpdevbk strong {
2725
+ font-weight: 600;
2726
+ }
2727
+ .wpdevbk [class^="icon-"] {
2728
+ margin-top: 2px;
2729
+ }
2730
+ .wpdevbk .button [class^="icon-"] {
2731
+ margin-top: 3px;
2732
+ }
css/calendar.css CHANGED
@@ -297,7 +297,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_i
297
  .datepick-inline .datepick .datepick-unselectable.check_in_time.date2approve,
298
  .datepick-inline .datepick .datepick-unselectable.check_out_time.date2approve {
299
  background-color: transparent;
300
- font-weight: normal;
301
  }
302
  /*******************************************************************************/
303
 
@@ -396,7 +396,7 @@ div#datepick-div textarea {
396
  .block_free ,
397
  .wpdev_hint_with_text .block_check_in_out {
398
  font-size: 13px;
399
- font-weight: normal;
400
  }
401
  /* Clear Line */
402
  .wpdev_clear_hint{
@@ -439,7 +439,7 @@ div#datepick-div textarea {
439
  }
440
  .booking_form_div input[type=button]{
441
  font-size: 1.1em;
442
- font-weight: bold;
443
  padding: 5px 20px !important;
444
  }
445
 
297
  .datepick-inline .datepick .datepick-unselectable.check_in_time.date2approve,
298
  .datepick-inline .datepick .datepick-unselectable.check_out_time.date2approve {
299
  background-color: transparent;
300
+ font-weight: 400;
301
  }
302
  /*******************************************************************************/
303
 
396
  .block_free ,
397
  .wpdev_hint_with_text .block_check_in_out {
398
  font-size: 13px;
399
+ font-weight: 400;
400
  }
401
  /* Clear Line */
402
  .wpdev_clear_hint{
439
  }
440
  .booking_form_div input[type=button]{
441
  font-size: 1.1em;
442
+ font-weight: 600;
443
  padding: 5px 20px !important;
444
  }
445
 
css/client.css CHANGED
@@ -2,7 +2,7 @@
2
  .submiting_content {
3
  border: 1px solid #5C5;
4
  font-size: 15px;
5
- font-weight: bold;
6
  height: 45px;
7
  margin: 15px auto;
8
  padding: 15px 10px;
@@ -112,11 +112,11 @@
112
  border-style: solid;
113
  border-width: 1px;
114
  cursor: pointer;
115
- font-size: 11px !important;
116
  line-height: 16px;
117
  padding: 2px 8px;
118
  text-decoration: none;
119
- font-weight: bold;
120
  margin: 10px 0px;
121
  float: right;
122
  }
@@ -140,7 +140,7 @@
140
  }
141
  /* Booked Times Title in tooltip */
142
  .wpbc_booked_times_word {
143
- font-weight: bold;
144
  }
145
  /* Time inputs at the form */
146
  input.wpdev-validates-as-time {
@@ -163,7 +163,7 @@ input.wpdev-validates-as-time {
163
  display: none;
164
  float: left;
165
  font-size: 14px;
166
- font-weight: bold;
167
  border: 1px solid #9DA;
168
  padding: 3px 10px;
169
  margin: 2px 5px;
@@ -196,7 +196,7 @@ img.captcha_img {
196
  color: #333;
197
  display: inline;
198
  font-size: 10px;
199
- font-weight: bold;
200
  padding: 2px 5px;
201
  text-shadow: none;
202
  }
2
  .submiting_content {
3
  border: 1px solid #5C5;
4
  font-size: 15px;
5
+ font-weight: 600;
6
  height: 45px;
7
  margin: 15px auto;
8
  padding: 15px 10px;
112
  border-style: solid;
113
  border-width: 1px;
114
  cursor: pointer;
115
+ font-size: 12px !important;
116
  line-height: 16px;
117
  padding: 2px 8px;
118
  text-decoration: none;
119
+ font-weight: 600;
120
  margin: 10px 0px;
121
  float: right;
122
  }
140
  }
141
  /* Booked Times Title in tooltip */
142
  .wpbc_booked_times_word {
143
+ font-weight: 600;
144
  }
145
  /* Time inputs at the form */
146
  input.wpdev-validates-as-time {
163
  display: none;
164
  float: left;
165
  font-size: 14px;
166
+ font-weight: 600;
167
  border: 1px solid #9DA;
168
  padding: 3px 10px;
169
  margin: 2px 5px;
196
  color: #333;
197
  display: inline;
198
  font-size: 10px;
199
+ font-weight: 600;
200
  padding: 2px 5px;
201
  text-shadow: none;
202
  }
css/jquery-ui.css CHANGED
@@ -86,7 +86,7 @@ body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body
86
  color: #fff;
87
  border-bottom: 1px solid #DFDFDF;
88
  font-size: 1em;
89
- font-weight: bold;
90
  position: relative;
91
  -moz-border-radius:3px 3px 0 0;
92
  -webkit-border-radius:3px 3px 0 0;
86
  color: #fff;
87
  border-bottom: 1px solid #DFDFDF;
88
  font-size: 1em;
89
+ font-weight: 600;
90
  position: relative;
91
  -moz-border-radius:3px 3px 0 0;
92
  -webkit-border-radius:3px 3px 0 0;
css/skins/black.css CHANGED
@@ -48,20 +48,20 @@
48
  .datepick-inline .calendar-links .datepick-prev a:hover,
49
  .datepick-inline .calendar-links .datepick-next a:hover{
50
  color: #595959;
51
- font-weight: bold;
52
  text-shadow: 0 0px 0 #ddd;
53
  }
54
  /* Month Titles */
55
  .datepick-inline .datepick-header {
56
  color: #595959;
57
- font-weight: bold;
58
  text-shadow: 0 0px 0 #DDDDDD;
59
  }
60
  /* Week Titles */
61
  div.datepick-inline .datepick-title-row th{
62
  border: 1px solid #999;
63
  color: #aaa;
64
- font-weight: bold;
65
  text-transform: uppercase;
66
  }
67
  /* Cell border*/
@@ -96,7 +96,7 @@ div.datepick-inline .datepick-title-row th{
96
  .block_hints .block_time,
97
  .datepick-inline .date_available a{
98
  color: #ddd;
99
- font-weight: bold;
100
  text-shadow: 0 -1px 0 #000;
101
  }
102
  /*******************************************************************************/
@@ -126,7 +126,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in
126
  .block_hints .block_booked a,
127
  .datepick-inline .date_approved a{
128
  color: #d93;
129
- font-weight: bold;
130
  text-shadow: 0 -1px 0 #793300;
131
  }
132
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -156,7 +156,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_i
156
  .block_hints .block_pending a,
157
  .datepick-inline .date2approve a {
158
  color: #850;
159
- font-weight: bold;
160
  text-shadow: 0 1px 0 #FFAA00;
161
  }
162
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -198,7 +198,7 @@ td.timespartly.check_in_time.check_out_time.check_in_time_date_approved.check_ou
198
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
199
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
200
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
201
- font-weight: bold;
202
  text-shadow: none;
203
  color: #b70;
204
  }
48
  .datepick-inline .calendar-links .datepick-prev a:hover,
49
  .datepick-inline .calendar-links .datepick-next a:hover{
50
  color: #595959;
51
+ font-weight: 600;
52
  text-shadow: 0 0px 0 #ddd;
53
  }
54
  /* Month Titles */
55
  .datepick-inline .datepick-header {
56
  color: #595959;
57
+ font-weight: 600;
58
  text-shadow: 0 0px 0 #DDDDDD;
59
  }
60
  /* Week Titles */
61
  div.datepick-inline .datepick-title-row th{
62
  border: 1px solid #999;
63
  color: #aaa;
64
+ font-weight: 600;
65
  text-transform: uppercase;
66
  }
67
  /* Cell border*/
96
  .block_hints .block_time,
97
  .datepick-inline .date_available a{
98
  color: #ddd;
99
+ font-weight: 600;
100
  text-shadow: 0 -1px 0 #000;
101
  }
102
  /*******************************************************************************/
126
  .block_hints .block_booked a,
127
  .datepick-inline .date_approved a{
128
  color: #d93;
129
+ font-weight: 600;
130
  text-shadow: 0 -1px 0 #793300;
131
  }
132
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
156
  .block_hints .block_pending a,
157
  .datepick-inline .date2approve a {
158
  color: #850;
159
+ font-weight: 600;
160
  text-shadow: 0 1px 0 #FFAA00;
161
  }
162
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
198
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
199
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
200
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
201
+ font-weight: 600;
202
  text-shadow: none;
203
  color: #b70;
204
  }
css/skins/standard.css CHANGED
@@ -47,20 +47,20 @@
47
  .datepick-inline .calendar-links .datepick-prev a:hover,
48
  .datepick-inline .calendar-links .datepick-next a:hover{
49
  color: #888;
50
- font-weight: bold;
51
  text-shadow: 0 1px 0 #ddd;
52
  }
53
  /* Month Titles */
54
  .datepick-inline .datepick-header {
55
  color: #777;
56
- font-weight: bold;
57
  text-shadow: 0 1px 0 #eee;
58
  }
59
  /* Week Titles */
60
  div.datepick-inline .datepick-title-row th{
61
  border: 1px solid #ccc;
62
  color: #555;
63
- font-weight: bold;
64
  text-transform: uppercase;
65
  }
66
  /* Cell border*/
@@ -95,7 +95,7 @@ div.datepick-inline .datepick-title-row th{
95
  .block_hints .block_time,
96
  .datepick-inline .date_available a{
97
  color:#89a;
98
- font-weight: bold;
99
  text-shadow: 0 1px 0 #fff;
100
  }
101
  /*******************************************************************************/
@@ -125,7 +125,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in
125
  .block_hints .block_booked a,
126
  .datepick-inline .date_approved a{
127
  color: #fff;
128
- font-weight: bold;
129
  text-shadow: 0 -1px 0 #77a;
130
  }
131
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -155,7 +155,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_i
155
  .block_hints .block_pending a,
156
  .datepick-inline .date2approve a {
157
  color: #fff;
158
- font-weight: bold;
159
  text-shadow: 0 -1px 0 #55e;
160
  }
161
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -197,6 +197,6 @@ td.timespartly.check_in_time.check_out_time.check_in_time_date_approved.check_ou
197
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
198
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
199
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
200
- font-weight: bold;
201
  text-shadow: none;
202
  }
47
  .datepick-inline .calendar-links .datepick-prev a:hover,
48
  .datepick-inline .calendar-links .datepick-next a:hover{
49
  color: #888;
50
+ font-weight: 600;
51
  text-shadow: 0 1px 0 #ddd;
52
  }
53
  /* Month Titles */
54
  .datepick-inline .datepick-header {
55
  color: #777;
56
+ font-weight: 600;
57
  text-shadow: 0 1px 0 #eee;
58
  }
59
  /* Week Titles */
60
  div.datepick-inline .datepick-title-row th{
61
  border: 1px solid #ccc;
62
  color: #555;
63
+ font-weight: 600;
64
  text-transform: uppercase;
65
  }
66
  /* Cell border*/
95
  .block_hints .block_time,
96
  .datepick-inline .date_available a{
97
  color:#89a;
98
+ font-weight: 600;
99
  text-shadow: 0 1px 0 #fff;
100
  }
101
  /*******************************************************************************/
125
  .block_hints .block_booked a,
126
  .datepick-inline .date_approved a{
127
  color: #fff;
128
+ font-weight: 600;
129
  text-shadow: 0 -1px 0 #77a;
130
  }
131
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
155
  .block_hints .block_pending a,
156
  .datepick-inline .date2approve a {
157
  color: #fff;
158
+ font-weight: 600;
159
  text-shadow: 0 -1px 0 #55e;
160
  }
161
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
197
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
198
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
199
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
200
+ font-weight: 600;
201
  text-shadow: none;
202
  }
css/skins/traditional-light.css CHANGED
@@ -46,20 +46,20 @@
46
  .datepick-inline .calendar-links .datepick-prev a:hover,
47
  .datepick-inline .calendar-links .datepick-next a:hover{
48
  color: #888;
49
- font-weight: bold;
50
  text-shadow: 0 1px 0 #ddd;
51
  }
52
  /* Month Titles */
53
  .datepick-inline .datepick-header {
54
  color: #888;
55
- font-weight: bold;
56
  text-shadow: 0 1px 0 #DDDDDD;
57
  }
58
  /* Week Titles */
59
  div.datepick-inline .datepick-title-row th{
60
  border: 1px solid #ccc;
61
  color: #555;
62
- font-weight: bold;
63
  text-transform: uppercase;
64
  }
65
  /* Cell border*/
@@ -94,7 +94,7 @@ div.datepick-inline .datepick-title-row th{
94
  .block_hints .block_time,
95
  .datepick-inline .date_available a{
96
  color:#fff;
97
- font-weight: bold;
98
  text-shadow: 0 -1px 0 #555555;
99
  }
100
  /*******************************************************************************/
@@ -124,7 +124,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in
124
  .block_hints .block_booked a,
125
  .datepick-inline .date_approved a{
126
  color: #5F0000;
127
- font-weight: bold;
128
  text-shadow: 0 1px 0 #DD0000;
129
  }
130
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -154,7 +154,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_i
154
  .block_hints .block_pending a,
155
  .datepick-inline .date2approve a {
156
  color: #885500;
157
- font-weight: bold;
158
  text-shadow: 0 1px 0 #FFAA00;
159
  }
160
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -196,6 +196,6 @@ td.timespartly.check_in_time.check_out_time.check_in_time_date_approved.check_ou
196
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
197
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
198
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
199
- font-weight: bold;
200
  text-shadow: none;
201
  }
46
  .datepick-inline .calendar-links .datepick-prev a:hover,
47
  .datepick-inline .calendar-links .datepick-next a:hover{
48
  color: #888;
49
+ font-weight: 600;
50
  text-shadow: 0 1px 0 #ddd;
51
  }
52
  /* Month Titles */
53
  .datepick-inline .datepick-header {
54
  color: #888;
55
+ font-weight: 600;
56
  text-shadow: 0 1px 0 #DDDDDD;
57
  }
58
  /* Week Titles */
59
  div.datepick-inline .datepick-title-row th{
60
  border: 1px solid #ccc;
61
  color: #555;
62
+ font-weight: 600;
63
  text-transform: uppercase;
64
  }
65
  /* Cell border*/
94
  .block_hints .block_time,
95
  .datepick-inline .date_available a{
96
  color:#fff;
97
+ font-weight: 600;
98
  text-shadow: 0 -1px 0 #555555;
99
  }
100
  /*******************************************************************************/
124
  .block_hints .block_booked a,
125
  .datepick-inline .date_approved a{
126
  color: #5F0000;
127
+ font-weight: 600;
128
  text-shadow: 0 1px 0 #DD0000;
129
  }
130
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
154
  .block_hints .block_pending a,
155
  .datepick-inline .date2approve a {
156
  color: #885500;
157
+ font-weight: 600;
158
  text-shadow: 0 1px 0 #FFAA00;
159
  }
160
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
196
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
197
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
198
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
199
+ font-weight: 600;
200
  text-shadow: none;
201
  }
css/skins/traditional.css CHANGED
@@ -47,20 +47,20 @@
47
  .datepick-inline .calendar-links .datepick-prev a:hover,
48
  .datepick-inline .calendar-links .datepick-next a:hover{
49
  color: #888;
50
- font-weight: bold;
51
  text-shadow: 0 1px 0 #ddd;
52
  }
53
  /* Month Titles */
54
  .datepick-inline .datepick-header {
55
  color: #555;
56
- font-weight: bold;
57
  text-shadow: 0 1px 0 #DDDDDD;
58
  }
59
  /* Week Titles */
60
  div.datepick-inline .datepick-title-row th{
61
  border: 1px solid #ccc;
62
  color: #555;
63
- font-weight: bold;
64
  text-transform: uppercase;
65
  }
66
  /* Cell border*/
@@ -95,7 +95,7 @@ div.datepick-inline .datepick-title-row th{
95
  .block_hints .block_time,
96
  .datepick-inline .date_available a{
97
  color:#89a;
98
- font-weight: bold;
99
  text-shadow: 0 1px 0 #fff;
100
  }
101
  /*******************************************************************************/
@@ -125,7 +125,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in
125
  .block_hints .block_booked a,
126
  .datepick-inline .date_approved a{
127
  color: #5F0000;
128
- font-weight: bold;
129
  text-shadow: 0 1px 0 #DD0000;
130
  }
131
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -155,7 +155,7 @@ td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_i
155
  .block_hints .block_pending a,
156
  .datepick-inline .date2approve a {
157
  color: #885500;
158
- font-weight: bold;
159
  text-shadow: 0 1px 0 #FFAA00;
160
  }
161
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
@@ -197,6 +197,6 @@ td.timespartly.check_in_time.check_out_time.check_in_time_date_approved.check_ou
197
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
198
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
199
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
200
- font-weight: bold;
201
  text-shadow: none;
202
  }
47
  .datepick-inline .calendar-links .datepick-prev a:hover,
48
  .datepick-inline .calendar-links .datepick-next a:hover{
49
  color: #888;
50
+ font-weight: 600;
51
  text-shadow: 0 1px 0 #ddd;
52
  }
53
  /* Month Titles */
54
  .datepick-inline .datepick-header {
55
  color: #555;
56
+ font-weight: 600;
57
  text-shadow: 0 1px 0 #DDDDDD;
58
  }
59
  /* Week Titles */
60
  div.datepick-inline .datepick-title-row th{
61
  border: 1px solid #ccc;
62
  color: #555;
63
+ font-weight: 600;
64
  text-transform: uppercase;
65
  }
66
  /* Cell border*/
95
  .block_hints .block_time,
96
  .datepick-inline .date_available a{
97
  color:#89a;
98
+ font-weight: 600;
99
  text-shadow: 0 1px 0 #fff;
100
  }
101
  /*******************************************************************************/
125
  .block_hints .block_booked a,
126
  .datepick-inline .date_approved a{
127
  color: #5F0000;
128
+ font-weight: 600;
129
  text-shadow: 0 1px 0 #DD0000;
130
  }
131
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
155
  .block_hints .block_pending a,
156
  .datepick-inline .date2approve a {
157
  color: #885500;
158
+ font-weight: 600;
159
  text-shadow: 0 1px 0 #FFAA00;
160
  }
161
  /* CHECK IN and CHECK OUT Borders for the approved cells - the COLOR have to be the SAME as BACKGROUND of this cell*/
197
  td.timespartly.check_in_time.check_out_time.check_out_time_date_approved.check_in_time_date2approve span,
198
  td.timespartly.check_in_time.check_out_time.check_in_time_date2approve.check_out_time_date_approved span,
199
  td.timespartly.check_in_time.check_out_time.check_out_time_date2approve.check_in_time_date_approved span {
200
+ font-weight: 600;
201
  text-shadow: none;
202
  }
interface/chosen/chosen.css CHANGED
@@ -106,7 +106,6 @@
106
  padding: 4px 20px 4px 5px;
107
  outline: 0;
108
  border: 1px solid #aaa;
109
- font-family: sans-serif;
110
  font-size: 1em;
111
  }
112
  .chzn-container-single .chzn-drop {
@@ -155,7 +154,6 @@
155
  color: #666;
156
  background: transparent !important;
157
  border: 0 !important;
158
- font-family: sans-serif;
159
  font-size: 100%;
160
  height: 15px;
161
  padding: 5px;
@@ -265,7 +263,7 @@
265
  .chzn-container .chzn-results .group-result {
266
  cursor: default;
267
  color: #999;
268
- font-weight: bold;
269
  }
270
  .chzn-container .chzn-results .group-option {
271
  padding-left: 15px;
106
  padding: 4px 20px 4px 5px;
107
  outline: 0;
108
  border: 1px solid #aaa;
 
109
  font-size: 1em;
110
  }
111
  .chzn-container-single .chzn-drop {
154
  color: #666;
155
  background: transparent !important;
156
  border: 0 !important;
 
157
  font-size: 100%;
158
  height: 15px;
159
  padding: 5px;
263
  .chzn-container .chzn-results .group-result {
264
  cursor: default;
265
  color: #999;
266
+ font-weight: 600;
267
  }
268
  .chzn-container .chzn-results .group-option {
269
  padding-left: 15px;
js/admin.js CHANGED
@@ -222,6 +222,12 @@ function setCheckBoxInTable(el_stutus, el_class){
222
  function wpbc_get_selected_locale( booking_id, wpdev_active_locale ) {
223
 
224
  var id_to_check = "" + booking_id;
 
 
 
 
 
 
225
  if ( id_to_check.indexOf('|') == -1 ) {
226
  var selected_locale = jQuery('#locale_for_booking' + booking_id).val();
227
 
222
  function wpbc_get_selected_locale( booking_id, wpdev_active_locale ) {
223
 
224
  var id_to_check = "" + booking_id;
225
+
226
+ if ( id_to_check.indexOf('|') == -1 ) { //FixIn:6.2.2.3
227
+ id_to_check = id_to_check.split('|');
228
+ id_to_check = id_to_check[0];
229
+ }
230
+
231
  if ( id_to_check.indexOf('|') == -1 ) {
232
  var selected_locale = jQuery('#locale_for_booking' + booking_id).val();
233
 
lib/wpbc-ajax.php CHANGED
@@ -1,451 +1,456 @@
1
- <?php
2
- /**
3
- * @version 1.0
4
- * @package Booking Calendar
5
- * @subpackage Ajax Responder
6
- * @category Bookings
7
- *
8
- * @author wpdevelop
9
- * @link http://wpbookingcalendar.com/
10
- * @email info@wpbookingcalendar.com
11
- *
12
- * @modified 2014.05.26
13
- */
14
-
15
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
16
-
17
- ////////////////////////////////////////////////////////////////////////////////
18
- // S u p p o r t f u n c t i o n s f o r A j a x ///////////////
19
- ////////////////////////////////////////////////////////////////////////////////
20
- function wpbc_verify_nonce_failed( $nonce, $action, $user, $token ) {
21
- debuge('$nonce, $action, $user, $token',$nonce, $action, $user, $token);
22
- }
23
- // Verify the nonce.
24
- function wpdev_check_nonce_in_admin_panel( $action_check = 'wpbc_ajax_admin_nonce' ){
25
-
26
- $nonce = ( isset($_REQUEST['wpbc_nonce']) ) ? $_REQUEST['wpbc_nonce'] : '';
27
- //$nonce .= '1';
28
- //add_action('wp_verify_nonce_failed', 'wpbc_verify_nonce_failed', 10, 4);
29
- //debuge(is_user_logged_in(), wp_get_current_user());
30
- //if ( ! wp_verify_nonce( $nonce, $action_check ) && is_user_logged_in() ) { // This nonce is not valid.
31
- if ( ! wp_verify_nonce( $nonce, $action_check ) ) { // This nonce is not valid.
32
- ?>
33
- <script type="text/javascript">
34
- jQuery("#ajax_respond").after( "<div class='wpdevbk'><div class='alert alert-danger'><?php
35
- printf(__('%sError!%s Request do not pass security check! Please refresh the page and try one more time.' ,'booking'),'<strong>','</strong>');
36
- ?></div></div>" );
37
- if ( jQuery("#ajax_message").length )
38
- jQuery("#ajax_message").slideUp();
39
- </script>
40
- <?php
41
- die;
42
- }
43
- }
44
-
45
-
46
- // Check and (re)Load specific Locale for the Ajax request - based on "admin_init" hook
47
- function wpbc_check_locale_for_ajax() {
48
-
49
- add_bk_filter('wpdev_check_for_active_language', 'wpdev_check_for_active_language'); // Add Hook for ability to check the content for active lanaguges
50
-
51
- if (isset($_POST['wpdev_active_locale'])) { // Reload locale according request parameter
52
- global $l10n;
53
- if (isset($l10n['booking'])) unset($l10n['booking']);
54
-
55
- if(! defined('WPDEV_BK_LOCALE_RELOAD') ) define('WPDEV_BK_LOCALE_RELOAD', $_POST['wpdev_active_locale']);
56
-
57
- // Reload locale settings, its required for the correct dates format
58
- if (isset($l10n['default'])) unset($l10n['default']); // Unload locale
59
- add_filter('locale', 'getBookingLocale',999); // Set filter to load the locale of the Booking Calendar
60
- load_default_textdomain(); // Load default locale
61
- global $wp_locale;
62
- $wp_locale = new WP_Locale(); // Reload class
63
-
64
- loadLocale(WPDEV_BK_LOCALE_RELOAD);
65
- }
66
- }
67
-
68
-
69
- ////////////////////////////////////////////////////////////////////////////////
70
- // A j a x H o o k s f o r s p e c i f i c A c t i o n s /////
71
- ////////////////////////////////////////////////////////////////////////////////
72
-
73
- function wpbc_ajax_CALCULATE_THE_COST() {
74
-
75
- wpdev_check_nonce_in_admin_panel( $_POST['action'] );
76
- make_bk_action('wpdev_ajax_show_cost');
77
- }
78
-
79
-
80
- function wpbc_ajax_INSERT_INTO_TABLE() {
81
-
82
- wpdev_check_nonce_in_admin_panel( $_POST['action'] );
83
- wpdev_bk_insert_new_booking();
84
- }
85
-
86
-
87
- function wpbc_ajax_UPDATE_READ_UNREAD () {
88
-
89
- wpdev_check_nonce_in_admin_panel();
90
-
91
- make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
92
-
93
- if ( $_POST[ "is_read_or_unread" ] == 1) $is_new = '1';
94
- else $is_new = '0';
95
-
96
- $id_of_new_bookings = $_POST[ "booking_id" ];
97
- $arrayof_bookings_id = explode('|',$id_of_new_bookings);
98
- $user_id = $_POST[ "user_id" ];
99
-
100
- renew_NumOfNewBookings( $arrayof_bookings_id, $is_new , $user_id );
101
-
102
- ?> <script type="text/javascript"> <?php
103
- foreach ($arrayof_bookings_id as $bk_id) {
104
-
105
- if ( $bk_id == 'all' )
106
- $bk_id = 0;
107
-
108
- if ($is_new == '1') { ?>
109
- set_booking_row_unread(<?php echo $bk_id ?>);
110
- <?php } else { ?>
111
- set_booking_row_read(<?php echo $bk_id ?>);
112
- <?php }
113
- } ?>
114
- document.getElementById('ajax_message').innerHTML = '<?php if ($is_new == '1') { echo __('Set as Read' ,'booking'); } else { echo __('Set as Unread' ,'booking'); } ?>';
115
- jQuery('#ajax_message').fadeOut(1000);
116
- </script> <?php
117
- }
118
-
119
-
120
- function wpbc_ajax_UPDATE_APPROVE() {
121
-
122
- global $wpdb;
123
-
124
- wpdev_check_nonce_in_admin_panel();
125
- make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
126
-
127
- // Approve or Reject
128
- $is_approve_or_pending = $_POST[ "is_approve_or_pending" ];
129
- if ($is_approve_or_pending == 1)
130
- $is_approve_or_pending = '1';
131
- else
132
- $is_approve_or_pending = '0';
133
-
134
- $booking_id = $_POST[ "booking_id" ];
135
- $approved_id = explode('|',$booking_id);
136
- if (! isset($_POST["denyreason"]))
137
- $_POST["denyreason"] = '';
138
- $denyreason = $_POST["denyreason"];
139
- $is_send_emeils = $_POST["is_send_emeils"];
140
-
141
-
142
- if ( ( count($approved_id) > 0 ) && ( $approved_id !== false ) ) {
143
-
144
- $approved_id_str = join( ',', $approved_id);
145
- $approved_id_str = wpbc_clean_string_for_db( $approved_id_str );
146
-
147
- if ( false === $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->prefix}bookingdates SET approved = %s WHERE booking_id IN ({$approved_id_str})", $is_approve_or_pending ) ) ){
148
- ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during updating to DB' ,__FILE__,__LINE__); ?></div>'; </script> <?php
149
- die();
150
- }
151
-
152
- renew_NumOfNewBookings( explode(',', $approved_id_str) );
153
-
154
- if ($is_approve_or_pending == '1') {
155
- sendApproveEmails($approved_id_str, $is_send_emeils,$denyreason);
156
- $all_bk_id_what_canceled = apply_bk_filter('cancel_pending_same_resource_bookings_for_specific_dates', false, $approved_id_str );
157
- } else
158
- sendDeclineEmails($approved_id_str, $is_send_emeils,$denyreason);
159
-
160
- ?> <script type="text/javascript">
161
- <?php foreach ($approved_id as $bk_id) {
162
- if ($is_approve_or_pending == '1') { ?>
163
- set_booking_row_approved_in_timeline(<?php echo $bk_id ?>);
164
- set_booking_row_approved(<?php echo $bk_id ?>);
165
- set_booking_row_read(<?php echo $bk_id ?>);
166
- <?php } else { ?>
167
- set_booking_row_pending_in_timeline(<?php echo $bk_id ?>);
168
- set_booking_row_pending(<?php echo $bk_id ?>);
169
- <?php }?>
170
- <?php } ?>
171
- document.getElementById('ajax_message').innerHTML = '<?php if ($is_approve_or_pending == '1') { echo esc_js(__('Set as Approved' ,'booking')); } else { echo esc_js(__('Set as Pending' ,'booking')); } ?>';
172
- jQuery('#ajax_message').fadeOut(1000);
173
- </script> <?php
174
- }
175
- }
176
-
177
- //FixIn: 6.1.1.10
178
- function wpbc_ajax_TRASH_RESTORE() {
179
-
180
- global $wpdb;
181
-
182
- wpdev_check_nonce_in_admin_panel();
183
- make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
184
-
185
- $booking_id = $_POST[ "booking_id" ]; // Booking ID
186
- if ( ! isset($_POST["denyreason"] ) )
187
- $_POST["denyreason"] = '';
188
- $denyreason = $_POST["denyreason"];
189
- if ( ( $denyreason == __('Reason for cancellation here' ,'booking'))
190
- || ( $denyreason == __('Reason of cancellation here' ,'booking'))
191
- || ( $denyreason == 'Reason of cancel here')
192
- ) $denyreason = '';
193
- $is_send_emeils = intval( $_POST["is_send_emeils"] );
194
- $approved_id = explode('|',$booking_id);
195
-
196
- $is_trash = intval( $_POST["is_trash"] );
197
-
198
- if ( (count($approved_id)>0) && ($approved_id !=false) && ($approved_id !='')) {
199
-
200
- $approved_id_str = join( ',', $approved_id);
201
- $approved_id_str = wpbc_clean_string_for_db( $approved_id_str );
202
-
203
- sendDeclineEmails($approved_id_str, $is_send_emeils,$denyreason);
204
-
205
-
206
- if ( false === $wpdb->query( "UPDATE {$wpdb->prefix}booking AS bk SET bk.trash = {$is_trash} WHERE booking_id IN ({$approved_id_str})" ) ){
207
- ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during trash booking in DB',__FILE__,__LINE__ ); ?></div>'; </script> <?php
208
- die();
209
- }
210
- ?>
211
- <script type="text/javascript">
212
- <?php
213
- if ( $is_trash ) {
214
- foreach ($approved_id as $bk_id) { ?>
215
- set_booking_row_trash(<?php echo $bk_id ?>);
216
- setTimeout(function() { set_booking_row_deleted_in_timeline(<?php echo $bk_id ?>); }, 1000);
217
- //setTimeout(function() { set_booking_row_deleted(<?php echo $bk_id ?>); }, 1000);
218
- <?php } ?>
219
- document.getElementById('ajax_message').innerHTML = '<?php echo __('Done' ,'booking'); ?>';
220
- <?php } else {
221
- foreach ($approved_id as $bk_id) { ?>
222
- set_booking_row_restore(<?php echo $bk_id ?>);
223
- <?php } ?>
224
- document.getElementById('ajax_message').innerHTML = '<?php echo __('Done' ,'booking'); ?>';
225
- <?php } ?>
226
- jQuery('#ajax_message').fadeOut(1000);
227
- </script>
228
- <?php
229
- }
230
- }
231
-
232
-
233
-
234
- function wpbc_ajax_DELETE_APPROVE() {
235
-
236
- global $wpdb;
237
-
238
- wpdev_check_nonce_in_admin_panel();
239
- make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
240
-
241
- $booking_id = $_POST[ "booking_id" ]; // Booking ID
242
- if ( ! isset($_POST["denyreason"] ) )
243
- $_POST["denyreason"] = '';
244
- $denyreason = $_POST["denyreason"];
245
- if ( ( $denyreason == __('Reason for cancellation here' ,'booking'))
246
- || ( $denyreason == __('Reason of cancellation here' ,'booking'))
247
- || ( $denyreason == 'Reason of cancel here')
248
- ) $denyreason = '';
249
- $is_send_emeils = $_POST["is_send_emeils"];
250
- $approved_id = explode('|',$booking_id);
251
-
252
- if ( (count($approved_id)>0) && ($approved_id !=false) && ($approved_id !='')) {
253
-
254
- $approved_id_str = join( ',', $approved_id);
255
- $approved_id_str = wpbc_clean_string_for_db( $approved_id_str );
256
-
257
- sendDeclineEmails($approved_id_str, $is_send_emeils,$denyreason);
258
-
259
- if ( false === $wpdb->query( "DELETE FROM {$wpdb->prefix}bookingdates WHERE booking_id IN ({$approved_id_str})" ) ){
260
- ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during deleting dates at DB' ,__FILE__,__LINE__); ?></div>'; </script> <?php
261
- die();
262
- }
263
-
264
- if ( false === $wpdb->query( "DELETE FROM {$wpdb->prefix}booking WHERE booking_id IN ({$approved_id_str})" ) ){
265
- ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during deleting reservation at DB',__FILE__,__LINE__ ); ?></div>'; </script> <?php
266
- die();
267
- }
268
- ?>
269
- <script type="text/javascript">
270
- <?php foreach ($approved_id as $bk_id) { ?>
271
- set_booking_row_deleted_in_timeline(<?php echo $bk_id ?>);
272
- set_booking_row_deleted(<?php echo $bk_id ?>);
273
- <?php } ?>
274
- document.getElementById('ajax_message').innerHTML = '<?php echo __('Deleted' ,'booking'); ?>';
275
- jQuery('#ajax_message').fadeOut(1000);
276
- </script>
277
- <?php
278
- }
279
- }
280
-
281
-
282
- function wpbc_ajax_DELETE_BY_VISITOR() {
283
-
284
- wpdev_check_nonce_in_admin_panel( $_POST['action'] );
285
- make_bk_action('wpdev_delete_booking_by_visitor');
286
-
287
- }
288
-
289
-
290
- function wpbc_ajax_SAVE_BK_COST() {
291
-
292
- wpdev_check_nonce_in_admin_panel();
293
- make_bk_action('wpdev_save_bk_cost');
294
- }
295
-
296
-
297
- function wpbc_ajax_SEND_PAYMENT_REQUEST() {
298
-
299
- wpdev_check_nonce_in_admin_panel();
300
- make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] ); //FixIn: 5.4.5.6
301
- make_bk_action('wpdev_send_payment_request');
302
- }
303
-
304
-
305
- function wpbc_ajax_CHANGE_PAYMENT_STATUS() {
306
-
307
- wpdev_check_nonce_in_admin_panel();
308
- make_bk_action('wpdev_change_payment_status');
309
- }
310
-
311
-
312
- function wpbc_ajax_UPDATE_BK_RESOURCE_4_BOOKING() {
313
-
314
- wpdev_check_nonce_in_admin_panel();
315
- make_bk_action('wpdev_updating_bk_resource_of_booking');
316
- }
317
-
318
-
319
- //FixIn:5.4.5.1
320
- function wpbc_ajax_DUPLICATE_BOOKING_TO_OTHER_RESOURCE() {
321
-
322
- wpdev_check_nonce_in_admin_panel();
323
- make_bk_action('wpbc_duplicate_booking_to_other_resource');
324
- }
325
-
326
-
327
-
328
-
329
- function wpbc_ajax_UPDATE_REMARK() {
330
-
331
- wpdev_check_nonce_in_admin_panel();
332
- make_bk_action('wpdev_updating_remark');
333
- }
334
-
335
-
336
- function wpbc_ajax_DELETE_BK_FORM() {
337
-
338
- wpdev_check_nonce_in_admin_panel();
339
- make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
340
- make_bk_action('wpdev_delete_booking_form');
341
- }
342
-
343
-
344
- function wpbc_ajax_USER_SAVE_WINDOW_STATE() {
345
-
346
- wpdev_check_nonce_in_admin_panel();
347
- update_user_option($_POST['user_id'],'booking_win_' . $_POST['window'] ,$_POST['is_closed']);
348
- }
349
-
350
-
351
- function wpbc_ajax_BOOKING_SEARCH() {
352
-
353
- wpdev_check_nonce_in_admin_panel( $_POST['action'] );
354
- make_bk_action('wpdev_ajax_booking_search');
355
- }
356
-
357
-
358
- function wpbc_ajax_CHECK_BK_NEWS() {
359
-
360
- wpdev_check_nonce_in_admin_panel();
361
- wpdev_ajax_check_bk_news();
362
- }
363
-
364
-
365
- function wpbc_ajax_CHECK_BK_FEATURES() {
366
-
367
- wpdev_check_nonce_in_admin_panel();
368
- wpdev_ajax_check_bk_news('info/features/');
369
- }
370
-
371
-
372
- function wpbc_ajax_CHECK_BK_VERSION() {
373
-
374
- wpdev_check_nonce_in_admin_panel();
375
- wpdev_ajax_check_bk_version();
376
- }
377
-
378
-
379
- function wpbc_ajax_SAVE_BK_LISTING_FILTER() {
380
-
381
- wpdev_check_nonce_in_admin_panel();
382
- make_bk_action('wpdev_ajax_save_bk_listing_filter');
383
- }
384
-
385
-
386
- function wpbc_ajax_DELETE_BK_LISTING_FILTER() {
387
- wpdev_check_nonce_in_admin_panel();
388
- make_bk_action('wpdev_ajax_delete_bk_listing_filter');
389
- }
390
-
391
-
392
- function wpbc_ajax_EXPORT_BOOKINGS_TO_CSV() {
393
- wpdev_check_nonce_in_admin_panel();
394
- make_bk_action('wpdev_ajax_export_bookings_to_csv');
395
- }
396
-
397
-
398
- function wpbc_ajax_WPBC_IMPORT_GCAL_EVENTS() {
399
- wpdev_check_nonce_in_admin_panel();
400
- make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
401
- make_bk_action('wpbc_import_gcal_events');
402
- }
403
-
404
- ////////////////////////////////////////////////////////////////////////////////
405
- // R u n A j a x //////////////////////////////////
406
- ////////////////////////////////////////////////////////////////////////////////
407
- if ( is_admin() && ( defined( 'DOING_AJAX' ) ) && ( DOING_AJAX ) ) {
408
-
409
- // Reload Locale if its required
410
- add_action( 'admin_init', 'wpbc_check_locale_for_ajax' );
411
-
412
- // Hooks list
413
- $actions_list = array(
414
- 'CALCULATE_THE_COST' => 'both'
415
- ,'INSERT_INTO_TABLE' => 'both'
416
- ,'UPDATE_READ_UNREAD' => 'admin'
417
- ,'UPDATE_APPROVE' => 'admin'
418
- ,'DELETE_APPROVE' => 'admin'
419
- ,'TRASH_RESTORE' => 'admin' //FixIn: 6.1.1.10
420
- ,'DELETE_BY_VISITOR' => 'both'
421
- ,'SAVE_BK_COST' => 'admin'
422
- ,'SEND_PAYMENT_REQUEST' => 'admin'
423
- ,'CHANGE_PAYMENT_STATUS' => 'both' // Only Admin for Ajax requests (also exist exectution of the changing status for IPN)
424
- ,'UPDATE_BK_RESOURCE_4_BOOKING' => 'admin'
425
- ,'DUPLICATE_BOOKING_TO_OTHER_RESOURCE' => 'admin' //FixIn:5.4.5.1
426
- ,'UPDATE_REMARK' => 'admin'
427
- ,'DELETE_BK_FORM' => 'admin'
428
- ,'USER_SAVE_WINDOW_STATE' => 'admin'
429
- ,'BOOKING_SEARCH' => 'both'
430
- ,'CHECK_BK_NEWS' => 'admin'
431
- ,'CHECK_BK_FEATURES' => 'admin'
432
- ,'CHECK_BK_VERSION' => 'admin'
433
- ,'SAVE_BK_LISTING_FILTER' => 'admin'
434
- ,'DELETE_BK_LISTING_FILTER' => 'admin'
435
- ,'EXPORT_BOOKINGS_TO_CSV' => 'admin'
436
- ,'WPBC_IMPORT_GCAL_EVENTS' => 'admin' // Version:5.2
437
- );
438
-
439
- foreach ($actions_list as $action_name => $action_where) {
440
-
441
- if ( ( isset($_POST['action']) ) && ( $_POST['action'] == $action_name ) ){
442
-
443
- if ( ( $action_where == 'admin' ) || ( $action_where == 'both' ) )
444
- add_action( 'wp_ajax_' . $action_name, 'wpbc_ajax_' . $action_name); // Admin & Client (logged in usres)
445
-
446
- if ( ( $action_where == 'both' ) || ( $action_where == 'client' ) )
447
- add_action( 'wp_ajax_nopriv_' . $action_name, 'wpbc_ajax_' . $action_name); // Client (not logged in)
448
- }
449
- }
450
- }
 
 
 
 
 
451
  ?>
1
+ <?php
2
+ /**
3
+ * @version 1.0
4
+ * @package Booking Calendar
5
+ * @subpackage Ajax Responder
6
+ * @category Bookings
7
+ *
8
+ * @author wpdevelop
9
+ * @link http://wpbookingcalendar.com/
10
+ * @email info@wpbookingcalendar.com
11
+ *
12
+ * @modified 2014.05.26
13
+ */
14
+
15
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
16
+
17
+ ////////////////////////////////////////////////////////////////////////////////
18
+ // S u p p o r t f u n c t i o n s f o r A j a x ///////////////
19
+ ////////////////////////////////////////////////////////////////////////////////
20
+ function wpbc_verify_nonce_failed( $nonce, $action, $user, $token ) {
21
+ debuge('$nonce, $action, $user, $token',$nonce, $action, $user, $token);
22
+ }
23
+ // Verify the nonce.
24
+ function wpdev_check_nonce_in_admin_panel( $action_check = 'wpbc_ajax_admin_nonce' ){
25
+
26
+ $nonce = ( isset($_REQUEST['wpbc_nonce']) ) ? $_REQUEST['wpbc_nonce'] : '';
27
+ //$nonce .= '1';
28
+ //add_action('wp_verify_nonce_failed', 'wpbc_verify_nonce_failed', 10, 4);
29
+ //debuge(is_user_logged_in(), wp_get_current_user());
30
+ //if ( ! wp_verify_nonce( $nonce, $action_check ) && is_user_logged_in() ) { // This nonce is not valid.
31
+ if ( ! wp_verify_nonce( $nonce, $action_check ) ) { // This nonce is not valid.
32
+ ?>
33
+ <script type="text/javascript">
34
+ jQuery("#ajax_respond").after( "<div class='wpdevbk'><div class='alert alert-danger'><?php
35
+ printf(__('%sError!%s Request do not pass security check! Please refresh the page and try one more time.' ,'booking'),'<strong>','</strong>');
36
+ ?></div></div>" );
37
+ if ( jQuery("#ajax_message").length )
38
+ jQuery("#ajax_message").slideUp();
39
+ </script>
40
+ <?php
41
+ die;
42
+ }
43
+ }
44
+
45
+
46
+ // Check and (re)Load specific Locale for the Ajax request - based on "admin_init" hook
47
+ function wpbc_check_locale_for_ajax() {
48
+
49
+ add_bk_filter('wpdev_check_for_active_language', 'wpdev_check_for_active_language'); // Add Hook for ability to check the content for active lanaguges
50
+
51
+ if (isset($_POST['wpdev_active_locale'])) { // Reload locale according request parameter
52
+ global $l10n;
53
+ if (isset($l10n['booking'])) unset($l10n['booking']);
54
+
55
+ if(! defined('WPDEV_BK_LOCALE_RELOAD') ) define('WPDEV_BK_LOCALE_RELOAD', $_POST['wpdev_active_locale']);
56
+
57
+ // Reload locale settings, its required for the correct dates format
58
+ if (isset($l10n['default'])) unset($l10n['default']); // Unload locale
59
+ add_filter('locale', 'getBookingLocale',999); // Set filter to load the locale of the Booking Calendar
60
+ load_default_textdomain(); // Load default locale
61
+ global $wp_locale;
62
+ $wp_locale = new WP_Locale(); // Reload class
63
+
64
+ loadLocale(WPDEV_BK_LOCALE_RELOAD);
65
+ }
66
+ }
67
+
68
+
69
+ ////////////////////////////////////////////////////////////////////////////////
70
+ // A j a x H o o k s f o r s p e c i f i c A c t i o n s /////
71
+ ////////////////////////////////////////////////////////////////////////////////
72
+
73
+ function wpbc_ajax_CALCULATE_THE_COST() {
74
+
75
+ wpdev_check_nonce_in_admin_panel( $_POST['action'] );
76
+ make_bk_action('wpdev_ajax_show_cost');
77
+ }
78
+
79
+
80
+ function wpbc_ajax_INSERT_INTO_TABLE() {
81
+
82
+ wpdev_check_nonce_in_admin_panel( $_POST['action'] );
83
+ wpdev_bk_insert_new_booking();
84
+ }
85
+
86
+
87
+ function wpbc_ajax_UPDATE_READ_UNREAD () {
88
+
89
+ wpdev_check_nonce_in_admin_panel();
90
+
91
+ make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
92
+
93
+ if ( $_POST[ "is_read_or_unread" ] == 1) $is_new = '1';
94
+ else $is_new = '0';
95
+
96
+ $id_of_new_bookings = $_POST[ "booking_id" ];
97
+ $arrayof_bookings_id = explode('|',$id_of_new_bookings);
98
+ $user_id = $_POST[ "user_id" ];
99
+
100
+ renew_NumOfNewBookings( $arrayof_bookings_id, $is_new , $user_id );
101
+
102
+ ?> <script type="text/javascript"> <?php
103
+ foreach ($arrayof_bookings_id as $bk_id) {
104
+
105
+ if ( $bk_id == 'all' )
106
+ $bk_id = 0;
107
+
108
+ if ($is_new == '1') { ?>
109
+ set_booking_row_unread(<?php echo $bk_id ?>);
110
+ <?php } else { ?>
111
+ set_booking_row_read(<?php echo $bk_id ?>);
112
+ <?php }
113
+ } ?>
114
+ document.getElementById('ajax_message').innerHTML = '<?php if ($is_new == '1') { echo __('Set as Read' ,'booking'); } else { echo __('Set as Unread' ,'booking'); } ?>';
115
+ jQuery('#ajax_message').fadeOut(1000);
116
+ </script> <?php
117
+ }
118
+
119
+
120
+ function wpbc_ajax_UPDATE_APPROVE() {
121
+
122
+ global $wpdb;
123
+
124
+ wpdev_check_nonce_in_admin_panel();
125
+ make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
126
+
127
+ // Approve or Reject
128
+ $is_approve_or_pending = $_POST[ "is_approve_or_pending" ];
129
+ if ($is_approve_or_pending == 1)
130
+ $is_approve_or_pending = '1';
131
+ else
132
+ $is_approve_or_pending = '0';
133
+
134
+ $booking_id = $_POST[ "booking_id" ];
135
+ $approved_id = explode('|',$booking_id);
136
+ if (! isset($_POST["denyreason"]))
137
+ $_POST["denyreason"] = '';
138
+ $denyreason = $_POST["denyreason"];
139
+ $is_send_emeils = $_POST["is_send_emeils"];
140
+
141
+
142
+ if ( ( count($approved_id) > 0 ) && ( $approved_id !== false ) ) {
143
+
144
+ $approved_id_str = join( ',', $approved_id);
145
+ $approved_id_str = wpbc_clean_string_for_db( $approved_id_str );
146
+
147
+ if ( false === $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->prefix}bookingdates SET approved = %s WHERE booking_id IN ({$approved_id_str})", $is_approve_or_pending ) ) ){
148
+ ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during updating to DB' ,__FILE__,__LINE__); ?></div>'; </script> <?php
149
+ die();
150
+ }
151
+
152
+ renew_NumOfNewBookings( explode(',', $approved_id_str) );
153
+
154
+ if ($is_approve_or_pending == '1') {
155
+ sendApproveEmails($approved_id_str, $is_send_emeils,$denyreason);
156
+ $all_bk_id_what_canceled = apply_bk_filter('cancel_pending_same_resource_bookings_for_specific_dates', false, $approved_id_str );
157
+ } else
158
+ sendDeclineEmails($approved_id_str, $is_send_emeils,$denyreason);
159
+
160
+ ?> <script type="text/javascript">
161
+ <?php foreach ($approved_id as $bk_id) {
162
+ if ($is_approve_or_pending == '1') { ?>
163
+ set_booking_row_approved_in_timeline(<?php echo $bk_id ?>);
164
+ set_booking_row_approved(<?php echo $bk_id ?>);
165
+ set_booking_row_read(<?php echo $bk_id ?>);
166
+ <?php } else { ?>
167
+ set_booking_row_pending_in_timeline(<?php echo $bk_id ?>);
168
+ set_booking_row_pending(<?php echo $bk_id ?>);
169
+ <?php }?>
170
+ <?php } ?>
171
+ document.getElementById('ajax_message').innerHTML = '<?php if ($is_approve_or_pending == '1') { echo esc_js(__('Set as Approved' ,'booking')); } else { echo esc_js(__('Set as Pending' ,'booking')); } ?>';
172
+ jQuery('#ajax_message').fadeOut(1000);
173
+ </script> <?php
174
+ }
175
+ }
176
+
177
+ //FixIn: 6.1.1.10
178
+ function wpbc_ajax_TRASH_RESTORE() {
179
+
180
+ global $wpdb;
181
+
182
+ wpdev_check_nonce_in_admin_panel();
183
+ make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
184
+
185
+ $booking_id = $_POST[ "booking_id" ]; // Booking ID
186
+ if ( ! isset($_POST["denyreason"] ) )
187
+ $_POST["denyreason"] = '';
188
+ $denyreason = $_POST["denyreason"];
189
+ if ( ( $denyreason == __('Reason for cancellation here' ,'booking'))
190
+ || ( $denyreason == __('Reason of cancellation here' ,'booking'))
191
+ || ( $denyreason == 'Reason of cancel here')
192
+ ) $denyreason = '';
193
+ $is_send_emeils = intval( $_POST["is_send_emeils"] );
194
+ $approved_id = explode('|',$booking_id);
195
+
196
+ $is_trash = intval( $_POST["is_trash"] );
197
+
198
+ if ( (count($approved_id)>0) && ($approved_id !=false) && ($approved_id !='')) {
199
+
200
+ $approved_id_str = join( ',', $approved_id);
201
+ $approved_id_str = wpbc_clean_string_for_db( $approved_id_str );
202
+
203
+ // FixIn: 6.2.2.3
204
+ if ( $is_trash )
205
+ sendDeclineEmails($approved_id_str, $is_send_emeils,$denyreason);
206
+ else
207
+ sendApproveEmails($approved_id_str, $is_send_emeils,$denyreason);
208
+
209
+
210
+
211
+ if ( false === $wpdb->query( "UPDATE {$wpdb->prefix}booking AS bk SET bk.trash = {$is_trash} WHERE booking_id IN ({$approved_id_str})" ) ){
212
+ ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during trash booking in DB',__FILE__,__LINE__ ); ?></div>'; </script> <?php
213
+ die();
214
+ }
215
+ ?>
216
+ <script type="text/javascript">
217
+ <?php
218
+ if ( $is_trash ) {
219
+ foreach ($approved_id as $bk_id) { ?>
220
+ set_booking_row_trash(<?php echo $bk_id ?>);
221
+ setTimeout(function() { set_booking_row_deleted_in_timeline(<?php echo $bk_id ?>); }, 1000);
222
+ //setTimeout(function() { set_booking_row_deleted(<?php echo $bk_id ?>); }, 1000);
223
+ <?php } ?>
224
+ document.getElementById('ajax_message').innerHTML = '<?php echo __('Done' ,'booking'); ?>';
225
+ <?php } else {
226
+ foreach ($approved_id as $bk_id) { ?>
227
+ set_booking_row_restore(<?php echo $bk_id ?>);
228
+ <?php } ?>
229
+ document.getElementById('ajax_message').innerHTML = '<?php echo __('Done' ,'booking'); ?>';
230
+ <?php } ?>
231
+ jQuery('#ajax_message').fadeOut(1000);
232
+ </script>
233
+ <?php
234
+ }
235
+ }
236
+
237
+
238
+
239
+ function wpbc_ajax_DELETE_APPROVE() {
240
+
241
+ global $wpdb;
242
+
243
+ wpdev_check_nonce_in_admin_panel();
244
+ make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
245
+
246
+ $booking_id = $_POST[ "booking_id" ]; // Booking ID
247
+ if ( ! isset($_POST["denyreason"] ) )
248
+ $_POST["denyreason"] = '';
249
+ $denyreason = $_POST["denyreason"];
250
+ if ( ( $denyreason == __('Reason for cancellation here' ,'booking'))
251
+ || ( $denyreason == __('Reason of cancellation here' ,'booking'))
252
+ || ( $denyreason == 'Reason of cancel here')
253
+ ) $denyreason = '';
254
+ $is_send_emeils = $_POST["is_send_emeils"];
255
+ $approved_id = explode('|',$booking_id);
256
+
257
+ if ( (count($approved_id)>0) && ($approved_id !=false) && ($approved_id !='')) {
258
+
259
+ $approved_id_str = join( ',', $approved_id);
260
+ $approved_id_str = wpbc_clean_string_for_db( $approved_id_str );
261
+
262
+ sendDeclineEmails($approved_id_str, $is_send_emeils,$denyreason);
263
+
264
+ if ( false === $wpdb->query( "DELETE FROM {$wpdb->prefix}bookingdates WHERE booking_id IN ({$approved_id_str})" ) ){
265
+ ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during deleting dates at DB' ,__FILE__,__LINE__); ?></div>'; </script> <?php
266
+ die();
267
+ }
268
+
269
+ if ( false === $wpdb->query( "DELETE FROM {$wpdb->prefix}booking WHERE booking_id IN ({$approved_id_str})" ) ){
270
+ ?> <script type="text/javascript"> document.getElementById('ajax_message').innerHTML = '<div style=&quot;height:20px;width:100%;text-align:center;margin:15px auto;&quot;><?php bk_error('Error during deleting reservation at DB',__FILE__,__LINE__ ); ?></div>'; </script> <?php
271
+ die();
272
+ }
273
+ ?>
274
+ <script type="text/javascript">
275
+ <?php foreach ($approved_id as $bk_id) { ?>
276
+ set_booking_row_deleted_in_timeline(<?php echo $bk_id ?>);
277
+ set_booking_row_deleted(<?php echo $bk_id ?>);
278
+ <?php } ?>
279
+ document.getElementById('ajax_message').innerHTML = '<?php echo __('Deleted' ,'booking'); ?>';
280
+ jQuery('#ajax_message').fadeOut(1000);
281
+ </script>
282
+ <?php
283
+ }
284
+ }
285
+
286
+
287
+ function wpbc_ajax_DELETE_BY_VISITOR() {
288
+
289
+ wpdev_check_nonce_in_admin_panel( $_POST['action'] );
290
+ make_bk_action('wpdev_delete_booking_by_visitor');
291
+
292
+ }
293
+
294
+
295
+ function wpbc_ajax_SAVE_BK_COST() {
296
+
297
+ wpdev_check_nonce_in_admin_panel();
298
+ make_bk_action('wpdev_save_bk_cost');
299
+ }
300
+
301
+
302
+ function wpbc_ajax_SEND_PAYMENT_REQUEST() {
303
+
304
+ wpdev_check_nonce_in_admin_panel();
305
+ make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] ); //FixIn: 5.4.5.6
306
+ make_bk_action('wpdev_send_payment_request');
307
+ }
308
+
309
+
310
+ function wpbc_ajax_CHANGE_PAYMENT_STATUS() {
311
+
312
+ wpdev_check_nonce_in_admin_panel();
313
+ make_bk_action('wpdev_change_payment_status');
314
+ }
315
+
316
+
317
+ function wpbc_ajax_UPDATE_BK_RESOURCE_4_BOOKING() {
318
+
319
+ wpdev_check_nonce_in_admin_panel();
320
+ make_bk_action('wpdev_updating_bk_resource_of_booking');
321
+ }
322
+
323
+
324
+ //FixIn:5.4.5.1
325
+ function wpbc_ajax_DUPLICATE_BOOKING_TO_OTHER_RESOURCE() {
326
+
327
+ wpdev_check_nonce_in_admin_panel();
328
+ make_bk_action('wpbc_duplicate_booking_to_other_resource');
329
+ }
330
+
331
+
332
+
333
+
334
+ function wpbc_ajax_UPDATE_REMARK() {
335
+
336
+ wpdev_check_nonce_in_admin_panel();
337
+ make_bk_action('wpdev_updating_remark');
338
+ }
339
+
340
+
341
+ function wpbc_ajax_DELETE_BK_FORM() {
342
+
343
+ wpdev_check_nonce_in_admin_panel();
344
+ make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
345
+ make_bk_action('wpdev_delete_booking_form');
346
+ }
347
+
348
+
349
+ function wpbc_ajax_USER_SAVE_WINDOW_STATE() {
350
+
351
+ wpdev_check_nonce_in_admin_panel();
352
+ update_user_option($_POST['user_id'],'booking_win_' . $_POST['window'] ,$_POST['is_closed']);
353
+ }
354
+
355
+
356
+ function wpbc_ajax_BOOKING_SEARCH() {
357
+
358
+ wpdev_check_nonce_in_admin_panel( $_POST['action'] );
359
+ make_bk_action('wpdev_ajax_booking_search');
360
+ }
361
+
362
+
363
+ function wpbc_ajax_CHECK_BK_NEWS() {
364
+
365
+ wpdev_check_nonce_in_admin_panel();
366
+ wpdev_ajax_check_bk_news();
367
+ }
368
+
369
+
370
+ function wpbc_ajax_CHECK_BK_FEATURES() {
371
+
372
+ wpdev_check_nonce_in_admin_panel();
373
+ wpdev_ajax_check_bk_news('info/features/');
374
+ }
375
+
376
+
377
+ function wpbc_ajax_CHECK_BK_VERSION() {
378
+
379
+ wpdev_check_nonce_in_admin_panel();
380
+ wpdev_ajax_check_bk_version();
381
+ }
382
+
383
+
384
+ function wpbc_ajax_SAVE_BK_LISTING_FILTER() {
385
+
386
+ wpdev_check_nonce_in_admin_panel();
387
+ make_bk_action('wpdev_ajax_save_bk_listing_filter');
388
+ }
389
+
390
+
391
+ function wpbc_ajax_DELETE_BK_LISTING_FILTER() {
392
+ wpdev_check_nonce_in_admin_panel();
393
+ make_bk_action('wpdev_ajax_delete_bk_listing_filter');
394
+ }
395
+
396
+
397
+ function wpbc_ajax_EXPORT_BOOKINGS_TO_CSV() {
398
+ wpdev_check_nonce_in_admin_panel();
399
+ make_bk_action('wpdev_ajax_export_bookings_to_csv');
400
+ }
401
+
402
+
403
+ function wpbc_ajax_WPBC_IMPORT_GCAL_EVENTS() {
404
+ wpdev_check_nonce_in_admin_panel();
405
+ make_bk_action('check_multiuser_params_for_client_side_by_user_id', $_POST['user_id'] );
406
+ make_bk_action('wpbc_import_gcal_events');
407
+ }
408
+
409
+ ////////////////////////////////////////////////////////////////////////////////
410
+ // R u n A j a x //////////////////////////////////
411
+ ////////////////////////////////////////////////////////////////////////////////
412
+ if ( is_admin() && ( defined( 'DOING_AJAX' ) ) && ( DOING_AJAX ) ) {
413
+
414
+ // Reload Locale if its required
415
+ add_action( 'admin_init', 'wpbc_check_locale_for_ajax' );
416
+
417
+ // Hooks list
418
+ $actions_list = array(
419
+ 'CALCULATE_THE_COST' => 'both'
420
+ ,'INSERT_INTO_TABLE' => 'both'
421
+ ,'UPDATE_READ_UNREAD' => 'admin'
422
+ ,'UPDATE_APPROVE' => 'admin'
423
+ ,'DELETE_APPROVE' => 'admin'
424
+ ,'TRASH_RESTORE' => 'admin' //FixIn: 6.1.1.10
425
+ ,'DELETE_BY_VISITOR' => 'both'
426
+ ,'SAVE_BK_COST' => 'admin'
427
+ ,'SEND_PAYMENT_REQUEST' => 'admin'
428
+ ,'CHANGE_PAYMENT_STATUS' => 'both' // Only Admin for Ajax requests (also exist exectution of the changing status for IPN)
429
+ ,'UPDATE_BK_RESOURCE_4_BOOKING' => 'admin'
430
+ ,'DUPLICATE_BOOKING_TO_OTHER_RESOURCE' => 'admin' //FixIn:5.4.5.1
431
+ ,'UPDATE_REMARK' => 'admin'
432
+ ,'DELETE_BK_FORM' => 'admin'
433
+ ,'USER_SAVE_WINDOW_STATE' => 'admin'
434
+ ,'BOOKING_SEARCH' => 'both'
435
+ ,'CHECK_BK_NEWS' => 'admin'
436
+ ,'CHECK_BK_FEATURES' => 'admin'
437
+ ,'CHECK_BK_VERSION' => 'admin'
438
+ ,'SAVE_BK_LISTING_FILTER' => 'admin'
439
+ ,'DELETE_BK_LISTING_FILTER' => 'admin'
440
+ ,'EXPORT_BOOKINGS_TO_CSV' => 'admin'
441
+ ,'WPBC_IMPORT_GCAL_EVENTS' => 'admin' // Version:5.2
442
+ );
443
+
444
+ foreach ($actions_list as $action_name => $action_where) {
445
+
446
+ if ( ( isset($_POST['action']) ) && ( $_POST['action'] == $action_name ) ){
447
+
448
+ if ( ( $action_where == 'admin' ) || ( $action_where == 'both' ) )
449
+ add_action( 'wp_ajax_' . $action_name, 'wpbc_ajax_' . $action_name); // Admin & Client (logged in usres)
450
+
451
+ if ( ( $action_where == 'both' ) || ( $action_where == 'client' ) )
452
+ add_action( 'wp_ajax_nopriv_' . $action_name, 'wpbc_ajax_' . $action_name); // Client (not logged in)
453
+ }
454
+ }
455
+ }
456
  ?>
lib/wpbc-class-dismiss.php CHANGED
@@ -52,7 +52,6 @@ class WPBC_Dismiss {
52
  line-height: 1;
53
  outline: 0 none;
54
  cursor: pointer;
55
- font-family: sans-serif;
56
  }
57
  .wpbc-panel-dismiss:before {
58
  content: ' ';
52
  line-height: 1;
53
  outline: 0 none;
54
  cursor: pointer;
 
55
  }
56
  .wpbc-panel-dismiss:before {
57
  content: ' ';
lib/wpbc-constants.php CHANGED
@@ -26,7 +26,7 @@ if (!defined('WP_BK_IS_SEND_EMAILS_ON_COST_CHANGE')) define('WP_BK_IS_SEND_EM
26
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
27
  // SYSTEM CONSTANTS //////////////////////////////////////////////////////////////////////////////////////////////////
28
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
29
- if (!defined('WP_BK_VERSION_NUM')) define('WP_BK_VERSION_NUM', '6.2.1' );
30
  if (!defined('WP_BK_MINOR_UPDATE')) define('WP_BK_MINOR_UPDATE', true );
31
  if (!defined('IS_USE_WPDEV_BK_CACHE')) define('IS_USE_WPDEV_BK_CACHE', true );
32
  if (!defined('WP_BK_DEBUG_MODE')) define('WP_BK_DEBUG_MODE', false );
26
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
27
  // SYSTEM CONSTANTS //////////////////////////////////////////////////////////////////////////////////////////////////
28
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
29
+ if (!defined('WP_BK_VERSION_NUM')) define('WP_BK_VERSION_NUM', '6.2.2' );
30
  if (!defined('WP_BK_MINOR_UPDATE')) define('WP_BK_MINOR_UPDATE', true );
31
  if (!defined('IS_USE_WPDEV_BK_CACHE')) define('IS_USE_WPDEV_BK_CACHE', true );
32
  if (!defined('WP_BK_DEBUG_MODE')) define('WP_BK_DEBUG_MODE', false );
lib/wpbc-gcal-class.php CHANGED
@@ -609,14 +609,14 @@ class WPBC_Google_Calendar {
609
  <td style="border-right: 0px;border-left: 1px solid #ccc;text-align: center;" <?php echo $alternative_color; ?> >
610
  <span class="booking-listing-collumn booking-dates">
611
  <span class="wpbc_mobile_legend"><?php _e('Dates' ,'booking'); ?>:</span>
612
- <div class="booking_dates_full" style="font-size: 11px;padding:3px 5px;" ><?php
613
  $bt['dates'] = explode(', ', $bt['dates']);
614
  foreach ($bt['dates'] as $keyd=>$valued) {
615
 
616
  $valued = explode( '.', $valued );
617
  $valued = wpdevbk_get_date_in_correct_format( sprintf("%04d-%02d-%02d" ,$valued[2], $valued[1], $valued[0] ) ) ;
618
 
619
- $bt['dates'][$keyd] = '<a href="javascript:void(0)" class="field-booking-date" style="font-weight: normal;">' . $valued[0] . '</a>';
620
  }
621
  $bt['dates'] = implode('<span class="date_tire" style="font-size: 12px;">, </span>', $bt['dates']);
622
  echo $bt['dates'];//date_i18n('d.m.Y H:i',$bt['start_time'] ), ' - ', date_i18n('d.m.Y H:i',$bt['end_time']); ?>
609
  <td style="border-right: 0px;border-left: 1px solid #ccc;text-align: center;" <?php echo $alternative_color; ?> >
610
  <span class="booking-listing-collumn booking-dates">
611
  <span class="wpbc_mobile_legend"><?php _e('Dates' ,'booking'); ?>:</span>
612
+ <div class="booking_dates_full" style="font-size: 12px;padding:3px 5px;" ><?php
613
  $bt['dates'] = explode(', ', $bt['dates']);
614
  foreach ($bt['dates'] as $keyd=>$valued) {
615
 
616
  $valued = explode( '.', $valued );
617
  $valued = wpdevbk_get_date_in_correct_format( sprintf("%04d-%02d-%02d" ,$valued[2], $valued[1], $valued[0] ) ) ;
618
 
619
+ $bt['dates'][$keyd] = '<a href="javascript:void(0)" class="field-booking-date" style="font-weight: 400;">' . $valued[0] . '</a>';
620
  }
621
  $bt['dates'] = implode('<span class="date_tire" style="font-size: 12px;">, </span>', $bt['dates']);
622
  echo $bt['dates'];//date_i18n('d.m.Y H:i',$bt['start_time'] ), ' - ', date_i18n('d.m.Y H:i',$bt['end_time']); ?>
lib/wpbc-welcome.php CHANGED
@@ -183,7 +183,7 @@ class WPBC_Welcome {
183
  box-shadow: 0 1px 3px #EEEEEE;
184
  color: #998877;
185
  font-size: 12px;
186
- font-weight: bold;
187
  margin: 15px 0 0;
188
  width:90%;
189
  }
@@ -798,7 +798,7 @@ class WPBC_Welcome {
798
  </a>
799
  </td>
800
  <td style="width:50%">
801
- <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' ,'booking'); } else { _e('Upgrade Now' ,'booking'); } ?>&nbsp;&nbsp;</a>
802
  </td>
803
  </tr>
804
  </table>
@@ -1247,7 +1247,7 @@ at the popup configuration dialog, during inserting booking shortcode into post
1247
  , '</a>'
1248
  );
1249
  ?>
1250
- <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' ,'booking'); } else { _e('Upgrade Now' ,'booking'); } ?>&nbsp;&nbsp;</a>
1251
  </td>
1252
  </tr>
1253
  </table>
@@ -1284,9 +1284,8 @@ function wpbc_welcome_panel() {
1284
  }
1285
  .wpbc-panel .welcome-panel h3 {
1286
  margin: 0;
1287
- font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
1288
  font-size: 21px;
1289
- font-weight: normal;
1290
  line-height: 1.2;
1291
  }
1292
  .wpbc-panel .welcome-panel h4 {
183
  box-shadow: 0 1px 3px #EEEEEE;
184
  color: #998877;
185
  font-size: 12px;
186
+ font-weight: 600;
187
  margin: 15px 0 0;
188
  width:90%;
189
  }
798
  </a>
799
  </td>
800
  <td style="width:50%">
801
+ <a class="button button-primary" style="font-weight: 600;float: right; height: 36px; line-height: 34px;" href="<?php echo wpbc_up_link(); ?>" target="_blank">&nbsp;<?php if ( wpbc_get_ver_sufix() == '' ) { _e('Purchase' ,'booking'); } else { _e('Upgrade Now' ,'booking'); } ?>&nbsp;&nbsp;</a>
802
  </td>
803
  </tr>
804
  </table>
1247
  , '</a>'
1248
  );
1249
  ?>
1250
+ <a class="button button-primary" style="font-weight: 600; 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' ,'booking'); } else { _e('Upgrade Now' ,'booking'); } ?>&nbsp;&nbsp;</a>
1251
  </td>
1252
  </tr>
1253
  </table>
1284
  }
1285
  .wpbc-panel .welcome-panel h3 {
1286
  margin: 0;
 
1287
  font-size: 21px;
1288
+ font-weight: 400;
1289
  line-height: 1.2;
1290
  }
1291
  .wpbc-panel .welcome-panel h4 {
lib/wpdev-bk-edit-toolbar-buttons.php CHANGED
@@ -374,7 +374,7 @@ function wpdev_bk_custom_button_dalog_structure_DIV() { ?>
374
  <select id="calendar_type" name="calendar_type">
375
  <?php foreach ($types_list as $tl) { ?>
376
  <option value="<?php echo $tl->id; ?>"
377
- style="<?php if (isset($tl->parent)) if ($tl->parent == 0 ) { echo 'font-weight:bold;'; } else { echo 'font-size:11px;padding-left:20px;'; } ?>"
378
  ><?php echo $tl->title; ?></option>
379
  <?php } ?>
380
  </select>
@@ -458,11 +458,11 @@ function wpdev_bk_custom_button_dalog_structure_DIV() { ?>
458
  <div style="height:1px;clear:both;width:100%;"></div>
459
 
460
 
461
- <div style="color:#21759B;cursor: pointer;font-weight: bold;float:left;"
462
  onclick="javascript: jQuery('.bk_show_options_parameter').toggle(1);
463
  jQuery('#togle_options_parameter').slideToggle('normal');
464
  jQuery('#popup_new_reservation_main_content').slideToggle('normal');"
465
- style="text-decoration: none;font-weight: bold;font-size: 11px;">
466
  <span class="bk_show_options_parameter">+ <span style="border-bottom:1px dashed #21759B;"><?php _e('Show advanced settings' ,'booking'); ?></span></span>
467
  <span class="bk_show_options_parameter" style="display:none;">- <span style="border-bottom:1px dashed #21759B;"><?php _e('Hide advanced settings' ,'booking'); ?></span></span>
468
  </div>
@@ -550,7 +550,7 @@ function wpdev_bk_custom_button_dialog_CSS() {
550
  }
551
  #wpdev_bk-dialog .field label {
552
  display: inline-block;
553
- font-weight: bold;
554
  padding-right: 10px;
555
  text-align: left;
556
  vertical-align: baseline;
374
  <select id="calendar_type" name="calendar_type">
375
  <?php foreach ($types_list as $tl) { ?>
376
  <option value="<?php echo $tl->id; ?>"
377
+ style="<?php if (isset($tl->parent)) if ($tl->parent == 0 ) { echo 'font-weight: 600;'; } else { echo 'font-size:11px;padding-left:20px;'; } ?>"
378
  ><?php echo $tl->title; ?></option>
379
  <?php } ?>
380
  </select>
458
  <div style="height:1px;clear:both;width:100%;"></div>
459
 
460
 
461
+ <div style="color:#21759B;cursor: pointer;font-weight: 600;float:left;"
462
  onclick="javascript: jQuery('.bk_show_options_parameter').toggle(1);
463
  jQuery('#togle_options_parameter').slideToggle('normal');
464
  jQuery('#popup_new_reservation_main_content').slideToggle('normal');"
465
+ style="text-decoration: none;font-weight: 600;font-size: 12px;">
466
  <span class="bk_show_options_parameter">+ <span style="border-bottom:1px dashed #21759B;"><?php _e('Show advanced settings' ,'booking'); ?></span></span>
467
  <span class="bk_show_options_parameter" style="display:none;">- <span style="border-bottom:1px dashed #21759B;"><?php _e('Hide advanced settings' ,'booking'); ?></span></span>
468
  </div>
550
  }
551
  #wpdev_bk-dialog .field label {
552
  display: inline-block;
553
+ font-weight: 600;
554
  padding-right: 10px;
555
  text-align: left;
556
  vertical-align: baseline;
lib/wpdev-bk-lib.php CHANGED
@@ -693,7 +693,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
693
  <li><a href="http://wpbookingcalendar.com/faq/" target="_blank"><?php _e('FAQ' ,'booking'); ?></a></li>
694
  <li><a href="http://wpbookingcalendar.com/support/" target="_blank"><?php _e('Technical Support' ,'booking'); ?></a></li>
695
  <li class="divider"></li>
696
- <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' ,'booking'); } else { _e('Upgrade Now' ,'booking'); } ?></a></li>
697
  </ul>
698
  </span>
699
  <?php
693
  <li><a href="http://wpbookingcalendar.com/faq/" target="_blank"><?php _e('FAQ' ,'booking'); ?></a></li>
694
  <li><a href="http://wpbookingcalendar.com/support/" target="_blank"><?php _e('Technical Support' ,'booking'); ?></a></li>
695
  <li class="divider"></li>
696
+ <li><a style="font-size: 1.1em;font-weight: 600;" href="<?php echo wpbc_up_link(); ?>" target="_blank"><?php if ( wpbc_get_ver_sufix() == '' ) { _e('Upgrade Now' ,'booking'); } else { _e('Upgrade Now' ,'booking'); } ?></a></li>
697
  </ul>
698
  </span>
699
  <?php
lib/wpdev-booking-class.php CHANGED
@@ -378,7 +378,7 @@ class wpdev_booking {
378
  <div style="padding:0px 10px;width:96%;">
379
  <h4><?php _e('Upgrade to higher versions' ,'booking') ?>:</h4>
380
  <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>
381
- <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' ,'booking'); } else { _e('Upgrade Now' ,'booking'); } ?></a> </p>
382
  </div>
383
  </div>
384
  <div style="clear:both;"></div>
@@ -397,7 +397,7 @@ class wpdev_booking {
397
  <table class="bk_table">
398
  <tr class="first">
399
  <td style="width:35%;text-align: right;;" class=""><?php _e('Version' ,'booking');?>:</td>
400
- <td style="color: #e50;font-family: Arial;font-size: 13px;font-weight: bold;text-align: left;text-shadow: 0 -1px 0 #eee;;"
401
  class="bk_spec_font"><?php
402
  if ( substr( WPDEV_BK_VERSION, 0, 2 ) == '9.' ) {
403
  $show_version = substr( WPDEV_BK_VERSION , 2 ) ;
@@ -413,11 +413,11 @@ class wpdev_booking {
413
  <?php if ($version != 'free') { ?>
414
  <tr>
415
  <td style="width:35%;text-align: right;" class="first b"><?php _e('Type' ,'booking');?>:</td>
416
- <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>
417
  </tr>
418
  <tr>
419
  <td style="width:35%;text-align: right;" class="first b"><?php _e('Used for' ,'booking');?>:</td>
420
- <td style="text-align: left; font-weight: bold;" class="bk_spec_font"><?php
421
  $v_type = '';
422
  if( strpos( strtolower(WPDEV_BK_VERSION) , 'multisite') !== false ) {
423
  $v_type = '5';
@@ -434,7 +434,7 @@ class wpdev_booking {
434
  <?php } ?>
435
  <tr>
436
  <td style="width:35%;text-align: right;" class="first b"><?php _e('Release date' ,'booking');?>:</td>
437
- <td style="text-align: left; font-weight: bold;" class="bk_spec_font"><?php echo date ("d.m.Y", filemtime(WPDEV_BK_FILE)); ?></td>
438
  </tr>
439
 
440
  </table>
@@ -443,7 +443,7 @@ class wpdev_booking {
443
  <tr >
444
  <td colspan="2" style="border:none;text-align:center;" class=""><?php
445
  if ($version == 'free') {
446
- ?><a class="button-primary button" style="font-weight:bold;" target="_blank" href="http://wpbookingcalendar.com/overview/"><?php _e('Check Premium Features' ,'booking');?></a><?php
447
  } elseif ( wpbc_get_ver_sufix() != '' ) {
448
  ?><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' ,'booking');?></a><?php
449
  } else {
378
  <div style="padding:0px 10px;width:96%;">
379
  <h4><?php _e('Upgrade to higher versions' ,'booking') ?>:</h4>
380
  <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>
381
+ <p> <a class="button button-primary" style="font-size: 1.1em;font-weight: 600;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>
382
  </div>
383
  </div>
384
  <div style="clear:both;"></div>
397
  <table class="bk_table">
398
  <tr class="first">
399
  <td style="width:35%;text-align: right;;" class=""><?php _e('Version' ,'booking');?>:</td>
400
+ <td style="color: #e50;font-size: 13px;font-weight: 600;text-align: left;text-shadow: 0 -1px 0 #eee;;"
401
  class="bk_spec_font"><?php
402
  if ( substr( WPDEV_BK_VERSION, 0, 2 ) == '9.' ) {
403
  $show_version = substr( WPDEV_BK_VERSION , 2 ) ;
413
  <?php if ($version != 'free') { ?>
414
  <tr>
415
  <td style="width:35%;text-align: right;" class="first b"><?php _e('Type' ,'booking');?>:</td>
416
+ <td style="text-align: left; font-weight: 600;" 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>
417
  </tr>
418
  <tr>
419
  <td style="width:35%;text-align: right;" class="first b"><?php _e('Used for' ,'booking');?>:</td>
420
+ <td style="text-align: left; font-weight: 600;" class="bk_spec_font"><?php
421
  $v_type = '';
422
  if( strpos( strtolower(WPDEV_BK_VERSION) , 'multisite') !== false ) {
423
  $v_type = '5';
434
  <?php } ?>
435
  <tr>
436
  <td style="width:35%;text-align: right;" class="first b"><?php _e('Release date' ,'booking');?>:</td>
437
+ <td style="text-align: left; font-weight: 600;" class="bk_spec_font"><?php echo date ("d.m.Y", filemtime(WPDEV_BK_FILE)); ?></td>
438
  </tr>
439
 
440
  </table>
443
  <tr >
444
  <td colspan="2" style="border:none;text-align:center;" class=""><?php
445
  if ($version == 'free') {
446
+ ?><a class="button-primary button" style="font-weight: 600;" target="_blank" href="http://wpbookingcalendar.com/overview/"><?php _e('Check Premium Features' ,'booking');?></a><?php
447
  } elseif ( wpbc_get_ver_sufix() != '' ) {
448
  ?><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' ,'booking');?></a><?php
449
  } else {
lib/wpdev-booking-functions.php CHANGED
@@ -451,8 +451,10 @@ if ( ! defined( 'ABSPATH' ) ) exit;
451
 
452
 
453
  foreach ( $all_fields_array_without_types as $key_param=>$value_param) { //FixIn: 6.1.1.4
454
- if ( ! is_object( $value_param ) )
455
- $booking_form_show = str_replace( '['. $key_param .']', $value_param ,$booking_form_show);
 
 
456
  }
457
  // Remove all shortcodes, which is not replaced early.
458
  $booking_form_show = preg_replace ('/[\s]{0,}\[[a-zA-Z0-9.,-_]{0,}\][\s]{0,}/', '', $booking_form_show); //FixIn: 6.1.1.4
@@ -2669,7 +2671,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
2669
 
2670
  } else /**/
2671
  { // Some error appear
2672
- echo '<div id="bk_errror_loading" class="warning_message" style="font-weight:normal;font-size:1.2em;">';
2673
  echo '<h3>'; _e('Warning! Some error occur, during sending registration request.' ,'booking'); echo '</h3>';
2674
 
2675
  if (is_wp_error($result)) echo $result->get_error_message();
451
 
452
 
453
  foreach ( $all_fields_array_without_types as $key_param=>$value_param) { //FixIn: 6.1.1.4
454
+ if ( ! is_object( $value_param ) ) {
455
+ if ( is_string( $value_param ) ) //FixIn: 6.2.2.1
456
+ $booking_form_show = str_replace( '['. $key_param .']', $value_param ,$booking_form_show);
457
+ }
458
  }
459
  // Remove all shortcodes, which is not replaced early.
460
  $booking_form_show = preg_replace ('/[\s]{0,}\[[a-zA-Z0-9.,-_]{0,}\][\s]{0,}/', '', $booking_form_show); //FixIn: 6.1.1.4
2671
 
2672
  } else /**/
2673
  { // Some error appear
2674
+ echo '<div id="bk_errror_loading" class="warning_message" style="font-weight: 400;font-size:1.2em;">';
2675
  echo '<h3>'; _e('Warning! Some error occur, during sending registration request.' ,'booking'); echo '</h3>';
2676
 
2677
  if (is_wp_error($result)) echo $result->get_error_message();
lib/wpdev-booking-widget.php CHANGED
@@ -120,7 +120,7 @@ class BookingWidget extends WP_Widget {
120
  style="width:100%;line-height: 1.5em;">
121
  <?php foreach ($types_list as $tl) { ?>
122
  <option <?php if($booking_widget_type == $tl->id ) echo "selected"; ?>
123
- style="<?php if (isset($tl->parent)) if ($tl->parent == 0 ) { echo 'font-weight:bold;'; } else { echo 'font-size:11px;padding-left:20px;'; } ?>"
124
  value="<?php echo $tl->id; ?>"><?php echo $tl->title; ?></option>
125
  <?php } ?>
126
  </select>
@@ -137,7 +137,7 @@ class BookingWidget extends WP_Widget {
137
  >
138
  <?php foreach ( array(1,2,3,4,5,6,7,8,9,10,11,12) as $tl) { ?>
139
  <option <?php if($booking_widget_calendar_count == $tl ) echo "selected"; ?>
140
- style="font-weight:bold;"
141
  value="<?php echo $tl; ?>"><?php echo $tl; ?></option>
142
  <?php } ?>
143
  </select>
120
  style="width:100%;line-height: 1.5em;">
121
  <?php foreach ($types_list as $tl) { ?>
122
  <option <?php if($booking_widget_type == $tl->id ) echo "selected"; ?>
123
+ style="<?php if (isset($tl->parent)) if ($tl->parent == 0 ) { echo 'font-weight: 600;'; } else { echo 'font-size:11px;padding-left:20px;'; } ?>"
124
  value="<?php echo $tl->id; ?>"><?php echo $tl->title; ?></option>
125
  <?php } ?>
126
  </select>
137
  >
138
  <?php foreach ( array(1,2,3,4,5,6,7,8,9,10,11,12) as $tl) { ?>
139
  <option <?php if($booking_widget_calendar_count == $tl ) echo "selected"; ?>
140
+ style="font-weight: 600;"
141
  value="<?php echo $tl; ?>"><?php echo $tl; ?></option>
142
  <?php } ?>
143
  </select>
lib/wpdev-settings-general.php CHANGED
@@ -97,13 +97,15 @@ function wpdev_bk_settings_general() {
97
 
98
  //FixIn:6.2.1.4
99
  $submit_form = 'post_settings_general';
 
100
  if ( isset( $_POST['is_form_sbmitted_'. $submit_form ] ) ) {
101
  check_admin_referer( 'wpbc_settings_page_'.$submit_form );
 
102
  }
103
  //FixIn:6.2.1.4 - end
104
 
105
 
106
- if ( isset( $_POST['start_day_weeek'] ) ) {
107
  $booking_skin = $_POST['booking_skin'];
108
 
109
  // $email_reservation_adress = htmlspecialchars( str_replace('\"','"',$_POST['email_reservation_adress']));
@@ -366,7 +368,7 @@ function wpdev_bk_settings_general() {
366
  if (empty($type_of_thank_you_message)) $type_of_thank_you_message = 'message';
367
 
368
 
369
- if ( isset( $_POST['start_day_weeek'] ) ) {
370
  $wpbc = wpbookingcalendar();
371
  if ( isset($wpbc->notice) )
372
  $wpbc->notice->show_message( __('Settings saved' ,'booking'), 15 );
@@ -625,7 +627,7 @@ function wpdev_bk_settings_general() {
625
 
626
  <table class="form-table"><tbody>
627
  <?php // Is using the BootStrap CSS //////////////////////////////////////////////////////////////////////////
628
- if (isset( $_POST['start_day_weeek'] )) {
629
  if (isset( $_POST['booking_form_is_using_bs_css'] )) $booking_form_is_using_bs_css = 'On';
630
  else $booking_form_is_using_bs_css = 'Off';
631
  update_bk_option( 'booking_form_is_using_bs_css', $booking_form_is_using_bs_css );
@@ -667,7 +669,7 @@ function wpdev_bk_settings_general() {
667
 
668
 
669
  <?php
670
- wpdev_bk_settings_legend_section();
671
  /** ?>
672
 
673
  <tr valign="top">
@@ -1032,9 +1034,9 @@ function wpdev_bk_settings_general() {
1032
 
1033
  <tr valign="top"> <td colspan="2">
1034
  <div style="width:100%;">
1035
- <span style="color:#21759B;cursor: pointer;font-weight: bold;"
1036
  onclick="javascript: jQuery('#togle_settings_javascriptloading').slideToggle('normal');jQuery('.bk_show_advanced_settings_js').toggle('normal');"
1037
- style="text-decoration: none;font-weight: bold;font-size: 11px;">
1038
  <span class="bk_show_advanced_settings_js">+ <span style="border-bottom:1px dashed #21759B;"><?php _e('Show advanced settings of JavaScript loading' ,'booking'); ?></span></span>
1039
  <span class="bk_show_advanced_settings_js" style="display:none;">- <span style="border-bottom:1px dashed #21759B;"><?php _e('Hide advanced settings of JavaScript loading' ,'booking'); ?></span></span>
1040
 
@@ -1119,9 +1121,9 @@ function wpdev_bk_settings_general() {
1119
 
1120
  <tr valign="top"> <td colspan="2">
1121
  <div style="width:100%;">
1122
- <span style="color:#21759B;cursor: pointer;font-weight: bold;"
1123
  onclick="javascript: jQuery('.bk_show_advanced_settings_powered').toggle('normal'); jQuery('#togle_settings_powered').slideToggle('normal');"
1124
- style="text-decoration: none;font-weight: bold;font-size: 11px;">
1125
  <span class="bk_show_advanced_settings_powered">+ <span style="border-bottom:1px dashed #21759B;"><?php _e('Show settings of powered by notice' ,'booking'); ?></span></span>
1126
  <span class="bk_show_advanced_settings_powered" style="display:none;">- <span style="border-bottom:1px dashed #21759B;"><?php _e('Hide settings of powered by notice' ,'booking'); ?></span></span>
1127
  </span>
@@ -1353,7 +1355,7 @@ function wpdev_bk_upgrade_window($version) {
1353
  </script>
1354
  </div>
1355
  <p style="line-height:25px;text-align:center;padding-top:15px;" class="wpdevbk">
1356
- <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>
1357
  </p>
1358
 
1359
  </div>
@@ -1364,8 +1366,8 @@ function wpdev_bk_upgrade_window($version) {
1364
  }
1365
 
1366
  // Settings for selecting default booking resource
1367
- function wpdev_bk_settings_legend_section(){
1368
- if (isset($_POST['booking_legend_text_for_item_available'])) {
1369
 
1370
  if (isset( $_POST['booking_is_show_legend'] )) $booking_is_show_legend = 'On';
1371
  else $booking_is_show_legend = 'Off';
@@ -1506,9 +1508,11 @@ function wpdev_bk_settings_legend_section(){
1506
  function wpdev_bk_settings_form_labels(){
1507
 
1508
  //FixIn:6.2.1.4
 
1509
  $submit_form = 'post_settings_fields';
1510
  if ( isset( $_POST['is_form_sbmitted_'. $submit_form ] ) ) {
1511
  check_admin_referer( 'wpbc_settings_page_'.$submit_form );
 
1512
  }
1513
  //FixIn:6.2.1.4 - end
1514
 
@@ -1532,7 +1536,7 @@ function wpdev_bk_settings_form_labels(){
1532
 
1533
 
1534
  <?php // FIELD # 1 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1535
- if (isset( $_POST['Submit'] )) {
1536
 
1537
  if (isset( $_POST['booking_form_field_active1'] )) $booking_form_field_active1 = 'On';
1538
  else $booking_form_field_active1 = 'Off';
@@ -1552,7 +1556,7 @@ function wpdev_bk_settings_form_labels(){
1552
 
1553
 
1554
  <div class="control-group">
1555
- <label for="name" class="control-label" style="font-weight:bold;"><?php _e('Field Label' ,'booking'); ?> #1:</label>
1556
  <div class="controls">
1557
 
1558
  <input type="text" class="large-text"
@@ -1577,7 +1581,7 @@ function wpdev_bk_settings_form_labels(){
1577
  </div>
1578
 
1579
  <?php // FIELD # 2 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1580
- if (isset( $_POST['Submit'] )) {
1581
 
1582
  if (isset( $_POST['booking_form_field_active2'] )) $booking_form_field_active2 = 'On';
1583
  else $booking_form_field_active2 = 'Off';
@@ -1595,7 +1599,7 @@ function wpdev_bk_settings_form_labels(){
1595
 
1596
  ?>
1597
  <div class="control-group">
1598
- <label for="name" class="control-label" style="font-weight:bold;"><?php _e('Field Label' ,'booking'); ?> #2:</label>
1599
  <div class="controls">
1600
 
1601
  <input type="text" class="large-text"
@@ -1620,7 +1624,7 @@ function wpdev_bk_settings_form_labels(){
1620
  </div>
1621
 
1622
  <?php // FIELD # 3 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1623
- if (isset( $_POST['Submit'] )) {
1624
 
1625
  //if (isset( $_POST['booking_form_field_active3'] )) $booking_form_field_active3 = 'On';
1626
  //else $booking_form_field_active3 = 'Off';
@@ -1640,7 +1644,7 @@ function wpdev_bk_settings_form_labels(){
1640
 
1641
  ?>
1642
  <div class="control-group">
1643
- <label for="name" class="control-label" style="font-weight:bold;"><?php _e('Email Label' ,'booking'); ?>:</label>
1644
  <div class="controls">
1645
 
1646
  <input type="text" class="large-text"
@@ -1665,7 +1669,7 @@ function wpdev_bk_settings_form_labels(){
1665
  </div>
1666
 
1667
  <?php // FIELD # 6 - SELECT BOX /////////////////////////////////////////////////////////////////////////////////////////////
1668
- if (isset( $_POST['Submit'] )) {
1669
 
1670
  if (isset( $_POST['booking_form_field_active6'] )) $booking_form_field_active6 = 'On';
1671
  else $booking_form_field_active6 = 'Off';
@@ -1686,7 +1690,7 @@ function wpdev_bk_settings_form_labels(){
1686
 
1687
  $show_untill_version_update = '5.4'; $wpbc_settings_element = 'dismiss_new_selectbox_field_free'; if ( ( version_compare(WP_BK_VERSION_NUM, $show_untill_version_update ) < 0 ) && ( '1' != get_user_option( 'booking_win_' . $wpbc_settings_element ) ) ) { ?><div id="<?php echo $wpbc_settings_element; ?>" class="new-label clearfix-height new-label-settings" style="margin-left: -31px;"><a class="tooltip_bottom" data-original-title="<?php _e('Hide' ,'booking'); ?>" rel="tooltip" href="javascript:void(0)" onclick="javascript:verify_window_opening(<?php echo get_bk_current_user_id(); ?>, '<?php echo $wpbc_settings_element; ?>');jQuery('#<?php echo $wpbc_settings_element; ?>').hide();" ><img src="<?php echo WPDEV_BK_PLUGIN_URL; ?>/img/label_new_blue.png" style="width:24px; height:24px;"></a></div><?php } /**/ ?>
1688
  <div class="control-group">
1689
- <label for="booking_form_field_label6" class="control-label" style="font-weight:bold;"><?php _e('Selectbox Label' ,'booking'); ?> :</label>
1690
  <div class="controls">
1691
  <div style="float:left;">
1692
  <input type="text" class="large-text"
@@ -1708,7 +1712,7 @@ function wpdev_bk_settings_form_labels(){
1708
 
1709
  </div>
1710
  <div style="float:left;margin-top:-23px;">
1711
- <label for="booking_form_field_values6" class="control-label" style="font-weight:bold;"><?php
1712
  _e('Selectbox Values' ,'booking'); ?> :
1713
  </label>
1714
  <textarea name="booking_form_field_values6" id="booking_form_field_values6" rows="3" ><?php echo $booking_form_field_values6; ?></textarea>
@@ -1722,7 +1726,7 @@ function wpdev_bk_settings_form_labels(){
1722
 
1723
 
1724
  <?php // FIELD # 4 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1725
- if (isset( $_POST['Submit'] )) {
1726
 
1727
  if (isset( $_POST['booking_form_field_active4'] )) $booking_form_field_active4 = 'On';
1728
  else $booking_form_field_active4 = 'Off';
@@ -1740,7 +1744,7 @@ function wpdev_bk_settings_form_labels(){
1740
 
1741
  ?>
1742
  <div class="control-group">
1743
- <label for="name" class="control-label" style="font-weight:bold;"><?php _e('Field Label' ,'booking'); ?> #3:</label>
1744
  <div class="controls">
1745
 
1746
  <input type="text" class="large-text"
@@ -1765,7 +1769,7 @@ function wpdev_bk_settings_form_labels(){
1765
  </div>
1766
 
1767
  <?php // FIELD # 5 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1768
- if (isset( $_POST['Submit'] )) {
1769
 
1770
  if (isset( $_POST['booking_form_field_active5'] )) $booking_form_field_active5 = 'On';
1771
  else $booking_form_field_active5 = 'Off';
@@ -1783,7 +1787,7 @@ function wpdev_bk_settings_form_labels(){
1783
 
1784
  ?>
1785
  <div class="control-group">
1786
- <label for="name" class="control-label" style="font-weight:bold;"><?php _e('Textarea Label' ,'booking'); ?>:</label>
1787
  <div class="controls">
1788
 
1789
  <input type="text" class="large-text"
@@ -1838,13 +1842,15 @@ function wpdev_bk_settings_form_labels(){
1838
  function wpbc_settings_emails(){
1839
 
1840
  //FixIn:6.2.1.4
 
1841
  $submit_form = 'post_settings_email_templates';
1842
  if ( isset( $_POST['is_form_sbmitted_'. $submit_form ] ) ) {
1843
  check_admin_referer( 'wpbc_settings_page_'.$submit_form );
 
1844
  }
1845
  //FixIn:6.2.1.4 - end
1846
 
1847
- if ( isset( $_POST['email_reservation_adress'] ) ) {
1848
 
1849
  $email_reservation_adress = htmlspecialchars( str_replace('\"','"',$_POST['email_reservation_adress']));
1850
  $email_reservation_from_adress = htmlspecialchars( str_replace('\"','"',$_POST['email_reservation_from_adress']));
@@ -2376,13 +2382,13 @@ function email_help_section( $skip_shortcodes = array() , $email_example = '') {
2376
  ?>
2377
  <div class="wpbc-help-message" style="margin-top:10px;">
2378
  <?php if ( class_exists('wpdev_bk_personal') ) { ?>
2379
- <p class="description" style="font-weight:normal;"><?php printf(__('You can use (in subject and content of email template) any shortcodes, which you used in the booking form. Use the shortcodes in the same way as you used them in the content form at Settings Fields page.' ,'booking'));?></p>
2380
  <br/>
2381
  <p class="description"><strong><?php printf(__('You can use following shortcodes in content of this template' ,'booking'));?></strong>: </p>
2382
  <?php } else { ?>
2383
  <p class="description"><strong><?php printf(__('You can use following shortcodes in content of this template' ,'booking'));?></strong>: </p>
2384
  <?php } ?>
2385
- <p class="description" style="font-weight:normal;"><?php
2386
  if ( ! class_exists('wpdev_bk_personal') )
2387
  printf(__('%s - inserting data info about the booking' ,'booking'),'<code>[content]</code>');
2388
  else
97
 
98
  //FixIn:6.2.1.4
99
  $submit_form = 'post_settings_general';
100
+ $is_nonce_cheked = false;
101
  if ( isset( $_POST['is_form_sbmitted_'. $submit_form ] ) ) {
102
  check_admin_referer( 'wpbc_settings_page_'.$submit_form );
103
+ $is_nonce_cheked = true; //FixIn: 6.2.2.5
104
  }
105
  //FixIn:6.2.1.4 - end
106
 
107
 
108
+ if ( isset( $_POST['start_day_weeek'] ) && $is_nonce_cheked ) { //FixIn: 6.2.2.5
109
  $booking_skin = $_POST['booking_skin'];
110
 
111
  // $email_reservation_adress = htmlspecialchars( str_replace('\"','"',$_POST['email_reservation_adress']));
368
  if (empty($type_of_thank_you_message)) $type_of_thank_you_message = 'message';
369
 
370
 
371
+ if ( isset( $_POST['start_day_weeek'] ) && $is_nonce_cheked ) {
372
  $wpbc = wpbookingcalendar();
373
  if ( isset($wpbc->notice) )
374
  $wpbc->notice->show_message( __('Settings saved' ,'booking'), 15 );
627
 
628
  <table class="form-table"><tbody>
629
  <?php // Is using the BootStrap CSS //////////////////////////////////////////////////////////////////////////
630
+ if (isset( $_POST['start_day_weeek'] ) && $is_nonce_cheked ) {
631
  if (isset( $_POST['booking_form_is_using_bs_css'] )) $booking_form_is_using_bs_css = 'On';
632
  else $booking_form_is_using_bs_css = 'Off';
633
  update_bk_option( 'booking_form_is_using_bs_css', $booking_form_is_using_bs_css );
669
 
670
 
671
  <?php
672
+ wpdev_bk_settings_legend_section( $is_nonce_cheked );
673
  /** ?>
674
 
675
  <tr valign="top">
1034
 
1035
  <tr valign="top"> <td colspan="2">
1036
  <div style="width:100%;">
1037
+ <span style="color:#21759B;cursor: pointer;font-weight: 600;"
1038
  onclick="javascript: jQuery('#togle_settings_javascriptloading').slideToggle('normal');jQuery('.bk_show_advanced_settings_js').toggle('normal');"
1039
+ style="text-decoration: none;font-weight: 600;font-size: 12px;">
1040
  <span class="bk_show_advanced_settings_js">+ <span style="border-bottom:1px dashed #21759B;"><?php _e('Show advanced settings of JavaScript loading' ,'booking'); ?></span></span>
1041
  <span class="bk_show_advanced_settings_js" style="display:none;">- <span style="border-bottom:1px dashed #21759B;"><?php _e('Hide advanced settings of JavaScript loading' ,'booking'); ?></span></span>
1042
 
1121
 
1122
  <tr valign="top"> <td colspan="2">
1123
  <div style="width:100%;">
1124
+ <span style="color:#21759B;cursor: pointer;font-weight: 600;"
1125
  onclick="javascript: jQuery('.bk_show_advanced_settings_powered').toggle('normal'); jQuery('#togle_settings_powered').slideToggle('normal');"
1126
+ style="text-decoration: none;font-weight: 600;font-size: 12px;">
1127
  <span class="bk_show_advanced_settings_powered">+ <span style="border-bottom:1px dashed #21759B;"><?php _e('Show settings of powered by notice' ,'booking'); ?></span></span>
1128
  <span class="bk_show_advanced_settings_powered" style="display:none;">- <span style="border-bottom:1px dashed #21759B;"><?php _e('Hide settings of powered by notice' ,'booking'); ?></span></span>
1129
  </span>
1355
  </script>
1356
  </div>
1357
  <p style="line-height:25px;text-align:center;padding-top:15px;" class="wpdevbk">
1358
+ <a class="button button-primary" style="font-size: 1.1em;font-weight: 600;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>
1359
  </p>
1360
 
1361
  </div>
1366
  }
1367
 
1368
  // Settings for selecting default booking resource
1369
+ function wpdev_bk_settings_legend_section( $is_nonce_cheked = false ){
1370
+ if (isset($_POST['booking_legend_text_for_item_available']) && $is_nonce_cheked ) {
1371
 
1372
  if (isset( $_POST['booking_is_show_legend'] )) $booking_is_show_legend = 'On';
1373
  else $booking_is_show_legend = 'Off';
1508
  function wpdev_bk_settings_form_labels(){
1509
 
1510
  //FixIn:6.2.1.4
1511
+ $is_nonce_cheked = false;
1512
  $submit_form = 'post_settings_fields';
1513
  if ( isset( $_POST['is_form_sbmitted_'. $submit_form ] ) ) {
1514
  check_admin_referer( 'wpbc_settings_page_'.$submit_form );
1515
+ $is_nonce_cheked = true; //FixIn: 6.2.2.5
1516
  }
1517
  //FixIn:6.2.1.4 - end
1518
 
1536
 
1537
 
1538
  <?php // FIELD # 1 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1539
+ if (isset( $_POST['Submit'] ) && $is_nonce_cheked ) {
1540
 
1541
  if (isset( $_POST['booking_form_field_active1'] )) $booking_form_field_active1 = 'On';
1542
  else $booking_form_field_active1 = 'Off';
1556
 
1557
 
1558
  <div class="control-group">
1559
+ <label for="name" class="control-label" style="font-weight: 600;"><?php _e('Field Label' ,'booking'); ?> #1:</label>
1560
  <div class="controls">
1561
 
1562
  <input type="text" class="large-text"
1581
  </div>
1582
 
1583
  <?php // FIELD # 2 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1584
+ if (isset( $_POST['Submit'] ) && $is_nonce_cheked ) {
1585
 
1586
  if (isset( $_POST['booking_form_field_active2'] )) $booking_form_field_active2 = 'On';
1587
  else $booking_form_field_active2 = 'Off';
1599
 
1600
  ?>
1601
  <div class="control-group">
1602
+ <label for="name" class="control-label" style="font-weight: 600;"><?php _e('Field Label' ,'booking'); ?> #2:</label>
1603
  <div class="controls">
1604
 
1605
  <input type="text" class="large-text"
1624
  </div>
1625
 
1626
  <?php // FIELD # 3 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1627
+ if (isset( $_POST['Submit'] ) && $is_nonce_cheked ) {
1628
 
1629
  //if (isset( $_POST['booking_form_field_active3'] )) $booking_form_field_active3 = 'On';
1630
  //else $booking_form_field_active3 = 'Off';
1644
 
1645
  ?>
1646
  <div class="control-group">
1647
+ <label for="name" class="control-label" style="font-weight: 600;"><?php _e('Email Label' ,'booking'); ?>:</label>
1648
  <div class="controls">
1649
 
1650
  <input type="text" class="large-text"
1669
  </div>
1670
 
1671
  <?php // FIELD # 6 - SELECT BOX /////////////////////////////////////////////////////////////////////////////////////////////
1672
+ if (isset( $_POST['Submit'] ) && $is_nonce_cheked ) {
1673
 
1674
  if (isset( $_POST['booking_form_field_active6'] )) $booking_form_field_active6 = 'On';
1675
  else $booking_form_field_active6 = 'Off';
1690
 
1691
  $show_untill_version_update = '5.4'; $wpbc_settings_element = 'dismiss_new_selectbox_field_free'; if ( ( version_compare(WP_BK_VERSION_NUM, $show_untill_version_update ) < 0 ) && ( '1' != get_user_option( 'booking_win_' . $wpbc_settings_element ) ) ) { ?><div id="<?php echo $wpbc_settings_element; ?>" class="new-label clearfix-height new-label-settings" style="margin-left: -31px;"><a class="tooltip_bottom" data-original-title="<?php _e('Hide' ,'booking'); ?>" rel="tooltip" href="javascript:void(0)" onclick="javascript:verify_window_opening(<?php echo get_bk_current_user_id(); ?>, '<?php echo $wpbc_settings_element; ?>');jQuery('#<?php echo $wpbc_settings_element; ?>').hide();" ><img src="<?php echo WPDEV_BK_PLUGIN_URL; ?>/img/label_new_blue.png" style="width:24px; height:24px;"></a></div><?php } /**/ ?>
1692
  <div class="control-group">
1693
+ <label for="booking_form_field_label6" class="control-label" style="font-weight: 600;"><?php _e('Selectbox Label' ,'booking'); ?> :</label>
1694
  <div class="controls">
1695
  <div style="float:left;">
1696
  <input type="text" class="large-text"
1712
 
1713
  </div>
1714
  <div style="float:left;margin-top:-23px;">
1715
+ <label for="booking_form_field_values6" class="control-label" style="font-weight: 600;"><?php
1716
  _e('Selectbox Values' ,'booking'); ?> :
1717
  </label>
1718
  <textarea name="booking_form_field_values6" id="booking_form_field_values6" rows="3" ><?php echo $booking_form_field_values6; ?></textarea>
1726
 
1727
 
1728
  <?php // FIELD # 4 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1729
+ if (isset( $_POST['Submit'] ) && $is_nonce_cheked ) {
1730
 
1731
  if (isset( $_POST['booking_form_field_active4'] )) $booking_form_field_active4 = 'On';
1732
  else $booking_form_field_active4 = 'Off';
1744
 
1745
  ?>
1746
  <div class="control-group">
1747
+ <label for="name" class="control-label" style="font-weight: 600;"><?php _e('Field Label' ,'booking'); ?> #3:</label>
1748
  <div class="controls">
1749
 
1750
  <input type="text" class="large-text"
1769
  </div>
1770
 
1771
  <?php // FIELD # 5 //////////////////////////////////////////////////////////////////////////////////////////////////////////
1772
+ if (isset( $_POST['Submit'] ) && $is_nonce_cheked ) {
1773
 
1774
  if (isset( $_POST['booking_form_field_active5'] )) $booking_form_field_active5 = 'On';
1775
  else $booking_form_field_active5 = 'Off';
1787
 
1788
  ?>
1789
  <div class="control-group">
1790
+ <label for="name" class="control-label" style="font-weight: 600;"><?php _e('Textarea Label' ,'booking'); ?>:</label>
1791
  <div class="controls">
1792
 
1793
  <input type="text" class="large-text"
1842
  function wpbc_settings_emails(){
1843
 
1844
  //FixIn:6.2.1.4
1845
+ $is_nonce_cheked = false;
1846
  $submit_form = 'post_settings_email_templates';
1847
  if ( isset( $_POST['is_form_sbmitted_'. $submit_form ] ) ) {
1848
  check_admin_referer( 'wpbc_settings_page_'.$submit_form );
1849
+ $is_nonce_cheked = true; //FixIn: 6.2.2.5
1850
  }
1851
  //FixIn:6.2.1.4 - end
1852
 
1853
+ if ( isset( $_POST['email_reservation_adress'] ) && $is_nonce_cheked ) {
1854
 
1855
  $email_reservation_adress = htmlspecialchars( str_replace('\"','"',$_POST['email_reservation_adress']));
1856
  $email_reservation_from_adress = htmlspecialchars( str_replace('\"','"',$_POST['email_reservation_from_adress']));
2382
  ?>
2383
  <div class="wpbc-help-message" style="margin-top:10px;">
2384
  <?php if ( class_exists('wpdev_bk_personal') ) { ?>
2385
+ <p class="description" style="font-weight: 400;"><?php printf(__('You can use (in subject and content of email template) any shortcodes, which you used in the booking form. Use the shortcodes in the same way as you used them in the content form at Settings Fields page.' ,'booking'));?></p>
2386
  <br/>
2387
  <p class="description"><strong><?php printf(__('You can use following shortcodes in content of this template' ,'booking'));?></strong>: </p>
2388
  <?php } else { ?>
2389
  <p class="description"><strong><?php printf(__('You can use following shortcodes in content of this template' ,'booking'));?></strong>: </p>
2390
  <?php } ?>
2391
+ <p class="description" style="font-weight: 400;"><?php
2392
  if ( ! class_exists('wpdev_bk_personal') )
2393
  printf(__('%s - inserting data info about the booking' ,'booking'),'<code>[content]</code>');
2394
  else
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdevelop
3
  Donate link: http://wpbookingcalendar.com/buy/
4
  Tags: booking calendar, availability calendar, event calendar, booking system, booking form, reservation, events, appointment, availability, schedule, calendar, contact form
5
  Requires at least: 3.3
6
- Tested up to: 4.5
7
- Stable tag: 6.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -152,6 +152,14 @@ If you have any further questions, please fill free to <a href="mailto:support@w
152
  11. **Calendar Skins**. Select calendar skin for better fitting to your web-site design.
153
 
154
  == Changelog ==
 
 
 
 
 
 
 
 
155
  = 6.2.1 =
156
  - Features and issue fixings in All versions:
157
  * **Fix** Improve security checking during saving settings and searching in booking listing pages.
3
  Donate link: http://wpbookingcalendar.com/buy/
4
  Tags: booking calendar, availability calendar, event calendar, booking system, booking form, reservation, events, appointment, availability, schedule, calendar, contact form
5
  Requires at least: 3.3
6
+ Tested up to: 4.6
7
+ Stable tag: 6.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
152
  11. **Calendar Skins**. Select calendar skin for better fitting to your web-site design.
153
 
154
  == Changelog ==
155
+ = 6.2.2 =
156
+ - Features and issue fixings in All versions:
157
+ * **Compatibility** Fix CSS for correctly showing fonts in new WordPress 4.6
158
+ * **Fix** Improve security checking during saving settings.
159
+ - Personal / Business Small / Business Medium / Business Large / MultiUser versions features:
160
+ * **Fix** Checking string parameter during payment request (fix:6.2.2.1) *(Business Small/Medium/Large, MultiUser)*
161
+ * Ability to customize to open the "Payment page" with Payment Form(s) at actual website instead of showing payment form(s) at same page after submit of booking. (fix:6.2.2.2) *(Business Small/Medium/Large, MultiUser)*
162
+
163
  = 6.2.1 =
164
  - Features and issue fixings in All versions:
165
  * **Fix** Improve security checking during saving settings and searching in booking listing pages.
wpdev-booking.php CHANGED
@@ -7,10 +7,10 @@ Author: wpdevelop
7
  Author URI: http://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
- Version: 6.2.1
11
  */
12
 
13
- /* Copyright 2009 - 2015 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
14
 
15
  This program is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
7
  Author URI: http://wpbookingcalendar.com/
8
  Text Domain: booking
9
  Domain Path: /languages/
10
+ Version: 6.2.2
11
  */
12
 
13
+ /* Copyright 2009 - 2016 www.wpbookingcalendar.com (email: info@wpbookingcalendar.com),
14
 
15
  This program is free software: you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by