<div class="wps-admin-menu-message <?php echo wps_get_option('enable_menu') ? 'hidden' : null; ?> " id="wps-menu-disabled-message"> Menus aren't enabled, to enable them click the checkbox to the left. </div> <ul class="menu ui-sortable wps-admin-menu-links nav-menus-php <?php echo !wps_get_option('enable_menu') ? 'hidden' : null; ?> " id="wps-edit-menu"> <?php $i = 0; foreach (wps_get_menu_links() as $wps_menu_item) { ?> <li class="menu-item menu-item-edit-inactive"> <dl class="menu-item-bar"> <dt class="menu-item-handle"> <span class="item-title"><?php echo $wps_menu_item['title']; ?> </span> <span class="item-controls"> <a class="item-edit" title="Edit Menu Item" href="#">Edit Menu Item</a> </span> </dt> </dl>
/** * Draw the header's banner containing logo as well as search and menu drop-downs * */ function wps_banner() { ?> <!-- header --> <header id="masthead" class="site-header" data-role="header" data-position="fixed"> <div id="view-search" class="view-search <?php echo !wps_get_option('enable_search') ? "hidden" : null; ?> "><a href="#"><i class="icon-search"></i></a></div> <div id="view-menu" class="view-menu <?php echo !wps_get_option('enable_menu') ? "hidden" : null; ?> "><a href="#"><i class="icon-reorder"></i></a></div> <h1 class="site-title"> <a href="<?php bloginfo('url'); ?> " target="_self" rel="home"> <?php if (wps_get_option('site_logo') == '') { ?> <?php echo wps_get_option('site_title'); ?> <?php } else { ?> <img src="<?php echo wps_get_option('site_logo'); ?> "/> <?php } ?> </a> </h1> </header> <!-- Advertising code --> <?php if (wps_get_option('advertising_type') == 'google_adsense') { wps_google_adsense_script(wps_get_option('adsense_client_id')); ?> <?php } elseif (wps_get_option('advertising_type') == 'custom_advertising') { echo wps_html_unclean(wps_get_option('custom_advertising_code')); ?> <?php } ?> <!-- menu bar --> <div class="menu-bar header-drop-down"> <ul> <?php foreach (wps_get_menu_links() as $links) { ?> <li><a href="<?php echo $links['url']; ?> " target="_self"><?php echo $links['title']; ?> </a></li> <?php } ?> </ul> </div> <!-- search form drop-down --> <div class="search-bar header-drop-down"> <div class="search-head"> <form action="<?php echo home_url('/'); ?> " method="get" id="search-form" autocomplete="off" data-ajax="false"> <?php if (wps_is_in_preview_mode()) { ?> <input type="hidden" name="wps_preview" value="1"/> <?php } ?> <div class="search-input-wrap input-wrap"> <label id="search-input-label">Search by article title</label> <input id="s" name="s" type="search" value="" /> </div> </form> </div> </div> <?php }