Plugin Directory

Changeset 1874969


Ignore:
Timestamp:
05/15/2018 11:56:55 PM (8 years ago)
Author:
Tanaka Hisao
Message:

1.8.8

Location:
salon-booking/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • salon-booking/trunk/readme.txt

    r1855419 r1874969  
    33Tags: hair salon,salon,appointment,booking,beauty apps,reservation,dental clinic,hospital,mutilingual,clinic,spa,散髪予約,美容院予約,美容室予約,サロン予約,エステ予約,予約システム,予約管理
    44Requires at least: 4.0
    5 Tested up to: 4.8
    6 Stable tag: 1.8.7
     5Tested up to: 4.9.5
     6Stable tag: 1.8.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474
    7575== 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
    7681= 1.8.7 =
    7782* Fixed unexepected slash
  • salon-booking/trunk/salon.php

    r1855419 r1874969  
    44Plugin URI: http://salon.mallory.jp
    55Description: Salon Booking enables the reservation to one-on-one business between a client and a staff member.
    6 Version: 1.8.7
     6Version: 1.8.8
    77Author: tanaka-hisao
    88Author URI: http://salon.mallory.jp
     
    1010Domain Path: /languages/
    1111*/
    12 define( 'SL_VERSION', '1.8.7' );
     12define( 'SL_VERSION', '1.8.8' );
    1313define( 'SL_DOMAIN', 'salon-booking' );
    1414define( 'SL_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
  • salon-booking/trunk/src/data/salon-data.php

    r1815387 r1874969  
    128128        if (!isset($result['SALON_CONFIG_LINK_START_MINUTE']) ) $result['SALON_CONFIG_LINK_START_MINUTE'] = 5;
    129129
     130
    130131        $this->config = $result;
     132
    131133
    132134        add_action('wp_mail_failed', array( &$this,'getMailErrorInformation'));
  • salon-booking/trunk/src/page/booking-edit.php

    r1688626 r1874969  
    6161            throw new Exception($msg,__LINE__ );
    6262        }
     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
    6370    }
    6471
  • salon-booking/trunk/src/page/booking-mobile-edit.php

    r1688626 r1874969  
    7070    public function set_config_datas($config_datas) {
    7171        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);
    7373
    7474    }
     
    8484        }
    8585        $this->checkOk = Salon_Page::serverCheckBooking($check_item,$this->msg,$this->field);
    86 
    8786        //ここからスマートフォンのみのチェック
    8887        $from = strtotime($_POST['start_date']);
     
    151150          $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']);
    152151        }
     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        }
    153158
    154159        return $this->checkOk;
  • salon-booking/trunk/src/page/booking_mobile-page.php

    r1815387 r1874969  
    182182            top_pos = $j("#slm_main").offset().top;
    183183            bottom_pos = top_pos + $j("#slm_main").height();
    184 <?php //複数個別ページをひとつにまとめてTOPページにするようなテーマ(newspapere)向けの対応
     184<?php //複数個別ページをひとつにまとめてTOPページにするようなテーマ(newspaper)向けの対応
    185185            $initAnimate = '$j("html,body").animate({ scrollTop: top_pos }, "fast");';
    186186            $initAnimate = apply_filters('salon_booking_set_init_display_for_mobile',$initAnimate);
  • salon-booking/trunk/src/page/booking_pc-page.php

    r1815387 r1874969  
    748748            <?php else:     ?>
    749749                var checkday = +fnDayFormat(target_day_from,"%Y%m%d");
    750                 if (!$j(this).val()  ) {
     750                if (!$j(this).val() ) {
    751751                    $j("#sl_item_cds input").attr("disabled",true);
    752752                    $j("#sl_item_cds .sl_items_label").addClass("sl_items_disable");
  • salon-booking/trunk/src/page/bookingfront-page.php

    r1684517 r1874969  
    157157        $this->insert_max_day = substr($edit,0,4).','.(intval(substr($edit,5,2))-1).','.(intval(substr($edit,8,2)+1));
    158158
    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)));
    160161
    161162            $this->set_menu_type = "checkbox";
  • salon-booking/trunk/src/page/salon-page.php

    r1815387 r1874969  
    16381638                            }
    16391639                            else {
    1640                                 result =  [true, "slm-date-holiday2", sp_date.title];
     1640                                result =  [true, "slm-date-holiday4", sp_date.title];
    16411641                            }
    16421642                        }
     
    32793279    }
    32803280
    3281     public function serverCheckBooking($items , &$msg , &$field) {
     3281    public function serverCheckBooking($items , &$msg , &$focus_field) {
    32823282
    32833283        $nonce = SL_PLUGIN_DIR;
    3284         $field = "";
     3284        $focus_field = "";
    32853285
    32863286        if ($this->config_datas['SALON_CONFIG_USE_SESSION_ID'] == Salon_Config::USE_SESSION) $nonce = session_id();
     
    33153315                    }
    33163316                }
    3317                 if ($field == "" && $before != count($err_msg)) {
    3318                     $field = $id;
     3317                if ($focus_field == "" && $before != count($err_msg)) {
     3318                    $focus_field = $id;
    33193319                }
    33203320            }
Note: See TracChangeset for help on using the changeset viewer.