Here it is
<?php
/* Remove Gallery CSS to make code more compliant */
function remove_gallery_css() {
return '<div class="gallery">';
}
/**
* 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 .= '<h1 class="entry-title">' . get_the_title() . ' [<a href="' . get_permalink($post->post_parent) . '" rev="attachment">' . get_the_title($post->post_parent) . '</a>]</h1>';
else $postheader = '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h1>';
} else {
if ( is_attachment() ) $postheader .= '<h2 class="entry-title">' . get_the_title() . ' [<a href="' . get_permalink($post->post_parent) . '" rev="attachment">' . get_the_title($post->post_parent) . '</a>]</h2>';
else $postheader = '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h2>';
}
if ( !is_page() ) {
$postheader .= '<div class="entry-info">';
if ( arras_get_option('post_author') ) {
$postheader .= sprintf( __('<span class="entry-author">By %s</span>', 'arras'), '<address class="author vcard">' . get_the_author() . '</address>' );
}
if ( arras_get_option('post_date') ) {
$postheader .= ' – <abbr class="published" title="' . get_the_time('c') . '">' . get_the_time(get_option('date_format')) . '</abbr>';
}
if (current_user_can('edit_post')) {
$postheader .= '<a class="post-edit-link" href="' . get_edit_post_link($id) . '" title="' . __('Edit Post', 'arras') . '">' . __('(Edit Post)', 'arras') . '</a>';
}
if ( arras_get_option('post_cats') ) {
$post_cats = array();
$cats = get_the_category();
foreach ($cats as $c) $post_cats[] = '<a href="' . get_category_link($c->cat_ID) . '">' . $c->cat_name . '</a>';
$postheader .= sprintf( __('<span class="entry-cat"><strong>Posted in: </strong>%s</span>', 'arras'), implode(', ', $post_cats) );
}
$postheader .= '</div>';
}
if ( arras_get_option('single_thumbs') ) {
$postheader .= '<div class="entry-photo">' . arras_get_thumbnail('featured-slideshow-thumb') . '</div>';
}
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;
$postfooter = '';
if ( arras_get_option('post_tags') && !is_attachment() && is_array(get_the_tags()) )
$postfooter .= '<div class="tags"><strong>' . __('Tags:', 'arras') . '</strong>' . get_the_tag_list(' ', ', ', ' ') . '</div>';
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 .= '<div class="single-post-meta clearfix">';
$postmeta .= '<span class="single-post-meta-field single-post-meta-' . $field_id . '">' . $field_name . '</span>';
$postmeta .= '<span class="single-post-meta-value single-post-meta-' . $field_id . '-value">' . $field_value . '</span>';
$postmeta .= '</div>';
}
}
}
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 = '<div class="single-post">';
$postcontent .= '<h1 class="entry-title">' . __('That \'something\' you are looking for isn\'t here!', 'arras') . '</h2>';
$postcontent .= '<div class="entry-content"><p>' . __('<strong>We\'re very sorry, but the page that you are looking for doesn\'t exist or has been moved.</strong>', 'arras') . '</p>';
$postcontent .= '<form method="get" class="clearfix" action="' . get_bloginfo('url') . '">
' . __('Perhaps searching for it might help?', 'arras') . '<br />
<input type="text" value="" name="s" class="s" size="30" onfocus="this.value=\'\'" />
<input type="submit" class="searchsubmit" value="' . __('Search', 'arras') . '" title="' . sprintf( __('Search %s', 'arras'), wp_specialchars( get_bloginfo('name'), 1 ) ) . '" />
</form>';
$postcontent .= '<h3>Latest Posts</h3>';
$postcontent .= '<ul>';
$postcontent .= wp_get_archives('type=postbypost&limit=10&format=custom&before=<li>&after=</li>&echo=0');
$postcontent .= '</ul>';
$postcontent .= '</div></div>';
echo apply_filters('arras_post_notfound', $postcontent);
}
/* End of file filters.php */
/* Location: ./library/filters.php */