ACTUALLY removed the menu widget areas.

This commit is contained in:
Frank419 2024-08-27 18:10:26 +08:00
parent 6aa9c5f0ac
commit 3daee81a3a
2 changed files with 0 additions and 40 deletions

View File

@ -1,18 +0,0 @@
<?php
if ( !defined( 'WPINC' ) ) {
die;
}
?>
<?php if ( is_active_sidebar( 'menu-2' ) ): ?>
<ul class="menu-2-widgets">
<?php dynamic_sidebar( 'menu-2' ); ?>
</ul>
<?php elseif ( user_can( get_current_user_id(), 'edit_theme_options' ) ): ?>
<ul class="menu-2-widgets">
<li class="panel widget menu-2-widget warning">
<?php esc_html_e( 'Sorry, but no widgets were found in this area.', 'minimalistflex' ); ?>
<?php esc_html_e( 'This message is displayed to administrators only.', 'minimalistflex' ); ?>
</li>
</ul>
<?php endif; ?>

View File

@ -1,22 +0,0 @@
<?php
if ( !defined( 'WPINC' ) ) {
die;
}
?>
<?php if ( is_active_sidebar( 'menu' ) ): ?>
<a id="minimalistflex-menu-goto-right" href="#menu-custom" aria-label="<?php esc_attr_e( 'Go to the right of the navigation menu, which conntains an extra widget area.', 'minimalistflex' ) ?>">&gt;</a>
<ul class="menu-widgets">
<?php dynamic_sidebar( 'menu' ); ?>
</ul>
<a id="minimalistflex-menu-goto-left" href="#minimalistflex-menu-nav-menu" aria-label="<?php esc_attr_e( 'Go to the left of the navigation menu, which is the menu and a menu widget area.', 'minimalistflex' ) ?>">&lt;</a>
<?php elseif ( user_can( get_current_user_id(), 'edit_theme_options' ) ): ?>
<a id="minimalistflex-menu-goto-right" href="#menu-custom" aria-label="<?php esc_attr_e( 'Go to the right of the navigation menu, which conntains an extra widget area.', 'minimalistflex' ) ?>">&gt;</a>
<ul class="menu-widgets">
<li class="panel widget menu-widget warning">
<?php esc_html_e( 'Sorry, but no widgets were found in this area.', 'minimalistflex' ); ?>
<?php esc_html_e( 'This message is displayed to administrators only.', 'minimalistflex' ); ?>
</li>
</ul>
<a id="minimalistflex-menu-goto-left" href="#minimalistflex-menu-nav-menu" aria-label="<?php esc_attr_e( 'Go to the left of the navigation menu, which is the menu and a menu widget area.', 'minimalistflex' ) ?>">&lt;</a>
<?php endif; ?>