| 1 |
<?php |
| 2 |
|
| 3 |
use ButtonGenerator\Settings_Helper; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
return [ |
| 8 |
|
| 9 |
'appearance' => [ |
| 10 |
'type' => 'select', |
| 11 |
'title' => __( 'Appearance', 'button-generation' ), |
| 12 |
'atts' => [ |
| 13 |
'text' => __( 'Only Text', 'button-generation' ), |
| 14 |
'text_icon' => __( 'Text & Icon', 'button-generation' ), |
| 15 |
'icon' => __( 'Icon', 'button-generation' ), |
| 16 |
], |
| 17 |
], |
| 18 |
|
| 19 |
'text' => [ |
| 20 |
'type' => 'text', |
| 21 |
'title' => __( 'Text', 'button-generation' ), |
| 22 |
'val' => __( 'Text', 'button-generation' ), |
| 23 |
], |
| 24 |
|
| 25 |
'text_location' => [ |
| 26 |
'type' => 'select', |
| 27 |
'title' => __( 'Text location', 'button-generation' ), |
| 28 |
'atts' => [ |
| 29 |
'row' => __( 'Before Icon', 'button-generation' ), |
| 30 |
'row-reverse' => __( 'After Icon', 'button-generation' ), |
| 31 |
'column' => __( 'Above the icon', 'button-generation' ), |
| 32 |
'column-reverse' => __( 'Under the icon', 'button-generation' ), |
| 33 |
], |
| 34 |
], |
| 35 |
|
| 36 |
'gap' => [ |
| 37 |
'type' => 'number', |
| 38 |
'title' => __( 'Gap', 'button-generation' ), |
| 39 |
'val' => 8, |
| 40 |
'addon' => 'px', |
| 41 |
], |
| 42 |
|
| 43 |
|
| 44 |
'icon' => [ |
| 45 |
'type' => 'text', |
| 46 |
'title' => __( 'Icon', 'button-generation' ), |
| 47 |
'addon' => [ |
| 48 |
'name' => 'icon_type', |
| 49 |
'type' => 'select', |
| 50 |
'val' => 'icon', |
| 51 |
'atts' => [ |
| 52 |
'icon' => __( 'Icons', 'button-generation' ), |
| 53 |
] |
| 54 |
], |
| 55 |
'atts' => [ |
| 56 |
'class' => 'wpie-icon-picker', |
| 57 |
], |
| 58 |
], |
| 59 |
|
| 60 |
'rotate_icon' => [ |
| 61 |
'type' => 'select', |
| 62 |
'title' => __( 'Rotate icon', 'button-generation' ), |
| 63 |
'atts' => [ |
| 64 |
'' => __( 'None', 'button-generation' ), |
| 65 |
'fa-rotate-90' => '90°', |
| 66 |
'fa-rotate-180' => '180°', |
| 67 |
'fa-rotate-270' => '270°', |
| 68 |
'custom' => __( 'Custom', 'button-generation' ), |
| 69 |
], |
| 70 |
], |
| 71 |
|
| 72 |
'rotate_icon_custom' => [ |
| 73 |
'type' => 'number', |
| 74 |
'title' => __( 'Degree', 'button-generation' ), |
| 75 |
'val' => 0, |
| 76 |
'addon' => '°', |
| 77 |
], |
| 78 |
|
| 79 |
'item_type' => [ |
| 80 |
'type' => 'select', |
| 81 |
'title' => __( 'Item type', 'button-generation' ), |
| 82 |
'atts' => Settings_Helper::item_type(), |
| 83 |
], |
| 84 |
|
| 85 |
'item_link' => [ |
| 86 |
'type' => 'text', |
| 87 |
'title' => __( 'Link', 'button-generation' ), |
| 88 |
'class' => 'is-hidden', |
| 89 |
], |
| 90 |
|
| 91 |
'button_class' => [ |
| 92 |
'type' => 'text', |
| 93 |
'title' => __( 'Class', 'button-generation' ), |
| 94 |
], |
| 95 |
|
| 96 |
'button_id' => [ |
| 97 |
'type' => 'text', |
| 98 |
'title' => __( 'ID', 'button-generation' ), |
| 99 |
], |
| 100 |
|
| 101 |
'aria_label' => [ |
| 102 |
'type' => 'text', |
| 103 |
'title' => __( 'Aria label', 'button-generation' ), |
| 104 |
], |
| 105 |
|
| 106 |
]; |