first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'admin_enqueue_scripts', 'jet_menu_bfa_admin_scripts', 99 );
function jet_menu_bfa_admin_scripts( $hook ) {
if ( in_array( $hook, array( 'toplevel_page_jet-menu', 'nav-menus.php' ) ) ) {
wp_dequeue_script( 'bfa-admin' );
wp_dequeue_script( 'fontawesome-iconpicker' );
wp_dequeue_style( 'fontawesome-iconpicker' );
}
}

View File

@@ -0,0 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'admin_enqueue_scripts', 'jet_menu_epic_ne_admin_scripts', 99 );
function jet_menu_epic_ne_admin_scripts( $hook ) {
if ( in_array( $hook, array( 'toplevel_page_jet-menu', 'nav-menus.php' ) ) ) {
wp_dequeue_script( 'bootstrap-iconpicker' );
}
}

View File

@@ -0,0 +1,3 @@
.jet-mobile-menu-active.ehf-header #masthead {
z-index: 998;
}

View File

@@ -0,0 +1,21 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_hfe_styles', 0 );
/**
* Enqueue header-footer-elementor compatibility styles
*
* @return void
*/
function jet_menu_hfe_styles() {
wp_enqueue_style(
'jet-menu-hfe',
jet_menu()->plugin_url( 'integration/plugins/header-footer-elementor/assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}

View File

@@ -0,0 +1,25 @@
<?php
/**
* Jet Menu Polylang Pro compatibility
*/
add_filter( 'jet-menu/public-manager/menu-location', 'jet_menu_polylang_pro_fix_location' );
/**
* Fix menu location for Polylang Pro plugin
*
* @param string $location Default location
* @return string
*/
function jet_menu_polylang_pro_fix_location( $location ) {
// Ensure Polylang is active.
if ( ! function_exists( 'PLL' ) || ! PLL() instanceof PLL_Frontend ) {
return $location;
}
$new_location = PLL()->nav_menu->combine_location( $location, PLL()->curlang );
return $new_location;
}

View File

@@ -0,0 +1,25 @@
<?php
/**
* Jet Menu Polylang compatibility
*/
add_filter( 'jet-menu/public-manager/menu-location', 'jet_menu_polylang_fix_location' );
/**
* Fix menu location for Polylang plugin
*
* @param string $location Default location
* @return string
*/
function jet_menu_polylang_fix_location( $location ) {
// Ensure Polylang is active.
if ( ! function_exists( 'PLL' ) || ! PLL() instanceof PLL_Frontend ) {
return $location;
}
$new_location = PLL()->nav_menu->combine_location( $location, PLL()->curlang );
return $new_location;
}

View File

@@ -0,0 +1,77 @@
<?php
add_filter( 'wp_nav_menu', 'jet_menu_fix_tribe_content', 10, 2 );
add_filter( 'parse_request', 'jet_menu_check_tribe_template', 999 );
add_filter( 'tribe_events_after_html', 'jet_menu_fix_after_tribe_content' );
function jet_menu_check_tribe_template( $query ) {
if ( ! isset( $query->query_vars['post_type'] ) ) {
return;
}
if ( 'tribe_events' === $query->query_vars['post_type'] ) {
wp_cache_add( 'jet-menu-tribe-need-fix', true );
}
}
/**
* Prevent Events calendar from broking
*/
function jet_menu_fix_tribe_content( $nav_menu, $args ) {
if ( ! isset( $args->menu_class ) || 'jet-menu' !== $args->menu_class ) {
return $nav_menu;
}
if ( ! jet_menu_need_fix_tribe_content( $args ) ) {
return $nav_menu;
}
Elementor\Plugin::instance()->frontend->remove_content_filter();
return $nav_menu;
}
/**
* Fix content after tribe
*
* @return [type] [description]
*/
function jet_menu_fix_after_tribe_content( $html ) {
if ( ! jet_menu_need_fix_tribe_content() ) {
return $html;
}
Elementor\Plugin::instance()->frontend->add_content_filter();
wp_cache_delete( 'jet-menu-tribe-need-fix' );
return $html;
}
/**
* Check if tribe content need to be fixed
*
* @return [type] [description]
*/
function jet_menu_need_fix_tribe_content() {
if ( ! class_exists( '\Elementor\Plugin' ) ) {
return false;
}
$need_fix = wp_cache_get( 'jet-menu-tribe-need-fix' );
if ( true === $need_fix ) {
return true;
}
if ( 'tribe_events' !== get_post_type() ) {
return false;
}
return true;
}

View File

@@ -0,0 +1,35 @@
.fusion-main-menu .jet-menu-container li {
float: none;
}
.fusion-main-menu-icon.top-level-link {
font-family: 'icomoon' !important;
}
.fusion-main-menu .fusion-main-menu-search a:after {
align-self: center;
}
.jet-mobile-menu-active .fusion-mobile-menu-design-modern.fusion-header-v1 .fusion-main-menu,
.jet-mobile-menu-active .fusion-mobile-menu-design-modern.fusion-header-v2 .fusion-main-menu,
.jet-mobile-menu-active .fusion-mobile-menu-design-modern.fusion-header-v3 .fusion-main-menu,
.jet-mobile-menu-active .fusion-mobile-menu-design-modern.fusion-header-v4 .fusion-main-menu,
.jet-mobile-menu-active .fusion-mobile-menu-design-modern.fusion-header-v5 .fusion-main-menu,
.jet-mobile-menu-active .fusion-mobile-menu-design-modern.fusion-header-v7 .fusion-main-menu > ul > li {
display: block !important;
}
.jet-mobile-menu-active .fusion-mobile-menu-icons .fusion-icon {
display: none;
}
div.fusion-middle-logo-menu-logo {
display: none !important;
}
.jet-mobile-menu-active div.fusion-middle-logo-menu-logo {
display: block !important;
}
.jet-mobile-menu-active li.fusion-middle-logo-menu-logo {
display: none !important;
}

View File

@@ -0,0 +1,5 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
//$( this ).closest( '.fusion-main-menu' ).removeClass( 'fusion-main-menu' ).addClass( 'jet-fusion-main-menu' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,123 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_avada_styles', 0 );
add_filter( 'wp_nav_menu_items', 'jet_menu_avada_fix_header_search', 999, 2 );
add_filter( 'jet-menu/main-walker/end-el', 'jet_menu_avada_middle_logo', 10, 5 );
add_filter( 'jet-menu/set-menu-args/', 'jet_menu_avada_mobile_middle_logo' );
/**
* Make header search in avada theme compatible with JetMenu
* @return [type] [description]
*/
function jet_menu_avada_fix_header_search( $items, $args ) {
if ( ! isset( $args->menu_class ) || 'jet-menu' !== $args->menu_class ) {
return $items;
}
$items = str_replace(
array(
'fusion-custom-menu-item fusion-main-menu-search',
'fusion-main-menu-icon',
),
array(
'fusion-custom-menu-item fusion-main-menu-search jet-menu-item jet-simple-menu-item jet-regular-item jet-responsive-menu-item',
'fusion-main-menu-icon top-level-link',
),
$items
);
return $items;
}
/**
* Enqueue avada compatibility styles
*
* @return void
*/
function jet_menu_avada_styles() {
wp_enqueue_style(
'jet-menu-avada',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}
/**
* Adds middle logo if this layout is selected
*
* @return string
*/
function jet_menu_avada_middle_logo( $output, $item, $walker, $depth, $args ) {
if ( '0' !== $item->menu_item_parent ) {
return $output;
}
$avada = Avada()->settings;
if ( 'v7' !== $avada->get( 'header_layout' ) || 'Top' !== $avada->get( 'header_position' ) ) {
return $output;
}
if ( ! isset( $walker->items_count ) ) {
$items = wp_get_nav_menu_items( $args->menu );
$count = 0;
foreach ( $items as $item ) {
if ( '0' === $item->menu_item_parent ) {
$count++;
}
}
$walker->items_count = $count;
}
if ( ! isset( $walker->item_index ) ) {
$walker->item_index = 0;
}
$walker->item_index++;
if ( absint( $walker->item_index ) === absint( ceil( $walker->items_count / 2 ) ) ) {
ob_start();
get_template_part( 'templates/logo' );
$output .= ob_get_clean();
}
return $output;
}
/**
* Add mobile fallback for middle logo
*
* @param [type] $args [description]
* @return [type] [description]
*/
function jet_menu_avada_mobile_middle_logo( $args ) {
$avada = Avada()->settings;
if ( 'v7' === $avada->get( 'header_layout' ) && 'Top' === $avada->get( 'header_position' ) ) {
ob_start();
get_template_part( 'templates/logo' );
$logo = ob_get_clean();
$logo = str_replace(
array( '<li', 'li>' ),
array( '<div', 'div>' ),
$logo
);
echo $logo;
}
return $args;
}

View File

@@ -0,0 +1,16 @@
.jet-menu-container {
text-align: initial;
line-height: 1.2;
}
.ast-header-break-point #page .ast-mobile-menu-buttons {
display: none;
}
.ast-header-break-point #page .main-header-bar-navigation {
display: block;
}
.ast-header-break-point #page .site-header {
z-index: 998;
}
.jet-menu-container .jet-mobile-menu-toggle-button .jet-menu-toggle__icon {
vertical-align: middle;
}

View File

@@ -0,0 +1,5 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
$( this ).closest( '.main-navigation' ).removeClass( 'main-navigation' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,37 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_astra_scripts', 0 );
add_action( 'wp_enqueue_scripts', 'jet_menu_astra_styles', 0 );
/**
* Enqueue astra compatibility script
*
* @return void
*/
function jet_menu_astra_scripts() {
wp_enqueue_script(
'jet-menu-astra',
jet_menu()->get_theme_url( 'assets/js/script.js' ),
array( 'jquery' ),
jet_menu()->get_version(),
true
);
}
/**
* Enqueue astra compatibility styles
*
* @return void
*/
function jet_menu_astra_styles() {
wp_enqueue_style(
'jet-menu-astra',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}

View File

@@ -0,0 +1,6 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
$( this ).closest( '#menu' ).removeAttr( 'id' ).removeAttr( 'class' );
$( '.responsive-menu-toggle ' ).css( 'display', 'none' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,39 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_filter( 'wp_nav_menu_args', 'jet_menu_betheme_fix_menu_args', 100000 );
add_action( 'wp_enqueue_scripts', 'jet_menu_betheme_scripts', 0 );
/**
* Fix nav menu arguments
* @return array
*/
function jet_menu_betheme_fix_menu_args( $args ) {
if ( ! isset( $args['menu_class'] ) || 'jet-menu' !== $args['menu_class'] ) {
return $args;
}
$args['link_before'] = '';
$args['link_after'] = '';
return $args;
}
/**
* Enqueue enfold compatibility script
*
* @return void
*/
function jet_menu_betheme_scripts() {
wp_enqueue_script(
'jet-menu-betheme',
jet_menu()->get_theme_url( 'assets/js/script.js' ),
array( 'jquery' ),
jet_menu()->get_version(),
true
);
}

View File

@@ -0,0 +1,24 @@
.jet_main_menu {
clear: none;
position: absolute;
z-index: 1000;
line-height: 30px;
height: 100%;
margin: 0;
right: 0;
}
.responsive #top.jet-mobile-menu-active #wrap_all #header {
position: static;
}
.responsive #top.jet-mobile-menu-active #wrap_all #header #header_main {
position: static;
}
.responsive #top.jet-mobile-menu-active #wrap_all #header #header_main .inner-container {
position: static;
}
.av-burger-menu-main {
display: none !important;
}

View File

@@ -0,0 +1,6 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
$( this ).closest( '.main_menu' ).removeClass( 'main_menu' ).addClass( 'jet_main_menu' );
$( this ).closest( '.avia-menu' ).removeClass( 'avia-menu av-main-nav-wrap' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,37 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_enfold_scripts', 0 );
add_action( 'wp_enqueue_scripts', 'jet_menu_enfold_styles', 0 );
/**
* Enqueue enfold compatibility script
*
* @return void
*/
function jet_menu_enfold_scripts() {
wp_enqueue_script(
'jet-menu-enfold',
jet_menu()->get_theme_url( 'assets/js/script.js' ),
array( 'jquery' ),
jet_menu()->get_version(),
true
);
}
/**
* Enqueue enfold compatibility styles
*
* @return void
*/
function jet_menu_enfold_styles() {
wp_enqueue_style(
'jet-menu-enfold',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}

View File

@@ -0,0 +1,5 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
$( this ).closest( '.main-navigation' ).removeClass( 'main-navigation' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,24 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_generatepress_scripts', 0 );
/**
* Enqueue generatepress compatibility script
*
* @return void
*/
function jet_menu_generatepress_scripts() {
wp_enqueue_script(
'jet-menu-generatepress',
jet_menu()->get_theme_url( 'assets/js/script.js' ),
array( 'jquery' ),
jet_menu()->get_version(),
true
);
}

View File

@@ -0,0 +1,3 @@
.wrapper .header .navbar .navbar-collapse {
text-align: initial;
}

View File

@@ -0,0 +1,21 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_hestia_styles', 0 );
/**
* Enqueue hestia compatibility styles
*
* @return void
*/
function jet_menu_hestia_styles() {
wp_enqueue_style(
'jet-menu-hestia',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}

View File

@@ -0,0 +1,21 @@
@media only screen and (max-width: 959px) {
body.default-breakpoint.jet-mobile-menu-active #site-navigation-wrap {
display: block;
}
}
body.jet-mobile-menu-active #oceanwp-mobile-menu-icon {
display: none;
}
body.jet-mobile-menu-active .jet-mobile-menu-cover {
z-index: 99;
}
body.jet-mobile-menu-active #top-bar-wrap {
z-index: 100;
}
.jet-mobile-menu-toggle-button .jet-menu-toggle__icon {
vertical-align: middle;
margin-top: -3px;
}

View File

@@ -0,0 +1,61 @@
<?php
add_filter( 'wp_nav_menu_items', 'jet_menu_oceanwp_fix_header_search', 999, 2 );
add_filter( 'wp_nav_menu_args', 'jet_menu_oceanwp_fix_menu_args', 100000 );
add_action( 'wp_enqueue_scripts', 'jet_menu_oceanwp_styles', 999 );
/**
* Make header search in OceanWP theme compatible with JetMenu
* @return [type] [description]
*/
function jet_menu_oceanwp_fix_header_search( $items, $args ) {
if ( ! isset( $args->menu_class ) || 'jet-menu' !== $args->menu_class ) {
return $items;
}
$items = str_replace(
array(
'search-toggle-li',
'site-search-toggle',
),
array(
'search-toggle-li jet-menu-item jet-simple-menu-item jet-regular-item jet-responsive-menu-item',
'site-search-toggle top-level-link',
),
$items
);
return $items;
}
/**
* Fix nav menu arguments
* @return array
*/
function jet_menu_oceanwp_fix_menu_args( $args ) {
if ( ! isset( $args['menu_class'] ) || 'jet-menu' !== $args['menu_class'] ) {
return $args;
}
$args['link_before'] = '';
$args['link_after'] = '';
return $args;
}
/**
* Enqueue oceanwp compatibility styles
*
* @return void
*/
function jet_menu_oceanwp_styles() {
wp_enqueue_style(
'jet-menu-oceanwp',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}

View File

@@ -0,0 +1,3 @@
body.single-jet-menu:before {
content: none;
}

View File

@@ -0,0 +1,62 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_phlox_pro_styles', 0 );
add_action( 'elementor/widget/before_render_content', 'jet_menu_remove_phlox_pro_nav_menu_filters' );
add_filter( 'elementor/widget/render_content', 'jet_menu_add_phlox_pro_nav_menu_filters', 10, 2 );
/**
* Enqueue Phlox Pro compatibility styles
*
* @return void
*/
function jet_menu_phlox_pro_styles() {
wp_enqueue_style(
'jet-menu-phlox-pro',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}
/**
* Remove phlox nav-menu filters before render the Vertical Mega Menu Widget
*/
function jet_menu_remove_phlox_pro_nav_menu_filters( $widget ) {
if ( ! in_array( $widget->get_name(), array( 'jet-mega-menu', 'jet-custom-menu' ) ) ) {
return;
}
if ( ! class_exists( 'Auxin_Master_Nav_Menu' ) ) {
return;
}
$auxin_nav_menu = Auxin_Master_Nav_Menu::get_instance();
remove_filter( 'wp_nav_menu_args', array( $auxin_nav_menu, 'change_nav_menu_frontend_walker' ), 9 );
}
/**
* Add phlox nav-menu filters after render the Vertical Mega Menu Widget
*/
function jet_menu_add_phlox_pro_nav_menu_filters( $content, $widget ) {
if ( ! in_array( $widget->get_name(), array( 'jet-mega-menu', 'jet-custom-menu' ) ) ) {
return $content;
}
if ( ! class_exists( 'Auxin_Master_Nav_Menu' ) ) {
return $content;
}
$auxin_nav_menu = Auxin_Master_Nav_Menu::get_instance();
add_filter( 'wp_nav_menu_args', array( $auxin_nav_menu, 'change_nav_menu_frontend_walker' ), 9, 1 );
return $content;
}

View File

@@ -0,0 +1,3 @@
body.single-jet-menu:before {
content: none;
}

View File

@@ -0,0 +1,62 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_phlox_styles', 0 );
add_action( 'elementor/widget/before_render_content', 'jet_menu_remove_phlox_nav_menu_filters' );
add_filter( 'elementor/widget/render_content', 'jet_menu_add_phlox_nav_menu_filters', 10, 2 );
/**
* Enqueue Phlox compatibility styles
*
* @return void
*/
function jet_menu_phlox_styles() {
wp_enqueue_style(
'jet-menu-phlox',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}
/**
* Remove phlox nav-menu filters before render the Vertical Mega Menu Widget
*/
function jet_menu_remove_phlox_nav_menu_filters( $widget ) {
if ( ! in_array( $widget->get_name(), array( 'jet-mega-menu', 'jet-custom-menu' ) ) ) {
return;
}
if ( ! class_exists( 'Auxin_Master_Nav_Menu' ) ) {
return;
}
$auxin_nav_menu = Auxin_Master_Nav_Menu::get_instance();
remove_filter( 'wp_nav_menu_args', array( $auxin_nav_menu, 'change_nav_menu_frontend_walker' ), 9 );
}
/**
* Add phlox nav-menu filters after render the Vertical Mega Menu Widget
*/
function jet_menu_add_phlox_nav_menu_filters( $content, $widget ) {
if ( ! in_array( $widget->get_name(), array( 'jet-mega-menu', 'jet-custom-menu' ) ) ) {
return $content;
}
if ( ! class_exists( 'Auxin_Master_Nav_Menu' ) ) {
return $content;
}
$auxin_nav_menu = Auxin_Master_Nav_Menu::get_instance();
add_filter( 'wp_nav_menu_args', array( $auxin_nav_menu, 'change_nav_menu_frontend_walker' ), 9, 1 );
return $content;
}

View File

@@ -0,0 +1,8 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
$( this )
.removeClass( 'nav-menu' )
.closest( '.main-navigation' ).removeClass( 'main-navigation' )
.find( '> .menu' ).css( 'display', 'none' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,22 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_storefront_scripts', 0 );
/**
* Enqueue storefront compatibility script
*
* @return void
*/
function jet_menu_storefront_scripts() {
wp_enqueue_script(
'jet-menu-storefront',
jet_menu()->get_theme_url( 'assets/js/script.js' ),
array( 'jquery' ),
jet_menu()->get_version(),
true
);
}

View File

@@ -0,0 +1,5 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
$( this ).closest( '.main-navigation' ).removeClass( 'main-navigation' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,22 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_twentyseventeen_scripts', 0 );
/**
* Enqueue twentyseventeen compatibility script
*
* @return void
*/
function jet_menu_twentyseventeen_scripts() {
wp_enqueue_script(
'jet-menu-twentyseventeen',
jet_menu()->get_theme_url( 'assets/js/script.js' ),
array( 'jquery' ),
jet_menu()->get_version(),
true
);
}

View File

@@ -0,0 +1,5 @@
( function( $ ) {
jQuery( '.jet-menu' ).on( 'jetMenuCreated', function() {
$( this ).closest( '.main-navigation' ).removeClass( 'main-navigation' );
} );
}( jQuery ) );

View File

@@ -0,0 +1,22 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_twentysixteen_scripts', 0 );
/**
* Enqueue twentysixteen compatibility script
*
* @return void
*/
function jet_menu_twentysixteen_scripts() {
wp_enqueue_script(
'jet-menu-twentysixteen',
jet_menu()->get_theme_url( 'assets/js/script.js' ),
array( 'jquery' ),
jet_menu()->get_version(),
true
);
}

View File

@@ -0,0 +1,3 @@
body .navbar-inverse ul ul {
left: 0;
}

View File

@@ -0,0 +1,21 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_zerif_lite_styles', 0 );
/**
* Enqueue zerif-lite compatibility styles
*
* @return void
*/
function jet_menu_zerif_lite_styles() {
wp_enqueue_style(
'jet-menu-zerif-lite',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}

View File

@@ -0,0 +1,3 @@
body .navbar-inverse ul ul {
left: 0;
}

View File

@@ -0,0 +1,21 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // disable direct access
}
add_action( 'wp_enqueue_scripts', 'jet_menu_zerif_styles', 0 );
/**
* Enqueue zerif compatibility styles
*
* @return void
*/
function jet_menu_zerif_styles() {
wp_enqueue_style(
'jet-menu-zerif',
jet_menu()->get_theme_url( 'assets/css/style.css' ),
array(),
jet_menu()->get_version()
);
}