-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
32 lines (28 loc) · 1.33 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
$index_postinfo = et_get_option( 'origin_postinfo1' );
$thumb = '';
$width = (int) apply_filters( 'et_entry_image_width', 640 );
$height = (int) apply_filters( 'et_entry_image_height', auto );
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, 'Entryimage' );
$thumb = $thumbnail["thumb"];
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'entry-image masonry-item' ); ?>>
<?php print_thumbnail( $thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext ); ?>
<div class="image-info" style="background: <?php echo esc_html( et_get_option( 'box_bg_hover_color', 'rgba( 255,150,0,0.65 )' ) ); ?>">
<a href="<?php the_permalink(); ?>" class="image-link"><?php _e( 'Read more', 'Origin' ); ?></a>
<div class="title">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div> <!-- .title -->
</div> <!-- .image-info -->
</article> <!-- .entry-image -->
<?php endwhile; ?>
<?php get_template_part( 'includes/navigation', 'index' ); ?>
<?php else : ?>
<?php get_template_part( 'includes/no-results', 'index' ); ?>
<?php endif; // end have_posts() check ?>
<?php get_footer(); ?>