Permalink
Fetching contributors…
Cannot retrieve contributors at this time
167 lines (127 sloc) 6.07 KB
<?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 &raquo;</a></li>
<li><a href="<?php bloginfo('url'); ?>/tag/corrections-and-clarifications/">Corrections and Clarifications &raquo;</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(); ?>