'.__('Admin notice for:' )."
". __('Blog Posts', 'avia_framework' )."

". __('This element was disabled in your theme settings. You can activate it here:' )."
". ''.__("Performance Settings",'avia_framework' ).""; $content = "{$msg}"; echo $content; } return; } $initial_id = avia_get_the_ID(); // check if we got posts to display: if (have_posts()) : while (have_posts()) : the_post(); /* * get the current post id, the current post class and current post format */ $url = ""; $current_post = array(); $current_post['post_loop_count']= $post_loop_count; $current_post['the_id'] = get_the_ID(); $current_post['parity'] = $post_loop_count % 2 ? 'odd' : 'even'; $current_post['last'] = count($wp_query->posts) == $post_loop_count ? " post-entry-last " : ""; $current_post['post_type'] = get_post_type($current_post['the_id']); $current_post['post_class'] = "post-entry-".$current_post['the_id']." post-loop-".$post_loop_count." post-parity-".$current_post['parity'].$current_post['last']." ".$blog_style; $current_post['post_class'] .= ($current_post['post_type'] == "post") ? '' : ' post'; $current_post['post_format'] = get_post_format() ? get_post_format() : 'standard'; $current_post['post_layout'] = avia_layout_class('main', false); $blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content"; /*If post uses builder change content to exerpt on overview pages*/ if( Avia_Builder()->get_alb_builder_status( $current_post['the_id'] ) && !is_singular($current_post['the_id']) && $current_post['post_type'] == 'post') { $current_post['post_format'] = 'standard'; $blog_content = "excerpt_read_more"; } /* * retrieve slider, title and content for this post,... */ $size = strpos($blog_style, 'big') ? (strpos($current_post['post_layout'], 'sidebar') !== false) ? '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($current_post['the_id'], $size); if(is_single($initial_id) && get_post_meta( $current_post['the_id'], '_avia_hide_featured_image', true ) ) $current_post['slider'] = ""; $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-'.$current_post['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 = !empty($url) ? $url : get_permalink(); //preview image description $desc = get_post( get_post_thumbnail_id() ); if(is_object($desc)) $desc = $desc -> post_excerpt; $featured_img_desc = ( $desc != "" ) ? $desc : the_title_attribute( 'echo=0' ); //on single page replace the link with a fullscreen image if(is_singular()) { $link = avia_image_by_id(get_post_thumbnail_id(), 'large', 'url'); } if ( !in_array( $blog_style, array('bloglist-simple', 'bloglist-compact', 'bloglist-excerpt') ) ) { //echo preview image if (strpos($blog_global_style, 'elegant-blog') === false) { 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') { $author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author); $author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author); $gravatar_alt = esc_html($author_name); $gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt); $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 '
'; if ($blog_style == 'bloglist-compact') { $format = get_post_format(); echo ""; } $close_header = "
"; $content_output = '
'entry_content','echo'=>false)).'>'; $content_output .= $content; $content_output .= '
'; $taxonomies = get_object_taxonomies(get_post_type($the_id)); $cats = ''; $excluded_taxonomies = array_merge( get_taxonomies( array( 'public' => false ) ), array('post_tag','post_format') ); $excluded_taxonomies = apply_filters('avf_exclude_taxonomies', $excluded_taxonomies, get_post_type($the_id), $the_id); if(!empty($taxonomies)) { foreach($taxonomies as $taxonomy) { if(!in_array($taxonomy, $excluded_taxonomies)) { $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' '; } } } //elegant blog //prev: if( $blog_global_style == 'elegant-blog' ) if( strpos($blog_global_style, 'elegant-blog') !== false ) { $cat_output = ""; if(!empty($cats)) { $cat_output .= ''; $cat_output .= $cats; $cat_output .= ''; $cats = ""; } if ( in_array( $blog_style, array('bloglist-compact','bloglist-excerpt') ) ) { echo $title; } else { // The wrapper div prevents the Safari reader from displaying the content twice ¯\_(ツ)_/¯ echo '
'; if (strpos($blog_global_style, 'modern-blog') === false){ echo $cat_output.$title; } else { echo $title.$cat_output; } echo '
'; } echo $close_header; $close_header = ""; if ( !in_array( $blog_style, array('bloglist-simple', 'bloglist-compact', 'bloglist-excerpt') ) ) { echo ''; //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 $content_output; } $cats = ""; $title = ""; $content_output = ""; } echo $title; if ($blog_style !== 'bloglist-compact') : echo "'; endif; // display meta-infos on all layouts except bloglist-compact echo $close_header; // echo the post content if ( $blog_style == 'bloglist-excerpt'){ the_excerpt(); echo ''; } if ( !in_array( $blog_style, array('bloglist-simple', 'bloglist-compact', 'bloglist-excerpt') ) ) { echo $content_output; } echo '
'; $avia_wp_link_pages_args = apply_filters('avf_wp_link_pages_args', array( 'before' =>'', 'pagelink' => '%', 'separator' => ' ', )); wp_link_pages($avia_wp_link_pages_args); if(is_single() && !post_password_required()) { //tags on single post if(has_tag()) { echo ''; the_tags(''.__('Tags:','avia_framework').' '); echo ''; } //share links on single post avia_social_share_links(); } do_action('ava_after_content', $the_id, 'post'); echo '
'; echo "
"; echo "
"; echo "
"; echo av_blog_entry_markup_helper($current_post['the_id']); echo "
"; $post_loop_count++; endwhile; else: ?>

'entry_content')); ?>>

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