Exemplo n.º 1
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     global $mts_simple_booking;
     parent::__construct();
     $this->nonce_word = "{$this->domain}_option";
     $this->catalog_name = $this->domain . MTS_Simple_Booking::CATALOG_NAME;
     // リストテーブルモジュールのロード
     if (!class_exists('WP_List_Table')) {
         require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
     }
     // CSSロード
     $mts_simple_booking->enqueue_style();
     // Javascriptロード
     wp_enqueue_script("mtssb_option_admin_js", $mts_simple_booking->plugin_url . "js/mtssb-option-admin.js", array('jquery'));
     // オプションカタログを取得する(Ver.1.9追加)
     $this->catalog = get_option($this->catalog_name);
     // オプションカタログの登録(Ver.1.9追加 グループオプションへ変更)
     if ($this->catalog === false) {
         $this->_create_catalog();
     }
 }