-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpage-about.php
104 lines (92 loc) · 3.04 KB
/
page-about.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
// Block direct access
if( !defined( 'ABSPATH' ) ){
exit( 'Direct script access denied.' );
}
/**
* @Packge : Philosophy
* @Version : 1.0
* @Author : Colorlib
* @Author URI : http://colorlib.com/wp/
*
* Template Name: About Page
*
*/
get_header();
?>
<!-- s-content
================================================== -->
<section class="s-content s-content--narrow">
<div class="row">
<?php
// Page top title
$pagetitle = philosophy_opt( 'philosophy_about_top_title' );
if( $pagetitle ){
echo philosophy_heading_tag(
array(
'tag' => 'h1',
'class' => 's-content__header-title',
'text' => esc_html( $pagetitle ),
'wrap_before' => '<div class="s-content__header col-full">',
'wrap_after' => '</div>',
)
);
}
//
if( has_post_thumbnail() ):
?>
<div class="s-content__media col-full">
<div class="s-content__post-thumb">
<?php
the_post_thumbnail();
?>
</div>
</div> <!-- end s-content__media -->
<?php
endif;
?>
<div class="col-full s-content__main">
<?php
if( have_posts() ){
while( have_posts() ){
the_post();
the_content();
}
}
?>
<div class="row block-1-2 block-tab-full">
<?php
//
$aboutinfo = philosophy_opt('philosophy_about_infoblock');
if( is_array( $aboutinfo ) && count( $aboutinfo ) > 0 ):
foreach( $aboutinfo as $info ):
?>
<div class="col-block">
<?php
//
if( !empty( $info['info_title'] ) ){
echo philosophy_heading_tag(
array(
'tag' => 'h3',
'class' => 'quarter-top-margin',
'text' => esc_html( $info['info_title'] )
)
);
}
//
if( !empty( $info['info_desc'] ) ){
echo philosophy_get_textareahtml_output( $info['info_desc'] );
}
?>
</div>
<?php
endforeach;
endif;
?>
</div>
</div> <!-- end s-content__main -->
</div> <!-- end row -->
</section> <!-- s-content -->
<?php
get_footer();
?>