| 1 |
<?php |
| 2 |
/** |
| 3 |
* Merchant Buy Now |
| 4 |
*/ |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly |
| 8 |
} |
| 9 |
|
| 10 |
/** |
| 11 |
* Settings |
| 12 |
*/ |
| 13 |
Merchant_Admin_Options::create( array( |
| 14 |
'title' => esc_html__( 'Settings', 'merchant' ), |
| 15 |
'module' => 'buy-now', |
| 16 |
'fields' => array( |
| 17 |
|
| 18 |
array( |
| 19 |
'id' => 'button-text', |
| 20 |
'type' => 'text', |
| 21 |
'title' => esc_html__( 'Button text', 'merchant' ), |
| 22 |
'default' => esc_html__( 'Buy Now', 'merchant' ), |
| 23 |
), |
| 24 |
|
| 25 |
array( |
| 26 |
'id' => 'text-color', |
| 27 |
'type' => 'color', |
| 28 |
'title' => esc_html__( 'Button text color', 'merchant' ), |
| 29 |
'default' => '#ffffff', |
| 30 |
), |
| 31 |
|
| 32 |
array( |
| 33 |
'id' => 'text-hover-color', |
| 34 |
'type' => 'color', |
| 35 |
'title' => esc_html__( 'Button text color hover', 'merchant' ), |
| 36 |
'default' => '#ffffff', |
| 37 |
), |
| 38 |
|
| 39 |
array( |
| 40 |
'id' => 'border-color', |
| 41 |
'type' => 'color', |
| 42 |
'title' => esc_html__( 'Button border color', 'merchant' ), |
| 43 |
'default' => '#212121', |
| 44 |
), |
| 45 |
|
| 46 |
array( |
| 47 |
'id' => 'border-hover-color', |
| 48 |
'type' => 'color', |
| 49 |
'title' => esc_html__( 'Button border color hover', 'merchant' ), |
| 50 |
'default' => '#414141', |
| 51 |
), |
| 52 |
|
| 53 |
array( |
| 54 |
'id' => 'background-color', |
| 55 |
'type' => 'color', |
| 56 |
'title' => esc_html__( 'Button background color', 'merchant' ), |
| 57 |
'default' => '#212121', |
| 58 |
), |
| 59 |
|
| 60 |
array( |
| 61 |
'id' => 'background-hover-color', |
| 62 |
'type' => 'color', |
| 63 |
'title' => esc_html__( 'Button background color hover', 'merchant' ), |
| 64 |
'default' => '#414141', |
| 65 |
), |
| 66 |
|
| 67 |
), |
| 68 |
) ); |
| 69 |
|