';
}
/**
* Called to display post heading for news in index and archive pages
* @since 1.2.2
*/
function arras_newsheader($page_type) {
global $post;
$postheader = '
';
$postheader .= '
';
if ( ($thumbnail = arras_get_thumbnail($page_type . '-post-thumb')) ) {
$postheader .= '
';
} else {
$postheader .= '' . get_the_title() . '';
}
$postheader .= '';
if ( arras_get_option($page_type . '_display_meta_inpic') ) {
$postheader .= '
';
$postheader .= '' . get_the_time( get_option('date_format') ) . '';
}
$postheader .= '
';
$postheader .= '';
if ( !is_page() ) {
if ( arras_get_option('post_author') ) {
$postheader .= sprintf( __('
By %s', 'arras'), '
' . get_the_author() . '' );
}
if ( arras_get_option('post_date') ) {
$postheader .= sprintf( __('
Published: %s', 'arras'), '
' . get_the_time( get_option('date_format') ) . '');
}
if (current_user_can('edit_post')) {
$postheader .= '
' . __('(Edit Post)', 'arras') . '';
}
if ( 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) );
}
if ( arras_get_option('post_tags') && !is_attachment() )
$postheader .= '
' . __('Tags:', 'arras') . '' . get_the_tag_list(' ', ', ', ' ') . '';
}
if ( arras_get_option('single_thumbs') && ($single_thumbnail = arras_get_thumbnail('featured-slideshow-thumb')) ) {
$postheader .= '
';
}
$postheader .= '
';
echo apply_filters('arras_postheader', $postheader);
}
/**
* Called to display post footer for news in single posts
* @since 1.2.2
*/
function arras_postfooter() {
global $id, $post;
echo apply_filters('arras_postfooter', $postfooter);
}
/**
* 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 .= '