X7ROOT File Manager
Current Path:
/home/notabjze/hourglass.life/wp-content/themes/smart-mag/inc
home
/
notabjze
/
hourglass.life
/
wp-content
/
themes
/
smart-mag
/
inc
/
ðŸ“
..
ðŸ“
admin
📄
admin.php
(6.3 KB)
ðŸ“
amp
📄
archives.php
(3.35 KB)
📄
authenticate.php
(3.25 KB)
📄
bunyad.php
(711 B)
ðŸ“
core
📄
custom-codes.php
(8.22 KB)
📄
custom-css.php
(5.5 KB)
📄
customizer.php
(1.5 KB)
📄
dark-mode.php
(1.61 KB)
ðŸ“
demos
ðŸ“
integrations
📄
lazyload.php
(9.45 KB)
📄
legacy.php
(5.03 KB)
📄
media.php
(22.27 KB)
📄
navigation.php
(1.15 KB)
📄
schema.php
(6.7 KB)
📄
search.php
(2 KB)
📄
social.php
(3.71 KB)
📄
theme.php
(30.59 KB)
Editing: navigation.php
<?php /** * Navigation menus and mega menu functionality. */ class Bunyad_Theme_Navigation { public function __construct() { add_action('bunyad_theme_init', array($this, 'init')); } public function init() { /** * Mega menu support */ add_filter('bunyad_mega_menu_end_lvl', array($this, 'attach_mega_menu')); } /** * Filter Callback: Add our custom mega-menus * * @param array $args */ public function attach_mega_menu($args) { extract($args); // Have a mega menu? if (empty($item->mega_menu)) { return $sub_menu; } ob_start(); switch ($item->mega_menu) { case 'category-a': $template = 'category-a'; break; // Legacy 'category' case 'category': $template = 'category-b'; break; default: $template = 'links'; break; } // Get our partial Bunyad::core()->partial( 'partials/header/mega-menu/' . $template, compact('item', 'sub_menu', 'sub_items', 'args') ); // Return template output return ob_get_clean(); } } // init and make available in Bunyad::get('navigation') Bunyad::register('navigation', array( 'class' => 'Bunyad_Theme_Navigation', 'init' => true ));
Upload File
Create Folder