| @@ -1,14 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | global $_wp_registered_nav_menus; |
| 3 | -?> | |
| 3 | +?> | |
| 4 | 4 | <nav id="quadmenu"> |
| 5 | - <div class="quadmenu-alert"> | |
| 6 | - <h4><?php esc_html_e('Something went wrong', 'quadmenu'); ?></h4> | |
| 7 | - <?php if (!isset($args->theme_location) || empty(!empty($_wp_registered_nav_menus[$args->theme_location]))): ?> | |
| 8 | - <p><?php esc_html_e('Please include a valid theme location in your php functions. For example:', 'quadmenu'); ?></p> | |
| 9 | - <p><?php printf('<code><?php quadmenu(array(theme_location => "%1$s")); ?></code>', key($_wp_registered_nav_menus)); ?></p> | |
| 10 | - <?php else: ?> | |
| 11 | - <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'), QuadMenu::taburl('0'), $_wp_registered_nav_menus[$args->theme_location]); ?></p> | |
| 12 | - <?php endif; ?> | |
| 13 | - </div> | |
| 5 | + <div class="quadmenu-alert"> | |
| 6 | + <h4><?php esc_html_e( 'Something went wrong', 'quadmenu' ); ?></h4> | |
| 7 | + <?php if ( ! isset( $args->theme_location ) || empty( ! empty( $_wp_registered_nav_menus[ $args->theme_location ] ) ) ) : ?> | |
| 8 | + <p><?php esc_html_e( 'Please include a valid theme location in your php functions. For example:', 'quadmenu' ); ?></p> | |
| 9 | + <p><?php printf( '<code><?php quadmenu(array(theme_location => "%1$s")); ?></code>', key( $_wp_registered_nav_menus ) ); ?></p> | |
| 10 | + <?php else : ?> | |
| 11 | + <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> | |
| 12 | + <?php endif; ?> | |
| 13 | + </div> | |
| 14 | 14 | </nav> |