$19 GRAYBYTE WORDPRESS FILE MANAGER $64

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bravrvjk/kigalix.com/wp-content/themes/houzez/framework/functions/

HOME
Current File : /home/bravrvjk/kigalix.com/wp-content/themes/houzez/framework/functions//mobile-menu-walker.php
<?php
/**
 * Create HTML list of nav menu items.
 */
class houzez_mobile_nav_walker extends Walker_Nav_Menu {

	function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output )
	{  
        if ( $depth == "" ) {
            $depth = 0;
        }

		$id_field = $this->db_fields['id'];
		if ( is_object( $args[0] ) ) {
			$args[0]->has_children = ! empty( $children_elements[$element->$id_field] );
		}
		return parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
	}
    /**
     * Start the element 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. May be used for padding.
     * @param  array $args    Additional strings.
     * @return void
     */
    function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
        $classes     = empty ( $item->classes ) ? array () : (array) $item->classes;

        $class_names = join(
            ' '
        ,   apply_filters(
                'nav_menu_css_class'
            ,   array_filter( $classes ), $item
            )
        );

        $dropdown_anchor_calss = '';
        $dropdown_li_class = '';
        $dropdown_span = '';
        if($args->has_children) {
        	$dropdown_li_class = "dropdown";
            $dropdown_span = '<span class="nav-mobile-trigger dropdown-toggle" data-toggle="dropdown">
                <i class="houzez-icon arrow-down-1"></i>
            </span>';
        }

        ! empty ( $class_names )
            and $class_names = ' class="nav-item '. esc_attr( $class_names.' '.$dropdown_li_class ) . '"';

        $output .= "<li $class_names>";

        $attributes  = '';

        if($depth > 0 ) {
        	$attributes .=  ' class="dropdown-item '.$dropdown_anchor_calss.'"';
        } else {
	        $attributes .=  ' class="nav-link '.$dropdown_anchor_calss.'"';
	    }
        
        ! empty( $item->attr_title )
            and $attributes .= ' title="'  . esc_attr( $item->attr_title ) .'"';
        ! empty( $item->target )
            and $attributes .= ' target="' . esc_attr( $item->target     ) .'"';
        ! empty( $item->xfn )
            and $attributes .= ' rel="'    . esc_attr( $item->xfn        ) .'"';
        ! empty( $item->url )
            and $attributes .= ' href="'   . esc_attr( $item->url        ) .'"';

        
        $description = ( ! empty ( $item->description ) and 0 == $depth )
            ? '<small class="nav_desc">' . esc_attr( $item->description ) . '</small>' : '';

        $title = apply_filters( 'the_title', $item->title, $item->ID );

        $item_output = $args->before
            . "<a $attributes>"
            . $args->link_before
            . $title
            . '</a> '
            . $dropdown_span
            . $args->link_after
            . $description
            . $args->after;

        // Since $output is called by reference we don't need to return anything.
        $output .= apply_filters(
            'walker_nav_menu_start_el'
        ,   $item_output
        ,   $item
        ,   $depth
        ,   $args
        );
    }

    function start_lvl( &$output, $depth=0, $args = array() ) {


        // depth dependent classes
        $indent = ( $depth > 0  ? str_repeat( "\t", $depth ) : '' ); // code indent
        $display_depth = ( $depth + 1); // because it counts the first submenu as 0
        $classes = array(
            'dropdown-menu'
            );
        $class_names = implode( ' ', $classes );

        // build html
        $output .= "\n" . $indent . '<ul class="' . esc_attr( $class_names ) . '">' . "\n";
    }

    function end_lvl( &$output, $depth=0, $args = array() ) {

        $indent = str_repeat("\t", $depth);
        $output .= "$indent</ul>\n";

    }
}


Current_dir [ WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 May 2025 7.51 AM
bravrvjk / bravrvjk
0755
agency_agents.php
4.479 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
blog-functions.php
4.229 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
cron-functions.php
20.979 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
emails-functions.php
71.003 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
footer-functions.php
0 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
google_map_functions.php
21.771 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
header-functions.php
0.005 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
helper_functions.php
312.992 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
membership-functions.php
164.259 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
menu-walker.php
8.098 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
messages_functions.php
19.694 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
mobile-menu-walker.php
3.805 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
open_street_map_functions.php
14.417 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
price_functions.php
58.39 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
profile_functions.php
92.208 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
property-expirator.php
11.737 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
property_functions.php
297.066 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
property_rating.php
6.112 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
review.php
25.063 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
search_functions.php
54.865 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
stats.php
12.9 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
template-functions.php
5.238 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
unknown.php
2.089 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644
woocommerce.php
0.854 KB
28 Apr 2025 7.40 AM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF