403Webshell
Server IP : 104.171.130.249  /  Your IP : 216.73.216.146
Web Server : nginx/1.25.5
System : Linux 0dac65491b7e 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/matreshka/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/matreshka/inc/walkers.php
<?php
/**
 * Кастомный Walker для вывода меню без <ul>/<li>, только ссылки
 */

class Matreshka_Footer_Link_Walker extends Walker_Nav_Menu {
    public function start_lvl( &$output, $depth = 0, $args = null ) {
        // Не выводим уровни списков
    }

    public function end_lvl( &$output, $depth = 0, $args = null ) {
        // Не выводим уровни списков
    }

    public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
        $classes = 'montserrat-regular';
        if ( $depth === 0 && ! empty( $item->classes ) && in_array( 'menu-item-has-children', (array) $item->classes, true ) ) {
            // no-op
        }

        $atts = '';
        $atts .= ' href="' . esc_url( $item->url ) . '"';
        if ( ! empty( $item->target ) ) {
            $atts .= ' target="' . esc_attr( $item->target ) . '"';
        }
        if ( ! empty( $item->xfn ) ) {
            $atts .= ' rel="' . esc_attr( $item->xfn ) . '"';
        }

        $title = apply_filters( 'the_title', $item->title, $item->ID );
        $output .= '<a class="' . esc_attr( $classes ) . '"' . $atts . '>' . esc_html( $title ) . '</a>';
    }

    public function end_el( &$output, $item, $depth = 0, $args = null ) {
        // Ничего не закрываем, так как вывели только <a>
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit