Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > ocean-extra > includes
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
admin-bar | Directory | - | - | |
client-migration | Directory | - | - | |
compatibility | Directory | - | - | |
customizer | Directory | - | - | |
freemius | Directory | - | - | |
menu-icons | Directory | - | - | |
metabox | Directory | - | - | |
onboarding | Directory | - | - | |
panel | Directory | - | - | |
post-settings | Directory | - | - | |
preloader | Directory | - | - | |
shortcodes | Directory | - | - | |
themepanel | Directory | - | - | |
widgets | Directory | - | - | |
wizard | Directory | - | - | |
adobe-font.php | File | 8297 bytes | October 16 2024 13:55:14. | |
custom-code.php | File | 2245 bytes | October 16 2024 13:55:14. | |
dashboard.php | File | 7546 bytes | February 27 2025 13:36:14. | |
image-resizer.php | File | 11613 bytes | October 16 2024 13:55:14. | |
jshrink.php | File | 21650 bytes | May 23 2023 11:24:42. | |
ocean-extra-strings.php | File | 2285 bytes | November 09 2022 13:00:36. | |
plugins-tab.php | File | 5824 bytes | November 27 2024 14:36:28. | |
update-message.php | File | 6286 bytes | January 27 2025 17:10:18. | |
utils.php | File | 1534 bytes | May 14 2025 14:50:00. | |
walker.php | File | 6045 bytes | January 27 2022 15:28:52. |
<?php /** * Custom wp_nav_menu walker for the Custom Menu widget. * * @package Ocean_Extra * @category Core * @author OceanWP */ if ( ! class_exists( 'Ocean_Extra_Nav_Walker' ) ) { class Ocean_Extra_Nav_Walker extends Walker_Nav_Menu { /** * Middle logo menu breaking point * * @access private * @var init */ private $break_point = null; /** * Middle logo menu number of top level items displayed * * @access private * @var init */ private $displayed = 0; /** * Starts the list before the elements are added. * * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of menu item. Used for padding. * @param array $args An array of arguments. @see wp_nav_menu() */ public function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat( "\t", $depth ); $output .= "\n$indent<ul class=\"sub-menu\">\n"; } /** * Modified the menu output. * * @param string $output Passed by reference. Used to append additional content. * @param object $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param array $args An array of arguments. @see wp_nav_menu() * @param int $id Current item ID. */ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { global $wp_query; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; // Set up empty variable. $class_names = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $classes[] = 'menu-item-' . $item->ID; // Nav no click if ( $item->nolink != '' ) { $classes[] = 'nav-no-click'; } /** * Filter the CSS class(es) applied to a menu item's <li>. * * @param array $classes The CSS classes that are applied to the menu item's <li>. * @param object $item The current menu item. * @param array $args An array of wp_nav_menu() arguments. */ $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) ); $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; /** * Filter the ID applied to a menu item's <li>. * * @param string $menu_id The ID that is applied to the menu item's <li>. * @param object $item The current menu item. * @param array $args An array of wp_nav_menu() arguments. */ $id = apply_filters( 'nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args ); $id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; // <li> output. $output .= $indent . '<li ' . $id . $class_names . '>'; // link attributes $attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) . '"' : ''; $attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) . '"' : ''; $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) . '"' : ''; $attributes .= ! empty( $item->url ) ? ' href="' . esc_url( $item->url ) . '"' : ''; // Icon. $icon = ''; if ( $item->icon != '' ) { $icon = '<i class="' . $item->icon . '"></i>'; } // Description $description = ''; if ( $item->description != '' ) { $description = '<span class="nav-content">' . $item->description . '</span>'; } // Text before and after $text_before = ''; $text_after = ''; if ( $item->icon != '' ) { $text_before = '<span class="menu-text">'; $text_after = '</span>'; } // Output $item_output = $args->before; $item_output .= '<a' . $attributes . ' class="menu-link">'; $item_output .= $args->link_before . $icon . $text_before . apply_filters( 'the_title', $item->title, $item->ID ) . $text_after . $args->link_after; if ( $depth !== 0 ) { $item_output .= $description; } $item_output .= '</a>'; $item_output .= $args->after; // Build html $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); } /** * Ends the list of after the elements are added. * * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of menu item. Used for padding. * @param array $args An array of arguments. @see wp_nav_menu() */ public function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat( "\t", $depth ); $output .= "$indent</ul>\n"; } /** * Icon if sub menu. */ public function display_element( $element, &$children_elements = array(), $max_depth = 0, $depth = 0, $args = array(), &$output = '' ) { // Define vars $id_field = $this->db_fields['id']; $header_style = oceanwp_header_style(); if ( is_object( $args[0] ) ) { $args[0]->has_children = ! empty( $children_elements[ $element->$id_field ] ); } // Down Arrows if ( ! empty( $children_elements[ $element->$id_field ] ) && ( $depth == 0 ) || $element->category_post != '' && $element->object == 'category' ) { $element->classes[] = 'dropdown'; if ( true == get_theme_mod( 'ocean_menu_arrow_down', true ) ) { $element->title .= ' <span class="nav-arrow fa fa-angle-down"></span>'; } } // Right/Left Arrows if ( ! empty( $children_elements[ $element->$id_field ] ) && ( $depth > 0 ) ) { $element->classes[] = 'dropdown'; if ( true == get_theme_mod( 'ocean_menu_arrow_side', true ) ) { if ( is_rtl() ) { $element->title .= '<span class="nav-arrow fa fa-angle-left"></span>'; } else { $element->title .= '<span class="nav-arrow fa fa-angle-right"></span>'; } } } // Define walker Walker_Nav_Menu::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); } } }
SILENT KILLER Tool