-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-news.php
More file actions
49 lines (30 loc) · 1.13 KB
/
single-news.php
File metadata and controls
49 lines (30 loc) · 1.13 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
47
48
49
<?php
/**
* Single: News
*/
get_header(); ?>
<div id="content" class="site-content">
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<div class="ccl-c-hero">
<div class="ccl-c-hero__thumb" style="background-image:url(<?php echo esc_url( $thumb_url ); ?>)" role="presentaion"></div>
<div class="ccl-l-container">
<div class="ccl-c-hero__header">
<div class="ccl-h4"><a href="<?php echo get_post_type_archive_link( 'news' ) ?>" class="ccl-u-faded ccl-u-color-white">‹ See all News</a></div>
<h1 class="ccl-c-hero__title"><?php the_title() ?></h1>
<p class="ccl-h4"><?php the_date(); ?></p>
</div>
</div>
</div>
<div class="ccl-l-container">
<div class="ccl-l-row">
<div class="ccl-c-entry-content ccl-l-column ccl-l-span-9-md ccl-u-my-2">
<?php the_post_thumbnail( 'large' ); ?>
<?php the_content(); ?>
</div>
</div>
</div>
</article>
<?php endwhile; ?>
</div>
<?php get_footer();