-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
83 lines (59 loc) · 2.43 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
74
75
76
77
78
79
80
81
82
83
<?php get_template_part('/partials/head', 'head') ?>
<body>
<!--main content wrapper start-->
<div class="main-wrapper">
<!--header start-->
<?php get_header('single')?>
<!--header end-->
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
?>
<!--page header section start-->
<section class="page-header position-relative overflow-hidden ptb-120 bg-dark" style="background: url('<?php echo get_template_directory_uri()?>/assets/img/page-header-bg.svg')no-repeat bottom right">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8 col-12">
<h1 class="fw-bold display-5"><?php the_title()?></h1>
</div>
</div>
<div class="bg-circle rounded-circle circle-shape-3 position-absolute bg-dark-light left-5"></div>
</div>
</section>
<!--page header section end-->
<!--blog details section start-->
<section class="blog-details ptb-120">
<div class="container">
<div class="row justify-content-between">
<div class="col-lg-8 pe-5">
<div class="blog-details-wrap">
<?php the_content(); ?>
</div>
</div>
<div class="col-lg-4">
<div class="author-wrap text-center bg-light p-5 sticky-sidebar rounded-custom mt-5 mt-lg-0">
<img src="<?php echo get_home_url()?>/wp-content/uploads/2021/01/logo-footer.svg" alt="author" width="120" class="img-fluid shadow-sm rounded-circle">
<div class="author-info my-4">
<h5 class="mb-0">تولید کننده محتوا</h5>
<span class="small">نویسنده</span>
</div>
<p><?php get_the_author_meta()?></p>
</div>
</div>
</div>
</div>
</section>
<!--blog details section end-->
<!--related blog start-->
<!--related blog end-->
<!--footer section start-->
<?php get_footer() ?>
<!--footer section end-->
</div>
</body>
<?php
endwhile;
endif;
?>
</html>