/
about.php
166 lines (127 loc) · 6.07 KB
/
about.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php
/**
* Template Name: About
*/
?>
<?php get_header(); ?>
<article id="content" class="grid_8" role="main">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="module-title"><?php the_title(); ?></h2>
<div class="grid_8 alpha">
<div class="sw-about abt-module grid_4 alpha">
<h3 class="module-title">StateImpact <? bloginfo('name'); ?></h3>
<div class="content"><?php the_content(); ?></div>
<ul class="sw-social clearfix">
<?php if ( get_option( 'twitter_link' ) ): ?>
<li class="sw-twitter"><a href="<?php echo get_option( 'twitter_link' ); ?>">Twitter</a></li>
<?php endif; ?>
<?php if ( get_option( 'facebook_link' ) ): ?>
<li class="sw-fb"><a href="<?php echo get_option( 'facebook_link' ); ?>">Facebook</a></li>
<?php endif; ?>
<li class="sw-rss"><?php echo the_feed_link( 'RSS' ); ?></li>
</ul>
<ul>
<li><a href="http://www.npr.org/templates/stations/stations/">Station Finder »</a></li>
<li><a href="<?php bloginfo('url'); ?>/tag/corrections-and-clarifications/">Corrections and Clarifications »</a></li>
</ul>
</div><!-- .sw-about -->
<!-- <?php $state_img = strtolower( str_replace(' ', '', get_bloginfo('name'))); ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/img/dev-img/<?php echo $state_img; ?>.png" alt="<? bloginfo('name'); ?>" width="300" /> -->
<div class="abt-module grid_4 omega">
<h3 class="module-title">Partners</h3>
<?php $stations = sw_get_stations(); ?>
<?php while ( $stations->have_posts() ): ?>
<?php $stations->the_post(); ?>
<div class="partner-station logo-list clearfix">
<?php if ( has_post_thumbnail() ) { ?>
<a href="<?php echo get_post_meta( get_the_ID(), 'url', true ); ?>">
<?php the_post_thumbnail( 'station-thumb' ); ?>
</a>
<?php } ?>
<h4><a href="<?php echo get_post_meta( get_the_ID(), 'url', true ); ?>"><?php the_title(); ?></a></h4>
<h5><?php echo get_post_meta( get_the_ID(), 'city', true); ?> <b><?php echo get_post_meta( get_the_ID(), 'frequency', true ); ?></b></h5>
<h5><a href="<?php echo get_post_meta( get_the_ID(), 'support_url', true ); ?>">Support</a></h5>
</div><!-- / .partner-station -->
<?php endwhile; ?>
<?php $supporters = sw_get_supporting_orgs(); ?>
<?php if ( $supporters->have_posts() ): ?>
<div class="supporting-orgs clearfix">
<h4 class="module-title">Listen To Our Stories On:</h4>
<h5><?php while ( $supporters->have_posts() ): $supporters->the_post(); ?>
<?php $post_counter++; ?>
<a href="<?php echo get_post_meta( get_the_ID(), 'url', true ); ?>"><?php the_title(); ?></a><?php if( $post_counter < $supporters->post_count ) echo ', '; ?>
<?php endwhile; ?></h5>
</div>
<?php endif; ?>
<?php $sponsors = sw_get_sponsors(); ?>
<?php if ( $sponsors->have_posts() ): ?>
<div class="sponsors logo-list clearfix">
<h4 class="module-title">Sponsors</h4>
<?php while ( $sponsors->have_posts() ): $sponsors->the_post(); ?>
<?php if ( has_post_thumbnail() ): ?>
<a href="<?php echo get_post_meta( get_the_ID(), 'url', true ); ?>">
<?php the_post_thumbnail( array(140) ); ?>
</a>
<?php endif; ?>
<h4><a href="<?php echo get_post_meta( get_the_ID(), 'url', true ); ?>"><?php the_title(); ?></a></h4>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
<div class="clearfix"></div>
</div>
<div class="abt-module grid_8 alpha omega abt-field">
<h3 class="module-title">Reporters</h3>
<?php $staff = sw_get_staff(); ?>
<?php foreach ( $staff as $key => $user ): ?>
<div class="abt-staff grid_4 <?php
$foo = ($key == count($staff)-1) ? "omega" : "alpha"; echo $foo;
?>">
<?php echo get_avatar( $user->ID, 60 ); ?>
<h4><a href="<?php echo get_author_posts_url( $user->ID ); ?>"><?php the_author_meta( 'display_name', $user->ID ); ?></a></h4>
<h5><?php the_author_meta( 'sw_title', $user->ID ); ?></h5>
<p><?php the_author_meta( 'description', $user->ID ); ?></p>
</div><!-- /.abt-staff -->
<? endforeach; ?>
</div>
<div class="grid_8 alpha omega abt-field">
<h3 class="module-title">The Network</h3>
<div id="sw-abt-network" class="abt-module grid_4 alpha">
<h4>Issues That Matter. Close To Home.</h4>
<p>StateImpact is a project of NPR member stations dedicated to examining how state policy and issues affect people and communities. With reporting teams in six states, the project seeks to inform and engage communities through explanatory, data-driven, accountability journalism. Our reporters work to put the news in context, providing insight, background and analysis around focused policy topics.</p>
<p><a href="http://stateimpact.npr.org" title="Learn more about the project">Learn more about the project</a></p>
</div> <!-- /#sw-abt-network -->
<div id="sw-network-partners">
<h4 class="module-title">Participating States</h4>
<dl>
<dt><a href="/florida/">Florida</a></dt>
<dd>Education</dd>
<dt><a href="/indiana/">Indiana</a></dt>
<dd>Education</dd>
<dt><a href="/ohio/">Ohio</a></dt>
<dd>Education</dd>
<dt><a href="/oklahoma/">Oklahoma</a></dt>
<dd>Economy</dd>
<dt><a href="/pennsylvania/">Pennsylvania</a></dt>
<dd>Energy</dd>
<dt><a href="/texas/">Texas</a></dt>
<dd>Energy</dd>
</dl>
</div> <!-- /#sw-network-partners -->
<div id="sw-abt-npr"></div> <!-- /#sw-abt-npr -->
<!--
<div id="sw-sponsors">
<h4>Sponsors</h4>
<h5><a href="#">Sponsor Name</a></h5>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.</p>
</div> -->
</div><!-- / .grid_4 omega -->
</div><!-- #post-## -->
<?php endwhile; ?>
</article><!-- / #content .grid8 -->
<aside id="sidebar" class="grid_4">
<?php get_sidebar( 'about' ); ?>
</aside>
<!-- /.grid_4 -->
<?php get_footer(); ?>