function shiftnav_pro_generate_menus() { $menus = get_option('shiftnav_menus', array()); foreach ($menus as $menu) { shiftnav($menu); //within shiftnav(), if nothing else is passed, grab settings and print properly } }
function shiftnav_direct_injection() { if (shiftnav_op('display_toggle', 'togglebar') == 'on') { ?> <!-- ShiftNav Main Toggle --> <?php shiftnav_toggle('shiftnav-main', shiftnav_main_toggle_content(), array('id' => 'shiftnav-toggle-main', 'el' => 'div', 'class' => 'shiftnav-toggle-main-align-' . shiftnav_op('align', 'togglebar'))); ?> <!-- /#shiftnav-toggle-main --> <?php } if (shiftnav_op('display_main', 'shiftnav-main') == 'on') { shiftnav('shiftnav-main', array('theme_location' => 'shiftnav', 'edge' => shiftnav_op('edge', 'shiftnav-main'))); } if (current_user_can('manage_options')) { ?> <div class="shiftnav-loading"> <h5>Loading Shiftnav...</h5> <div class="shiftnav-loading-message"> <p>If this message does not disappear, it means you have a javascript issue on your site which is preventing ShiftNav's script from running. You'll need to resolve that issue in order for ShiftNav to work properly. </p> <p>Check for javascript errors by opening up your browser's javascript console.</p> <p>This message will only display to admin users</p> </div> </div> <?php } }