| 1 |
<?php |
| 2 |
/** |
| 3 |
* General Settings |
| 4 |
* |
| 5 |
* @package Wow_Plugin |
| 6 |
* @copyright Copyright (c) 2018, Dmytro Lobov |
| 7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 8 |
* @since 1.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
$menu_status = array( |
| 16 |
'id' => 'menu_status', |
| 17 |
'name' => 'param[menu_status]', |
| 18 |
'type' => 'checkbox', |
| 19 |
'val' => isset( $param['menu_status'] ) ? $param['menu_status'] : 1, |
| 20 |
); |
| 21 |
|
| 22 |
$menu_status_help = array( |
| 23 |
'text' => esc_attr__( 'If check - the popup will show on the frontend. If uncheck - popup not displayed on the frontend.', 'floating-button' ), |
| 24 |
); |
| 25 |
|
| 26 |
$test_mode = array( |
| 27 |
'id' => 'test_mode', |
| 28 |
'name' => 'param[test_mode]', |
| 29 |
'type' => 'checkbox', |
| 30 |
'val' => isset( $param['test_mode'] ) ? $param['test_mode'] : 0, |
| 31 |
); |
| 32 |
|
| 33 |
$test_mode_help = array( |
| 34 |
'text' => esc_attr__( 'If test mode is enabled, the popup will show for admin only.', 'floating-button' ), |
| 35 |
); |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
$show_option = array( |
| 40 |
'all' => esc_attr__( 'All posts and pages', 'floating-button' ), |
| 41 |
'shortecode' => esc_attr__( 'Where shortcode is inserted', 'floating-button' ), |
| 42 |
); |
| 43 |
|
| 44 |
$show = array( |
| 45 |
'id' => 'show', |
| 46 |
'name' => 'param[show]', |
| 47 |
'type' => 'select', |
| 48 |
'val' => isset( $param['show'] ) ? $param['show'] : 'all', |
| 49 |
'option' => $show_option, |
| 50 |
'func' => 'showchange(this);', |
| 51 |
'sep' => '<p/>', |
| 52 |
); |
| 53 |
|
| 54 |
$show_help = array( |
| 55 |
'text' => esc_attr__( 'Choose a condition to target to specific content.', 'floating-button' ), |
| 56 |
); |