This repository has been archived by the owner on May 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfooter.php
executable file
·141 lines (129 loc) · 4.62 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<span style="width:100%;display:block;clear:both;"></span>
<a href="#" id="backtotop">Top ↑</a>
</div><!-- /#wrap -->
<?php roots_footer_before(); ?>
<footer id="content-info" role="contentinfo">
<?php roots_footer_inside(); ?>
<!-- DB FOOTER -->
<?php
$news_cat = get_category_by_slug('news')->term_id;
$ae_cat = get_category_by_slug('arts-entertainment')->term_id;
$sports_cat = get_category_by_slug('sports')->term_id;
$opinion_cat = get_category_by_slug('opinion')->term_id;
$blogs_cat = get_category_by_slug('blogs')->term_id;
$prime_cat = get_category_by_slug('prime')->term_id;
$multimedia_cat = get_category_by_slug('multimedia')->term_id;
?>
<div class="container">
<div class="row footer-nav">
<div class="footer-links span2">
<h3><a href="<?php echo get_category_link( $news_cat ); ?>"><?php echo get_the_category_by_ID( $news_cat ); ?></a></h3>
<ul>
<?php $cat_args = array(
'child_of' => $news_cat,
'orderby' => 'name',
'hide_empty' => 0,
'title_li' => ''
);
wp_list_categories($cat_args);
?>
</ul>
<h3><a href="<?php echo get_category_link( $ae_cat ); ?>"><?php echo get_the_category_by_ID( $ae_cat ); ?></a></h3>
<ul>
<?php $cat_args = array(
'child_of' => $ae_cat,
'orderby' => 'name',
'hide_empty' => 0,
'title_li' => ''
);
wp_list_categories($cat_args);
?>
</ul>
</div>
<div class="footer-links span2">
<h3><a href="<?php echo get_category_link( $sports_cat ); ?>"><?php echo get_the_category_by_ID( $sports_cat ); ?></a></h3>
<ul>
<?php $cat_args = array(
'child_of' => $sports_cat,
'orderby' => 'name',
'hide_empty' => 0,
'title_li' => ''
);
wp_list_categories($cat_args);
?>
</ul>
</div>
<div class="footer-links span2">
<h3><a href="<?php echo get_category_link( $opinion_cat ); ?>"><?php echo get_the_category_by_ID( $opinion_cat ); ?></a></h3>
<ul>
<?php $cat_args = array(
'child_of' => $opinion_cat,
'orderby' => 'name',
'hide_empty' => 0,
'title_li' => ''
);
wp_list_categories($cat_args);
?>
</ul>
<h3><a href="<?php echo get_category_link( $multimedia_cat ); ?>"><?php echo get_the_category_by_ID( $multimedia_cat ); ?></a></h3>
<ul>
<?php $cat_args = array(
'child_of' => $multimedia_cat,
'orderby' => 'name',
'hide_empty' => 0,
'title_li' => '',
);
wp_list_categories($cat_args);
?>
</ul>
</div>
<div class="footer-links span2">
<h3><a href="<?php echo get_category_link( $prime_cat ); ?>"><?php echo get_the_category_by_ID( $prime_cat ); ?></a></h3>
<h3><a href="<?php echo get_category_link( $blogs_cat ); ?>"><?php echo get_the_category_by_ID( $blogs_cat ); ?></a></h3>
<ul>
<?php $cat_args = array(
'child_of' => $blogs_cat,
'orderby' => 'name',
'hide_empty' => 0,
'title_li' => '',
'depth' => 1,
);
wp_list_categories($cat_args);
?>
<li><a href="http://mojo.dailybruin.com">Mojo</a></li>
</ul>
<h3><a href="/classifieds/">Classifieds</a></h3>
<h3>Links</h3>
<?php if (is_front_page()): ?>
<ul>
<?php wp_list_bookmarks(array(
'title_li' => __(''),
'title_before' => '',
'title_after' => '',
'category_before' => '',
'category_after' => '',
'categorize' => 0,
'before' => '<li>'
)); ?>
</ul>
<?php endif; ?>
</div>
<div class="footer-links span4 about">
<h3>About</h3>
<?php wp_nav_menu(array('theme_location'=>'about_footer')); ?>
<br />
<?php wp_nav_menu(array('theme_location'=>'share_footer')); ?>
<?php dynamic_sidebar( 'Footer' ); ?>
</div>
</div>
<span class="copyright">Content copyright © <?php echo date('Y'); ?> the Daily Bruin</span>
</div><!-- end div.container -->
<!-- END DB FOOTER -->
</footer>
<?php roots_footer_after(); ?>
<?php wp_footer(); ?>
<?php roots_footer(); ?>
<span style="clear:both;display:block;"></span>
</body>
<span style="clear:both;display:block;"></span>
</html>