function composer_banner() { ?> <div class="banner" style="background-image:url(<?php if (is_front_page()) { echo "http://zolotastruna.esy.es/wp-content/uploads/2015/10/Back_min.png"; } else { composer_get_header_image(); } ?> )"> <div class="filter"> <div class="wrap"> <?php $id = get_option('page_for_posts'); // get title if (is_front_page() || is_home() && $id == '0') { $the_title = "<h1 class='banner-title site-description'>" . get_bloginfo('description') . "</h1>"; } elseif (is_day() || is_month() || is_year() || is_tag() || is_category() || is_home()) { $id = get_option('page_for_posts'); if ('posts' == get_option('show_on_front')) { $the_title = get_bloginfo('description'); } else { $the_title = get_the_title($id); } $the_title = "<h2 class='banner-title'>{$the_title}</h2>"; } else { $the_title = "<h1 class='banner-title'>" . get_the_title() . "</h1>"; } echo $the_title; if (is_singular('post')) { global $post; ?> <div class="entry-meta"> <time <?php omega_attr('entry-published'); ?> ><?php echo get_the_date(); ?> </time> <span <?php omega_attr('entry-author'); ?> ><?php echo __('by ', 'composer'); the_author_posts_link(); ?> <a href="<?php echo get_author_posts_url($post->post_author); ?> "><?php echo get_the_author_meta('nickname', $post->post_author); ?> </a></span> <?php echo omega_post_comments(); ?> <?php edit_post_link(__('Edit', 'composer'), ' | '); ?> </div><!-- .entry-meta --> <?php } elseif (is_archive() || is_search()) { composer_archive_title(); } ?> </div><!-- .wrap --> </div> </div><!-- .banner --> <?php }
<div class="entry-meta"> <time <?php omega_attr('entry-published'); ?> ><?php echo get_the_date(); ?> </time> <span <?php omega_attr('entry-author'); ?> ><?php echo __('by ', 'omega'); the_author_posts_link(); ?> </span> <?php echo omega_post_comments(); ?> <?php edit_post_link(__('Edit', 'omega'), ' | '); ?> </div><!-- .entry-meta -->