Пример #1
0
 function widget($args, $instance)
 {
     global $post;
     Protect();
     extract($args, EXTR_SKIP);
     echo $before_widget;
     $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     }
     comicpress_menubar();
     echo $after_widget;
     UnProtect();
 }
Пример #2
0
<div id="header">
	<?php 
do_action('comicpress-header');
?>
	<h1><a href="<?php 
echo home_url();
?>
"><?php 
bloginfo('name');
?>
</a></h1>
	<div class="description"><?php 
bloginfo('description');
?>
</div>
	<?php 
if (is_active_sidebar('header')) {
    get_sidebar('header');
}
?>
	<div class="clear"></div>
</div>
		
<?php 
if (!comicpress_themeinfo('disable_default_menubar')) {
    comicpress_menubar();
}
if (is_active_sidebar('menubar')) {
    get_sidebar('menubar');
}
get_template_part('layout', 'head');