News

‘publish’,
‘category’ => $cat,
‘paged’ => $paged,
‘category__not_in’ => $excluded_categories
);
$wp_query = new WP_Query($query_array);

if($wp_query->have_posts()) {

// Setup Variables
$style = rvn_get_option(‘blog-entry-style’);
$entry_heading_position = rvn_get_option(‘blog-entry-heading-position’);
$list_layout = is_numeric(strrpos($style, ‘s2-‘));
$column_size = str_replace(‘s1-‘, ”, $style);
$column_size = str_replace(‘s2-‘, ”, $column_size);
$show_meta_infos = !rvn_get_option(‘blog-no-entry-meta-infos’);
$meta_infos = ($show_meta_infos) ? explode(‘::’, rvn_get_option(‘blog-entry-meta-infos’)) : array();

// Output Title
$show_title = rvn_get_option(‘blog-show-title’);
if($show_title) {
$alternative_title = rvn_get_option(‘blog-alt-title’);
$heading = empty($alternative_title) ? get_the_title(rvn_get_original_post_id()) : $alternative_title;
echo rvn_get_content_title($heading, $style, $entry_heading_position);
}
else {
//echo do_shortcode(‘[spacer size=”big”]’);
echo ‘

‘; // Put empty element so if blig is on the front page, first heading won’t disappear
}

// Output Content (makes problems when shown on front page)
/*
$post_id = rvn_get_original_post_id();
$content = rvn_get_post_content($post_id);
if(!empty($content)) {
echo $content;
echo do_shortcode(‘[spacer size=”big”]’);
}
*/

while($wp_query->have_posts()) {
$wp_query->the_post();
echo rvn_get_entry(array(
‘post_id’ => $post->ID,
‘featured_content_type’ => ‘blog’,
‘class’ => ‘preview’,
‘column_size’ => $column_size,
‘list_layout’ => $list_layout,
‘meta_infos’ => $meta_infos,
‘heading_position’ => $entry_heading_position,
‘show_headings’ => !rvn_get_option(‘blog-no-entry-headings’),
‘show_excerpts’ => !rvn_get_option(‘blog-no-entry-excerpts’),
‘show_buttons’ => !rvn_get_option(‘blog-no-entry-buttons’),
‘read_more_link_text’ => rvn_get_option(‘blog-entry-read-more-link-text’),
‘featured_image_link_method’ => rvn_get_option(‘blog-featured-image-link-method’)
));
}

echo do_shortcode(‘[divider]’);

wp_reset_query();
rvn_get_paginator();
}

else {
rvn_put_no_entries_found();
}
?>