-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-about.php
53 lines (46 loc) · 1.3 KB
/
template-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
<?php
/**
* Template name: O projektu
*
* @package ceskaecommerce
*/
?>
<section class="section section--gray pb-40" role="region" id="o-projektu">
<div class="row-main">
<?php
$about_title = get_field( 'sk_about_title', $pageID );
if ( !empty( $about_title ) ) {
printf( '<h2>%s</h2>', esc_html( $about_title ) );
}
?>
<div class="grid grid--wider mb-60">
<?php
if ( !empty( $page->post_content ) ) :
?>
<div class="grid__cell size--7-12">
<?php
echo apply_filters( 'the_content', $page->post_content );
?>
</div>
<?php
endif;
?>
<div class="grid__cell size--5-12">
<?php
$email_address = get_option( 'options_sk_global_email' );
if ( !empty( $email_address ) ) :
?>
<strong class="b-about__subtitle">Kontakt pro média:</strong>
<a href="mailto:<?php echo antispambot( $email_address ); ?>" class="b-about__link"><?php sk_iconSVG('envelope'); ?><?php echo antispambot( $email_address ); ?></a>
<?php
endif;
// TESTIMONIALS
$testimonial_class = 'mt-30';
$testimonial_content_class = 'b-testimonial__content--white';
$include = false;
include( locate_template( 'components/testimonials.php', false, false ) );
?>
</div>
</div>
</div>
</section>