-
Notifications
You must be signed in to change notification settings - Fork 40
/
footer.php
executable file
·95 lines (83 loc) · 3.86 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
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
<footer role="contentinfo">
<!-- WPFlex vCard -->
<?php $options = get_option( 'wpflex_theme_options' ); ?>
<?php if ( $options || empty($options) ): ?>
<!-- fn org -->
<section id="wpflex-vcard">
<ul class="vcard">
<!-- fn org -->
<?php if ( ! empty( $options['fnorg'] ) ): ?>
<li class="fn org"><small><?php echo ( $options['fnorg'] ); ?>,</small></li>
<!-- fn org fallback -->
<?php else : ?>
<li><small>WPFlex : A Blank and Responive Wordpress Workshop</small></li>
<?php endif; ?>
<!-- adr -->
<?php if ( $options['street'] && $options['locality'] && $options['region'] && $options['postal'] ): ?>
<li class="adr">
<small>
<span class="street-address"><?php echo ( $options['street'] ); ?></span>, <span class="locality"><?php echo ( $options['locality'] ); ?></span>,
<span class="region"><abbr title="<?php echo ( $options['region'] ); ?>"><?php echo ( $options['region'] ); ?></abbr></span>
<span class="postal-code"><?php echo ( $options['postal'] ); ?></span>
</small>
</li>
<!-- adr fallback -->
<?php else : ?>
<li class="adr"><small>Blank Avenue, Wordpress, New York 34100</small></li>
<?php endif; ?>
<!-- tel -->
<?php if ( $options['teltype'] && $options['telvalue'] ): ?>
<li class="tel"><small><span class="type"><?php echo ( $options['teltype'] ); ?></span>: <span class="value"><?php echo ( $options['telvalue'] ); ?></span></small></li>
<!-- tel fallback -->
<?php else : ?>
<li class="tel"><small>Office: 341–341-0000</small></li>
<?php endif; ?>
<!-- url fn org -->
<?php if ( $options['url'] ): ?>
<li class="url fn org"><small><a rel="bookmark" href="http://<?php echo ( $options['url'] ); ?>" title="visit us online"><?php echo ( $options['url'] ); ?></a></small></li>
<!-- url fn org fallback -->
<?php else : ?>
<li class="url fn org"><small><a rel="bookmark" href="https://github.com/grayghostvisuals/WP-Flex">https://github.com/grayghostvisuals/WP-Flex</a></small></li>
<?php endif; ?>
<!-- add to address book -->
<li class="add-vcard"><small><a href="http://h2vx.com/vcf/<?php echo ( $options['addrbook'] ); ?>" rel="vcard">Add Us To Your Address Book</a></small></li>
</ul>
</section>
<?php endif; ?>
<section id="footer-socials">
<!-- facebook -->
<?php $options = get_option( 'wpflex_theme_options' ); ?>
<?php if ( $options[ 'facebookurl' ] ) : ?>
<article id="footer-fb">
<div class="facebook">
<a href="<?php echo ( $options[ 'facebookurl' ] ); ?>" rel="external"><?php echo ( $options[ 'facebookurl' ] ); ?></a>
</div>
</article>
<?php endif; ?>
<!-- twitter -->
<?php $options = get_option( 'wpflex_theme_options' ); ?>
<?php if ( $options[ 'twitterurl' ] ) : ?>
<article id="footer-twitter">
<div class="twitter">
<a href="https://twitter.com/<?php echo ( $options[ 'twitterurl' ] ); ?>" rel="external">follow<?php echo( $options[ 'twitterurl' ] ); ?></a>
</div>
</article>
<?php endif; ?>
<!-- WPFlex Copyright -->
<!-- It is completely optional, but if you like WP-Flex I would appreciate it if you keep the credit link at the bottom -->
<section class="wpflex-copyright">
<small>Created with the WP–Flex boilerplate foundation by <a href="http://grayghostvisuals.com" rel="external">http://grayghostvisuals.com</a></small>
</section>
</section>
</footer>
<?php
/*
* Always have wp_footer() just before the closing </body>
* tag of your WP theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*
*/
wp_footer();
?>
</body>
</html>