posts) == $post_loop_count ? " post-entry-last " : ""; $post_class = "post-entry-".$the_id." post-loop-".$post_loop_count." post-parity-".$parity.$last." ".$blog_style; $post_format = get_post_format() ? get_post_format() : 'standard'; /* * retrieve slider, title and content for this post,... */ $size = strpos($blog_style, 'big') ? strpos(avia_layout_class( 'main' , false), 'sidebar') ? 'entry_with_sidebar' : 'entry_without_sidebar' : 'square'; if(!empty($avia_config['preview_mode']) && !empty($avia_config['image_size']) && $avia_config['preview_mode'] == 'custom') $size = $avia_config['image_size']; $current_post['slider'] = get_the_post_thumbnail($the_id, $size); $current_post['title'] = get_the_title(); $current_post['content'] = $blog_content == "content" ? get_the_content(__('Read more','avia_framework').'') : get_the_excerpt(); $current_post['content'] = $blog_content == "excerpt_read_more" ? $current_post['content'].'' : $current_post['content']; $current_post['before_content'] = ""; /* * ...now apply a filter, based on the post type... (filter function is located in includes/helper-post-format.php) */ $current_post = apply_filters( 'post-format-'.$post_format, $current_post ); $with_slider = empty($current_post['slider']) ? "" : "with-slider"; /* * ... last apply the default wordpress filters to the content */ $current_post['content'] = str_replace(']]>', ']]>', apply_filters('the_content', $current_post['content'] )); /* * Now extract the variables so that $current_post['slider'] becomes $slider, $current_post['title'] becomes $title, etc */ extract($current_post); /* * render the html: */ echo "
"; echo "
"; echo $title; echo "'; echo "
"; //default link for preview images $link = get_permalink(); //on single page replace the link with a fullscreen image if(is_singular()) { $link = avia_image_by_id(get_post_thumbnail_id(), 'large', 'url'); } //echo preview image if(strpos($blog_style, 'big') !== false) { if($slider) $slider = ''.$slider.''; if($slider) echo '
'.$slider.'
'; } if(!empty($before_content)) echo '
'.$before_content.'
'; echo "
"; $icon = ''.$avia_config['font_icons'][$post_format].""; if(strpos($blog_style, 'multi') !== false) { $gravatar = ""; $link = get_post_format_link($post_format); if($post_format == 'standard') { $gravatar = get_avatar( get_the_author_meta('email'), '75', "blank" ); $link = get_author_posts_url($post->post_author); } echo ""; } else if(strpos($blog_style, 'small') !== false) { echo "".$slider.$icon.""; } echo "
"; echo "
"; // echo the post content echo $content; wp_link_pages(array('before' =>'
', 'after' =>'
', 'pagelink' => '%' )); if(has_tag() && is_single()) { echo ''; the_tags(''.__('Tags:','avia_framework').' '); echo ''; } echo "
"; echo "
"; echo "
"; echo "
"; $post_loop_count++; endwhile; else: ?>

".avia_pagination().""; } ?>