| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Form data to kintone |
| 4 |
* Plugin URI: |
| 5 |
* Description: This plugin is an addon for "Contact Form 7". |
| 6 |
* Version: 2.29.2 |
| 7 |
* Author: Takashi Hosoya |
| 8 |
* Author URI: http://ht79.info/ |
| 9 |
* License: GPLv2 |
| 10 |
* Text Domain: kintone-form |
| 11 |
* Domain Path: /languages |
| 12 |
* |
| 13 |
* @package kintone-form |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Copyright (c) 2017 Takashi Hosoya ( http://ht79.info/ ) |
| 18 |
* |
| 19 |
* This program is free software; you can redistribute it and/or modify |
| 20 |
* it under the terms of the GNU General Public License, version 2 or, at |
| 21 |
* your discretion, any later version, as published by the Free |
| 22 |
* Software Foundation. |
| 23 |
* |
| 24 |
* This program is distributed in the hope that it will be useful, |
| 25 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 |
* GNU General Public License for more details. |
| 28 |
* |
| 29 |
* You should have received a copy of the GNU General Public License |
| 30 |
* along with this program; if not, write to the Free Software |
| 31 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 32 |
*/ |
| 33 |
|
| 34 |
define( 'KINTONE_FORM_URL', plugins_url( '', __FILE__ ) ); |
| 35 |
define( 'KINTONE_FORM_PATH', __DIR__ ); |
| 36 |
|
| 37 |
$data = get_file_data( |
| 38 |
__FILE__, |
| 39 |
array( |
| 40 |
'ver' => 'Version', |
| 41 |
'langs' => 'Domain Path', |
| 42 |
) |
| 43 |
); |
| 44 |
|
| 45 |
define( 'KINTONE_FORM_VERSION', $data['ver'] ); |
| 46 |
define( 'KINTONE_FORM_LANGS', $data['langs'] ); |
| 47 |
load_plugin_textdomain( |
| 48 |
'kintone-form', |
| 49 |
false, |
| 50 |
dirname( plugin_basename( __FILE__ ) ) . KINTONE_FORM_LANGS |
| 51 |
); |
| 52 |
|
| 53 |
|
| 54 |
require KINTONE_FORM_PATH . '/modules/text.php'; |
| 55 |
require KINTONE_FORM_PATH . '/modules/number.php'; |
| 56 |
require KINTONE_FORM_PATH . '/modules/radio.php'; |
| 57 |
require KINTONE_FORM_PATH . '/modules/checkbox.php'; |
| 58 |
require KINTONE_FORM_PATH . '/modules/date.php'; |
| 59 |
require KINTONE_FORM_PATH . '/modules/datetime.php'; |
| 60 |
require KINTONE_FORM_PATH . '/modules/dropdown.php'; |
| 61 |
require KINTONE_FORM_PATH . '/modules/link.php'; |
| 62 |
require KINTONE_FORM_PATH . '/modules/richText.php'; |
| 63 |
require KINTONE_FORM_PATH . '/modules/multiLineText.php'; |
| 64 |
require KINTONE_FORM_PATH . '/modules/multi_select.php'; |
| 65 |
require KINTONE_FORM_PATH . '/modules/time.php'; |
| 66 |
require KINTONE_FORM_PATH . '/includes/check-acceptance.php'; |
| 67 |
require KINTONE_FORM_PATH . '/modules/organization.php'; |
| 68 |
require KINTONE_FORM_PATH . '/modules/file.php'; |
| 69 |
|
| 70 |
require_once KINTONE_FORM_PATH . '/includes/class-kintone-form.php'; |
| 71 |
|
| 72 |
$kintone_form = new Kintone_Form(); |
| 73 |
$kintone_form->register(); |
| 74 |
|