-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate-about.php
More file actions
58 lines (41 loc) · 1.6 KB
/
template-about.php
File metadata and controls
58 lines (41 loc) · 1.6 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
<?php
/*
Template Name: For About Page
*/
get_header();
if(have_posts()){
the_post();
$page_thumb = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' );
$group_meta_data = get_post_meta(get_the_ID(), '_office-master_about_group_meta_field', true);
$content = get_the_content();
?>
<div class="row container-kamn">
<img src="<?php echo $page_thumb[0]; ?>" width="100%" class="blog-post" alt="Feature-img" align="right" width="100%">
</div>
<?php }
?>
<!--End Header -->
<div id="banners"></div>
<div class="container">
<div class="row">
<div class="side-left col-sm-4 col-md-4">
<?php foreach($group_meta_data as $single){ ?>
<h3 class="lead"><?php echo $single['_office-master_heading']; ?></h3><hr>
<p><?php echo $single['_office-master_about_description']; ?></p>
<?php
if( is_array($single['_office-master_hash_link']) ){
foreach($single['_office-master_hash_link'] as $key=>$childsingle ){ ?>
<a href="<?php echo $childsingle; ?>"><?php echo $single['_office-master_hash_link_title'][$key]; ?></a><br>
<?php } } ?>
<br>
<?php } ?>
</div>
<div class="col-sm-8 col-md-8">
<?php
echo $content;
?>
</div>
</div>
</div>
<!--End Main Container -->
<?php get_footer(); ?>