-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
49 lines (36 loc) · 1.26 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php get_header(); ?>
<body>
<?php include 'header_menu.php';?>
<div class="row">
<hr/>
<br/>
<br/>
</div>
<div class="row">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="large-4 columns">
<div class="row post">
<div class="large-8 columns">
<a href="<?php echo get_permalink(); ?>" rel="" title="">
<?php $imgs = get_the_post_thumbnail($post->ID);
/*get the img URL, delete the <img /> tag */
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $imgs, $matches);
/*the image URL*/
$img = $matches [1] [0];
/*echo the full img*/
echo '<img class="screenshot" src="' . $img . '" alt="" />';
?>
</a>
</div>
<div class="large-4 columns">
<span class="month"><?php the_time('F') ?></span>
<h3><span class="day"><?php the_time('jS') ?></span></h3>
<span class="year"><?php the_time('Y') ?></span>
</div>
</div>
</div>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?><?php endif; ?>
<div class="large-4 columns"></div>
</div>
<?php get_footer(); ?>