';
}
/**
* Called to display post heading for news in single posts
* @since 1.2.2
*/
function arras_postheader() {
global $post, $id;
$postheader = '';
if ( is_single() || is_page() ) {
if ( is_attachment() ) {
$postheader .= '
';
if ( arras_get_option('post_author') ) {
$postheader .= sprintf( __('
By %s
', 'arras'), '
' . get_the_author() . '' );
}
if ( arras_get_option('post_date') ) {
$postheader .= ' –
' . get_the_time(get_option('date_format')) . '';
}
if (current_user_can('edit_post')) {
$postheader .= '
' . __('(Edit Post)', 'arras') . '';
}
if ( !is_attachment() && arras_get_option('post_cats') ) {
$post_cats = array();
$cats = get_the_category();
foreach ($cats as $c) $post_cats[] = '
' . $c->cat_name . '';
$postheader .= sprintf( __('
Posted in: %s', 'arras'), implode(', ', $post_cats) );
}
$postheader .= '
';
}
if ( arras_get_option('single_thumbs') && has_post_thumbnail($post->ID) ) {
$postheader .= '' . arras_get_thumbnail('single-thumb') . '
';
}
echo apply_filters('arras_postheader', $postheader);
}
/**
* Called to display post meta information in single posts (review scores, product information, etc.)
* @since 1.2.2
*/
function arras_postmeta($content) {
global $post;
$postmeta = '';
$custom_fields_list = arras_parse_single_custom_fields();
if ($custom_fields_list) {
foreach($custom_fields_list as $field_id => $field_name) {
if ( $field_value = get_post_meta($post->ID, $field_id, true) ) {
$postmeta .= '