menu_item_id = absint( $_POST['menu_item_id'] ); $saved_settings = array_filter( (array) get_post_meta( $this->menu_item_id, '_megamenu', true ) ); $this->menu_item_meta = array_merge( Mega_Menu_Nav_Menus::get_menu_item_defaults(), $saved_settings ); } if ( isset( $_POST['menu_item_depth'] ) ) { $this->menu_item_depth = absint( $_POST['menu_item_depth'] ); } if ( isset( $_POST['menu_id'] ) ) { $this->menu_id = absint( $_POST['menu_id'] ); } } /** * Save custom menu item fields. * * @since 1.4 */ public static function ajax_save_menu_item_settings() { check_ajax_referer( 'megamenu_edit' ); $submitted_settings = isset( $_POST['settings'] ) ? $_POST['settings'] : array(); $menu_item_id = absint( $_POST['menu_item_id'] ); if ( $menu_item_id > 0 && is_array( $submitted_settings ) ) { // only check the checkbox values if the general settings form was submitted if ( isset( $_POST['tab'] ) && $_POST['tab'] == 'general_settings' ) { // Hide Text checkbox is unchecked if ( ! isset( $submitted_settings['hide_text'] ) ) { $submitted_settings['hide_text'] = 'false'; } // Disable Link checkbox is unchecked if ( ! isset( $submitted_settings['disable_link'] ) ) { $submitted_settings['disable_link'] = 'false'; } // Disable arrow checkbox is unchecked if ( ! isset ( $submitted_settings['hide_arrow'] ) ) { $submitted_settings['hide_arrow'] = 'false'; } // Hide on mobile checkbox is unchecked if ( ! isset ( $submitted_settings['hide_on_mobile'] ) ) { $submitted_settings['hide_on_mobile'] = 'false'; } // Hide on mobile checkbox is unchecked if ( ! isset ( $submitted_settings['hide_sub_menu_on_mobile'] ) ) { $submitted_settings['hide_sub_menu_on_mobile'] = 'false'; } // Hide on desktop checkbox is unchecked if ( ! isset ( $submitted_settings['hide_on_desktop'] ) ) { $submitted_settings['hide_on_desktop'] = 'false'; } } $submitted_settings = apply_filters( "megamenu_menu_item_submitted_settings", $submitted_settings, $menu_item_id ); $existing_settings = get_post_meta( $menu_item_id, '_megamenu', true); if ( is_array( $existing_settings ) ) { $submitted_settings = array_merge( $existing_settings, $submitted_settings ); } update_post_meta( $menu_item_id, '_megamenu', $submitted_settings ); do_action( "megamenu_save_menu_item_settings", $menu_item_id ); } if ( isset( $_POST['clear_cache'] ) ) { do_action("megamenu_delete_cache"); } if ( ob_get_contents() ) ob_clean(); // remove any warnings or output from other plugins which may corrupt the response wp_send_json_success(); } /** * Return the HTML to display in the Lightbox * * @since 1.4 * @return string */ public function ajax_get_lightbox_html() { check_ajax_referer( 'megamenu_edit' ); $this->init(); $tabs = array(); $tabs = apply_filters( "megamenu_tabs", $tabs, $this->menu_item_id, $this->menu_id, $this->menu_item_depth, $this->menu_item_meta ); if ( ob_get_contents() ) ob_clean(); // remove any warnings or output from other plugins which may corrupt the response wp_send_json_success( json_encode( $tabs ) ); } /** * Return the HTML to display in the 'Mega Menu' tab * * @since 1.7 * @return array */ public function add_mega_menu_tab( $tabs, $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ) { if ( $menu_item_depth > 0 ) { $tabs['mega_menu'] = array( 'title' => __('Sub Menu', 'megamenu'), 'content' => '' . __( "Mega Menus can only be created on top level menu items.", "megamenu" ) . '' ); return $tabs; } $submenu_options = apply_filters("megamenu_submenu_options", array( 'flyout' => __("Flyout Menu", "megamenu"), 'grid' => __("Mega Menu - Grid Layout", "megamenu"), 'megamenu' => __("Mega Menu - Standard Layout", "megamenu") ), $menu_item_meta); $return = ""; $return .= ""; $widget_manager = new Mega_Menu_Widget_Manager(); $all_widgets = $widget_manager->get_available_widgets(); $return .= "
"; $return .= " "; $return .= " "; $return .= "
"; $return .= $this->get_megamenu_html( $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ); $return .= $this->get_megamenu_grid_html( $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ); $tabs['mega_menu'] = array( 'title' => __('Mega Menu', 'megamenu'), 'content' => $return ); return $tabs; } /** * Return the HTML for the grid layout * * @since 2.4 * @return string */ public function get_megamenu_grid_html( $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ) { $css_version = get_transient("megamenu_css_version"); $return = "
"; if ( $css_version && version_compare( $css_version, '2.3.9', '<=' ) ) { $link = "" . __("Mega Menu") . " > " . __("Tools") . ""; $return .= "

"; $return .= sprintf( __("Your menu CSS needs to be updated first. Please go to %s and Clear the CSS Cache (you will only need to do this once).", "megamenu") , $link); $return .= "

"; $return .= "
"; return $return; } $widget_manager = new Mega_Menu_Widget_Manager(); $grid = $widget_manager->get_grid_widgets_and_menu_items_for_menu_id( $menu_item_id, $menu_id ); if ( count ( $grid ) ) { foreach ( $grid as $row => $row_data ) { $column_html = ""; if ( isset( $row_data['columns'] ) && count( $row_data['columns'] ) ) { foreach ( $row_data['columns'] as $col => $col_data ) { $column_html .= $this->get_grid_column( $row_data, $col_data ); } } $return .= $this->get_grid_row( $row_data, $column_html ); } } $return .= " "; $return .= ""; return $return; } /** * Return the HTML to display in the Lightbox * * @since 2.4 * @return string */ public function ajax_get_empty_grid_column() { check_ajax_referer( 'megamenu_edit' ); $return = $this->get_grid_column(); if ( ob_get_contents() ) ob_clean(); // remove any warnings or output from other plugins which may corrupt the response wp_send_json_success( $return ); } /** * Return the HTML to display in the Lightbox * * @since 2.4 * @return string */ public function ajax_get_empty_grid_row() { check_ajax_referer( 'megamenu_edit' ); $column_html = $this->get_grid_column(); $return = $this->get_grid_row( false, $column_html ); if ( ob_get_contents() ) ob_clean(); // remove any warnings or output from other plugins which may corrupt the response wp_send_json_success( $return ); } /** * Return the HTML for a single row * * @param array $row_data * @param string $column_html * @since 2.4 * @return string */ public function get_grid_row( $row_data = false, $column_html = false ) { $hide_on_desktop_checked = "false"; $hide_on_desktop = 'mega-enabled'; if ( isset( $row_data['meta']['hide-on-desktop'] ) && $row_data['meta']['hide-on-desktop'] == 'true' ) { $hide_on_desktop = 'mega-disabled'; $hide_on_desktop_checked = "true"; } $hide_on_mobile_checked = "false"; $hide_on_mobile = 'mega-enabled'; if ( isset( $row_data['meta']['hide-on-mobile'] ) && $row_data['meta']['hide-on-mobile'] == 'true' ) { $hide_on_mobile = 'mega-disabled'; $hide_on_mobile_checked = "true"; } $row_columns = 12; if ( isset( $row_data['meta']['columns'] ) ) { $row_columns = intval( $row_data['meta']['columns'] ); } $desktop_tooltip_visible = __("Row", "megamenu") . ": " . __("Visible on desktop", "megamenu"); $desktop_tooltip_hidden = __("Row", "megamenu") . ": " . __("Hidden on desktop", "megamenu"); $mobile_tooltip_visible = __("Row", "megamenu") . ": " . __("Visible on mobile", "megamenu"); $mobile_tooltip_hidden = __("Row", "megamenu") . ": " . __("Hidden on mobile", "megamenu"); $row_class = isset( $row_data['meta']['class'] ) ? $row_data['meta']['class'] : ""; $return = "
"; $return .= "
"; $return .= "
"; $return .= " "; $return .= " "; $return .= " "; $return .= " "; $return .= " "; $return .= "
"; $return .= "
"; $return .= " "; $return .= " "; $return .= "
"; $return .= " "; $return .= " "; $return .= "
"; $return .= "
"; $return .= " "; $return .= " "; $return .= "
"; $return .= " "; $return .= "
"; $return .= " "; $return .= "
"; $return .= "
"; $return .= "

" . __( 'You should rearrange the content of this row so that all columns fit onto a single line.', 'megamenu' ) . "

"; $return .= "
"; $return .= "
"; $return .= "

" . __( 'There is not enough space on this row to add a new column.', 'megamenu' ) . "

"; $return .= "
"; $return .= $column_html; $return .= "
"; return $return; } /** * Return the HTML for an individual grid column * * @param array $col_data * @since 2.4 * @return string */ public function get_grid_column( $row_data = false, $col_data = false ) { $col_span = 3; $row_columns = 12; if ( isset( $row_data['meta']['columns'] ) ) { $row_columns = intval( $row_data['meta']['columns'] ); } if ( isset( $col_data['meta']['span'] ) ) { $col_span = $col_data['meta']['span']; } $hide_on_desktop_checked = "false"; $hide_on_desktop = 'mega-enabled'; if ( isset( $col_data['meta']['hide-on-desktop'] ) && $col_data['meta']['hide-on-desktop'] == 'true' ) { $hide_on_desktop = 'mega-disabled'; $hide_on_desktop_checked = "true"; } $hide_on_mobile_checked = "false"; $hide_on_mobile = 'mega-enabled'; if ( isset( $col_data['meta']['hide-on-mobile'] ) && $col_data['meta']['hide-on-mobile'] == 'true' ) { $hide_on_mobile = 'mega-disabled'; $hide_on_mobile_checked = "true"; } $desktop_tooltip_visible = __("Column", "megamenu") . ": " . __("Visible on desktop", "megamenu"); $desktop_tooltip_hidden = __("Column", "megamenu") . ": " . __("Hidden on desktop", "megamenu"); $mobile_tooltip_visible = __("Column", "megamenu") . ": " . __("Visible on mobile", "megamenu"); $mobile_tooltip_hidden = __("Column", "megamenu") . ": " . __("Hidden on mobile", "megamenu"); $col_class = isset( $col_data['meta']['class'] ) ? $col_data['meta']['class'] : ""; $return = "
"; $return .= "
"; $return .= "
"; $return .= "
"; $return .= " "; $return .= " "; $return .= " "; $return .= " "; $return .= " "; $return .= "
"; $return .= '
'; $return .= ' '; $return .= " {$col_span}/" . $row_columns . ""; $return .= ' '; $return .= '
'; $return .= "
"; $return .= "
"; $return .= " "; $return .= " "; $return .= " "; $return .= " "; $return .= " "; $return .= "
"; $return .= "
"; if ( isset( $col_data['items'] ) && count( $col_data['items'] ) ) { foreach ( $col_data['items'] as $item ) { $return .= '
'; $return .= '
'; $return .= '
'; $return .= '

' . esc_html( $item['title'] ) . '

'; $return .= ' ' . esc_html( $item['description'] ) . ''; $return .= '
'; $return .= '
'; $return .= ' '; $return .= '
'; $return .= '
'; $return .= '
'; $return .= '
'; } } $return .= "
"; $return .= "
"; $return .= "
"; return $return; } /** * Return the HTML for the standard (non grid) mega menu builder * * @return string */ public function get_megamenu_html( $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ) { $widget_manager = new Mega_Menu_Widget_Manager(); $return = "
"; $items = $widget_manager->get_widgets_and_menu_items_for_menu_id( $menu_item_id, $menu_id ); if ( count ( $items ) ) { foreach ( $items as $item ) { $return .= '
'; $return .= '
'; $return .= '
'; $return .= ' '; $return .= ' ' . $item['columns'] . '/' . $menu_item_meta['panel_columns'] . ''; $return .= ' '; $return .= ' '; $return .= '
'; $return .= '
'; $return .= '

' . esc_html( $item['title'] ) . '

'; $return .= '
'; $return .= '
'; $return .= '
'; $return .= '
'; } } else { $return .= "

" . __("No widgets found. Add a widget to this area using the Widget Selector (top right)", "megamenu") . "

"; } $return .= "
"; return $return; } /** * Return the HTML to display in the 'General Settings' tab * * @since 1.7 * @return array */ public function add_general_settings_tab( $tabs, $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ) { $return = '
'; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= '

' . __("Menu Item Settings", "megamenu") . '

'; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= apply_filters("megamenu_after_menu_item_settings", "", $tabs, $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ); $return .= '
'; $return .= __("Hide Text", "megamenu"); $return .= ' '; $return .= ' '; $return .= '
'; $return .= __("Hide Arrow", "megamenu"); $return .= ' '; $return .= ' '; $return .= '
'; $return .= __("Disable Link", "megamenu"); $return .= ' '; $return .= ' '; $return .= '
'; $return .= __("Hide Item on Mobile", "megamenu"); $return .= ' '; $return .= ' '; $return .= '
'; $return .= __("Hide Item on Desktop", "megamenu"); $return .= ' '; $return .= ' '; $return .= '
'; $return .= __("Menu Item Align", "megamenu"); $return .= ' '; if ( $menu_item_depth == 0 ) { $item_align = $menu_item_meta['item_align']; $float_left_display = $item_align == 'float-left' ? 'block' : 'none'; $left_display = $item_align == 'left' ? 'block' : 'none'; $right_display = $item_align == 'right' ? 'block' : 'none'; $return .= ' '; $return .= '
'; $return .= "
"; $return .= "
" . __("Item will be aligned based on the 'Menu Items Align' option set in the Theme Editor", "megamenu") . "
"; $return .= "
" . __("Right aligned items will appear in reverse order on the right hand side of the menu bar", "megamenu") . "
"; $return .= '
'; } else { $return .= '' . __("Option only available for top level menu items", "megamenu") . ''; } $return .= '
'; $return .= __("Icon Position", "megamenu"); $return .= ' '; $return .= ' '; $return .= '
'; $return .= '

' . __("Sub Menu Settings", "megamenu") . '

'; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= ' '; $return .= apply_filters("megamenu_after_menu_item_submenu_settings", "", $tabs, $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ); $return .= '
'; $return .= __("Sub Menu Align", "megamenu"); $return .= ' '; if ( $menu_item_depth == 0 ) { $return .= ' '; $return .= '
'; $return .= __("Right aligned flyout menus will expand to the left", "megamenu"); $return .= '
'; } else { $return .= '' . __("Option only available for top level menu items", "megamenu") . ''; } $return .= '
'; $return .= __("Hide Sub Menu on Mobile", "megamenu"); $return .= ' '; $return .= ' '; $return .= '
'; $return .= get_submit_button(); $return .= '
'; $tabs['general_settings'] = array( 'title' => __('Settings', 'megamenu'), 'content' => $return ); return $tabs; } /** * Return the HTML to display in the 'menu icon' tab * * @since 1.7 * @return array */ public function add_icon_tab( $tabs, $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ) { $icon_tabs = array( 'dashicons' => array( 'title' => __("Dashicons", "megamenu"), 'active' => ! isset( $menu_item_meta['icon'] ) || ( isset( $menu_item_meta['icon'] ) && substr( $menu_item_meta['icon'], 0, strlen("dash") ) === "dash" || $menu_item_meta['icon'] == 'disabled' ), 'content' => $this->dashicon_selector() ), 'fontawesome' => array( 'title' => __("Font Awesome", "megamenu"), 'active' => false, 'content' => str_replace( "{link}", "" . __("Max Mega Menu Pro", "megamenu") . "", __("Get access to over 400 Font Awesome Icons with {link}", "megamenu") ) ), 'genericons' => array( 'title' => __("Genericons", "megamenu"), 'active' => false, 'content' => str_replace( "{link}", "" . __("Max Mega Menu Pro", "megamenu") . "", __("Choose from over 100 genericons with {link}", "megamenu") ) ), 'custom' => array( 'title' => __("Custom Icon", "megamenu"), 'active' => false, 'content' => str_replace( "{link}", "" . __("Max Mega Menu Pro", "megamenu") . "", __("Select icons from your media library with {link}", "megamenu") ) ) ); $icon_tabs = apply_filters( "megamenu_icon_tabs", $icon_tabs, $menu_item_id, $menu_id, $menu_item_depth, $menu_item_meta ); $return = "

" . __("Menu Item Icon", "megamenu") . "

"; $return .= ""; $return .= "
"; foreach ($icon_tabs as $id => $icon_tab) { $display = $icon_tab['active'] ? "block" : "none"; $return .= "
"; $return .= "
"; $return .= " "; $return .= " "; $return .= " "; $return .= $icon_tab['content']; $return .= "
"; $return .= "
"; } $tabs['menu_icon'] = array( 'title' => __('Icon', 'megamenu'), 'content' => $return ); return $tabs; } /** * Return the form to select a dashicon * * @since 1.5.2 * @return string */ private function dashicon_selector() { $return = "
menu_item_meta['icon'], 'disabled', false ) . " />"; $return .= "
"; foreach ( $this->all_icons() as $code => $class ) { $bits = explode( "-", $code ); $code = "&#x" . $bits[1] . ""; $type = $bits[0]; $return .= "
"; $return .= " menu_item_meta['icon'], $class, false ) . " />"; $return .= " "; $return .= "
"; } return $return; } /** * List of all available DashIcon classes. * * @since 1.0 * @return array - Sorted list of icon classes */ public function all_icons() { $icons = array( 'dash-f333' => 'dashicons-menu', 'dash-f319' => 'dashicons-admin-site', 'dash-f226' => 'dashicons-dashboard', 'dash-f109' => 'dashicons-admin-post', 'dash-f104' => 'dashicons-admin-media', 'dash-f103' => 'dashicons-admin-links', 'dash-f105' => 'dashicons-admin-page', 'dash-f101' => 'dashicons-admin-comments', 'dash-f100' => 'dashicons-admin-appearance', 'dash-f106' => 'dashicons-admin-plugins', 'dash-f110' => 'dashicons-admin-users', 'dash-f107' => 'dashicons-admin-tools', 'dash-f108' => 'dashicons-admin-settings', 'dash-f112' => 'dashicons-admin-network', 'dash-f102' => 'dashicons-admin-home', 'dash-f111' => 'dashicons-admin-generic', 'dash-f148' => 'dashicons-admin-collapse', 'dash-f536' => 'dashicons-filter', 'dash-f540' => 'dashicons-admin-customizer', 'dash-f541' => 'dashicons-admin-multisite', 'dash-f119' => 'dashicons-welcome-write-blog', 'dash-f133' => 'dashicons-welcome-add-page', 'dash-f115' => 'dashicons-welcome-view-site', 'dash-f116' => 'dashicons-welcome-widgets-menus', 'dash-f117' => 'dashicons-welcome-comments', 'dash-f118' => 'dashicons-welcome-learn-more', 'dash-f123' => 'dashicons-format-aside', 'dash-f128' => 'dashicons-format-image', 'dash-f161' => 'dashicons-format-gallery', 'dash-f126' => 'dashicons-format-video', 'dash-f130' => 'dashicons-format-status', 'dash-f122' => 'dashicons-format-quote', 'dash-f125' => 'dashicons-format-chat', 'dash-f127' => 'dashicons-format-audio', 'dash-f306' => 'dashicons-camera', 'dash-f232' => 'dashicons-images-alt', 'dash-f233' => 'dashicons-images-alt2', 'dash-f234' => 'dashicons-video-alt', 'dash-f235' => 'dashicons-video-alt2', 'dash-f236' => 'dashicons-video-alt3', 'dash-f501' => 'dashicons-media-archive', 'dash-f500' => 'dashicons-media-audio', 'dash-f499' => 'dashicons-media-code', 'dash-f498' => 'dashicons-media-default', 'dash-f497' => 'dashicons-media-document', 'dash-f496' => 'dashicons-media-interactive', 'dash-f495' => 'dashicons-media-spreadsheet', 'dash-f491' => 'dashicons-media-text', 'dash-f490' => 'dashicons-media-video', 'dash-f492' => 'dashicons-playlist-audio', 'dash-f493' => 'dashicons-playlist-video', 'dash-f522' => 'dashicons-controls-play', 'dash-f523' => 'dashicons-controls-pause', 'dash-f519' => 'dashicons-controls-forward', 'dash-f517' => 'dashicons-controls-skipforward', 'dash-f518' => 'dashicons-controls-back', 'dash-f516' => 'dashicons-controls-skipback', 'dash-f515' => 'dashicons-controls-repeat', 'dash-f521' => 'dashicons-controls-volumeon', 'dash-f520' => 'dashicons-controls-volumeoff', 'dash-f165' => 'dashicons-image-crop', 'dash-f531' => 'dashicons-image-rotate', 'dash-f166' => 'dashicons-image-rotate-left', 'dash-f167' => 'dashicons-image-rotate-right', 'dash-f168' => 'dashicons-image-flip-vertical', 'dash-f169' => 'dashicons-image-flip-horizontal', 'dash-f533' => 'dashicons-image-filter', 'dash-f171' => 'dashicons-undo', 'dash-f172' => 'dashicons-redo', 'dash-f200' => 'dashicons-editor-bold', 'dash-f201' => 'dashicons-editor-italic', 'dash-f203' => 'dashicons-editor-ul', 'dash-f204' => 'dashicons-editor-ol', 'dash-f205' => 'dashicons-editor-quote', 'dash-f206' => 'dashicons-editor-alignleft', 'dash-f207' => 'dashicons-editor-aligncenter', 'dash-f208' => 'dashicons-editor-alignright', 'dash-f209' => 'dashicons-editor-insertmore', 'dash-f210' => 'dashicons-editor-spellcheck', 'dash-f211' => 'dashicons-editor-expand', 'dash-f506' => 'dashicons-editor-contract', 'dash-f212' => 'dashicons-editor-kitchensink', 'dash-f213' => 'dashicons-editor-underline', 'dash-f214' => 'dashicons-editor-justify', 'dash-f215' => 'dashicons-editor-textcolor', 'dash-f216' => 'dashicons-editor-paste-word', 'dash-f217' => 'dashicons-editor-paste-text', 'dash-f218' => 'dashicons-editor-removeformatting', 'dash-f219' => 'dashicons-editor-video', 'dash-f220' => 'dashicons-editor-customchar', 'dash-f221' => 'dashicons-editor-outdent', 'dash-f222' => 'dashicons-editor-indent', 'dash-f223' => 'dashicons-editor-help', 'dash-f224' => 'dashicons-editor-strikethrough', 'dash-f225' => 'dashicons-editor-unlink', 'dash-f320' => 'dashicons-editor-rtl', 'dash-f474' => 'dashicons-editor-break', 'dash-f475' => 'dashicons-editor-code', 'dash-f476' => 'dashicons-editor-paragraph', 'dash-f535' => 'dashicons-editor-table', 'dash-f135' => 'dashicons-align-left', 'dash-f136' => 'dashicons-align-right', 'dash-f134' => 'dashicons-align-center', 'dash-f138' => 'dashicons-align-none', 'dash-f160' => 'dashicons-lock', 'dash-f528' => 'dashicons-unlock', 'dash-f145' => 'dashicons-calendar', 'dash-f508' => 'dashicons-calendar-alt', 'dash-f177' => 'dashicons-visibility', 'dash-f530' => 'dashicons-hidden', 'dash-f173' => 'dashicons-post-status', 'dash-f464' => 'dashicons-edit', 'dash-f182' => 'dashicons-trash', 'dash-f537' => 'dashicons-sticky', 'dash-f504' => 'dashicons-external', 'dash-f142' => 'dashicons-arrow-up', 'dash-f140' => 'dashicons-arrow-down', 'dash-f139' => 'dashicons-arrow-right', 'dash-f141' => 'dashicons-arrow-left', 'dash-f342' => 'dashicons-arrow-up-alt', 'dash-f346' => 'dashicons-arrow-down-alt', 'dash-f344' => 'dashicons-arrow-right-alt', 'dash-f340' => 'dashicons-arrow-left-alt', 'dash-f343' => 'dashicons-arrow-up-alt2', 'dash-f347' => 'dashicons-arrow-down-alt2', 'dash-f345' => 'dashicons-arrow-right-alt2', 'dash-f341' => 'dashicons-arrow-left-alt2', 'dash-f156' => 'dashicons-sort', 'dash-f229' => 'dashicons-leftright', 'dash-f503' => 'dashicons-randomize', 'dash-f163' => 'dashicons-list-view', 'dash-f164' => 'dashicons-exerpt-view', 'dash-f509' => 'dashicons-grid-view', 'dash-f237' => 'dashicons-share', 'dash-f240' => 'dashicons-share-alt', 'dash-f242' => 'dashicons-share-alt2', 'dash-f301' => 'dashicons-twitter', 'dash-f303' => 'dashicons-rss', 'dash-f465' => 'dashicons-email', 'dash-f466' => 'dashicons-email-alt', 'dash-f304' => 'dashicons-facebook', 'dash-f305' => 'dashicons-facebook-alt', 'dash-f462' => 'dashicons-googleplus', 'dash-f325' => 'dashicons-networking', 'dash-f308' => 'dashicons-hammer', 'dash-f309' => 'dashicons-art', 'dash-f310' => 'dashicons-migrate', 'dash-f311' => 'dashicons-performance', 'dash-f483' => 'dashicons-universal-access', 'dash-f507' => 'dashicons-universal-access-alt', 'dash-f486' => 'dashicons-tickets', 'dash-f484' => 'dashicons-nametag', 'dash-f481' => 'dashicons-clipboard', 'dash-f487' => 'dashicons-heart', 'dash-f488' => 'dashicons-megaphone', 'dash-f489' => 'dashicons-schedule', 'dash-f120' => 'dashicons-wordpress', 'dash-f324' => 'dashicons-wordpress-alt', 'dash-f157' => 'dashicons-pressthis', 'dash-f463' => 'dashicons-update', 'dash-f180' => 'dashicons-screenoptions', 'dash-f348' => 'dashicons-info', 'dash-f174' => 'dashicons-cart', 'dash-f175' => 'dashicons-feedback', 'dash-f176' => 'dashicons-cloud', 'dash-f326' => 'dashicons-translation', 'dash-f323' => 'dashicons-tag', 'dash-f318' => 'dashicons-category', 'dash-f480' => 'dashicons-archive', 'dash-f479' => 'dashicons-tagcloud', 'dash-f478' => 'dashicons-text', 'dash-f147' => 'dashicons-yes', 'dash-f158' => 'dashicons-no', 'dash-f335' => 'dashicons-no-alt', 'dash-f132' => 'dashicons-plus', 'dash-f502' => 'dashicons-plus-alt', 'dash-f460' => 'dashicons-minus', 'dash-f153' => 'dashicons-dismiss', 'dash-f159' => 'dashicons-marker', 'dash-f155' => 'dashicons-star-filled', 'dash-f459' => 'dashicons-star-half', 'dash-f154' => 'dashicons-star-empty', 'dash-f227' => 'dashicons-flag', 'dash-f534' => 'dashicons-warning', 'dash-f230' => 'dashicons-location', 'dash-f231' => 'dashicons-location-alt', 'dash-f178' => 'dashicons-vault', 'dash-f332' => 'dashicons-shield', 'dash-f334' => 'dashicons-shield-alt', 'dash-f468' => 'dashicons-sos', 'dash-f179' => 'dashicons-search', 'dash-f181' => 'dashicons-slides', 'dash-f183' => 'dashicons-analytics', 'dash-f184' => 'dashicons-chart-pie', 'dash-f185' => 'dashicons-chart-bar', 'dash-f238' => 'dashicons-chart-line', 'dash-f239' => 'dashicons-chart-area', 'dash-f307' => 'dashicons-groups', 'dash-f338' => 'dashicons-businessman', 'dash-f336' => 'dashicons-id', 'dash-f337' => 'dashicons-id-alt', 'dash-f312' => 'dashicons-products', 'dash-f313' => 'dashicons-awards', 'dash-f314' => 'dashicons-forms', 'dash-f473' => 'dashicons-testimonial', 'dash-f322' => 'dashicons-portfolio', 'dash-f330' => 'dashicons-book', 'dash-f331' => 'dashicons-book-alt', 'dash-f316' => 'dashicons-download', 'dash-f317' => 'dashicons-upload', 'dash-f321' => 'dashicons-backup', 'dash-f469' => 'dashicons-clock', 'dash-f339' => 'dashicons-lightbulb', 'dash-f482' => 'dashicons-microphone', 'dash-f472' => 'dashicons-desktop', 'dash-f471' => 'dashicons-tablet', 'dash-f470' => 'dashicons-smartphone', 'dash-f525' => 'dashicons-phone', 'dash-f510' => 'dashicons-index-card', 'dash-f511' => 'dashicons-carrot', 'dash-f512' => 'dashicons-building', 'dash-f513' => 'dashicons-store', 'dash-f514' => 'dashicons-album', 'dash-f527' => 'dashicons-palmtree', 'dash-f524' => 'dashicons-tickets-alt', 'dash-f526' => 'dashicons-money', 'dash-f328' => 'dashicons-smiley', 'dash-f529' => 'dashicons-thumbs-up', 'dash-f542' => 'dashicons-thumbs-down', 'dash-f538' => 'dashicons-layout' ); $icons = apply_filters( "megamenu_dashicons", $icons ); ksort( $icons ); return $icons; } } endif;