<header id="sunshine-header"> <div id="sunshine-logo"> <h1><a href="<?php bloginfo('url'); ?> "><?php sunshine_logo(); ?> </a></h1> </div> <div id="sunshine-main-menu-container"> <a href="#" id="sunshine-mobile-menu"><i class="fa fa-bars"></i> Menu</a> <?php sunshine_main_menu(); ?> </div> <?php if ($sunshine->options['template_gallery_password_box']) { ?> <div id="sunshine-gallery-password-form"> <label for="sunshine_gallery_password"><?php _e('Enter gallery password', 'sunshine'); ?> </label> <?php sunshine_gallery_password_form(); ?> </div>
/** * Front-end display of widget. * * @see WP_Widget::widget() * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ public function widget($args, $instance) { global $sunshine; if ($instance['visibility'] == 'sunshine_only' && !is_sunshine()) { return; } extract($args); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if (!empty($title)) { echo $before_title . $title . $after_title; } sunshine_main_menu(); echo $after_widget; }
function sunshine_menu_shortcode() { return sunshine_main_menu(); }