-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
47 lines (35 loc) · 1.25 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
<?php
/**
* The template for displaying the footer.
*
* Contains footer content and the closing of the
* #main and #page div elements.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
</div><!-- #page -->
<?php if( is_user_logged_in() ): ?>
<?php get_template_part( 'partials/modal', 'edit-profile' ); ?>
<?php get_template_part( 'partials/modal', 'edit-avatar' ); ?>
<?php get_template_part( 'partials/modal', 'email-user' ); ?>
<?php else: // If user is not logged in ?>
<?php get_template_part( 'partials/modal', 'sign-up' ); ?>
<?php get_template_part( 'partials/modal', 'login' ); ?>
<?php endif; ?>
<?php wp_footer(); ?>
<div id="loading" class="modal hide" tabindex="-1">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/img/preloader.gif" height="128" width="128" alt="Loading">
</div><!-- .vcard -->
<script type="text/javascript">
var uvOptions = {};
(function() {
var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/u9wFFHubVFFLBVve28tg.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
})();
</script>
</body>
</html>