PluginProbe
WP Ultimate Post Grid / 1.7.2
WP Ultimate Post Grid v1.7.2
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / vendor / vafpress / views / option / menu.php

menu.php in WP Ultimate Post Grid 1.7.2, at vendor/vafpress/views/option/menu.php

14 lines 676 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php $submenus = $menu->get_menus(); ?>
2 <?php if (!empty($submenus)): ?>
3 <?php foreach ($submenus as $submenu): ?>
4 <?php $sub_current = ($submenu === reset($submenus)) ? 1 : 0; ?>
5 <?php echo $submenu->render(array('current' => $current, 'sub_current' => $sub_current)); ?>
6 <?php endforeach; ?>
7 <?php else: ?>
8 <div id="<?php echo $menu->get_name(); ?>" class="vp-panel<?php if((isset($sub_current) and $sub_current) or (!isset($sub_current) and $current)) echo ' vp-current'; ?>">
9 <h2><span><?php echo $menu->get_title(); ?></span></h2>
10 <?php foreach ($menu->get_controls() as $control): ?>
11 <?php echo $control->render(); ?>
12 <?php endforeach; ?>
13 </div>
14 <?php endif; ?>