| 1 |
<?php |
| 2 |
/** |
| 3 |
* Display options |
| 4 |
* |
| 5 |
* @package Lead_Generation |
| 6 |
* @subpackage Settings |
| 7 |
* @copyright Copyright (c) 2018, Dmytro Lobov |
| 8 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 |
* @since 1.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
// Enable Don’t show on screens more than |
| 17 |
$include_more_screen = array( |
| 18 |
'id' => 'include_more_screen', |
| 19 |
'name' => 'param[include_more_screen]', |
| 20 |
'type' => 'checkbox', |
| 21 |
'val' => isset( $param['include_more_screen'] ) ? $param['include_more_screen'] : 0, |
| 22 |
'func' => 'screen_more(this);', |
| 23 |
); |
| 24 |
|
| 25 |
// Show on screens helper |
| 26 |
$show_screen_help = array( |
| 27 |
'text' => esc_attr__( 'Specify the window breakpoint in px when the button will be shown.', 'floating-button' ), |
| 28 |
); |
| 29 |
|
| 30 |
// Max screen value |
| 31 |
$screen_more = array( |
| 32 |
'id' => 'screenmore', |
| 33 |
'name' => 'param[screen_more]', |
| 34 |
'type' => 'number', |
| 35 |
'val' => isset( $param['screen_more'] ) ? $param['screen_more'] : 1024, |
| 36 |
'option' => array( |
| 37 |
'min' => '0', |
| 38 |
'max' => '3000', |
| 39 |
'step' => '1', |
| 40 |
'placeholder' => '1024', |
| 41 |
), |
| 42 |
); |
| 43 |
|
| 44 |
// Enable Don’t show on screens less than |
| 45 |
$include_mobile = array( |
| 46 |
'id' => 'include_mobile', |
| 47 |
'name' => 'param[include_mobile]', |
| 48 |
'type' => 'checkbox', |
| 49 |
'val' => isset( $param['include_mobile'] ) ? $param['include_mobile'] : 0, |
| 50 |
'func' => 'screen_less(this);', |
| 51 |
); |
| 52 |
|
| 53 |
// Enable Don’t show on screens less than helper |
| 54 |
$include_mobile_help = array( |
| 55 |
'text' => esc_attr__( 'Specify the window breakpoint ( mix width) in px.', 'floating-button' ), |
| 56 |
); |
| 57 |
|
| 58 |
// Min screen value |
| 59 |
$screen = array( |
| 60 |
'id' => 'screen', |
| 61 |
'name' => 'param[screen]', |
| 62 |
'type' => 'number', |
| 63 |
'val' => isset( $param['screen'] ) ? $param['screen'] : 480, |
| 64 |
'option' => array( |
| 65 |
'min' => '0', |
| 66 |
'max' => '3000', |
| 67 |
'step' => '1', |
| 68 |
'placeholder' => '480', |
| 69 |
), |
| 70 |
); |
| 71 |
|
| 72 |
// Disable FontAwesome on front-end of the site |
| 73 |
$disable_fontawesome = array( |
| 74 |
'id' => 'disable_fontawesome', |
| 75 |
'name' => 'param[disable_fontawesome]', |
| 76 |
'type' => 'checkbox', |
| 77 |
'val' => isset( $param['disable_fontawesome'] ) ? $param['disable_fontawesome'] : 0, |
| 78 |
); |
| 79 |
|
| 80 |
$disable_fontawesome_help = array( |
| 81 |
'title' => esc_attr__( 'Disable Font Awesome 5 style on front-end of the site.', 'floating-button' ), |
| 82 |
'ul' => array( |
| 83 |
__( 'If you already have a Font Awesome 5 installed on the site, you can disable the include the Font Awesome 5 style.', |
| 84 |
'floating-button' ), |
| 85 |
), |
| 86 |
); |
| 87 |
|