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 "