'; } /** * 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 .= '' . get_the_title() . ''; } else { $postheader .= '' . get_the_title() . ''; } $postheader .= ''; if ( arras_get_option($page_type . '_display_meta_inpic') ) { $postheader .= '' . get_comments_number() . ''; $postheader .= '' . get_the_time( get_option('date_format') ) . ''; } $postheader .= '
'; $postheader .= '

' . get_the_title() . '

'; echo apply_filters('arras_newsheader', $postheader); } /** * Called to display post footer for news in index and archive pages * @since 1.2.2 */ function arras_newsfooter($page_type) { global $post; $postfooter = ''; if ( arras_get_option($page_type . '_news_display') == 'quick' ) { $postfooter .= '

' . __('Read More', 'arras') . '

'; } echo apply_filters('arras_newsfooter', $postfooter); } /** * Called to display post heading for news in single posts * @since 1.2.2 */ function arras_postheader() { global $post, $id; if ( is_single() ) { if ( is_attachment() ) $postheader .= '

' . get_the_title() . ' [' . get_the_title($post->post_parent) . ']

'; else $postheader = '

' . get_the_title() . '

'; } else { if ( is_attachment() ) $postheader .= '

' . get_the_title() . ' [' . get_the_title($post->post_parent) . ']

'; else $postheader = '

' . get_the_title() . '

'; } $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(' ', ', ', ' ') . ''; } $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 .= '
'; $postmeta .= '' . $field_name . ':'; $postmeta .= '' . $field_value . ''; $postmeta .= '
'; } } } if ( arras_get_option('single_meta_pos') == 'bottom' ) return $postmeta . $content; else return $content . $postmeta; } /** * Displays when the specified post/archive requested by the user is not found. * @since 1.2.2 */ function arras_post_notfound() { $postcontent = '

' . __('That \'something\' you are looking for isn\'t here!', 'arras') . '

'; $postcontent .= '

' . __('We\'re very sorry, but that page doesn\'t exist or has been moved.
Please make sure you have the right URL.', 'arras') . '

'; echo apply_filters('arras_post_notfound', $postcontent); } /* End of file filters.php */ /* Location: ./library/filters.php */