-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
144 lines (127 loc) · 4.98 KB
/
single.php
File metadata and controls
144 lines (127 loc) · 4.98 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
$layout_class = "col-md-8";
$text_center =" ";
if(!is_active_sidebar("sidebar-1")){
$layout_class = "col-md-10 offset-md-1";
$text_center ="text-center";
}
?>
<?php get_header(); ?>
<body <?php body_class(); ?>>
<?php get_template_part("hero");?>
<div class="contanier">
<div class="row">
<div class="<?php echo $layout_class; ?>">
<div class="posts">
<?php while(have_posts()):
the_post();
?>
<div class="post" <?php post_class(); ?>>
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="post-title <?php echo $text_center; ?>" ><?php the_title(); ?></h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p>
<strong><?php the_author_posts_link(); ?></strong><br/>
<?php echo get_the_date(); ?>
</p>
<div class="alpha_a">
<?php
if ( class_exists( 'Attachments' ) ){
$attechments = new Attachments('alpha_a');
if($attechments ->exist()){
while($attechment = $attechments -> get()){ ?>
<div>
<?php echo $attechments ->image("large");?>
</div>
<?php
}
}
}
?>
</div>
<?php echo get_the_tag_list('<ul class="list-unstyled"><li>','</li><li>','</li></ul>');?>
</div>
<div class="col-md-12">
<p>
<?php
if ( !class_exists( 'Attachments' ) ){
if ( has_post_thumbnail() ) {
$thumbnail_url = get_the_post_thumbnail_url(null,"large");
//echo '<a href="'.$thumbnail_url.'" data-featherlight="image">';
printf( '<a href="%s" data-featherlight="image">', $thumbnail_url);
the_post_thumbnail( "large", array( "class" => "img-fluid" ) );
echo '</a>';
}
} ?>
</p>
<p>
<?php
the_content();
wp_link_pages();
// next_post_link();
// echo "<br />";
// previous_post_link();
?>
</p>
</div>
<div class="contanier">
<div class="row">
<?php
if ( class_exists( 'Attachments' ) ){
$attechments = new Attachments('team');
if($attechments ->exist()){
while($attechment = $attechments -> get()){ ?>
<div class="col-md-4">
<div>
<?php echo $attechments ->image("thumbnail");?>
<p><?php echo $attechments ->field("tname");?></p>
<p><?php echo $attechments ->field("tposition");?></p>
<p><?php echo $attechments ->field("tcompany");?></p>
<p><?php echo $attechments ->field("ttestimonial");?></p>
</div>
</div>
<?php
}
}
}
?>
</div>
</div>
<div class="authorsection">
<div class="row">
<div class="col-md-3 imggol">
<?php echo get_avatar(get_the_author_meta("ID")); ?>
</div>
<div class="col-md-9">
<?php echo get_the_author_meta("display_name"); ?>
<p><?php echo get_the_author_meta("description"); ?></p>
</div>
</div>
</div>
<?php if(comments_open()): ?>
<div class="col-md-12">
<?php comments_template(); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
<?php if(is_active_sidebar("sidebar-1")): ?>
<div class="col-md-4">
<?php if(is_active_sidebar("sidebar-1")){
dynamic_sidebar("sidebar-1");
}
?>
</div>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>