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 "
'entry','echo'=>false)).">"; //default link for preview images $link = get_permalink(); //preview image description $featured_img_desc = get_post_field('post_content', get_post_thumbnail_id()); $featured_img_desc = trim($featured_img_desc) ? esc_attr($featured_img_desc) : ""; //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 "
"; $blog_meta_output = ""; $icon = ''; 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'), '81', "blank" ); $link = get_author_posts_url($post->post_author); } $blog_meta_output = ""; } else if(strpos($blog_style, 'small') !== false) { $blog_meta_output = "".$slider.$icon.""; } echo apply_filters('avf_loop_index_blog_meta', $blog_meta_output); echo "
"; echo "
"; echo '
'; echo $title; echo "'; echo '
'; // echo the post content echo '
'entry_content','echo'=>false)).'>'; echo $content; echo '
'; echo '
'; wp_link_pages(array('before' =>'
', 'after' =>'
', 'pagelink' => '%' )); if(has_tag() && is_single() && !post_password_required()) { echo ''; the_tags(''.__('Tags:','avia_framework').' '); echo ''; } echo '
'; echo "
"; echo "
"; echo "
"; echo "
"; $post_loop_count++; endwhile; else: ?>

'entry_content')); ?>>

".avia_pagination('', 'nav').""; } ?>