>
';
// The Date
if ( $arixwp_blog_date == 'show' )
arixwp_date_format();
if ( $arixwp_blog_date == 'hide' ) {
$title_class = 'title dateless';
$byline_class = 'byline dateless';
} else {
$title_class = 'title';
$byline_class = 'byline';
}
$post_title = get_the_title();
if ( !$post_title )
$post_title = 'No post title set';
// The post title
echo '
';
echo '
';
// Show Author Block
if ( $arixwp_blog_author == "show" ) {
echo __( ' by', THEMENAME ) . ' ';
// show avatar if selected
if ( $arixwp_blog_avatar == "show" ) {
// link to authors website
if ( $author_url ) {
echo ' ';
// if no website link to post
} else {
echo ' ';
}
echo get_avatar( get_the_author_meta('ID'), 18 );
echo '';
}
if ( $arixwp_blog_author_name == 'show' ) {
if ( $author_url ) {
echo ' ' . get_the_author_link() . '';
} else {
echo ' ' . $author_display_name . '';
}
}
}
// End Author Block
echo '
';
echo '
';
echo '';
// show either the full post or the excerpt
if ( $arixwp_blog_display == 'content' ) {
the_content();
} else {
the_excerpt();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Gallery Post Type
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Poptrox Gallery Display
echo '
';
$args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID );
$attachments = get_posts( $args );
if ($attachments) {
foreach ( $attachments as $attachment ) {
$img_title = $attachment->post_title;
$img_caption = $attachment->post_excerpt;
$img_description = $attachment->post_content;
if ( is_multisite() ) {
global $blog_id;
$string = '/files';
$replace = '/wp-content/blogs.dir/' . $blog_id . '/files';
$thumbnailsrc = str_replace( $string, $replace, $attachment->guid );
} else {
$thumbnailsrc = $attachment->guid;
}
$realthumb = get_template_directory_uri() . '/libs/resizurr.php?m=' . ARIXWP_POPTROX_CROP . '&a=' . ARIXWP_POPTROX_ANCHOR . '&w=' . ARIXWP_POPTROX_W . '&h=' . ARIXWP_POPTROX_H . '&q=' . ARIXWP_POPTROX_QUALITY . '&src=' . $thumbnailsrc;
echo '
' . "\n";
}
}
echo '
' . "\n";
echo '
';
?>
';
echo '
';
echo '
';
// show or hide comments button
if ( $arixwp_blog_comments_show == 'show' ) {
echo '' . $arixwp_blog_comments;
// show or hide comments count
if ( $arixwp_blog_comments_count == 'show' ) {
echo ' (';comments_number( '0', '1', '%' );echo ')';
}
echo '';
}
// show or hide read more button
if ( $arixwp_blog_more_show == 'show' ) {
echo '';
}
echo '
';
echo '
';
echo '
';
echo ARIXWP_LOOP_FOOTER;
?>