Changeset 1874969
- Timestamp:
- 05/15/2018 11:56:55 PM (8 years ago)
- Location:
- salon-booking/trunk
- Files:
-
- 9 edited
-
readme.txt (modified) (2 diffs)
-
salon.php (modified) (2 diffs)
-
src/data/salon-data.php (modified) (1 diff)
-
src/page/booking-edit.php (modified) (1 diff)
-
src/page/booking-mobile-edit.php (modified) (3 diffs)
-
src/page/booking_mobile-page.php (modified) (1 diff)
-
src/page/booking_pc-page.php (modified) (1 diff)
-
src/page/bookingfront-page.php (modified) (1 diff)
-
src/page/salon-page.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
salon-booking/trunk/readme.txt
r1855419 r1874969 3 3 Tags: hair salon,salon,appointment,booking,beauty apps,reservation,dental clinic,hospital,mutilingual,clinic,spa,散髪予約,美容院予約,美容室予約,サロン予約,エステ予約,予約システム,予約管理 4 4 Requires at least: 4.0 5 Tested up to: 4. 86 Stable tag: 1.8. 75 Tested up to: 4.9.5 6 Stable tag: 1.8.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 75 75 == Changelog == 76 = 1.8.8 = 77 * Fixed display max date in mobile screen 78 * Changed style special holiday in mobile screen 79 * Added filter [salon_add_check_for_booking] 80 76 81 = 1.8.7 = 77 82 * Fixed unexepected slash -
salon-booking/trunk/salon.php
r1855419 r1874969 4 4 Plugin URI: http://salon.mallory.jp 5 5 Description: Salon Booking enables the reservation to one-on-one business between a client and a staff member. 6 Version: 1.8. 76 Version: 1.8.8 7 7 Author: tanaka-hisao 8 8 Author URI: http://salon.mallory.jp … … 10 10 Domain Path: /languages/ 11 11 */ 12 define( 'SL_VERSION', '1.8. 7' );12 define( 'SL_VERSION', '1.8.8' ); 13 13 define( 'SL_DOMAIN', 'salon-booking' ); 14 14 define( 'SL_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); -
salon-booking/trunk/src/data/salon-data.php
r1815387 r1874969 128 128 if (!isset($result['SALON_CONFIG_LINK_START_MINUTE']) ) $result['SALON_CONFIG_LINK_START_MINUTE'] = 5; 129 129 130 130 131 $this->config = $result; 132 131 133 132 134 add_action('wp_mail_failed', array( &$this,'getMailErrorInformation')); -
salon-booking/trunk/src/page/booking-edit.php
r1688626 r1874969 61 61 throw new Exception($msg,__LINE__ ); 62 62 } 63 64 65 $msg = apply_filters('salon_add_check_for_booking',$msg,"pc"); 66 if (!empty($msg)) { 67 throw new Exception($msg,1); 68 } 69 63 70 } 64 71 -
salon-booking/trunk/src/page/booking-mobile-edit.php
r1688626 r1874969 70 70 public function set_config_datas($config_datas) { 71 71 parent::set_config_datas($config_datas); 72 $this->insert_max_day = Salon_Component::computeDate($config_datas['SALON_CONFIG_AFTER_DAY'] );72 $this->insert_max_day = Salon_Component::computeDate($config_datas['SALON_CONFIG_AFTER_DAY']+1); 73 73 74 74 } … … 84 84 } 85 85 $this->checkOk = Salon_Page::serverCheckBooking($check_item,$this->msg,$this->field); 86 87 86 //ここからスマートフォンのみのチェック 88 87 $from = strtotime($_POST['start_date']); … … 151 150 $this->msg .= (empty($this->msg) ? '' : "\n"). 'EM002 '.sprintf(__('The future times can not reserved. please less than %s days ',SL_DOMAIN),$this->config_datas['SALON_CONFIG_AFTER_DAY']); 152 151 } 152 $msg = null; 153 $msg = apply_filters('salon_add_check_for_booking',$this->msg,"mobile"); 154 if (!empty($msg)) { 155 $this->msg .= (empty($this->msg) ? '' : "\n").$msg; 156 $this->checkOk = false; 157 } 153 158 154 159 return $this->checkOk; -
salon-booking/trunk/src/page/booking_mobile-page.php
r1815387 r1874969 182 182 top_pos = $j("#slm_main").offset().top; 183 183 bottom_pos = top_pos + $j("#slm_main").height(); 184 <?php //複数個別ページをひとつにまとめてTOPページにするようなテーマ(newspaper e)向けの対応184 <?php //複数個別ページをひとつにまとめてTOPページにするようなテーマ(newspaper)向けの対応 185 185 $initAnimate = '$j("html,body").animate({ scrollTop: top_pos }, "fast");'; 186 186 $initAnimate = apply_filters('salon_booking_set_init_display_for_mobile',$initAnimate); -
salon-booking/trunk/src/page/booking_pc-page.php
r1815387 r1874969 748 748 <?php else: ?> 749 749 var checkday = +fnDayFormat(target_day_from,"%Y%m%d"); 750 if (!$j(this).val() ) {750 if (!$j(this).val() ) { 751 751 $j("#sl_item_cds input").attr("disabled",true); 752 752 $j("#sl_item_cds .sl_items_label").addClass("sl_items_disable"); -
salon-booking/trunk/src/page/bookingfront-page.php
r1684517 r1874969 157 157 $this->insert_max_day = substr($edit,0,4).','.(intval(substr($edit,5,2))-1).','.(intval(substr($edit,8,2)+1)); 158 158 159 $this->datepicker_max_day = substr($edit,0,4).','.(intval(substr($edit,5,2))-1).','.(intval(substr($edit,8,2))); 159 $edit_datepicker = Salon_Component::computeDate($config_datas['SALON_CONFIG_AFTER_DAY']-1); 160 $this->datepicker_max_day = substr($edit_datepicker,0,4).','.(intval(substr($edit_datepicker,5,2))-1).','.(intval(substr($edit_datepicker,8,2))); 160 161 161 162 $this->set_menu_type = "checkbox"; -
salon-booking/trunk/src/page/salon-page.php
r1815387 r1874969 1638 1638 } 1639 1639 else { 1640 result = [true, "slm-date-holiday 2", sp_date.title];1640 result = [true, "slm-date-holiday4", sp_date.title]; 1641 1641 } 1642 1642 } … … 3279 3279 } 3280 3280 3281 public function serverCheckBooking($items , &$msg , &$f ield) {3281 public function serverCheckBooking($items , &$msg , &$focus_field) { 3282 3282 3283 3283 $nonce = SL_PLUGIN_DIR; 3284 $f ield = "";3284 $focus_field = ""; 3285 3285 3286 3286 if ($this->config_datas['SALON_CONFIG_USE_SESSION_ID'] == Salon_Config::USE_SESSION) $nonce = session_id(); … … 3315 3315 } 3316 3316 } 3317 if ($f ield == "" && $before != count($err_msg)) {3318 $f ield = $id;3317 if ($focus_field == "" && $before != count($err_msg)) { 3318 $focus_field = $id; 3319 3319 } 3320 3320 }
Note: See TracChangeset
for help on using the changeset viewer.