| 1 |
<?php |
| 2 |
/** |
| 3 |
* Pre Orders. |
| 4 |
* |
| 5 |
* @package Merchant |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly |
| 10 |
} |
| 11 |
|
| 12 |
/** |
| 13 |
* Settings |
| 14 |
*/ |
| 15 |
Merchant_Admin_Options::create( array( |
| 16 |
'title' => esc_html__( 'Settings', 'merchant' ), |
| 17 |
'module' => 'pre-orders', |
| 18 |
'fields' => array( |
| 19 |
|
| 20 |
array( |
| 21 |
'id' => 'button_text', |
| 22 |
'type' => 'text', |
| 23 |
'title' => esc_html__( 'Button text', 'merchant' ), |
| 24 |
'default' => esc_html__( 'Pre Order Now!', 'merchant' ), |
| 25 |
), |
| 26 |
|
| 27 |
array( |
| 28 |
'id' => 'additional_text', |
| 29 |
'type' => 'text', |
| 30 |
'title' => esc_html__( 'Additional information', 'merchant' ), |
| 31 |
'default' => esc_html__( 'Ships on {date}.', 'merchant' ), |
| 32 |
), |
| 33 |
|
| 34 |
array( |
| 35 |
'id' => 'cart_label_text', |
| 36 |
'type' => 'text', |
| 37 |
'title' => esc_html__( 'Label text on cart', 'merchant' ), |
| 38 |
'default' => esc_html__( 'Ships on', 'merchant' ), |
| 39 |
), |
| 40 |
|
| 41 |
array( |
| 42 |
'id' => 'text-color', |
| 43 |
'type' => 'color', |
| 44 |
'title' => esc_html__( 'Button text color', 'merchant' ), |
| 45 |
'default' => '#FFF', |
| 46 |
), |
| 47 |
|
| 48 |
array( |
| 49 |
'id' => 'text-hover-color', |
| 50 |
'type' => 'color', |
| 51 |
'title' => esc_html__( 'Button text color hover', 'merchant' ), |
| 52 |
'default' => '#FFF', |
| 53 |
), |
| 54 |
|
| 55 |
array( |
| 56 |
'id' => 'border-color', |
| 57 |
'type' => 'color', |
| 58 |
'title' => esc_html__( 'Button border color', 'merchant' ), |
| 59 |
'default' => '#212121', |
| 60 |
), |
| 61 |
|
| 62 |
array( |
| 63 |
'id' => 'border-hover-color', |
| 64 |
'type' => 'color', |
| 65 |
'title' => esc_html__( 'Button border color hover', 'merchant' ), |
| 66 |
'default' => '#414141', |
| 67 |
), |
| 68 |
|
| 69 |
array( |
| 70 |
'id' => 'background-color', |
| 71 |
'type' => 'color', |
| 72 |
'title' => esc_html__( 'Button background color', 'merchant' ), |
| 73 |
'default' => '#212121', |
| 74 |
), |
| 75 |
|
| 76 |
array( |
| 77 |
'id' => 'background-hover-color', |
| 78 |
'type' => 'color', |
| 79 |
'title' => esc_html__( 'Button background color hover', 'merchant' ), |
| 80 |
'default' => '#414141', |
| 81 |
), |
| 82 |
|
| 83 |
), |
| 84 |
) ); |
| 85 |
|