| 1 |
<?php |
| 2 |
|
| 3 |
use BubbleMenu\Settings_Helper; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
return [ |
| 8 |
//region Label |
| 9 |
'label' => [ |
| 10 |
'type' => 'text', |
| 11 |
'title' => __( 'Label', 'bubble-menu' ), |
| 12 |
], |
| 13 |
|
| 14 |
'label_on' => [ |
| 15 |
'type' => 'checkbox', |
| 16 |
'title' => __( 'Label on', 'bubble-menu' ), |
| 17 |
'label' => __( 'Enable', 'bubble-menu' ), |
| 18 |
], |
| 19 |
|
| 20 |
//endregion |
| 21 |
|
| 22 |
//region Settings |
| 23 |
'position' => [ |
| 24 |
'type' => 'select', |
| 25 |
'title' => __( 'Position', 'bubble-menu' ), |
| 26 |
'value' => '-left', |
| 27 |
'options' => [ |
| 28 |
'-top' => __( 'Top', 'bubble-menu' ), |
| 29 |
'-top-left' => __( 'Top Left', 'bubble-menu' ), |
| 30 |
'-top-right' => __( 'Top Right', 'bubble-menu' ), |
| 31 |
'-right' => __( 'Right', 'bubble-menu' ), |
| 32 |
'-left' => __( 'Left', 'bubble-menu' ), |
| 33 |
'-bottom' => __( 'Bottom', 'bubble-menu' ), |
| 34 |
'-bottom-left' => __( 'Bottom Left', 'bubble-menu' ), |
| 35 |
'-bottom-right' => __( 'Bottom Right', 'bubble-menu' ), |
| 36 |
], |
| 37 |
], |
| 38 |
|
| 39 |
//endregion |
| 40 |
|
| 41 |
//region Icon |
| 42 |
'icon_type' => [ |
| 43 |
'type' => 'select', |
| 44 |
'title' => __( 'Icon Type', 'bubble-menu' ), |
| 45 |
'value' => 'icon', |
| 46 |
'options' => [ |
| 47 |
'icon' => __( 'Icon', 'bubble-menu' ), |
| 48 |
] |
| 49 |
], |
| 50 |
|
| 51 |
'icon' => [ |
| 52 |
'type' => 'text', |
| 53 |
'title' => __( 'Icon', 'bubble-menu' ), |
| 54 |
'value' => 'fas fa-wand-magic-sparkles', |
| 55 |
'options' => [ |
| 56 |
'class' => 'wpie-icon-box', |
| 57 |
] |
| 58 |
], |
| 59 |
|
| 60 |
//endregion |
| 61 |
|
| 62 |
//region Style |
| 63 |
'shapes' => [ |
| 64 |
'type' => 'select', |
| 65 |
'title' => __( 'Shapes', 'bubble-menu' ), |
| 66 |
'value' => '-circle', |
| 67 |
'options' => [ |
| 68 |
'-circle' => __( 'Circle', 'bubble-menu' ), |
| 69 |
'-rounded' => __( 'Rounded square', 'bubble-menu' ), |
| 70 |
'-ellipse' => __( 'Ellipse', 'bubble-menu' ), |
| 71 |
'-square' => __( 'Square', 'bubble-menu' ), |
| 72 |
], |
| 73 |
], |
| 74 |
|
| 75 |
'animation' => [ |
| 76 |
'type' => 'select', |
| 77 |
'title' => __( 'Open Animation', 'bubble-menu' ), |
| 78 |
'value' => '-effect-obo', |
| 79 |
'options' => [ |
| 80 |
'-effect-obo' => __( 'One by one', 'bubble-menu' ), |
| 81 |
'' => __( 'All at once', 'bubble-menu' ), |
| 82 |
], |
| 83 |
], |
| 84 |
|
| 85 |
'size' => [ |
| 86 |
'type' => 'select', |
| 87 |
'title' => __( 'Size', 'bubble-menu' ), |
| 88 |
'value' => '-size-md', |
| 89 |
'options' => [ |
| 90 |
'-size-xs' => __( 'Extra Small', 'bubble-menu' ), |
| 91 |
'-size-sm' => __( 'Small', 'bubble-menu' ), |
| 92 |
'-size-md' => __( 'Medium', 'bubble-menu' ), |
| 93 |
'-size-lg' => __( 'Large', 'bubble-menu' ), |
| 94 |
'-size-xl' => __( 'Extra Large', 'bubble-menu' ), |
| 95 |
'-size-xxl' => __( 'Extra Extra Large', 'bubble-menu' ), |
| 96 |
], |
| 97 |
], |
| 98 |
|
| 99 |
'shadow' => [ |
| 100 |
'type' => 'select', |
| 101 |
'title' => __( 'Shadow', 'bubble-menu' ), |
| 102 |
'options' => [ |
| 103 |
'' => __( 'Yes', 'bubble-menu' ), |
| 104 |
'-shadowless' => __( 'No', 'bubble-menu' ), |
| 105 |
] |
| 106 |
], |
| 107 |
|
| 108 |
|
| 109 |
'color' => [ |
| 110 |
'type' => 'text', |
| 111 |
'value' => '#14102C', |
| 112 |
'title' => __( 'Color', 'bubble-menu' ), |
| 113 |
'options' => [ |
| 114 |
'class' => 'wpie-color', |
| 115 |
'data-alpha-enabled' => 'true', |
| 116 |
], |
| 117 |
], |
| 118 |
|
| 119 |
'background_color' => [ |
| 120 |
'type' => 'text', |
| 121 |
'title' => __( 'Background color', 'bubble-menu' ), |
| 122 |
'value' => '#ffffff', |
| 123 |
'options' => [ |
| 124 |
'class' => 'wpie-color', |
| 125 |
'data-alpha-enabled' => 'true', |
| 126 |
], |
| 127 |
], |
| 128 |
|
| 129 |
'label_position' => [ |
| 130 |
'type' => 'select', |
| 131 |
'title' => __( 'Position', 'bubble-menu' ), |
| 132 |
'options' => Settings_Helper::label_position() |
| 133 |
], |
| 134 |
//endregion |
| 135 |
|
| 136 |
//region Attributes |
| 137 |
'attribute_id' => [ |
| 138 |
'type' => 'text', |
| 139 |
'title' => __( 'Attribute ID', 'bubble-menu' ), |
| 140 |
], |
| 141 |
'attribute_class' => [ |
| 142 |
'type' => 'text', |
| 143 |
'title' => __( 'Attribute Class', 'bubble-menu' ), |
| 144 |
], |
| 145 |
|
| 146 |
'attribute_rel' => [ |
| 147 |
'type' => 'text', |
| 148 |
'title' => __( 'Attribute Rel', 'bubble-menu' ), |
| 149 |
], |
| 150 |
//endregion |
| 151 |
]; |
| 152 |
|
| 153 |
|
| 154 |
|