| 1 |
<?php |
| 2 |
|
| 3 |
$menus_array = []; |
| 4 |
foreach(get_terms('nav_menu') as $menu) $menus_array[] = [ 'value' => $menu->slug, 'display' => $menu->name]; |
| 5 |
foreach(get_registered_nav_menus() as $location => $menu) $location_menus[] = ['value' => $location, 'display' => $menu]; |
| 6 |
$location_menus[] = ['value' => '', 'display' => 'None']; |
| 7 |
|
| 8 |
$unit_options = [ |
| 9 |
['value' => 'px', 'display' => 'px'], |
| 10 |
['value' => 'em', 'display' => 'em', 'disabled' => true], |
| 11 |
['value' => 'rem', 'display' => 'rem', 'disabled' => true], |
| 12 |
['value' => '%', 'display' => '%', 'disabled' => true] |
| 13 |
]; |
| 14 |
|
| 15 |
$percentage_unit_options = [ |
| 16 |
['value' => 'px', 'display' => 'px', 'disabled' => true], |
| 17 |
['value' => 'em', 'display' => 'em', 'disabled' => true], |
| 18 |
['value' => 'rem', 'display' => 'rem', 'disabled' => true], |
| 19 |
['value' => '%', 'display' => '%'] |
| 20 |
]; |
| 21 |
|
| 22 |
$order_mapping = [ |
| 23 |
|
| 24 |
/* |
| 25 |
* |
| 26 |
* INITIAL SETUP |
| 27 |
* |
| 28 |
*/ |
| 29 |
|
| 30 |
__('Initial Setup', 'responsive-menu') => [ |
| 31 |
__('Menu', 'responsive-menu') => |
| 32 |
[ |
| 33 |
[ |
| 34 |
'option' => 'breakpoint', |
| 35 |
'title' => __('Breakpoint', 'responsive-menu'), |
| 36 |
'label' => __('This is the width of the screen at which point you would like the menu to start showing', 'responsive-menu'), |
| 37 |
'unit' => 'px' |
| 38 |
], |
| 39 |
[ |
| 40 |
'option' => 'menu_to_use', |
| 41 |
'title' => __('Menu to Use', 'responsive-menu'), |
| 42 |
'label' => __('', 'responsive-menu'), |
| 43 |
'type' => 'select', |
| 44 |
'select' => $menus_array |
| 45 |
], |
| 46 |
[ |
| 47 |
'option' => 'menu_to_hide', |
| 48 |
'title' => __('CSS of Menu to Hide', 'responsive-menu'), |
| 49 |
'label' => __('', 'responsive-menu') |
| 50 |
] |
| 51 |
] |
| 52 |
], |
| 53 |
|
| 54 |
|
| 55 |
/* |
| 56 |
* |
| 57 |
* MENU |
| 58 |
* |
| 59 |
*/ |
| 60 |
|
| 61 |
__('Menu', 'responsive-menu') => [ |
| 62 |
__('Section Ordering', 'responsive-menu') => [ |
| 63 |
[ |
| 64 |
'option' => 'items_order', |
| 65 |
'title' => __('Order of Menu Items', 'responsive-menu'), |
| 66 |
'label' => __('Drag the items to re-order and click to turn them on/off', 'responsive-menu'), |
| 67 |
'type' => 'menu_ordering' |
| 68 |
] |
| 69 |
], |
| 70 |
__('Font Icons', 'responsive-menu') => |
| 71 |
[ |
| 72 |
[ |
| 73 |
'option' => 'menu_font_icons', |
| 74 |
'title' => __('Font Icons', 'responsive-menu'), |
| 75 |
'label' => __('Responsive Menu uses the brilliant <a href="http://fontawesome.io/icons/" target="_blank">Awesome Font Icons</a> for implementing icons in your menu - for more info please visit our doc pages at <a href="https://responsive.menu/docs/basic-setup/font-icons/" target="_blank">https://responsive.menu/docs/basic-setup/font-icons/</a>', 'responsive-menu'), |
| 76 |
'type' => 'fonticons', |
| 77 |
'pro' => true |
| 78 |
] |
| 79 |
], |
| 80 |
__('Sizing', 'responsive-menu') => |
| 81 |
[ |
| 82 |
[ |
| 83 |
'option' => 'menu_width', |
| 84 |
'title' => __('Menu Width', 'responsive-menu'), |
| 85 |
'label' => __('', 'responsive-menu'), |
| 86 |
'semi_pro' => true, |
| 87 |
'sub_options' => |
| 88 |
[ |
| 89 |
[ |
| 90 |
'option' => 'menu_width_unit', |
| 91 |
'type' => 'select', |
| 92 |
'select' => $percentage_unit_options |
| 93 |
] |
| 94 |
] |
| 95 |
], |
| 96 |
[ |
| 97 |
'option' => 'menu_maximum_width', |
| 98 |
'title' => __('Maximum Width', 'responsive-menu'), |
| 99 |
'label' => __('', 'responsive-menu'), |
| 100 |
'semi_pro' => true, |
| 101 |
'sub_options' => |
| 102 |
[ |
| 103 |
[ |
| 104 |
'option' => 'menu_maximum_width_unit', |
| 105 |
'type' => 'select', |
| 106 |
'select' => $unit_options |
| 107 |
] |
| 108 |
] |
| 109 |
], |
| 110 |
[ |
| 111 |
'option' => 'menu_minimum_width', |
| 112 |
'title' => __('Minimum Width', 'responsive-menu'), |
| 113 |
'label' => __('', 'responsive-menu'), |
| 114 |
'semi_pro' => true, |
| 115 |
'sub_options' => |
| 116 |
[ |
| 117 |
[ |
| 118 |
'option' => 'menu_minimum_width_unit', |
| 119 |
'type' => 'select', |
| 120 |
'select' => $unit_options |
| 121 |
] |
| 122 |
] |
| 123 |
], |
| 124 |
[ |
| 125 |
'option' => 'menu_links_height', |
| 126 |
'title' => __('Links Height', 'responsive-menu'), |
| 127 |
'label' => __('', 'responsive-menu'), |
| 128 |
'semi_pro' => true, |
| 129 |
'sub_options' => |
| 130 |
[ |
| 131 |
[ |
| 132 |
'option' => 'menu_links_height_unit', |
| 133 |
'type' => 'select', |
| 134 |
'select' => $unit_options |
| 135 |
] |
| 136 |
] |
| 137 |
], |
| 138 |
[ |
| 139 |
'option' => 'menu_border_width', |
| 140 |
'title' => __('Border Width', 'responsive-menu'), |
| 141 |
'label' => __('', 'responsive-menu'), |
| 142 |
'semi_pro' => true, |
| 143 |
'sub_options' => |
| 144 |
[ |
| 145 |
[ |
| 146 |
'option' => 'menu_border_width_unit', |
| 147 |
'type' => 'select', |
| 148 |
'select' => $unit_options |
| 149 |
] |
| 150 |
] |
| 151 |
], |
| 152 |
[ |
| 153 |
'option' => 'menu_auto_height', |
| 154 |
'title' => __('Menu Auto Height', 'responsive-menu'), |
| 155 |
'label' => __('', 'responsive-menu'), |
| 156 |
'type' => 'checkbox', |
| 157 |
'pro' => true |
| 158 |
], |
| 159 |
], |
| 160 |
__('Title', 'responsive-menu') => |
| 161 |
[ |
| 162 |
[ |
| 163 |
'option' => 'menu_title', |
| 164 |
'title' => __('Text', 'responsive-menu'), |
| 165 |
'label' => __('', 'responsive-menu') |
| 166 |
], |
| 167 |
[ |
| 168 |
'option' => 'menu_title_link', |
| 169 |
'title' => __('Link', 'responsive-menu'), |
| 170 |
'label' => __('', 'responsive-menu'), |
| 171 |
], |
| 172 |
[ |
| 173 |
'option' => 'menu_title_link_location', |
| 174 |
'title' => __('Link Location', 'responsive-menu'), |
| 175 |
'label' => __('', 'responsive-menu'), |
| 176 |
'type' => 'select', |
| 177 |
'select' => [ |
| 178 |
['value' => '_blank', 'display' => 'New Tab'], |
| 179 |
['value' => '_self', 'display' => 'Same Page'], |
| 180 |
['value' => '_parent', 'display' => 'Parent Page'], |
| 181 |
['value' => '_top', 'display' => 'Full Window Body'] |
| 182 |
] |
| 183 |
], |
| 184 |
[ |
| 185 |
'option' => 'menu_title_font_size', |
| 186 |
'title' => __('Title Font Size', 'responsive-menu'), |
| 187 |
'label' => __('', 'responsive-menu'), |
| 188 |
'semi_pro' => true, |
| 189 |
'sub_options' => |
| 190 |
[ |
| 191 |
[ |
| 192 |
'option' => 'menu_title_font_size_unit', |
| 193 |
'type' => 'select', |
| 194 |
'select' => $unit_options |
| 195 |
] |
| 196 |
] |
| 197 |
], |
| 198 |
[ |
| 199 |
'option' => 'menu_title_font_icon', |
| 200 |
'title' => __('Font Icon', 'responsive-menu'), |
| 201 |
'label' => __('', 'responsive-menu'), |
| 202 |
'pro' => true |
| 203 |
], |
| 204 |
[ |
| 205 |
'option' => 'menu_title_image', |
| 206 |
'title' => __('Image', 'responsive-menu'), |
| 207 |
'label' => __('', 'responsive-menu'), |
| 208 |
'type' => 'image' |
| 209 |
], |
| 210 |
[ |
| 211 |
'option' => 'menu_title_image_alt', |
| 212 |
'title' => __('Alt Text', 'responsive-menu'), |
| 213 |
'label' => __('', 'responsive-menu'), |
| 214 |
], |
| 215 |
[ |
| 216 |
'option' => 'menu_title_background_colour', |
| 217 |
'title' => __('Title Background Colour', 'responsive-menu'), |
| 218 |
'label' => __('', 'responsive-menu'), |
| 219 |
'type' => 'colour', |
| 220 |
'semi_pro' => true |
| 221 |
], |
| 222 |
[ |
| 223 |
'option' => 'menu_title_background_hover_colour', |
| 224 |
'title' => __('Title Background Colour Hover', 'responsive-menu'), |
| 225 |
'label' => __('', 'responsive-menu'), |
| 226 |
'type' => 'colour', |
| 227 |
'semi_pro' => true |
| 228 |
], |
| 229 |
[ |
| 230 |
'option' => 'menu_title_colour', |
| 231 |
'title' => __('Title Colour', 'responsive-menu'), |
| 232 |
'label' => __('', 'responsive-menu'), |
| 233 |
'type' => 'colour', |
| 234 |
'semi_pro' => true |
| 235 |
], |
| 236 |
[ |
| 237 |
'option' => 'menu_title_hover_colour', |
| 238 |
'title' => __('Title Hover Colour', 'responsive-menu'), |
| 239 |
'label' => __('', 'responsive-menu'), |
| 240 |
'type' => 'colour', |
| 241 |
'semi_pro' => true |
| 242 |
] |
| 243 |
|
| 244 |
], |
| 245 |
__('Additional Content', 'responsive-menu') => |
| 246 |
[ |
| 247 |
[ |
| 248 |
'option' => 'menu_additional_content', |
| 249 |
'title' => __('Text', 'responsive-menu'), |
| 250 |
'label' => __('HTMl and Shortcodes can be used', 'responsive-menu'), |
| 251 |
'type' => 'textarea' |
| 252 |
], |
| 253 |
[ |
| 254 |
'option' => 'menu_additional_content_colour', |
| 255 |
'title' => __('Colour', 'responsive-menu'), |
| 256 |
'label' => __('', 'responsive-menu'), |
| 257 |
'type' => 'colour' |
| 258 |
], |
| 259 |
], |
| 260 |
__('Animation', 'responsive-menu') => |
| 261 |
[ |
| 262 |
[ |
| 263 |
'option' => 'menu_appear_from', |
| 264 |
'title' => __('Appear From', 'responsive-menu'), |
| 265 |
'label' => __('', 'responsive-menu'), |
| 266 |
'type' => 'select', |
| 267 |
'select' => [ |
| 268 |
['value' => 'top', 'display' => 'Top'], |
| 269 |
['value' => 'left', 'display' => 'Left'], |
| 270 |
['value' => 'right', 'display' => 'Right'], |
| 271 |
['value' => 'bottom', 'display' => 'Bottom'] |
| 272 |
], |
| 273 |
], |
| 274 |
[ |
| 275 |
'option' => 'animation_type', |
| 276 |
'title' => __('Animation Type', 'responsive-menu'), |
| 277 |
'label' => __('', 'responsive-menu'), |
| 278 |
'type' => 'select', |
| 279 |
'semi_pro' => true, |
| 280 |
'select' => [ |
| 281 |
['value' => 'slide', 'display' => 'Slide'], |
| 282 |
['value' => 'push', 'display' => 'Push'], |
| 283 |
['value' => 'fade', 'display' => 'Fade', 'disabled' => true] |
| 284 |
] |
| 285 |
], |
| 286 |
[ |
| 287 |
'option' => 'page_wrapper', |
| 288 |
'title' => __('Page Wrapper CSS selector', 'responsive-menu'), |
| 289 |
'label' => __('This is only needed if you are using the push animation above', 'responsive-menu') |
| 290 |
], |
| 291 |
[ |
| 292 |
'option' => 'menu_close_on_body_click', |
| 293 |
'title' => __('Close Menu on Body Clicks', 'responsive-menu'), |
| 294 |
'label' => __('', 'responsive-menu'), |
| 295 |
'type' => 'checkbox' |
| 296 |
], |
| 297 |
[ |
| 298 |
'option' => 'menu_close_on_link_click', |
| 299 |
'title' => __('Close Menu on Link Clicks', 'responsive-menu'), |
| 300 |
'label' => __('', 'responsive-menu'), |
| 301 |
'type' => 'checkbox' |
| 302 |
], |
| 303 |
], |
| 304 |
__('Search Box', 'responsive-menu') => |
| 305 |
[ |
| 306 |
[ |
| 307 |
'option' => 'menu_search_box_text', |
| 308 |
'title' => __('Text', 'responsive-menu'), |
| 309 |
'label' => __('', 'responsive-menu'), |
| 310 |
'pro' => true |
| 311 |
], |
| 312 |
[ |
| 313 |
'option' => 'menu_search_box_text_colour', |
| 314 |
'title' => __('Text Colour', 'responsive-menu'), |
| 315 |
'label' => __('', 'responsive-menu'), |
| 316 |
'type' => 'colour' |
| 317 |
], |
| 318 |
[ |
| 319 |
'option' => 'menu_search_box_border_colour', |
| 320 |
'title' => __('Border Colour', 'responsive-menu'), |
| 321 |
'label' => __('', 'responsive-menu'), |
| 322 |
'type' => 'colour' |
| 323 |
], |
| 324 |
[ |
| 325 |
'option' => 'menu_search_box_background_colour', |
| 326 |
'title' => __('Background Colour', 'responsive-menu'), |
| 327 |
'label' => __('', 'responsive-menu'), |
| 328 |
'type' => 'colour' |
| 329 |
], |
| 330 |
[ |
| 331 |
'option' => 'menu_search_box_placholder_colour', |
| 332 |
'title' => __('Placeholder Colour', 'responsive-menu'), |
| 333 |
'label' => __('', 'responsive-menu'), |
| 334 |
'type' => 'colour' |
| 335 |
] |
| 336 |
], |
| 337 |
__('Background Colours', 'responsive-menu') => |
| 338 |
[ |
| 339 |
[ |
| 340 |
'option' => 'menu_background_image', |
| 341 |
'title' => __('Background Image', 'responsive-menu'), |
| 342 |
'label' => __('Enabling this will deactivate all other colour options', 'responsive-menu'), |
| 343 |
'type' => 'image' |
| 344 |
], |
| 345 |
[ |
| 346 |
'option' => 'menu_background_colour', |
| 347 |
'title' => __('Background Colour', 'responsive-menu'), |
| 348 |
'label' => __('', 'responsive-menu'), |
| 349 |
'type' => 'colour', |
| 350 |
'semi_pro' => true |
| 351 |
], |
| 352 |
[ |
| 353 |
'option' => 'menu_item_background_colour', |
| 354 |
'title' => __('Item Background Colour', 'responsive-menu'), |
| 355 |
'label' => __('', 'responsive-menu'), |
| 356 |
'type' => 'colour', |
| 357 |
'semi_pro' => true |
| 358 |
], |
| 359 |
[ |
| 360 |
'option' => 'menu_item_background_hover_colour', |
| 361 |
'title' => __('Item Background Colour Hover', 'responsive-menu'), |
| 362 |
'label' => __('', 'responsive-menu'), |
| 363 |
'type' => 'colour', |
| 364 |
'semi_pro' => true |
| 365 |
], |
| 366 |
[ |
| 367 |
'option' => 'menu_current_item_background_colour', |
| 368 |
'title' => __('Current Item Background Colour', 'responsive-menu'), |
| 369 |
'label' => __('', 'responsive-menu'), |
| 370 |
'type' => 'colour', |
| 371 |
'semi_pro' => true |
| 372 |
], |
| 373 |
[ |
| 374 |
'option' => 'menu_current_item_background_hover_colour', |
| 375 |
'title' => __('Current Item Background Colour Hover', 'responsive-menu'), |
| 376 |
'label' => __('', 'responsive-menu'), |
| 377 |
'type' => 'colour', |
| 378 |
'semi_pro' => true |
| 379 |
], |
| 380 |
], |
| 381 |
__('Border Colours', 'responsive-menu-pro') => |
| 382 |
[ |
| 383 |
[ |
| 384 |
'option' => 'menu_item_border_colour', |
| 385 |
'title' => __('Item Border Colour', 'responsive-menu'), |
| 386 |
'label' => __('', 'responsive-menu'), |
| 387 |
'type' => 'colour', |
| 388 |
'semi_pro' => true |
| 389 |
], |
| 390 |
[ |
| 391 |
'option' => 'menu_item_border_colour_hover', |
| 392 |
'title' => __('Item Border Colour Hover', 'responsive-menu'), |
| 393 |
'label' => __('', 'responsive-menu'), |
| 394 |
'type' => 'colour', |
| 395 |
'semi_pro' => true |
| 396 |
], |
| 397 |
[ |
| 398 |
'option' => 'menu_current_item_border_colour', |
| 399 |
'title' => __('Current Item Border Colour', 'responsive-menu'), |
| 400 |
'label' => __('', 'responsive-menu'), |
| 401 |
'type' => 'colour', |
| 402 |
'semi_pro' => true |
| 403 |
], |
| 404 |
[ |
| 405 |
'option' => 'menu_current_item_border_hover_colour', |
| 406 |
'title' => __('Current Item Border Colour Hover', 'responsive-menu'), |
| 407 |
'label' => __('', 'responsive-menu'), |
| 408 |
'type' => 'colour', |
| 409 |
'semi_pro' => true |
| 410 |
] |
| 411 |
], |
| 412 |
__('Text Colours', 'responsive-menu') => |
| 413 |
[ |
| 414 |
|
| 415 |
[ |
| 416 |
'option' => 'menu_link_colour', |
| 417 |
'title' => __('Link Colour', 'responsive-menu'), |
| 418 |
'label' => __('', 'responsive-menu'), |
| 419 |
'type' => 'colour', |
| 420 |
'semi_pro' => true |
| 421 |
], |
| 422 |
[ |
| 423 |
'option' => 'menu_link_hover_colour', |
| 424 |
'title' => __('Link Hover Colour', 'responsive-menu'), |
| 425 |
'label' => __('', 'responsive-menu'), |
| 426 |
'type' => 'colour', |
| 427 |
'semi_pro' => true |
| 428 |
], |
| 429 |
[ |
| 430 |
'option' => 'menu_current_link_colour', |
| 431 |
'title' => __('Current Link Colour', 'responsive-menu'), |
| 432 |
'label' => __('', 'responsive-menu'), |
| 433 |
'type' => 'colour', |
| 434 |
'semi_pro' => true |
| 435 |
], |
| 436 |
[ |
| 437 |
'option' => 'menu_current_link_hover_colour', |
| 438 |
'title' => __('Current Link Hover Colour', 'responsive-menu'), |
| 439 |
'label' => __('', 'responsive-menu'), |
| 440 |
'type' => 'colour', |
| 441 |
'semi_pro' => true |
| 442 |
], |
| 443 |
|
| 444 |
], |
| 445 |
__('Text Styling', 'responsive-menu') => |
| 446 |
[ |
| 447 |
[ |
| 448 |
'option' => 'menu_font', |
| 449 |
'title' => __('Font', 'responsive-menu'), |
| 450 |
'label' => __('', 'responsive-menu') |
| 451 |
], |
| 452 |
[ |
| 453 |
'option' => 'menu_font_size', |
| 454 |
'title' => __('Font Size', 'responsive-menu'), |
| 455 |
'label' => __('', 'responsive-menu'), |
| 456 |
'semi_pro' => true, |
| 457 |
'sub_options' => |
| 458 |
[ |
| 459 |
[ |
| 460 |
'option' => 'menu_font_size_unit', |
| 461 |
'type' => 'select', |
| 462 |
'select' => $unit_options |
| 463 |
] |
| 464 |
] |
| 465 |
], |
| 466 |
[ |
| 467 |
'option' => 'menu_text_alignment', |
| 468 |
'title' => __('Text Alignment', 'responsive-menu'), |
| 469 |
'label' => __('', 'responsive-menu'), |
| 470 |
'type' => 'select', |
| 471 |
'select' => [ |
| 472 |
['value' => 'left', 'display' => 'Left'], |
| 473 |
['value' => 'right', 'display' => 'Right'], |
| 474 |
['value' => 'center', 'display' => 'Centred'], |
| 475 |
['value' => 'justify', 'display' => 'Justified'] |
| 476 |
] |
| 477 |
], |
| 478 |
[ |
| 479 |
'option' => 'menu_word_wrap', |
| 480 |
'title' => __('Word Wrap', 'responsive-menu'), |
| 481 |
'label' => __('', 'responsive-menu'), |
| 482 |
'type' => 'checkbox', |
| 483 |
'pro' => true |
| 484 |
], |
| 485 |
], |
| 486 |
__('Page Overlay', 'responsive-menu') => |
| 487 |
[ |
| 488 |
[ |
| 489 |
'option' => 'menu_overlay', |
| 490 |
'title' => __('Add Page Overlay When Menu Open', 'responsive-menu'), |
| 491 |
'label' => __('', 'responsive-menu'), |
| 492 |
'type' => 'checkbox', |
| 493 |
'pro' => true |
| 494 |
], |
| 495 |
[ |
| 496 |
'option' => 'menu_overlay_colour', |
| 497 |
'title' => __('Overlay Colour', 'responsive-menu'), |
| 498 |
'label' => __('', 'responsive-menu'), |
| 499 |
'type' => 'colour', |
| 500 |
'pro' => true |
| 501 |
], |
| 502 |
], |
| 503 |
__('Advanced', 'responsive-menu') => |
| 504 |
[ |
| 505 |
[ |
| 506 |
'option' => 'menu_depth', |
| 507 |
'title' => __('Depth', 'responsive-menu'), |
| 508 |
'label' => __('', 'responsive-menu'), |
| 509 |
'type' => 'select', |
| 510 |
'select' => [ |
| 511 |
['value' => 1, 'display' => 1], |
| 512 |
['value' => 2, 'display' => 2], |
| 513 |
['value' => 3, 'display' => 3], |
| 514 |
['value' => 4, 'display' => 4], |
| 515 |
['value' => 5, 'display' => 5], |
| 516 |
] |
| 517 |
], |
| 518 |
[ |
| 519 |
'option' => 'menu_disable_scrolling', |
| 520 |
'title' => __('Disable Scrolling when Menu Active', 'responsive-menu'), |
| 521 |
'label' => __('', 'responsive-menu'), |
| 522 |
'type' => 'checkbox', |
| 523 |
'pro' => true |
| 524 |
], |
| 525 |
[ |
| 526 |
'option' => 'theme_location_menu', |
| 527 |
'title' => __('Theme Location Menu', 'responsive-menu'), |
| 528 |
'label' => __('', 'responsive-menu'), |
| 529 |
'type' => 'select', |
| 530 |
'select' => $location_menus |
| 531 |
] |
| 532 |
], |
| 533 |
], |
| 534 |
|
| 535 |
/* |
| 536 |
* |
| 537 |
* BUTTON |
| 538 |
* |
| 539 |
*/ |
| 540 |
|
| 541 |
__('Button', 'responsive-menu') => [ |
| 542 |
__('Animation', 'responsive-menu') => |
| 543 |
[ |
| 544 |
[ |
| 545 |
'option' => 'button_click_animation', |
| 546 |
'title' => __('Animation Type', 'responsive-menu'), |
| 547 |
'label' => __('To see all animations in action please visit <a href="https://jonsuh.com/hamburgers/" target="_blank">this page</a>', 'responsive-menu'), |
| 548 |
'type' => 'select', |
| 549 |
'select' => [ |
| 550 |
['value' => 'off', 'display' => 'Off'], |
| 551 |
['value' => '3dx', 'display' => '3DX', 'disabled' => true], |
| 552 |
['value' => '3dx-r', 'display' => '3DX Reverse', 'disabled' => true], |
| 553 |
['value' => '3dy', 'display' => '3DY', 'disabled' => true], |
| 554 |
['value' => '3dy-r', 'display' => '3DY Reverse', 'disabled' => true], |
| 555 |
['value' => 'arrow', 'display' => 'Arrow', 'disabled' => true], |
| 556 |
['value' => 'arrow-r', 'display' => 'Arrow Reverse', 'disabled' => true], |
| 557 |
['value' => 'arrowalt', 'display' => 'Arrow Alt', 'disabled' => true], |
| 558 |
['value' => 'arrowalt-r', 'display' => 'Arrow Alt Reverse', 'disabled' => true], |
| 559 |
['value' => 'boring', 'display' => 'Boring'], |
| 560 |
['value' => 'collapse', 'display' => 'Collapse', 'disabled' => true], |
| 561 |
['value' => 'collapse-r', 'display' => 'Collapse Reverse', 'disabled' => true], |
| 562 |
['value' => 'elastic', 'display' => 'Elastic', 'disabled' => true], |
| 563 |
['value' => 'elastic-r', 'display' => 'Elastic Reverse', 'disabled' => true], |
| 564 |
['value' => 'emphatic', 'display' => 'Emphatic', 'disabled' => true], |
| 565 |
['value' => 'emphatic-r', 'display' => 'Emphatic Reverse', 'disabled' => true], |
| 566 |
['value' => 'slider', 'display' => 'Slider', 'disabled' => true], |
| 567 |
['value' => 'slider-r', 'display' => 'Slider Reverse', 'disabled' => true], |
| 568 |
['value' => 'spin', 'display' => 'Spin', 'disabled' => true], |
| 569 |
['value' => 'spin-r', 'display' => 'Spin Reverse', 'disabled' => true], |
| 570 |
['value' => 'spring', 'display' => 'Spring', 'disabled' => true], |
| 571 |
['value' => 'spring-r', 'display' => 'Spring Reverse', 'disabled' => true], |
| 572 |
['value' => 'stand', 'display' => 'Stand', 'disabled' => true], |
| 573 |
['value' => 'stand-r', 'display' => 'Stand Reverse', 'disabled' => true], |
| 574 |
['value' => 'squeeze', 'display' => 'Squeeze', 'disabled' => true], |
| 575 |
['value' => 'vortex', 'display' => 'Vortex', 'disabled' => true], |
| 576 |
['value' => 'vortex-r', 'display' => 'Vortex Reverse', 'disabled' => true] |
| 577 |
], |
| 578 |
'semi_pro' => true |
| 579 |
], |
| 580 |
[ |
| 581 |
'option' => 'button_position_type', |
| 582 |
'title' => __('Position Type', 'responsive-menu'), |
| 583 |
'label' => __('', 'responsive-menu'), |
| 584 |
'type' => 'select', |
| 585 |
'select' => [ |
| 586 |
['value' => 'absolute', 'display' => 'Absolute'], |
| 587 |
['value' => 'fixed', 'display' => 'Fixed'], |
| 588 |
['value' => 'relative', 'display' => 'Relative'] |
| 589 |
] |
| 590 |
], |
| 591 |
[ |
| 592 |
'option' => 'button_push_with_animation', |
| 593 |
'title' => __('Push Button with Animation', 'responsive-menu'), |
| 594 |
'label' => __('', 'responsive-menu'), |
| 595 |
'type' => 'checkbox' |
| 596 |
], |
| 597 |
], |
| 598 |
__('Location', 'responsive-menu') => |
| 599 |
[ |
| 600 |
[ |
| 601 |
'option' => 'button_distance_from_side', |
| 602 |
'title' => __('Distance from Side', 'responsive-menu'), |
| 603 |
'label' => __('', 'responsive-menu'), |
| 604 |
'semi_pro' => true, |
| 605 |
'sub_options' => |
| 606 |
[ |
| 607 |
[ |
| 608 |
'option' => 'button_distance_from_side_unit', |
| 609 |
'type' => 'select', |
| 610 |
'select' => $percentage_unit_options |
| 611 |
] |
| 612 |
] |
| 613 |
], |
| 614 |
[ |
| 615 |
'option' => 'button_left_or_right', |
| 616 |
'title' => __('Button Side', 'responsive-menu'), |
| 617 |
'label' => __('', 'responsive-menu'), |
| 618 |
'type' => 'select', |
| 619 |
'select' => [ |
| 620 |
['value' => 'left', 'display' => 'Left'], |
| 621 |
['value' => 'right', 'display' => 'Right'] |
| 622 |
] |
| 623 |
], |
| 624 |
[ |
| 625 |
'option' => 'button_top', |
| 626 |
'title' => __('Distance from Top', 'responsive-menu'), |
| 627 |
'label' => __('', 'responsive-menu'), |
| 628 |
'semi_pro' => true, |
| 629 |
'sub_options' => |
| 630 |
[ |
| 631 |
[ |
| 632 |
'option' => 'button_top_unit', |
| 633 |
'type' => 'select', |
| 634 |
'select' => $unit_options |
| 635 |
] |
| 636 |
] |
| 637 |
], |
| 638 |
], |
| 639 |
__('Container Sizing', 'responsive-menu') => |
| 640 |
[ |
| 641 |
[ |
| 642 |
'option' => 'button_height', |
| 643 |
'title' => __('Height', 'responsive-menu'), |
| 644 |
'label' => __('', 'responsive-menu'), |
| 645 |
'semi_pro' => true, |
| 646 |
'sub_options' => |
| 647 |
[ |
| 648 |
[ |
| 649 |
'option' => 'button_height_unit', |
| 650 |
'type' => 'select', |
| 651 |
'select' => $unit_options |
| 652 |
] |
| 653 |
] |
| 654 |
], |
| 655 |
[ |
| 656 |
'option' => 'button_width', |
| 657 |
'title' => __('Width', 'responsive-menu'), |
| 658 |
'label' => __('', 'responsive-menu'), |
| 659 |
'semi_pro' => true, |
| 660 |
'sub_options' => |
| 661 |
[ |
| 662 |
[ |
| 663 |
'option' => 'button_width_unit', |
| 664 |
'type' => 'select', |
| 665 |
'select' => $unit_options |
| 666 |
] |
| 667 |
] |
| 668 |
], |
| 669 |
], |
| 670 |
__('Hamburger Sizing', 'responsive-menu') => |
| 671 |
[ |
| 672 |
[ |
| 673 |
'option' => 'button_line_height', |
| 674 |
'title' => __('Line Height', 'responsive-menu'), |
| 675 |
'label' => __('', 'responsive-menu'), |
| 676 |
'semi_pro' => true, |
| 677 |
'sub_options' => |
| 678 |
[ |
| 679 |
[ |
| 680 |
'option' => 'button_line_height_unit', |
| 681 |
'type' => 'select', |
| 682 |
'select' => $unit_options |
| 683 |
] |
| 684 |
] |
| 685 |
], |
| 686 |
[ |
| 687 |
'option' => 'button_line_margin', |
| 688 |
'title' => __('Line Margin', 'responsive-menu'), |
| 689 |
'label' => __('', 'responsive-menu'), |
| 690 |
'semi_pro' => true, |
| 691 |
'sub_options' => |
| 692 |
[ |
| 693 |
[ |
| 694 |
'option' => 'button_line_margin_unit', |
| 695 |
'type' => 'select', |
| 696 |
'select' => $unit_options |
| 697 |
] |
| 698 |
] |
| 699 |
], |
| 700 |
[ |
| 701 |
'option' => 'button_line_width', |
| 702 |
'title' => __('Line Width', 'responsive-menu'), |
| 703 |
'label' => __('', 'responsive-menu'), |
| 704 |
'semi_pro' => true, |
| 705 |
'sub_options' => |
| 706 |
[ |
| 707 |
[ |
| 708 |
'option' => 'button_line_width_unit', |
| 709 |
'type' => 'select', |
| 710 |
'select' => $unit_options |
| 711 |
] |
| 712 |
] |
| 713 |
], |
| 714 |
|
| 715 |
], |
| 716 |
__('Background Colours', 'responsive-menu') => [ |
| 717 |
[ |
| 718 |
'option' => 'button_background_colour', |
| 719 |
'title' => __('Background Colour', 'responsive-menu'), |
| 720 |
'label' => __('', 'responsive-menu'), |
| 721 |
'type' => 'colour', |
| 722 |
'semi_pro' => true |
| 723 |
], |
| 724 |
[ |
| 725 |
'option' => 'button_background_colour_hover', |
| 726 |
'title' => __('Background Hover Colour', 'responsive-menu'), |
| 727 |
'label' => __('', 'responsive-menu'), |
| 728 |
'type' => 'colour', |
| 729 |
'semi_pro' => true |
| 730 |
], |
| 731 |
[ |
| 732 |
'option' => 'button_transparent_background', |
| 733 |
'title' => __('Transparent Background', 'responsive-menu'), |
| 734 |
'label' => __('', 'responsive-menu'), |
| 735 |
'type' => 'checkbox' |
| 736 |
] |
| 737 |
], |
| 738 |
__('Line Colours', 'responsive-menu') => [ |
| 739 |
[ |
| 740 |
'option' => 'button_line_colour', |
| 741 |
'title' => __('Line Colour', 'responsive-menu'), |
| 742 |
'label' => __('', 'responsive-menu'), |
| 743 |
'type' => 'colour', |
| 744 |
'semi_pro' => true |
| 745 |
], |
| 746 |
], |
| 747 |
__('Title', 'responsive-menu') => [ |
| 748 |
[ |
| 749 |
'option' => 'button_title', |
| 750 |
'title' => __('Text', 'responsive-menu'), |
| 751 |
'label' => __('', 'responsive-menu'), |
| 752 |
], |
| 753 |
[ |
| 754 |
'option' => 'button_text_colour', |
| 755 |
'title' => __('Colour', 'responsive-menu'), |
| 756 |
'label' => __('', 'responsive-menu'), |
| 757 |
'type' => 'colour', |
| 758 |
'semi_pro' => true |
| 759 |
], |
| 760 |
[ |
| 761 |
'option' => 'button_title_position', |
| 762 |
'title' => __('Title Text Position', 'responsive-menu'), |
| 763 |
'label' => __('', 'responsive-menu'), |
| 764 |
'type' => 'select', |
| 765 |
'select' => [ |
| 766 |
['value' => 'left', 'display' => 'Left'], |
| 767 |
['value' => 'right', 'display' => 'Right'], |
| 768 |
['value' => 'top', 'display' => 'Top'], |
| 769 |
['value' => 'bottom', 'display' => 'Bottom'] |
| 770 |
] |
| 771 |
], |
| 772 |
[ |
| 773 |
'option' => 'button_font', |
| 774 |
'title' => __('Font', 'responsive-menu'), |
| 775 |
'label' => __('', 'responsive-menu'), |
| 776 |
], |
| 777 |
[ |
| 778 |
'option' => 'button_font_size', |
| 779 |
'title' => __('Font Size', 'responsive-menu'), |
| 780 |
'label' => __('', 'responsive-menu'), |
| 781 |
'semi_pro' => true, |
| 782 |
'sub_options' => |
| 783 |
[ |
| 784 |
[ |
| 785 |
'option' => 'button_font_size_unit', |
| 786 |
'type' => 'select', |
| 787 |
'select' => $unit_options |
| 788 |
] |
| 789 |
] |
| 790 |
], |
| 791 |
[ |
| 792 |
'option' => 'button_title_line_height', |
| 793 |
'title' => __('Line Height', 'responsive-menu'), |
| 794 |
'label' => __('', 'responsive-menu'), |
| 795 |
'semi_pro' => true, |
| 796 |
'sub_options' => |
| 797 |
[ |
| 798 |
[ |
| 799 |
'option' => 'button_title_line_height_unit', |
| 800 |
'type' => 'select', |
| 801 |
'select' => $unit_options |
| 802 |
] |
| 803 |
] |
| 804 |
], |
| 805 |
], |
| 806 |
__('Image', 'responsive-menu') => |
| 807 |
[ |
| 808 |
[ |
| 809 |
'option' => 'button_font_icon', |
| 810 |
'title' => __('Font Icon', 'responsive-menu'), |
| 811 |
'label' => __('', 'responsive-menu'), |
| 812 |
'pro' => true |
| 813 |
], |
| 814 |
[ |
| 815 |
'option' => 'button_font_icon_when_clicked', |
| 816 |
'title' => __('Font Icon When Clicked', 'responsive-menu'), |
| 817 |
'label' => __('', 'responsive-menu'), |
| 818 |
'pro' => true |
| 819 |
], |
| 820 |
[ |
| 821 |
'option' => 'button_image', |
| 822 |
'title' => __('Image', 'responsive-menu'), |
| 823 |
'label' => __('', 'responsive-menu'), |
| 824 |
'type' => 'image' |
| 825 |
], |
| 826 |
[ |
| 827 |
'option' => 'button_image_alt', |
| 828 |
'title' => __('Alt Text', 'responsive-menu'), |
| 829 |
'label' => __('', 'responsive-menu') |
| 830 |
], |
| 831 |
[ |
| 832 |
'option' => 'button_image_when_clicked', |
| 833 |
'title' => __('Image When Clicked', 'responsive-menu'), |
| 834 |
'label' => __('', 'responsive-menu'), |
| 835 |
'type' => 'image' |
| 836 |
], |
| 837 |
[ |
| 838 |
'option' => 'button_image_alt_when_clicked', |
| 839 |
'title' => __('Alt Text', 'responsive-menu'), |
| 840 |
'label' => __('', 'responsive-menu') |
| 841 |
] |
| 842 |
], |
| 843 |
__('Advanced', 'responsive-menu') => |
| 844 |
[ |
| 845 |
[ |
| 846 |
'option' => 'button_click_trigger', |
| 847 |
'title' => __('Trigger', 'responsive-menu'), |
| 848 |
'label' => __('', 'responsive-menu'), |
| 849 |
], |
| 850 |
], |
| 851 |
], |
| 852 |
|
| 853 |
/* |
| 854 |
* |
| 855 |
* SUB MENUS |
| 856 |
* |
| 857 |
*/ |
| 858 |
__('Sub-Menus', 'responsive-menu') => [ |
| 859 |
|
| 860 |
__('Toggle Button Background Colours', 'responsive-menu') => |
| 861 |
[ |
| 862 |
[ |
| 863 |
'option' => 'menu_sub_arrow_background_colour', |
| 864 |
'title' => __('Background Colour', 'responsive-menu'), |
| 865 |
'label' => __('', 'responsive-menu'), |
| 866 |
'type' => 'colour', |
| 867 |
'semi_pro' => true |
| 868 |
], |
| 869 |
[ |
| 870 |
'option' => 'menu_sub_arrow_background_hover_colour', |
| 871 |
'title' => __('Background Hover Colour', 'responsive-menu'), |
| 872 |
'label' => __('', 'responsive-menu'), |
| 873 |
'type' => 'colour', |
| 874 |
'semi_pro' => true |
| 875 |
], |
| 876 |
[ |
| 877 |
'option' => 'menu_sub_arrow_background_colour_active', |
| 878 |
'title' => __('Background Colour Active', 'responsive-menu'), |
| 879 |
'label' => __('', 'responsive-menu'), |
| 880 |
'type' => 'colour', |
| 881 |
'semi_pro' => true |
| 882 |
], |
| 883 |
[ |
| 884 |
'option' => 'menu_sub_arrow_background_hover_colour_active', |
| 885 |
'title' => __('Background Hover Colour Active', 'responsive-menu'), |
| 886 |
'label' => __('', 'responsive-menu'), |
| 887 |
'type' => 'colour', |
| 888 |
'semi_pro' => true |
| 889 |
], |
| 890 |
], |
| 891 |
__('Toggle Button Border Colours', 'responsive-menu') => |
| 892 |
[ |
| 893 |
[ |
| 894 |
'option' => 'menu_sub_arrow_border_colour', |
| 895 |
'title' => __('Border Colour', 'responsive-menu'), |
| 896 |
'label' => __('', 'responsive-menu'), |
| 897 |
'type' => 'colour', |
| 898 |
'semi_pro' => true |
| 899 |
], |
| 900 |
[ |
| 901 |
'option' => 'menu_sub_arrow_border_hover_colour', |
| 902 |
'title' => __('Border Hover Colour', 'responsive-menu'), |
| 903 |
'label' => __('', 'responsive-menu'), |
| 904 |
'type' => 'colour', |
| 905 |
'semi_pro' => true |
| 906 |
], |
| 907 |
[ |
| 908 |
'option' => 'menu_sub_arrow_border_colour_active', |
| 909 |
'title' => __('Border Colour Active', 'responsive-menu'), |
| 910 |
'label' => __('', 'responsive-menu'), |
| 911 |
'type' => 'colour', |
| 912 |
'semi_pro' => true |
| 913 |
], |
| 914 |
[ |
| 915 |
'option' => 'menu_sub_arrow_border_hover_colour_active', |
| 916 |
'title' => __('Border Hover Colour Active', 'responsive-menu'), |
| 917 |
'label' => __('', 'responsive-menu'), |
| 918 |
'type' => 'colour', |
| 919 |
'semi_pro' => true |
| 920 |
], |
| 921 |
], |
| 922 |
__('Toggle Button Icon Colours', 'responsive-menu') => |
| 923 |
[ |
| 924 |
[ |
| 925 |
'option' => 'menu_sub_arrow_shape_colour', |
| 926 |
'title' => __('Icon Colour', 'responsive-menu'), |
| 927 |
'label' => __('', 'responsive-menu'), |
| 928 |
'type' => 'colour', |
| 929 |
'semi_pro' => true |
| 930 |
], |
| 931 |
[ |
| 932 |
'option' => 'menu_sub_arrow_shape_hover_colour', |
| 933 |
'title' => __('Icon Hover Colour', 'responsive-menu'), |
| 934 |
'label' => __('', 'responsive-menu'), |
| 935 |
'type' => 'colour', |
| 936 |
'semi_pro' => true |
| 937 |
], |
| 938 |
[ |
| 939 |
'option' => 'menu_sub_arrow_shape_colour_active', |
| 940 |
'title' => __('Icon Colour Active', 'responsive-menu'), |
| 941 |
'label' => __('', 'responsive-menu'), |
| 942 |
'type' => 'colour', |
| 943 |
'semi_pro' => true |
| 944 |
], |
| 945 |
[ |
| 946 |
'option' => 'menu_sub_arrow_shape_hover_colour_active', |
| 947 |
'title' => __('Icon Hover Colour Active', 'responsive-menu'), |
| 948 |
'label' => __('', 'responsive-menu'), |
| 949 |
'type' => 'colour', |
| 950 |
'semi_pro' => true |
| 951 |
], |
| 952 |
], |
| 953 |
__('Animations', 'responsive-menu') => |
| 954 |
[ |
| 955 |
[ |
| 956 |
'option' => 'accordion_animation', |
| 957 |
'title' => __('Use Accordion Animation', 'responsive-menu'), |
| 958 |
'label' => __('', 'responsive-menu'), |
| 959 |
'type' => 'checkbox' |
| 960 |
], |
| 961 |
[ |
| 962 |
'option' => 'auto_expand_all_submenus', |
| 963 |
'title' => __('Auto Expand All Submenus', 'responsive-menu'), |
| 964 |
'label' => __('', 'responsive-menu'), |
| 965 |
'type' => 'checkbox' |
| 966 |
], |
| 967 |
[ |
| 968 |
'option' => 'auto_expand_current_submenus', |
| 969 |
'title' => __('Auto Expand Current Submenus', 'responsive-menu'), |
| 970 |
'label' => __('', 'responsive-menu'), |
| 971 |
'type' => 'checkbox' |
| 972 |
], |
| 973 |
[ |
| 974 |
'option' => 'menu_item_click_to_trigger_submenu', |
| 975 |
'title' => __('Disable Parent Item Clicks', 'responsive-menu'), |
| 976 |
'label' => __('', 'responsive-menu'), |
| 977 |
'type' => 'checkbox' |
| 978 |
], |
| 979 |
[ |
| 980 |
'option' => 'use_slide_effect', |
| 981 |
'title' => __('Use slide effect instead of drop-down', 'responsive-menu'), |
| 982 |
'label' => __('', 'responsive-menu'), |
| 983 |
'type' => 'checkbox', |
| 984 |
'pro' => true, |
| 985 |
'beta' => true |
| 986 |
] |
| 987 |
], |
| 988 |
__('Fade Links In', 'responsive-menu') => |
| 989 |
[ |
| 990 |
[ |
| 991 |
'option' => 'fade_submenus', |
| 992 |
'title' => __('Enabled', 'responsive-menu'), |
| 993 |
'label' => __('', 'responsive-menu'), |
| 994 |
'type' => 'checkbox', |
| 995 |
'pro' => true |
| 996 |
], |
| 997 |
[ |
| 998 |
'option' => 'fade_submenus_side', |
| 999 |
'title' => __('Fade from side', 'responsive-menu'), |
| 1000 |
'label' => __('', 'responsive-menu'), |
| 1001 |
'type' => 'select', |
| 1002 |
'select' => [ |
| 1003 |
['value' => 'left', 'display' => 'Left'], |
| 1004 |
['value' => 'right', 'display' => 'Right'] |
| 1005 |
], |
| 1006 |
'pro' => true |
| 1007 |
], |
| 1008 |
[ |
| 1009 |
'option' => 'fade_submenus_delay', |
| 1010 |
'title' => __('Delay between items', 'responsive-menu'), |
| 1011 |
'label' => __('', 'responsive-menu'), |
| 1012 |
'unit' => 'ms', |
| 1013 |
'pro' => true |
| 1014 |
], |
| 1015 |
[ |
| 1016 |
'option' => 'fade_submenus_speed', |
| 1017 |
'title' => __('Speed of fade', 'responsive-menu'), |
| 1018 |
'label' => __('', 'responsive-menu'), |
| 1019 |
'unit' => 'ms', |
| 1020 |
'pro' => true |
| 1021 |
] |
| 1022 |
], |
| 1023 |
__('Sizing', 'responsive-menu') => |
| 1024 |
[ |
| 1025 |
[ |
| 1026 |
'option' => 'submenu_arrow_height', |
| 1027 |
'title' => __('Toggle Button Height', 'responsive-menu'), |
| 1028 |
'label' => __('', 'responsive-menu'), |
| 1029 |
'semi_pro' => true, |
| 1030 |
'sub_options' => |
| 1031 |
[ |
| 1032 |
[ |
| 1033 |
'option' => 'submenu_arrow_height_unit', |
| 1034 |
'type' => 'select', |
| 1035 |
'select' => $unit_options |
| 1036 |
] |
| 1037 |
] |
| 1038 |
], |
| 1039 |
[ |
| 1040 |
'option' => 'submenu_arrow_width', |
| 1041 |
'title' => __('Toggle Button Width', 'responsive-menu'), |
| 1042 |
'label' => __('', 'responsive-menu'), |
| 1043 |
'semi_pro' => true, |
| 1044 |
'sub_options' => |
| 1045 |
[ |
| 1046 |
[ |
| 1047 |
'option' => 'submenu_arrow_width_unit', |
| 1048 |
'type' => 'select', |
| 1049 |
'select' => $unit_options |
| 1050 |
] |
| 1051 |
] |
| 1052 |
], |
| 1053 |
|
| 1054 |
], |
| 1055 |
__('Toggle Icons', 'responsive-menu') => |
| 1056 |
[ |
| 1057 |
[ |
| 1058 |
'option' => 'active_arrow_font_icon', |
| 1059 |
'title' => __('Font Icon Active', 'responsive-menu'), |
| 1060 |
'label' => __('', 'responsive-menu'), |
| 1061 |
'pro' => true |
| 1062 |
], |
| 1063 |
[ |
| 1064 |
'option' => 'inactive_arrow_font_icon', |
| 1065 |
'title' => __('Font Icon Inactive', 'responsive-menu'), |
| 1066 |
'label' => __('', 'responsive-menu'), |
| 1067 |
'pro' => true |
| 1068 |
], |
| 1069 |
[ |
| 1070 |
'option' => 'active_arrow_shape', |
| 1071 |
'title' => __('HTML Shape Active', 'responsive-menu'), |
| 1072 |
'label' => __('', 'responsive-menu') |
| 1073 |
], |
| 1074 |
[ |
| 1075 |
'option' => 'inactive_arrow_shape', |
| 1076 |
'title' => __('HTML Shape Inactive', 'responsive-menu'), |
| 1077 |
'label' => __('', 'responsive-menu') |
| 1078 |
], |
| 1079 |
[ |
| 1080 |
'option' => 'active_arrow_image', |
| 1081 |
'title' => __('Image Active', 'responsive-menu'), |
| 1082 |
'label' => __('', 'responsive-menu'), |
| 1083 |
'type' => 'image' |
| 1084 |
], |
| 1085 |
[ |
| 1086 |
'option' => 'active_arrow_image_alt', |
| 1087 |
'title' => __('Alt Text', 'responsive-menu'), |
| 1088 |
'label' => __('', 'responsive-menu') |
| 1089 |
], |
| 1090 |
[ |
| 1091 |
'option' => 'inactive_arrow_image', |
| 1092 |
'title' => __('Image Inactive', 'responsive-menu'), |
| 1093 |
'label' => __('', 'responsive-menu'), |
| 1094 |
'type' => 'image' |
| 1095 |
], |
| 1096 |
[ |
| 1097 |
'option' => 'inactive_arrow_image_alt', |
| 1098 |
'title' => __('Alt Text', 'responsive-menu'), |
| 1099 |
'label' => __('', 'responsive-menu') |
| 1100 |
], |
| 1101 |
[ |
| 1102 |
'option' => 'arrow_position', |
| 1103 |
'title' => __('Icon Position', 'responsive-menu'), |
| 1104 |
'label' => __('', 'responsive-menu'), |
| 1105 |
'type' => 'select', |
| 1106 |
'select' => [ |
| 1107 |
['value' => 'left', 'display' => 'Left'], |
| 1108 |
['value' => 'right', 'display' => 'Right'] |
| 1109 |
], |
| 1110 |
] |
| 1111 |
], |
| 1112 |
], |
| 1113 |
|
| 1114 |
/* |
| 1115 |
* |
| 1116 |
* TECHNICAL |
| 1117 |
* |
| 1118 |
*/ |
| 1119 |
|
| 1120 |
__('Technical', 'responsive-menu') => [ |
| 1121 |
__('Scripts', 'responsive-menu') => [ |
| 1122 |
[ |
| 1123 |
'option' => 'external_files', |
| 1124 |
'title' => __('Use External Files?', 'responsive-menu'), |
| 1125 |
'label' => __('This will create external files for CSS and JavaScript', 'responsive-menu'), |
| 1126 |
'type' => 'checkbox' |
| 1127 |
], |
| 1128 |
[ |
| 1129 |
'option' => 'minify_scripts', |
| 1130 |
'title' => __('Minify Scripts?', 'responsive-menu'), |
| 1131 |
'label' => __('This will minify CSS and JavaScript output', 'responsive-menu'), |
| 1132 |
'type' => 'checkbox' |
| 1133 |
], |
| 1134 |
[ |
| 1135 |
'option' => 'scripts_in_footer', |
| 1136 |
'title' => __('Place Scripts In Footer?', 'responsive-menu'), |
| 1137 |
'label' => __('This will place the JavaScript file in the footer', 'responsive-menu'), |
| 1138 |
'type' => 'checkbox' |
| 1139 |
] |
| 1140 |
], |
| 1141 |
__('Menu', 'responsive-menu') => [ |
| 1142 |
[ |
| 1143 |
'option' => 'custom_walker', |
| 1144 |
'title' => __('Custom Walker', 'responsive-menu'), |
| 1145 |
'label' => __('Warning: For extremely advanced use only', 'responsive-menu'), |
| 1146 |
], |
| 1147 |
[ |
| 1148 |
'option' => 'mobile_only', |
| 1149 |
'title' => __('Show on mobile devices only?', 'responsive-menu'), |
| 1150 |
'label' => __('This will make it not a responsive menu but a "mobile menu"', 'responsive-menu'), |
| 1151 |
'type' => 'checkbox', |
| 1152 |
'pro' => true |
| 1153 |
], |
| 1154 |
[ |
| 1155 |
'option' => 'shortcode', |
| 1156 |
'title' => __('Use Shortcode?', 'responsive-menu'), |
| 1157 |
'label' => __('Please place [responsive_menu] in your files to use. Full documentation can be found <a target="_blank" href="https://responsive.menu/docs/advanced-setup/shortcode/">here</a>', 'responsive-menu'), |
| 1158 |
'type' => 'checkbox' |
| 1159 |
] |
| 1160 |
], |
| 1161 |
__('Animation Speeds', 'responsive-menu') => |
| 1162 |
[ |
| 1163 |
[ |
| 1164 |
'option' => 'animation_speed', |
| 1165 |
'title' => __('Animation Speed', 'responsive-menu'), |
| 1166 |
'label' => __('', 'responsive-menu'), |
| 1167 |
'unit' => 's' |
| 1168 |
], |
| 1169 |
[ |
| 1170 |
'option' => 'transition_speed', |
| 1171 |
'title' => __('Transition Speed', 'responsive-menu'), |
| 1172 |
'label' => __('', 'responsive-menu'), |
| 1173 |
'unit' => 's' |
| 1174 |
] |
| 1175 |
], |
| 1176 |
], |
| 1177 |
/* |
| 1178 |
* |
| 1179 |
* CUSTOM CSS |
| 1180 |
* |
| 1181 |
*/ |
| 1182 |
|
| 1183 |
__('Custom CSS', 'responsive-menu') => [ |
| 1184 |
__('CSS', 'responsive-menu') => [ |
| 1185 |
[ |
| 1186 |
'option' => 'custom_css', |
| 1187 |
'title' => __('Custom CSS', 'responsive-menu'), |
| 1188 |
'label' => __('', 'responsive-menu'), |
| 1189 |
'type' => 'textarea', |
| 1190 |
'pro' => true |
| 1191 |
] |
| 1192 |
] |
| 1193 |
], |
| 1194 |
/* |
| 1195 |
* |
| 1196 |
* HEADER BAR |
| 1197 |
* |
| 1198 |
*/ |
| 1199 |
__('Header Bar', 'responsive-menu') => [ |
| 1200 |
__('Setup', 'responsive-menu') => [ |
| 1201 |
[ |
| 1202 |
'option' => 'use_header_bar', |
| 1203 |
'title' => __('Use Header Bar', 'responsive-menu'), |
| 1204 |
'label' => __('', 'responsive-menu'), |
| 1205 |
'type' => 'checkbox', |
| 1206 |
'pro' => true |
| 1207 |
], |
| 1208 |
[ |
| 1209 |
'option' => 'header_bar_position_type', |
| 1210 |
'title' => __('Position Type', 'responsive-menu'), |
| 1211 |
'label' => __('', 'responsive-menu'), |
| 1212 |
'type' => 'select', |
| 1213 |
'select' => [ |
| 1214 |
['value' => 'fixed', 'display' => 'Fixed'], |
| 1215 |
['value' => 'relative', 'display' => 'Relative'], |
| 1216 |
['value' => 'absolute', 'display' => 'Absolute'] |
| 1217 |
], |
| 1218 |
'pro' => true |
| 1219 |
], |
| 1220 |
[ |
| 1221 |
'option' => 'header_bar_breakpoint', |
| 1222 |
'title' => __('Breakpoint', 'responsive-menu'), |
| 1223 |
'label' => __('', 'responsive-menu'), |
| 1224 |
'unit' => 'px', |
| 1225 |
'pro' => true |
| 1226 |
], |
| 1227 |
], |
| 1228 |
__('Ordering', 'responsive-menu') => [ |
| 1229 |
[ |
| 1230 |
'option' => 'header_bar_items_order', |
| 1231 |
'title' => __('Ordering', 'responsive-menu'), |
| 1232 |
'label' => __('', 'responsive-menu'), |
| 1233 |
'type' => 'header_ordering', |
| 1234 |
'pro' => true |
| 1235 |
] |
| 1236 |
], |
| 1237 |
__('Logo', 'responsive-menu') => [ |
| 1238 |
[ |
| 1239 |
'option' => 'header_bar_logo', |
| 1240 |
'title' => __('Image', 'responsive-menu'), |
| 1241 |
'label' => __('', 'responsive-menu'), |
| 1242 |
'type' => 'image', |
| 1243 |
'pro' => true |
| 1244 |
], |
| 1245 |
[ |
| 1246 |
'option' => 'header_bar_logo_alt', |
| 1247 |
'title' => __('Alt Text', 'responsive-menu'), |
| 1248 |
'label' => __('', 'responsive-menu'), |
| 1249 |
'pro' => true |
| 1250 |
], |
| 1251 |
[ |
| 1252 |
'option' => 'header_bar_logo_link', |
| 1253 |
'title' => __('Link', 'responsive-menu'), |
| 1254 |
'label' => __('', 'responsive-menu'), |
| 1255 |
'pro' => true |
| 1256 |
], |
| 1257 |
], |
| 1258 |
__('Title', 'responsive-menu') => [ |
| 1259 |
[ |
| 1260 |
'option' => 'header_bar_title', |
| 1261 |
'title' => __('Title', 'responsive-menu'), |
| 1262 |
'label' => __('', 'responsive-menu'), |
| 1263 |
'pro' => true |
| 1264 |
] |
| 1265 |
], |
| 1266 |
__('Content', 'responsive-menu') => [ |
| 1267 |
[ |
| 1268 |
'option' => 'header_bar_html_content', |
| 1269 |
'title' => __('HTML Content', 'responsive-menu'), |
| 1270 |
'label' => __('Accepts shortcodes', 'responsive-menu'), |
| 1271 |
'type' => 'textarea', |
| 1272 |
'pro' => true |
| 1273 |
] |
| 1274 |
], |
| 1275 |
__('Text', 'responsive-menu') => [ |
| 1276 |
[ |
| 1277 |
'option' => 'header_bar_font', |
| 1278 |
'title' => __('Font', 'responsive-menu'), |
| 1279 |
'label' => __('', 'responsive-menu'), |
| 1280 |
'pro' => true |
| 1281 |
], |
| 1282 |
[ |
| 1283 |
'option' => 'header_bar_font_size', |
| 1284 |
'title' => __('Font Size', 'responsive-menu'), |
| 1285 |
'label' => __('', 'responsive-menu'), |
| 1286 |
'pro' => true, |
| 1287 |
'sub_options' => |
| 1288 |
[ |
| 1289 |
[ |
| 1290 |
'option' => 'header_bar_font_size_unit', |
| 1291 |
'type' => 'select', |
| 1292 |
'select' => $unit_options |
| 1293 |
] |
| 1294 |
] |
| 1295 |
], |
| 1296 |
], |
| 1297 |
__('Sizing', 'responsive-menu') => [ |
| 1298 |
[ |
| 1299 |
'option' => 'header_bar_height', |
| 1300 |
'title' => __('Height', 'responsive-menu'), |
| 1301 |
'label' => __('', 'responsive-menu'), |
| 1302 |
'pro' => true, |
| 1303 |
'sub_options' => |
| 1304 |
[ |
| 1305 |
[ |
| 1306 |
'option' => 'header_bar_height_unit', |
| 1307 |
'type' => 'select', |
| 1308 |
'select' => $unit_options |
| 1309 |
] |
| 1310 |
] |
| 1311 |
], |
| 1312 |
], |
| 1313 |
__('Colours', 'responsive-menu') => [ |
| 1314 |
[ |
| 1315 |
'option' => 'header_bar_background_color', |
| 1316 |
'title' => __('Background Colour', 'responsive-menu'), |
| 1317 |
'label' => __('', 'responsive-menu'), |
| 1318 |
'type' => 'colour', |
| 1319 |
'pro' => true |
| 1320 |
], |
| 1321 |
[ |
| 1322 |
'option' => 'header_bar_text_color', |
| 1323 |
'title' => __('Text Colour', 'responsive-menu'), |
| 1324 |
'label' => __('', 'responsive-menu'), |
| 1325 |
'type' => 'colour', |
| 1326 |
'pro' => true |
| 1327 |
], |
| 1328 |
], |
| 1329 |
], |
| 1330 |
|
| 1331 |
/* |
| 1332 |
* |
| 1333 |
* SINGLE MENU |
| 1334 |
* |
| 1335 |
*/ |
| 1336 |
__('Single Menu', 'responsive-menu') => [ |
| 1337 |
__('Setup', 'responsive-menu') => [ |
| 1338 |
[ |
| 1339 |
'option' => 'use_single_menu', |
| 1340 |
'title' => __('Use Single Menu', 'responsive-menu'), |
| 1341 |
'label' => __('To use this option you must turn the Shortcode option on and use the shortcode in your theme where you want the menu to appear', 'responsive-menu'), |
| 1342 |
'type' => 'checkbox', |
| 1343 |
'pro' => true |
| 1344 |
] |
| 1345 |
], |
| 1346 |
__('Menu Colours', 'responsive-menu') => [ |
| 1347 |
[ |
| 1348 |
'option' => 'single_menu_item_background_colour', |
| 1349 |
'title' => __('Background Colour', 'responsive-menu'), |
| 1350 |
'label' => __('', 'responsive-menu'), |
| 1351 |
'type' => 'colour', |
| 1352 |
'pro' => true |
| 1353 |
], |
| 1354 |
[ |
| 1355 |
'option' => 'single_menu_item_background_colour_hover', |
| 1356 |
'title' => __('Background Hover Colour', 'responsive-menu'), |
| 1357 |
'label' => __('', 'responsive-menu'), |
| 1358 |
'type' => 'colour', |
| 1359 |
'pro' => true |
| 1360 |
], |
| 1361 |
[ |
| 1362 |
'option' => 'single_menu_item_link_colour', |
| 1363 |
'title' => __('Text Colour', 'responsive-menu'), |
| 1364 |
'label' => __('', 'responsive-menu'), |
| 1365 |
'type' => 'colour', |
| 1366 |
'pro' => true |
| 1367 |
], |
| 1368 |
[ |
| 1369 |
'option' => 'single_menu_item_link_colour_hover', |
| 1370 |
'title' => __('Text Hover Colour', 'responsive-menu'), |
| 1371 |
'label' => __('', 'responsive-menu'), |
| 1372 |
'type' => 'colour', |
| 1373 |
'pro' => true |
| 1374 |
], |
| 1375 |
], |
| 1376 |
__('Sub-Menu Colours', 'responsive-menu') => [ |
| 1377 |
[ |
| 1378 |
'option' => 'single_menu_item_submenu_background_colour', |
| 1379 |
'title' => __('Background Colour', 'responsive-menu'), |
| 1380 |
'label' => __('', 'responsive-menu'), |
| 1381 |
'type' => 'colour', |
| 1382 |
'pro' => true |
| 1383 |
], |
| 1384 |
[ |
| 1385 |
'option' => 'single_menu_item_submenu_background_colour_hover', |
| 1386 |
'title' => __('Background Hover Colour', 'responsive-menu'), |
| 1387 |
'label' => __('', 'responsive-menu'), |
| 1388 |
'type' => 'colour', |
| 1389 |
'pro' => true |
| 1390 |
], |
| 1391 |
[ |
| 1392 |
'option' => 'single_menu_item_submenu_link_colour', |
| 1393 |
'title' => __('Text Colour', 'responsive-menu'), |
| 1394 |
'label' => __('', 'responsive-menu'), |
| 1395 |
'type' => 'colour', |
| 1396 |
'pro' => true |
| 1397 |
], |
| 1398 |
[ |
| 1399 |
'option' => 'single_menu_item_submenu_link_colour_hover', |
| 1400 |
'title' => __('Text Hover Colour', 'responsive-menu'), |
| 1401 |
'label' => __('', 'responsive-menu'), |
| 1402 |
'type' => 'colour', |
| 1403 |
'pro' => true |
| 1404 |
] |
| 1405 |
], |
| 1406 |
__('Menu Styling', 'responsive-menu') => [ |
| 1407 |
[ |
| 1408 |
'option' => 'single_menu_font', |
| 1409 |
'title' => __('Font', 'responsive-menu'), |
| 1410 |
'label' => __('', 'responsive-menu'), |
| 1411 |
'pro' => true |
| 1412 |
], |
| 1413 |
[ |
| 1414 |
'option' => 'single_menu_font_size', |
| 1415 |
'title' => __('Font Size', 'responsive-menu'), |
| 1416 |
'label' => __('', 'responsive-menu'), |
| 1417 |
'pro' => true, |
| 1418 |
'sub_options' => |
| 1419 |
[ |
| 1420 |
[ |
| 1421 |
'option' => 'single_menu_font_size_unit', |
| 1422 |
'type' => 'select', |
| 1423 |
'select' => $unit_options |
| 1424 |
] |
| 1425 |
] |
| 1426 |
] |
| 1427 |
], |
| 1428 |
__('Sub-Menu Styling', 'responsive-menu') => [ |
| 1429 |
[ |
| 1430 |
'option' => 'single_menu_submenu_font', |
| 1431 |
'title' => __('Font', 'responsive-menu'), |
| 1432 |
'label' => __('', 'responsive-menu'), |
| 1433 |
'pro' => true |
| 1434 |
], |
| 1435 |
[ |
| 1436 |
'option' => 'single_menu_submenu_font_size', |
| 1437 |
'title' => __('Font Size', 'responsive-menu'), |
| 1438 |
'label' => __('', 'responsive-menu'), |
| 1439 |
'pro' => true, |
| 1440 |
'sub_options' => |
| 1441 |
[ |
| 1442 |
[ |
| 1443 |
'option' => 'single_menu_submenu_font_size_unit', |
| 1444 |
'type' => 'select', |
| 1445 |
'select' => $unit_options |
| 1446 |
] |
| 1447 |
] |
| 1448 |
] |
| 1449 |
], |
| 1450 |
__('Menu Sizing', 'responsive-menu') => [ |
| 1451 |
[ |
| 1452 |
'option' => 'single_menu_height', |
| 1453 |
'title' => __('Height', 'responsive-menu'), |
| 1454 |
'label' => __('', 'responsive-menu'), |
| 1455 |
'pro' => true, |
| 1456 |
'sub_options' => |
| 1457 |
[ |
| 1458 |
[ |
| 1459 |
'option' => 'single_menu_height_unit', |
| 1460 |
'type' => 'select', |
| 1461 |
'select' => $unit_options |
| 1462 |
] |
| 1463 |
] |
| 1464 |
] |
| 1465 |
], |
| 1466 |
__('Sub-Menu Sizing', 'responsive-menu') => [ |
| 1467 |
[ |
| 1468 |
'option' => 'single_menu_submenu_height', |
| 1469 |
'title' => __('Height', 'responsive-menu'), |
| 1470 |
'label' => __('', 'responsive-menu'), |
| 1471 |
'pro' => true, |
| 1472 |
'sub_options' => |
| 1473 |
[ |
| 1474 |
[ |
| 1475 |
'option' => 'single_menu_submenu_height_unit', |
| 1476 |
'type' => 'select', |
| 1477 |
'select' => $unit_options |
| 1478 |
] |
| 1479 |
] |
| 1480 |
] |
| 1481 |
] |
| 1482 |
], |
| 1483 |
'Import/Export' => [ |
| 1484 |
__('Import/Export', 'responsive-menu') => [ |
| 1485 |
[ |
| 1486 |
'option' => 'import', |
| 1487 |
'title' => __('Import', 'responsive-menu'), |
| 1488 |
'label' => __('', 'responsive-menu'), |
| 1489 |
'type' => 'import' |
| 1490 |
], |
| 1491 |
[ |
| 1492 |
'option' => 'export', |
| 1493 |
'title' => __('Export', 'responsive-menu'), |
| 1494 |
'label' => __('', 'responsive-menu'), |
| 1495 |
'type' => 'export' |
| 1496 |
], |
| 1497 |
[ |
| 1498 |
'option' => 'reset', |
| 1499 |
'title' => __('Reset', 'responsive-menu'), |
| 1500 |
'label' => __('', 'responsive-menu'), |
| 1501 |
'type' => 'reset' |
| 1502 |
] |
| 1503 |
] |
| 1504 |
] |
| 1505 |
]; |
| 1506 |
|