-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
102 lines (88 loc) · 4.32 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
96
97
98
99
100
101
102
<?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 WordPress
*/
?>
<!-- footer -->
<footer>
<div id="top-footer">
<div class="container">
<div class="row">
<?php if (get_theme_mod('top_footer_columns', 'col_3_right') === 'col_3_right') : ?>
<div class="col-md-6">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot1')) : ?><?php endif; ?>
</div>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot2')) : ?><?php endif; ?>
</div>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot3')) : ?><?php endif; ?>
</div>
<?php elseif (get_theme_mod('top_footer_columns', 'col_3_right') === 'col_3_left') : ?>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot1')) : ?><?php endif; ?>
</div>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot2')) : ?><?php endif; ?>
</div>
<div class="col-md-6">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot3')) : ?><?php endif; ?>
</div>
<?php elseif (get_theme_mod('top_footer_columns', 'col_3_right') === 'col_3') : ?>
<div class="col-md-4">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot1')) : ?><?php endif; ?>
</div>
<div class="col-md-4">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot2')) : ?><?php endif; ?>
</div>
<div class="col-md-4">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot3')) : ?><?php endif; ?>
</div>
<?php elseif (get_theme_mod('top_footer_columns', 'col_3_right') === 'col_4') : ?>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot1')) : ?><?php endif; ?>
</div>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot2')) : ?><?php endif; ?>
</div>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot3')) : ?><?php endif; ?>
</div>
<div class="col-md-3">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Foot4')) : ?><?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<div id="bottom-footer">
<div class="container">
<p class="text-center"><?php echo get_theme_mod('bottom_footer_text', __('Imam Khomeini High School All Rights Reserved.', 'ger-school')); ?></p>
</div>
</div>
</footer><!-- /footer -->
<script>
var template_url = "<?php bloginfo('template_url'); ?>";
</script>
<script src="<?php bloginfo('template_url'); ?>/assets/js/jquery.min.js"></script>
<script src="<?php bloginfo('template_url'); ?>/assets/js/bootstrap.min.js"></script>
<script src="<?php bloginfo('template_url'); ?>/assets/js/photo-gallery.js"></script>
<script src="<?php bloginfo('template_url'); ?>/assets/js/script.js?v=<?php echo wp_get_theme()->get('Version'); ?>"></script>
<script>
$(window).on("load", function() {
setTimeout(function() {
$("#main-loader").fadeOut(300);
}, 100);
});
</script>
<?php wp_footer(); ?>
<script>
<?php echo get_theme_mod('general_custom_script', "convertDigitsToPersian(document.body); convertDigitsToEnglish(document.getElementById('post-0'));"); ?>
</script>
</body>
</html>