function print_simple_message($page_id, $message) { print_page_header($page_id); printf('<p id="message">%s</p>', $message); print_page_footer(); exit; }
} else { if (is_month()) { $title = __('Month', 'gdl_front_end'); $caption = get_the_date('F Y'); } else { if (is_year()) { $title = __('Year', 'gdl_front_end'); $caption = get_the_date('Y'); } else { if (is_author()) { $title = __('By', 'gdl_front_end'); $author_id = get_query_var('author'); $author = get_user_by('id', $author_id); $caption = $author->display_name; } else { $title = __('Shop', 'gdl_front_end'); } } } } } } print_page_header($title, $caption); } } } } } ?> </div> <!-- header outer wrapper -->