-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
113 lines (88 loc) · 3.58 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
</div> <!-- end of #content -->
</div> <!-- end of #main -->
</div> <!-- end of #wrap -->
<nav id="mainNav">
<a href="<?php echo home_url(); ?>" class="logo_sm">TEDxHongyadong</a>
<!--<?php wp_nav_menu(array('theme_location' => 'primary_navigation', 'depth' => 1)); ?>-->
<ul class="clearfix">
<li><a href="/about/">关于</a></li>
<li><a href="/news/">新闻</a></li>
<li><a href="/event-details/">2013大会</a></li>
<li><a href="/sponsors/">赞助商</a></li>
<li><a href="/speakers/">演讲者</a></li>
<li><a href="http://weibo.com/tedxhongyadong">新浪微博</a></li>
<li><a href="/contact/">联系</a></li>
</ul>
<a href="/event-details/" class="flagNav">
<h2>2013年4月3日</h2>
<h3>地点待定</h3>
</a>
</nav>
<div id="footerWrap">
<footer class="row">
<!--<section class="navigation three columns clearfix">
<h2>Navigation</h2>
<?php wp_nav_menu(array(
'theme_location' => 'footer_left',
'menu_class' => 'left'
));
?>
<?php wp_nav_menu(array(
'theme_location' => 'footer_right',
'menu_class' => 'left'
));
?>
</section>
<section class="social three columns clearfix">
<h2>We Like To Be Social</h2>
<?php wp_nav_menu(array(
'theme_location' => 'footer_social',
));
?>
</section>
<section class="recentTweet three columns clearfix">
<h2>社交网络</h2>
<?php // custom twitter latest widget cuz others don't work
$username = "TEDxHongyadong";
$prefix = "<p>";
$suffix = "</p>";
$feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1";
function parse_feed($feed) {
$stepOne = explode("<content type=\"html\">", $feed);
$stepTwo = explode("</content>", $stepOne[1]);
$tweet = $stepTwo[0];
$tweet = str_replace("<", "<", $tweet);
$tweet = str_replace(">", ">", $tweet);
return $tweet;
}
$twitterFeed = file_get_contents($feed);
echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);
?>
<span style="float:right;">TEDxHongyadong on 新浪微博<a href="http://weibo.com/tedxhongyadong/">Weibo.com</a></span>
</section>
<section class="legalStuff three columns clearfix">
<h2>Legal Stuff</h2>
<p>This independent TEDx event is operated under license from TED.</p>
<p class="legal"><a href="/privacy-policy-terms-of-service/">Privacy Policy</a> | <a href="/privacy-policy-terms-of-service/">Terms of Use</a><br />
© 2012 TEDxHongyadong. All rights reserved.</p>
</section>-->
<section class="legalStuff clearfix">
<p>This independent TEDx event is operated under license from TED.</p>
<p class="legal"><a href="/privacy-policy-terms-of-service/">Privacy Policy</a> | <a href="/privacy-policy-terms-of-service/">Terms of Use</a><br />
© 2012 TEDxHongyadong. All rights reserved.</p>
</footer>
</div> <!-- footer wrap -->
<script>
window._gaq = [['_setAccount','UA-20245932-1'],['_trackPageview'],['_trackPageLoadTime']];
Modernizr.load({
load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
});
</script>
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
</body>
</html>