| 1 |
<?php |
| 2 |
|
| 3 |
use FloatMenuLite\Settings_Helper; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
$args = [ |
| 8 |
'item_tooltip' => [ |
| 9 |
'type' => 'text', |
| 10 |
'title' => __( 'Label Text', 'float-menu' ), |
| 11 |
], |
| 12 |
|
| 13 |
|
| 14 |
'item_type' => [ |
| 15 |
'type' => 'select', |
| 16 |
'title' => __( 'Type', 'float-menu' ), |
| 17 |
'atts' => Settings_Helper::item_type(), |
| 18 |
], |
| 19 |
|
| 20 |
'item_link' => [ |
| 21 |
'type' => 'text', |
| 22 |
'title' => __( 'Link', 'float-menu' ), |
| 23 |
'class' => 'is-hidden', |
| 24 |
], |
| 25 |
|
| 26 |
'new_tab' => [ |
| 27 |
'type' => 'checkbox', |
| 28 |
'title' => __( 'Open in new Window', 'float-menu' ), |
| 29 |
'label' => __( 'Enable', 'float-menu' ), |
| 30 |
'class' => 'is-hidden', |
| 31 |
], |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
// Icons |
| 36 |
'item_icon' => [ |
| 37 |
'type' => 'select', |
| 38 |
'title' => __( 'Icon', 'float-menu' ), |
| 39 |
'atts' => Settings_Helper::icons(), |
| 40 |
], |
| 41 |
|
| 42 |
|
| 43 |
// Style |
| 44 |
'color' => [ |
| 45 |
'type' => 'text', |
| 46 |
'val' => '#ffffff', |
| 47 |
'atts' => [ |
| 48 |
'class' => 'wpie-color', |
| 49 |
'data-alpha-enabled' => 'true', |
| 50 |
], |
| 51 |
'title' => __( 'Color', 'float-menu' ), |
| 52 |
], |
| 53 |
|
| 54 |
'hcolor' => [ |
| 55 |
'type' => 'text', |
| 56 |
'val' => '#ffffff', |
| 57 |
'atts' => [ |
| 58 |
'class' => 'wpie-color', |
| 59 |
'data-alpha-enabled' => 'true', |
| 60 |
], |
| 61 |
'title' => __( 'Hover Color', 'float-menu' ), |
| 62 |
], |
| 63 |
|
| 64 |
'bcolor' => [ |
| 65 |
'type' => 'text', |
| 66 |
'val' => '#184c72', |
| 67 |
'atts' => [ |
| 68 |
'class' => 'wpie-color', |
| 69 |
'data-alpha-enabled' => 'true', |
| 70 |
], |
| 71 |
'title' => __( 'Background', 'float-menu' ), |
| 72 |
], |
| 73 |
|
| 74 |
'hbcolor' => [ |
| 75 |
'type' => 'text', |
| 76 |
'val' => '#184c72', |
| 77 |
'atts' => [ |
| 78 |
'class' => 'wpie-color', |
| 79 |
'data-alpha-enabled' => 'true', |
| 80 |
], |
| 81 |
'title' => __( 'Hover Background', 'float-menu' ), |
| 82 |
], |
| 83 |
|
| 84 |
|
| 85 |
// Attributes |
| 86 |
'button_id' => [ |
| 87 |
'type' => 'text', |
| 88 |
'title' => __( 'ID for element', 'float-menu' ), |
| 89 |
], |
| 90 |
|
| 91 |
'button_class' => [ |
| 92 |
'type' => 'text', |
| 93 |
'title' => __( 'Class for element', 'float-menu' ), |
| 94 |
], |
| 95 |
|
| 96 |
'link_rel' => [ |
| 97 |
'type' => 'text', |
| 98 |
'title' => __( 'Attribute: rel', 'float-menu' ), |
| 99 |
], |
| 100 |
|
| 101 |
|
| 102 |
]; |
| 103 |
|
| 104 |
$prefix = 'menu_1-'; |
| 105 |
$newArgs = []; |
| 106 |
|
| 107 |
foreach ( $args as $key => $value ) { |
| 108 |
$newArgs[ $prefix . $key ] = $value; |
| 109 |
} |
| 110 |
|
| 111 |
return $newArgs; |