Example #1
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // Controlsのロード
     $this->controls = get_option($this->domain . '_controls');
     // 表示ページのURL
     $this->this_page = get_permalink();
 }
 public function __construct()
 {
     global $mts_simple_booking;
     parent::__construct();
     // CSSロード
     $mts_simple_booking->enqueue_style();
     // Javascriptロード
     //wp_enqueue_script("mtssb_add_admin_js", plugins_url("js/mtssb-add-admin.js", __FILE__), array('jquery'));
 }
 public function __construct()
 {
     global $mts_simple_booking;
     parent::__construct();
     // CSSロード
     $mts_simple_booking->enqueue_style();
     // Javascriptロード
     wp_enqueue_script("mtssb_booking_admin_js", $this->plugin_url . "js/mtssb-booking-admin.js", array('jquery'));
 }
 public function __construct()
 {
     global $mts_simple_booking;
     parent::__construct();
     // CSSロード
     $mts_simple_booking->enqueue_style();
     // 予約条件パラメータのロード
     $this->controls = get_option($this->domain . '_controls');
     // 予約品目を読込む
     $this->articles = MTSSB_Article::get_all_articles();
     // 本日0時0分のUNIX Time
     $this->today_time = strtotime(date_i18n('Y-n-j'));
 }
Example #5
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // 日時の初期設定・カレンダー情報の取得
     $this->calendar = new MtssbCalendar($this->domain);
     $this->view = new MtssbCalendarView();
     // Controlsのロード
     $this->controls = $this->calendar->controls;
     // 表示ページのURL
     $this->this_page = get_permalink();
     // 予約フォームページのURL
     $this->form_link = get_permalink(get_page_by_path(MTS_Simple_Booking::PAGE_BOOKING_FORM));
 }
Example #6
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // 予約条件パラメータのロード
     $this->controls = get_option($this->domain . '_controls');
     $this->charge = get_option($this->domain . '_charge');
     // 表示ページのURL
     $this->this_page = get_permalink();
     // 時間情報の取得
     $this->calendar = new MtssbCalendar($this->domain);
     // 顧客データのカラム利用設定情報を読込む
     $this->reserve = get_option($this->domain . '_reserve');
 }
Example #7
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // 予約条件パラメータのロード
     $this->controls = get_option($this->domain . '_controls');
     $this->charge = get_option($this->domain . '_charge');
     // 時間情報の取得
     $this->this_year = date_i18n('Y');
     $this->this_month = date_i18n('n');
     $this->this_day = date_i18n('j');
     $this->today_time = mktime(0, 0, 0, $this->this_month, $this->this_day, $this->this_year);
     // 顧客データのカラム利用設定情報を読込む
     $this->reserve = get_option($this->domain . '_reserve');
 }
Example #8
0
 public function __construct()
 {
     global $mts_simple_booking;
     parent::__construct();
     // action指定
     if (isset($_GET['action'])) {
         $this->action = $_GET['action'];
     }
     // 予約リストのCSVダウンロード
     if ($this->action == 'download') {
         $this->_download_list();
     }
     // CSSロード
     $mts_simple_booking->enqueue_style();
     wp_enqueue_style('wp-jquery-ui-dialog');
     // Javascriptロード
     wp_enqueue_script("mtssb_list_admin_js", $this->plugin_url . "js/mtssb-list-admin.js", array('jquery', 'jquery-ui-dialog'));
 }
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // 予約条件パラメータのロード
     $this->controls = get_option($this->domain . '_controls');
     // 表示ページのURL
     $this->this_page = get_permalink();
     // 時間情報の取得
     $this->this_year = date_i18n('Y');
     $this->this_month = date_i18n('n');
     $this->this_day = date_i18n('j');
     $this->today_time = mktime(0, 0, 0, $this->this_month, $this->this_day, $this->this_year);
     $this->start_time = $this->today_time + intval($this->controls['start_accepting']) * 60;
     $this->max_time = mktime(0, 0, 0, $this->this_month + $this->controls['period'], $this->this_day, $this->this_year);
     // 顧客データのカラム利用設定情報を読込む
     $reserve = get_option($this->domain . '_reserve');
     $this->clcols = $reserve['column'];
 }