From f313417c277fd2a017591ba31684245b861c58ad Mon Sep 17 00:00:00 2001 From: Marc Perel Date: Mon, 18 Apr 2016 16:40:58 +0200 Subject: [PATCH] Blank menu fallback --- builder.php | 8 +++++--- core/helpers/template.php | 21 +++++++++++++++++---- partials/header-centered.php | 4 ++-- sidebar-off-canvas.php | 2 +- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/builder.php b/builder.php index a7d3d5a9..c2e6edd8 100644 --- a/builder.php +++ b/builder.php @@ -24,9 +24,11 @@ -ID ); -} + +
+ ID ); ?> +
+ $main_color, ) )); - + // Content - Links layers_inline_styles( array( 'selectors' => array( '.copy a:not(.button)', '.story a:not(.button)' ), @@ -470,7 +470,7 @@ function layers_apply_customizer_styles() { 'border-bottom-color' => layers_too_light_then_dark( $main_color ), ), )); - + // Debugging: global $wp_customize; if ( $wp_customize && ( ( bool ) layers_get_theme_mod( 'dev-switch-button-css-testing' ) ) ) { @@ -1560,7 +1560,6 @@ function layers_excerpt_action() { */ if( !function_exists( 'layers_header_meta' ) ) { function layers_header_meta(){ ?> - @@ -1580,4 +1579,18 @@ function layers_header_meta(){ ?>
@@ -17,7 +17,7 @@
- LAYERS_THEME_SLUG . '-primary-right' ,'container' => 'nav', 'container_class' => 'nav nav-horizontal', 'fallback_cb' => create_function('', 'echo " ";') ) ); ?> + LAYERS_THEME_SLUG . '-primary-right' ,'container' => 'nav', 'container_class' => 'nav nav-horizontal', 'fallback_cb' => 'layers_blank_menu' ) ); ?>
\ No newline at end of file diff --git a/sidebar-off-canvas.php b/sidebar-off-canvas.php index 11c53a41..bec28a19 100644 --- a/sidebar-off-canvas.php +++ b/sidebar-off-canvas.php @@ -5,7 +5,7 @@ \ No newline at end of file