forked from roryee/artificial-intelligence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-video.php
44 lines (32 loc) · 881 Bytes
/
content-video.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
<?php if ( is_singular() ): ?>
<article id="article"
style="background-image:url(<?php the_post_thumbnail_src( $post ); ?>);">
<div class="c">
<div <?php post_class( 'article cc c' ); ?>>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</div>
</div>
</article>
<?php if ( is_single() ): ?>
<?php get_template_part( 'nav', 'single' ); ?>
<?php endif; ?>
<?php else: ?>
<section <?php post_class(); ?>>
<div class="cc">
<a class="icon" href="<?php the_permalink(); ?>"></a>
<ul class="meta">
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<li>
<?php the_time( 'n/j/Y g:i A' ); ?>
</li>
</ul>
<div class="content">
<h3 class="content-title"><?php the_title(); ?></h3>
<?php the_content(); ?>
</div>
</div>
</section>
<?php endif; ?>