PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
nav-menu
/
dashboard
/
nav-menu
<?php if ( ! function_exists( 'webon_core_add_nav_menu_options' ) ) { /** * Function that add general options for this module */ function webon_core_add_nav_menu_options() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => array( 'nav_menu_item' ), 'type' => 'nav-menu' ) ); if ( $page ) { $page->add_field_element( array( 'field_type' => 'checkbox', 'name' => 'qodef-enable-mega-menu', 'title' => esc_html__( 'Enable Mega Menu', 'webon-core' ), 'options' => array( 'enable' => esc_html__( 'Enable', 'webon-core' ) ), 'args' => array( 'depth' => 0 ) ) ); $page->add_field_element( array( 'field_type' => 'checkbox', 'name' => 'qodef-enable-anchor-link', 'title' => esc_html__( 'Enable Anchor Link', 'webon-core' ), 'options' => array( 'enable' => esc_html__( 'Enable', 'webon-core' ) ) ) ); $page->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef-menu-item-appearance', 'title' => esc_html__( 'Menu Item Appearance', 'webon-core' ), 'options' => array( 'none' => esc_html__( 'None', 'webon-core' ), 'hide-item' => esc_html__( 'Hide Item', 'webon-core' ), 'hide-link' => esc_html__( 'Hide Link', 'webon-core' ), 'hide-label' => esc_html__( 'Hide Label', 'webon-core' ) ) ) ); $page->add_field_element( array( 'field_type' => 'iconpack', 'name' => 'qodef-menu-item-icon-pack', 'title' => esc_html__( 'Icon Pack', 'webon-core' ), 'args' => array( 'width' => 'thin' ) ) ); $custom_sidebars = webon_core_get_custom_sidebars(); if ( ! empty( $custom_sidebars ) && count( $custom_sidebars ) > 1 ) { $page->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef-enable-mega-menu-widget', 'title' => esc_html__( 'Custom Sidebar', 'webon-core' ), 'description' => esc_html__( 'Choose a custom sidebar to display on wide menu', 'webon-core' ), 'options' => $custom_sidebars, 'args' => array( 'depth' => 1 ) ) ); } } } add_action( 'qode_framework_action_custom_nav_menu_fields', 'webon_core_add_nav_menu_options' ); }
[+]
..
[-] nav-menu-fields.php
[edit]