forked from MayOneUS/mayday-2.0-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
30_news.html
143 lines (134 loc) · 4.43 KB
/
30_news.html
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
142
---
layout: default
title: MAYDAY.US - News
permalink: /news/
---
<div class="container news-content">
<div class="row">
<div class="col-md-8 col-xs-12">
<h1 class="mayday-headline-smaller">News</h1>
</div>
</div>
<div class="row no-gutter">
<div class="col-xs-12 col-md-4">
<div class="panel panel-news">
<div class="panel-heading">
<h2>
<i class="md-icon md-download"></i>
Media Resources
</h2>
</div>
<div class="panel-body contact-info">
<p><a href="mailto:[email protected]?subject=Press">[email protected]</a></p>
</ul>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="panel panel-news">
<div class="panel-heading">
<h2>
<i class="md-icon md-envelope"></i> Contact Us
</h2>
</div>
<div class="panel-body contact-info">
<p>
<a href="mailto:[email protected]?subject=Info">[email protected]</a>
</p>
<p>
MAYDAY PAC<br/>
P.O. Box 380444<br/>
Cambridge, MA 02238
</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="row-same-height row-full-height">
<div class="col-xs-12 col-sm-6 col-sm-height col-full-height">
<div class="panel panel-news with-border">
<div class="panel-heading">
<h2>
<a href="{{site.blog_root_url}}" target="_blank"><i class="md-icon md-shield"></i> The Mayday Blog</a>
</h2>
</div>
<div class="panel-body panel-links">
<ul id="tumblr-posts">
</ul>
<a class="more-link" href="{{site.blog_root_url}}">> Visit the Mayday Blog</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-sm-height col-full-height">
<div class="panel panel-news with-border">
<div class="panel-heading">
<h2><a href="{{site.blog_root_url}}/tagged/press-release"><i class="md-icon md-microphone"></i>Press Releases</a></h2>
</div>
<div class="panel-body panel-links">
<ul id="tumblr-press-releases">
</ul>
<a class="more-link" href="{{site.blog_root_url}}/tagged/press-release">> View our Press Release Library</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-sm-height col-full-height">
<div class="panel panel-news with-border">
<div class="panel-heading">
<h2>
<a href="/in-the-news/"><i class="md-icon md-newspaper"></i> Mayday in the News</a>
</h2>
</div>
<div class="panel-body panel-links">
<ul>
{% for article in site.data.press_articles limit:5 %}
<li>
<a href="/in-the-news/#{{article.link | slugify}}">{{ article.title }}</a>
</li>
{% endfor %}
</ul>
<a class="more-link" href="/in-the-news/">> Read more news about Mayday</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- JavaScript to Pull in last 5 Tumblr Posts -->
<script id="post" type="text/html">
{% raw %}<li><a href="{{ url }}">{{ regular-title }}</a></li>{% endraw %}
</script>
<script id="press_release" type="text/html">
{% raw %}
<li>
<p>
<time class="press-date">{{ date }}</time> -
<a class="press-link" href="{{ url }}">{{ regular-title }}</a>
</p>
</li>
{% endraw %}
</script>
<script type="text/javascript">
(function($, ich) {
var url = '{{site.blog_post_feed_url}}';
$.getJSON(url, function (data) {
var posts = data.posts;
var $posts = $('#tumblr-posts');
posts.forEach(function(post, index) {
$posts.append( ich.post(post) );
});
});
var url = '{{site.press_releases_feed_url}}';
$.getJSON(url, function (data) {
var releasePosts = data.posts;
var $releasesContainer = $('#tumblr-press-releases');
releasePosts.forEach(function(post, index) {
d = new Date(post['date']);
post['date'] = d.getMonth()+1 + "/" + d.getDate() + "/" + d.getFullYear();
post['regular-title'] = post['regular-title'].replace('PRESS RELEASE - ','')
$releasesContainer.append( ich.press_release(post) );
});
});
})(jQuery, ich);
</script>
<!-- end JavaScript -->