Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
firepot
/
themes
/
momota
/
lib
/
kubio-themebase
/
src
/
Components
/
FrontHeader
:
Navigation-20250123185435.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Kubio\Theme\Components\FrontHeader; use ColibriWP\Theme\Components\FrontHeader\NavBar; use ColibriWP\Theme\Defaults; use Kubio\Theme\Components\Common\NavigationStyle; class Navigation extends NavBar { static $settings_prefix = 'front-header.navigation.'; public static function style() { return NavigationStyle::getInstance( static::getPrefix(), static::selectiveRefreshSelector() ); } // temporary, overwritten the function to disable overlap public function printNavigationClasses() { $classes = array(); $prefix = static::getPrefix(); if ( $this->mod( "{$prefix}props.overlap", Defaults::get( "{$prefix}props.overlap", false ) ) ) { $classes[] = 'h-navigation_overlap'; } if ( $width = $this->mod( "{$prefix}props.width", 'boxed' ) ) { $classes[] = "kubio-theme-nav-{$width}"; } echo esc_attr( implode( ' ', $classes ) ); } public function printNavLayoutType() { $prefix = static::getPrefix(); $layout_type = $this->mod( "{$prefix}props.layoutType", Defaults::get( "{$prefix}props.layoutType", 'logo-spacing-menu' ) ); if ( $layout_type === 'logo-spacing-menu' ) { echo esc_attr( 'has-logo-spacing-menu' ); } elseif ( $layout_type === 'logo-above-menu' ) { echo esc_attr( 'has-logo-above-menu' ); } } }