| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
|
| 5 |
return [ |
| 6 |
|
| 7 |
// Show/Hide Settings |
| 8 |
'show_after' => [ |
| 9 |
'type' => 'number', |
| 10 |
'name' => '[showAfterPosition]', |
| 11 |
'title' => __( 'Show after Position', 'floating-button' ), |
| 12 |
'default' => '0', |
| 13 |
'class' => 'has-addon-right has-background', |
| 14 |
'addon' => 'px', |
| 15 |
], |
| 16 |
|
| 17 |
'hide_after' => [ |
| 18 |
'type' => 'number', |
| 19 |
'name' => '[hideAfterPosition]', |
| 20 |
'title' => __( 'Hide after Position', 'floating-button' ), |
| 21 |
'default' => '0', |
| 22 |
'class' => 'has-addon-right has-background', |
| 23 |
'addon' => 'px', |
| 24 |
], |
| 25 |
|
| 26 |
'timer_show' => [ |
| 27 |
'type' => 'number', |
| 28 |
'name' => '[showAfterTimer]', |
| 29 |
'title' => __( 'Timer for display', 'floating-button' ), |
| 30 |
'default' => 0, |
| 31 |
'class' => 'has-addon-right has-background', |
| 32 |
'addon' => 'sec', |
| 33 |
|
| 34 |
], |
| 35 |
|
| 36 |
'timer_hide' => [ |
| 37 |
'type' => 'number', |
| 38 |
'name' => '[hideAfterTimer]', |
| 39 |
'title' => __( 'Timer for hide', 'floating-button' ), |
| 40 |
'default' => 0, |
| 41 |
'class' => 'has-addon-right has-background', |
| 42 |
'addon' => 'sec', |
| 43 |
], |
| 44 |
|
| 45 |
// Hide sub-buttons |
| 46 |
'click_page' => [ |
| 47 |
'type' => 'checkbox', |
| 48 |
'name' => '[uncheckedBtn]', |
| 49 |
'title' => __( 'By click on page', 'floating-button' ), |
| 50 |
'text' => __( 'Enable', 'floating-button' ), |
| 51 |
], |
| 52 |
|
| 53 |
'click_subBtn' => [ |
| 54 |
'type' => 'checkbox', |
| 55 |
'name' => '[uncheckedSubBtn]', |
| 56 |
'title' => __( 'By click on Sub button', 'floating-button' ), |
| 57 |
'text' => __( 'Enable', 'floating-button' ), |
| 58 |
], |
| 59 |
|
| 60 |
'hide_btn' => [ |
| 61 |
'type' => 'checkbox', |
| 62 |
'name' => '[hideBtns]', |
| 63 |
'title' => __( 'Hide Other Buttons', 'floating-button' ), |
| 64 |
'text' => __( 'Enable', 'floating-button' ), |
| 65 |
'info' => __('Hide other buttons if current button open.','floating-button'), |
| 66 |
], |
| 67 |
|
| 68 |
|
| 69 |
]; |