This repository has been 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
/
Copy pathsingle.php
executable file
·59 lines (43 loc) · 1.69 KB
/
single.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
50
51
52
53
54
55
56
57
58
59
<?php get_header(); ?>
<main role="main">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<a href="https://blog.mozilla.org/webrtc" class="back-to-blog">← View all posts</a>
<?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(); ?>
<div class="tags">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/icon-tags.svg" alt="Tags">
<?php the_tags( '<ul><li>', '</li><li>', '</li></ul>' ); ?>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1>
</article>
<!-- /article -->
<?php endif; ?>
</div>
</div>
</div>
</main>
<?php get_footer(); ?>