File "Navigation-20250123185435.php"
Full Path: /home/pumpbmko/public_html/themes/momota/lib/kubio-themebase/src/Components/FrontHeader/Navigation-20250123185435.php
File size: 1.25 KB
MIME-type: text/x-php
Charset: utf-8
<?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' );
}
}
}