| 1 |
<?php |
| 2 |
|
| 3 |
use FloatingButton\Dashboard\FieldHelper; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
return [ |
| 8 |
'position' => [ |
| 9 |
'type' => 'select', |
| 10 |
'name' => '[position]', |
| 11 |
'title' => __( 'Position', 'floating-button' ), |
| 12 |
'default' => 'flBtn-position-br', |
| 13 |
'options' => FieldHelper::btn_position(), |
| 14 |
], |
| 15 |
'v_offset' => [ |
| 16 |
'type' => 'number', |
| 17 |
'name' => '[v_offset]', |
| 18 |
'title' => __( 'Vertical offset', 'floating-button' ), |
| 19 |
'default' => '0', |
| 20 |
'class' => 'has-addon-right has-background', |
| 21 |
'addon' => 'px', |
| 22 |
], |
| 23 |
|
| 24 |
'h_offset' => [ |
| 25 |
'type' => 'number', |
| 26 |
'name' => '[h_offset]', |
| 27 |
'title' => __( 'Horizontal offset', 'floating-button' ), |
| 28 |
'default' => '0', |
| 29 |
'class' => 'has-addon-right has-background', |
| 30 |
'addon' => 'px', |
| 31 |
], |
| 32 |
|
| 33 |
'sub_btn_animation' => [ |
| 34 |
'type' => 'select', |
| 35 |
'name' => '[animation]', |
| 36 |
'title' => __( 'Sub-buttons Animation', 'floating-button' ), |
| 37 |
'options' => FieldHelper::btn_animation(), |
| 38 |
], |
| 39 |
|
| 40 |
'shape' => [ |
| 41 |
'type' => 'select', |
| 42 |
'name' => '[shape]', |
| 43 |
'title' => __( 'Shape', 'floating-button' ), |
| 44 |
'default' => 'flBtn-shape-circle', |
| 45 |
'options' => FieldHelper::btn_shape(), |
| 46 |
], |
| 47 |
|
| 48 |
'size' => [ |
| 49 |
'type' => 'select', |
| 50 |
'name' => '[size]', |
| 51 |
'title' => __( 'Size', 'floating-button' ), |
| 52 |
'default' => 'flBtn-size-medium', |
| 53 |
'options' => FieldHelper::btn_size(), |
| 54 |
], |
| 55 |
|
| 56 |
'label_size' => [ |
| 57 |
'type' => 'number', |
| 58 |
'name' => '[label_size]', |
| 59 |
'title' => __( 'Button font size', 'floating-button' ), |
| 60 |
'default' => '24', |
| 61 |
'class' => 'has-addon-right has-background', |
| 62 |
'addon' => 'px', |
| 63 |
], |
| 64 |
|
| 65 |
'label_box' => [ |
| 66 |
'type' => 'number', |
| 67 |
'name' => '[label_box]', |
| 68 |
'title' => __( 'Button box size', 'floating-button' ), |
| 69 |
'default' => '60', |
| 70 |
'class' => 'has-addon-right has-background', |
| 71 |
'addon' => 'px', |
| 72 |
], |
| 73 |
|
| 74 |
|
| 75 |
'ul_size' => [ |
| 76 |
'type' => 'number', |
| 77 |
'name' => '[ul_size]', |
| 78 |
'title' => __( 'Sub Buttons size', 'floating-button' ), |
| 79 |
'default' => '16', |
| 80 |
'class' => 'has-addon-right has-background', |
| 81 |
'addon' => 'px', |
| 82 |
], |
| 83 |
|
| 84 |
'ul_box' => [ |
| 85 |
'type' => 'number', |
| 86 |
'name' => '[ul_box]', |
| 87 |
'title' => __( 'Sub Buttons box size', 'floating-button' ), |
| 88 |
'default' => '40', |
| 89 |
'class' => 'has-addon-right has-background', |
| 90 |
'addon' => 'px', |
| 91 |
], |
| 92 |
|
| 93 |
'shadow' => [ |
| 94 |
'type' => 'select', |
| 95 |
'name' => '[shadow]', |
| 96 |
'title' => __( 'Shadow', 'floating-button' ), |
| 97 |
'default' => '', |
| 98 |
'options' => FieldHelper::btn_shadow(), |
| 99 |
], |
| 100 |
|
| 101 |
// Tooltip |
| 102 |
'tooltip_size_check' => [ |
| 103 |
'type' => 'select', |
| 104 |
'name' => '[tooltip_size_check]', |
| 105 |
'title' => __( 'Font size', 'floating-button' ), |
| 106 |
'options' => [ |
| 107 |
'default' => __( 'Default', 'floating-button' ), |
| 108 |
], |
| 109 |
], |
| 110 |
|
| 111 |
'tooltip_size' => [ |
| 112 |
'type' => 'number', |
| 113 |
'name' => '[tooltip_size]', |
| 114 |
'title' => __( 'Size for main button', 'floating-button' ), |
| 115 |
'default' => '24', |
| 116 |
'class' => 'has-addon-right has-background tooltip-size', |
| 117 |
'addon' => 'px', |
| 118 |
], |
| 119 |
|
| 120 |
'tooltip_ul_size' => [ |
| 121 |
'type' => 'number', |
| 122 |
'name' => '[tooltip_ul_size]', |
| 123 |
'title' => __( 'Size for main sub buttons', 'floating-button' ), |
| 124 |
'default' => '16', |
| 125 |
'class' => 'has-addon-right has-background tooltip-size', |
| 126 |
'addon' => 'px', |
| 127 |
], |
| 128 |
|
| 129 |
'tooltip_bg' => [ |
| 130 |
'type' => 'color', |
| 131 |
'name' => '[tooltip_background]', |
| 132 |
'title' => __( 'Tooltip background', 'floating-button' ), |
| 133 |
'default' => '#585858', |
| 134 |
], |
| 135 |
'tooltip_color' => [ |
| 136 |
'type' => 'color', |
| 137 |
'name' => '[tooltip_color]', |
| 138 |
'title' => __( 'Tooltip color', 'floating-button' ), |
| 139 |
'default' => '#ffffff', |
| 140 |
], |
| 141 |
|
| 142 |
'extra_style' => [ |
| 143 |
'type' => 'textarea', |
| 144 |
'name' => '[extra_style]', |
| 145 |
'class' => 'is-full' |
| 146 |
], |
| 147 |
]; |
| 148 |
|