-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
67 lines (52 loc) · 1.58 KB
/
footer.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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package themanager
*/
$attend = get_option( 'options_tm_attend_text' );
$attend_link = get_option( 'options_tm_attend_link' );
if ( $attend ) {
?>
<section class="attend-cta section-padding text-center">
<div class="grid-container">
<div class="grid-x grid-padding-x">
<div class="cell small-12 medium-10 medium-offset-1 large-8 large-offset-2">
<?php
echo wp_kses_post( apply_filters( 'the_content', $attend ) );
if ( $attend_link ) {
?>
<a class="button secondary" href="<?php echo esc_url( $attend_link['url'] ); ?>"><?php echo esc_html( $attend_link['title'] ); ?></a>
<?php
}
?>
</div>
</div>
</div>
</section>
<?php
}
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer">
<div class="grid-container">
<div class="flex-container align-justify">
<div class="site-info">
<?php
$sitename = get_bloginfo( 'name' );
echo '<p>' . esc_html( $sitename ) . ' © ' . date( 'Y' ) . '</p>';
?>
</div><!-- .site-info -->
<!-- Social Media. -->
<?php tm_social_media(); ?>
</div>
</div>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>