This repository was archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathloop.php
More file actions
executable file
·46 lines (36 loc) · 1.35 KB
/
loop.php
File metadata and controls
executable file
·46 lines (36 loc) · 1.35 KB
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
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- Article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Date -->
<span class="date"><?php the_time('F j, Y'); ?></span>
<!-- Feature img -->
<?php if ( has_post_thumbnail()) : // Check if thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(array(120,120)); // Declare pixel size you need inside the array ?>
</a>
<?php endif; ?>
<!-- Title -->
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<!-- Author -->
<span class="author">Contributed by <a target="_blank" href="<?php webrtc_author_link(); ?>"><?php webrtc_author_name(); ?></a>, <?php webrtc_author_title(); ?></span>
<?php the_content(); ?>
<?php edit_post_link(); ?>
<?php if( has_tag() ) : ?>
<div class="tags">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/icon-tags.svg" alt="Tags">
<span class="tags-wrapper">
<?php the_tags( '<ul><li>', '</li><li>', '</li></ul>' ); ?>
</span>
</div>
<?php endif; ?>
</article>
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h2><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>
</article>
<!-- /article -->
<?php endif; ?>