|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/wordpress-old/wp-content/themes/Evolution/includes/ |
Upload File : |
<?php
if ( is_home() ) {
$paged = get_query_var( 'page' ) ? get_query_var( 'page' ) : get_query_var( 'paged' );
$args = array(
'showposts' => (int) get_option('evolution_homepage_posts'),
'paged' => $paged,
'category__not_in' => (array) get_option('evolution_exlcats_recent'),
);
if ( 'false' == get_option('evolution_duplicate') ){
global $ids;
$args['post__not_in'] = $ids;
}
query_posts( apply_filters( 'et_home_blogstyle_args', $args ) );
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article class="entry post clearfix">
<h1 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<div class="entry_content">
<?php get_template_part('includes/postinfo','entry'); ?>
<?php
$thumb = '';
$width = 147;
$height = 147;
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
$thumb = $thumbnail["thumb"];
?>
<?php if ( $thumb <> '' && get_option('evolution_thumbnails_index') == 'on' ) { ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
<span class="post-overlay"></span>
</a>
</div> <!-- end .post-thumbnail -->
<?php } ?>
<?php if (get_option('evolution_blog_style') == 'on') the_content(''); else { ?>
<p><?php truncate_post(450); ?></p>
<?php } ?>
<a href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('Read More', 'Evolution'); ?></span></a>
</div> <!-- end .entry_content -->
</article> <!-- end .post-->
<?php
endwhile;
if (function_exists('wp_pagenavi')) { wp_pagenavi(); }
else { get_template_part('includes/navigation','entry'); }
else:
get_template_part('includes/no-results','entry');
endif;
if ( is_home() ) wp_reset_query(); ?>