# quadmenu/trunk/templates/layout/alert.php

QuadMenu – Mega Menu, version trunk. 15 lines.

- Page: https://pluginprobe.com/plugins/quadmenu/trunk/code/templates/layout/alert.php
- Raw: https://pluginprobe.com/plugins/quadmenu/trunk/raw/templates/layout/alert.php
- Modified: 2023-06-09T19:33:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/quadmenu/trunk/code/templates/layout/alert.php#L10-L20`.

```php
<?php
global $_wp_registered_nav_menus;
?>
<nav id="quadmenu">
	<div class="quadmenu-alert">
		<h4><?php esc_html_e( 'Something went wrong', 'quadmenu' ); ?></h4>
		<?php if ( ! isset( $args->theme_location ) || empty( ! empty( $_wp_registered_nav_menus[ $args->theme_location ] ) ) ) : ?>
			<p><?php esc_html_e( 'Please include a valid theme location in your php functions. For example:', 'quadmenu' ); ?></p>
			<p><?php printf( '<code>&lt;?php quadmenu(array(theme_location => &quot;%1$s&quot;)); ?&gt;</code>', key( $_wp_registered_nav_menus ) ); ?></p>
		<?php else : ?>
			<p><?php printf( __( 'This theme location is not active. Please go to <a href="%1$s" target="_blank">Configuration</a> tab and activate the <b>%2$s</b> theme location.', 'quadmenu' ), Plugin::taburl( '0' ), $_wp_registered_nav_menus[ $args->theme_location ] ); ?></p>
		<?php endif; ?>
	</div>
</nav>

```
