| 1 |
<?php |
| 2 |
/** |
| 3 |
* Inactive Tab Message |
| 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' => 'inactive-tab-message', |
| 18 |
'fields' => array( |
| 19 |
|
| 20 |
array( |
| 21 |
'id' => 'message', |
| 22 |
'type' => 'text', |
| 23 |
'title' => esc_html__( 'Message', 'merchant' ), |
| 24 |
'desc' => esc_html__( 'This message will be shown if there\'s no item in the cart when user switches to another tab', 'merchant' ), |
| 25 |
'default' => esc_html__( '✋ Don\'t forget this', 'merchant' ), |
| 26 |
), |
| 27 |
|
| 28 |
array( |
| 29 |
'id' => 'abandoned_message', |
| 30 |
'type' => 'text', |
| 31 |
'title' => esc_html__( 'Abandoned cart message', 'merchant' ), |
| 32 |
'desc' => esc_html__( 'This message will be shown if the user left items in the cart when user switches to another tab', 'merchant' ), |
| 33 |
'default' => esc_html__( '✋ You left something in the cart', 'merchant' ), |
| 34 |
), |
| 35 |
|
| 36 |
), |
| 37 |
) ); |
| 38 |
|