-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
73 lines (58 loc) · 2.89 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<div class="wrap">
<div id="primary" class="content-area blog-content-area">
<main id="main" class="site-main" role="main">
<section class="content">
<?php sed_iott_breadcrumbs(); ?>
<?php
/* Start the Loop */
while ( have_posts() ) : the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
<?php if ('' !== get_the_post_thumbnail() && !iott_get_field('show_thumbnail')) : ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('single'); ?>
</a>
</div>
<?php endif; ?>
<header class="entry-header">
<div class="category">
<?php the_category(); ?>
</div>
<h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="meta"><?php the_time("d M Y"); ?> / <?php the_category('، '); ?> / <?php the_author(); ?></div>
</header>
<section class="entry-content">
<?php if ( !empty( iott_get_field('advertise_image') ) ) { ?>
<div class="sponsor">
<h6>Sponsored By:</h6>
<a href="<?php iott_the_field('advertise_link'); ?>" target="_blank"><?php the_sponsored_image( iott_get_field('advertise_image') ); ?></a>
</div>
<?php } ?>
<hr class="little-separator" />
<div class="entry">
<?php the_content(); ?>
</div>
</section>
</article>
<?php
endwhile; // End of the loop.
?>
</section>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->
<?php get_footer();