| 1 |
<?php |
| 2 |
/** |
| 3 |
* Main 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 menu will show on the frontend. If uncheck - menu not displayed on the frontend.', $this->plugin['text'] ), |
| 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 menu will show for admin only.', $this->plugin['text'] ), |
| 35 |
); |
| 36 |
|
| 37 |
$tax_args = array( |
| 38 |
'public' => true, |
| 39 |
'_builtin' => false |
| 40 |
); |
| 41 |
$output = 'names'; |
| 42 |
$operator = 'and'; |
| 43 |
$taxonomies = get_taxonomies( $tax_args, $output, $operator ); |
| 44 |
|
| 45 |
$show_option = array( |
| 46 |
'all' => esc_attr__( 'All posts and pages', 'float-menu' ), |
| 47 |
'shortecode' => esc_attr__( 'Shortcode', 'float-menu' ), |
| 48 |
); |
| 49 |
|
| 50 |
|
| 51 |
$show = array( |
| 52 |
'id' => 'show', |
| 53 |
'name' => 'param[show]', |
| 54 |
'type' => 'select', |
| 55 |
'val' => isset( $param['show'] ) ? $param['show'] : 'all', |
| 56 |
'option' => $show_option, |
| 57 |
'func' => 'showchange(this);', |
| 58 |
'sep' => 'p', |
| 59 |
); |
| 60 |
|
| 61 |
$show_help = array( |
| 62 |
'text' => esc_attr__( 'Choose a condition to target to specific content.', $this->plugin['text'] ), |
| 63 |
); |