-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathfooter.php
98 lines (89 loc) · 4.11 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
<footer id="footer">
<div class="container">
<div class="divider">
<span><?php _e('Categories'); ?></span>
</div>
<ul>
<?php
foreach (get_categories() as $category) { ?>
<li class="brackets">
<a href="<?php echo get_category_link($category->term_id) ?>"><?php echo $category->name ?></a>
</li>
<?php } ?>
</ul>
<div class="divider">
<span><?php _e('Tags') ?></span>
</div>
<div id="cloud-tags">
<?php $args = array(
'smallest' => 8,
'largest' => 12,
'unit' => 'pt',
'number' => 99,
'format' => 'flat',
'orderby' => 'name',
'link' => 'view',
'taxonomy' => 'post_tag',
); ?>
<?php wp_tag_cloud( $args ); ?>
</div>
<div class="divider"></div>
<ul>
<?php
// header links from Theme panel
$first_footer_link = get_option('first_footer_url');
$first_footer_link_text = get_option('first_footer_url_text');
if($first_footer_link != null && $first_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$first_footer_link?>"><?=$first_footer_link_text?></a></li>
<?php }
$second_footer_link = get_option('second_footer_url');
$second_footer_link_text = get_option('second_footer_url_text');
if($second_footer_link != null && $second_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$second_footer_link?>"><?=$second_footer_link_text?></a></li>
<?php }
$third_footer_link = get_option('third_footer_url');
$third_footer_link_text = get_option('third_footer_url_text');
if($third_footer_link != null && $third_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$third_footer_link?>"><?=$third_footer_link_text?></a></li>
<?php }
$fourth_footer_link = get_option('fourth_footer_url');
$fourth_footer_link_text = get_option('fourth_footer_url_text');
if($fourth_footer_link != null && $fourth_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$fourth_footer_link?>"><?=$fourth_footer_link_text?></a></li>
<?php }
$fifth_footer_link = get_option('fifth_footer_url');
$fifth_footer_link_text = get_option('fifth_footer_url_text');
if($fifth_footer_link != null && $fifth_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$fifth_footer_link?>"><?=$fifth_footer_link_text?></a></li>
<?php }
$sixth_footer_link = get_option('sixth_footer_url');
$sixth_footer_link_text = get_option('sixth_footer_url_text');
if($sixth_footer_link != null && $sixth_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$sixth_footer_link?>"><?=$sixth_footer_link_text?></a></li>
<?php }
$seventh_footer_link = get_option('seventh_footer_url');
$seventh_footer_link_text = get_option('seventh_footer_url_text');
if($seventh_footer_link != null && $seventh_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$seventh_footer_link?>"><?=$seventh_footer_link_text?></a></li>
<?php }
$eighth_footer_link = get_option('eighth_footer_url');
$eighth_footer_link_text = get_option('eighth_footer_url_text');
if($eighth_footer_link != null && $eighth_footer_link_text != null){ ?>
<li class="brackets"><a href="<?=$eighth_footer_link?>"><?=$eighth_footer_link_text?></a></li>
<?php } ?>
</ul>
<br>
<?= get_option('footer_text') ?>
<?php if ( get_option('footer_text') != null && get_option('footer_text') != '' ) : ?>
<div class="divider"></div>
<?php endif; ?>
<p id="copyright-stuff">
<a href="https://github.com/TheYahya/thewhite">قالب سفید</a> اثر <a href="http://theyahya.com/">یحیی</a>
</p>
</div>
</footer>
<?php wp_footer(); ?>
<script src="<?= get_template_directory_uri() ?>/js/instantclick.min.js" data-no-instant></script>
<script data-no-instant>InstantClick.init();</script>
</body>
</html>