replace with member's name or info

FRESHMEN PAGE TEMPLATE - INITIAL CREATION

<?php

/**

* Template Name: Freshmen

* The template file for Freshmen Members.

* This is the template file used for displaying member pages.

* @package Catch Themes

* @subpackageCatch_Box

*/

get_header(); ?>

<style type="text/css">

h1.entry-title {

display:none;

}

</style>

</div<!-- site-logo -->

<div id="primary">

<div id="member-left">

<h1 class="member-title"<?php echo get_the_title($post->post_parent); ?</h1<br />

<div style="text-align:center;"<a href=" target="_blank"<imgsrc=" /</a<br />

Districtbr />

Positionbr />

Hometownbr />

</div<!--centered section-->

<p</p>

<div id="committees">

<h3 class="member-page-title">Committees:</h3>

li>To be determined</li>

<p</p>

</div<!-- #committees -->

<div id="mediaresources">

<h3 class="member-page-title">Media Resources:</h3>

<a href="mailto:">John Handy – (360) 786-5758</a<br />

<div class="spacer"</div>

<div class="spacer"</div>

</div<!-- #mediaresources-->

</div<!-- #member-left -->

<div id="member-content" role="main">

<?php $pagetype=get_post_meta($post->ID, 'page-type', true); ?>

<? // Member Pages not newsroom // ?>

<?php if ( $pagetype == "member" ) : ?>

<?php if ( have_posts() ) : ?>

<?php /* Start the Loop */ ?>

<?php while ( have_posts() ) : the_post(); ?>

<?phpget_template_part( 'content', get_post_format() ); ?>

<?phpendwhile; ?>

<?phpcatchbox_content_nav( 'nav-below' ); ?>

<?php else : ?>

<article id="post-0" class="post no-results not-found">

<header class="entry-header">

<?php _e( 'Nothing Found', 'catchbox' ); ?>

</header<!-- .entry-header -->

<div class="entry-content">

<h1 class="entry-title"<p<?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catchbox' ); ?</p</h1>

<?phpget_search_form(); ?>

</div<!-- .entry-content -->

</article<!-- #post-0 -->

<?phpendif; ?>

<?php // Member Newsroom // ?>

<?phpelseif ( $pagetype == "membernews" ) : ?>

<span id="member-page"</span>

<div class="spacer"</div>

<h3 class="member-page-title">Newsroom</h3>

<span id="newsroom-content">

<?php if ( have_posts() ) : ?>

<?php /* Start the Loop */ ?>

<?php while ( have_posts() ) : the_post(); ?>

<div style="padding: 0.5em 5% 2em;">

<?php

$key = 'member-name';

$tag = get_post_meta($post->ID, $key, true);

$args=array(

'showposts' =>10,

'tag' => $tag,

'orderby' =>'post_date',

'order' => 'DESC',

);

$my_query = new WP_Query($args);

$key = 'member-name';

$tag = get_post_meta($post->ID, $key, true);

if( $my_query->have_posts() ) {

while ($my_query->have_posts()) : $my_query->the_post(); ?>

<br /<strong<a href="<?phpthe_permalink() ?>" rel="bookmark" title="Permanent Link to <?phpthe_title_attribute(); ?>"<?phpthe_title(); ?</a the_title_attribute(); ?</a</strong>

<div style="text-align:right;"<em<?php echo get_the_date(); ?</em</div>

<?phpthe_excerpt(); ?</p>

<?php

endwhile;

} //if ($my_query)

wp_reset_query(); // Restore global post data stomped by the_post().

?>

</div<!-- extra padding -->

<?phpendwhile; ?>

<?phpcatchbox_content_nav( 'nav-below' ); ?>

<?php else : ?>

<article id="post-0" class="post no-results not-found">

<header class="entry-header">

<?php _e( 'Nothing Found', 'catchbox' ); ?>

</header<!-- .entry-header -->

<div class="entry-content">

<h1 class="entry-title"<p<?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catchbox' ); ?</p</h1>

<?phpget_search_form(); ?>

</div<!-- .entry-content -->

</article<!-- #post-0 -->

<?phpendif; ?>

<div class="spacer"</div>

<a href=" style="text-align: right">View all posts for <?php echo get_the_title($post->post_parent); ?</p</a>

</span>

<div class="spacer"</div>

<?phpendif; ?>

<div class="address-footer">

P.O. Box 40600 | Olympia, WA 98504-0600br />(360) 786-7000 | Toll-free: (800) 562-6000<br />

br />

</div<!-- .address-footer -->

</div<!-- #member-content -->

<div id="member-right">

<!-- RSS image and link to member's RSS feed -->

<h3 class="member-page-title"<a href= "

imgtitle="subscribe" src=" />

</a>

<span id="recent-news">

<!-- Pull member's recent news-->

<?php

$key = 'member-name';

$tag = get_post_meta($post->ID, $key, true);

$args=array(

'showposts' =>5,

'tag' => $tag,

'cat' => -88,

'orderby' =>'post_date',

'order' => 'DESC',

);

$my_query = new WP_Query($args);

$key = 'member-name';

$tag = get_post_meta($post->ID, $key, true);

if( $my_query->have_posts() ) {

echo 'Recent News:</h3>';

while ($my_query->have_posts()) : $my_query->the_post(); ?>

<li<a href="<?phpthe_permalink() ?>" rel="bookmark" title="Permanent Link to <?php

the_title_attribute(); ?>"<?phpthe_title(); ?</a</li>

<?php

endwhile;

} //if ($my_query)

wp_reset_query(); // Restore global post data stomped by the_post().

?>

</span>

<!-- End pull member's recent news-->

<div class="spacer"</div>

<!-- RSS image and link to member's Delicious feed -->

<h3 class="member-page-title"<a href= "

img src=" />

</a>

<!-- RSS feed for Member in the News -->

First Lastnamebr /> In the News:</h3>

<?php

// Get RSS Feed(s)

include_once(ABSPATH . WPINC . '/feed.php');

// Get a SimplePie feed object from the specified feed source.

$rss = fetch_feed('

if (!is_wp_error( $rss ) ) : // Checks that the object is created correctly

// Figure out how many total items there are, but limit it to 5.

$maxitems = $rss->get_item_quantity(5);

// Build an array of all the items, starting with element 0 (first element).

$rss_items = $rss->get_items(0, $maxitems);

endif;

?>

<?php if ($maxitems == 0) echo '<li>No items added yet. Stay tuned.</li>';

else

// Loop through each feed item and display each item as a hyperlink.

foreach ( $rss_items as $item ) : ?>

<li

<a href='<?php echo esc_url( $item->get_permalink() ); ?>'

title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>

<?php echo esc_html( $item->get_title() ); ?</a>

</li>

<?phpendforeach; ?>

<!-- End RSS feed for Member in the News -->

</div<!-- #member-right -->

</div<!-- #primary -->

<?phpget_footer(); ?>

replace with member's name or info

copy verbatim (as info available)

ADD LATER:

<?php

/**

* Template Name: Buys

* The template file for Rep. Buys.

* This is the template file used for displaying member pages.

* @package Catch Themes

* @subpackageCatch_Box

*/

get_header(); ?>

<style type="text/css">

h1.entry-title {

display:none;

}

</style>

</div<!-- site-logo -->

<div id="primary">

<div id="member-left">

<h1 class="member-title"<?php echo get_the_title($post->post_parent); ?</h1<br />

<div style="text-align:center;"<a href=" target="_blank"<imgsrc=" /</a<br />

42nd District<br />

Position 2<br />

Lynden<br />

</div<!--centered section-->

<p</p>

<div id="committees">

<h3 class="member-page-title">Committees:</h3>

<li<a href=" target="_blank">Agriculture & Natural Resources (Ranking Republican)</a</li>

<li<a href=" target="_blank">Government Operations and Elections</a</li>

<li<a href=" target="_blank">Appropriations</a</li>

<li<a href=" target="_blank">Appropriations Subcommittee on General Government</a</li>

<li<a href=" target="_blank">Local Government</a</li>

<p</p>

</div<!-- #committees -->

<div id="media-resources">

<h3 class="member-page-title">Media Resources:</h3>

<a href="mailto:">Stephanie Davenport - <br>(360) 786-7031</a<br />

</div<!-- #media-resources-->

<div class="spacer"</div>

<a href=" target="_blank">Silent b-roll for broadcast media</a<embr />(To save, right-click on link, then select "save link/target as...")</embr />

<div class="spacer"</div<br />

<a href=" target="_blank"<img src=" /</a<br />

</div<!-- #member-left -->

<div id="member-content" role="main">

<?php $pagetype=get_post_meta($post->ID, 'page-type', true); ?>

<? // Member Pages not newsroom // ?>

<?php if ( $pagetype == "member" ) : ?>

<?php if ( have_posts() ) : ?>

<?php /* Start the Loop */ ?>

<?php while ( have_posts() ) : the_post(); ?>

<?phpget_template_part( 'content', get_post_format() ); ?>

<?phpendwhile; ?>

<?phpcatchbox_content_nav( 'nav-below' ); ?>

<?php else : ?>

<article id="post-0" class="post no-results not-found">

<header class="entry-header">

<?php _e( 'Nothing Found', 'catchbox' ); ?>

</header<!-- .entry-header -->

<div class="entry-content">

<h1 class="entry-title"<p<?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catchbox' ); ?</p</h1>

<?phpget_search_form(); ?>

</div<!-- .entry-content -->

</article<!-- #post-0 -->

<?phpendif; ?>

<?php // Member Newsroom // ?>

<?phpelseif ( $pagetype == "membernews" ) : ?>

<span id="member-page"</span>

<div class="spacer"</div>

<h3 class="member-page-title">Newsroom</h3>

<span id="newsroom-content">

<div style="padding: 0.5em 5% 2em;">

<?php

$temp = $wp_query; //save old query

$wp_query= null; //clear $wp_query

$key = 'member-name';

$tag = get_post_meta($post->ID, $key, true);

$args=array(

'tag' => $tag,

'orderby' =>'post_date',

'order' => 'DESC',

'posts_per_page' => 10,

'paged' => $paged

);

$wp_query = new WP_Query($args);

if( $wp_query->have_posts() ) {

while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

<br />

<strong<a href="<?phpthe_permalink() ?>" rel="bookmark" title="Permanent Link to <?phpthe_title_attribute(); ?>"<?phpthe_title(); ?</a</strong>

<div style="text-align:right;"<em<?php echo get_the_date(); ?</em</div>

<p<?phpthe_excerpt(); ?</p>

<?phpendwhile; ?>

<div style="float:left"<?phpprevious_posts_link(); ?</div<div style="float:right"<?phpnext_posts_link(); ?</div>

<?php

} //if ($my_query)

wp_reset_postdata();

?>

</div<!-- extra padding -->

<?php else : ?>

<article id="post-0" class="post no-results not-found">

<header class="entry-header">

<?php _e( 'Nothing Found', 'catchbox' ); ?>

</header<!-- .entry-header -->

<div class="entry-content">

<h1 class="entry-title"<p<?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catchbox' ); ?</p</h1>

<?phpget_search_form(); ?>

</div<!-- .entry-content -->

</article<!-- #post-0 -->

<?phpendif; ?>

</span>

<div class="spacer"</div>

<div class="address-footer">

465 John L. O'Brien Building | P.O. Box 40600 | Olympia, WA 98504-0600<br />(360) 786-7854 | Toll-free: (800) 562-6000<br />

br />

</div<!-- .address-footer -->

</div<!-- #member-content -->

<div id="member-right">

<?php if ( $pagetype == "member" ) : ?>

<!-- RSS image and link to member's RSS feed -->

<h3 class="member-page-title"<a href= "

img title="subscribe" src=" />

</a>

<span id="recent-news"<!-- Pull member's recent news-->

<?php

$key = 'member-name';

$tag = get_post_meta($post->ID, $key, true);

$args=array(

'showposts' =>5,

'tag' => $tag,

'cat' => -88,

'orderby' =>'post_date',

'order' => 'DESC',

);

$my_query = new WP_Query($args);

$key = 'member-name';

$tag = get_post_meta($post->ID, $key, true);

if( $my_query->have_posts() ) {

echo 'Recent News:</h3>';

while ($my_query->have_posts()) : $my_query->the_post(); ?>

<li<a href="<?phpthe_permalink() ?>" rel="bookmark" title="Permanent Link to <?php

the_title_attribute(); ?>"<?phpthe_title(); ?</a</li>

<?php

endwhile;

} //if ($my_query)

wp_reset_query(); // Restore global post data stomped by the_post().

?>

</span<!-- End pull member's recent news-->

<div class="spacer"</div>

<?phpelseif ( $pagetype == "membernews" ) : ?>

<?phpendif; ?<!-- End rule for displaying recent news only if page type is member -->

<div style="text-align:center;"<a href=" src=" /</a</div>

<div class="spacer"</div>

<!-- RSS image and link to member's Delicious feed -->

<h3 class="member-page-title"<a href= "

img src=" />

</a>

<!-- RSS feed for Member in the News -->

Vincent Buys<br /> In the News:</h3>

<?php

// Get RSS Feed(s)

include_once(ABSPATH . WPINC . '/feed.php');

// Get a SimplePie feed object from the specified feed source.

$rss = fetch_feed('

if (!is_wp_error( $rss ) ) : // Checks that the object is created correctly

// Figure out how many total items there are, but limit it to 5.

$maxitems = $rss->get_item_quantity(5);

// Build an array of all the items, starting with element 0 (first element).

$rss_items = $rss->get_items(0, $maxitems);

endif;

?>

<?php if ($maxitems == 0) echo '<li>No items added yet. Stay tuned.</li>';

else

// Loop through each feed item and display each item as a hyperlink.

foreach ( $rss_items as $item ) : ?>

<li

<a href='<?php echo esc_url( $item->get_permalink() ); ?>'

title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>

<?php echo esc_html( $item->get_title() ); ?</a>

</li>

<?phpendforeach; ?>

<!-- End RSS feed for Member in the News -->

<p</p>

<span id="watch">

<h3 class="member-page-title">Watch:</h3>

<p>Watch my updates of 2013 session:

iframe src=" frameborder="0" allowfullscreen</iframe</p>

<p>My speech against tax increases, April 24, 2013:

iframesrc=" frameborder="0" allowfullscreen</iframe</p>

<p>Watch my video tour and discussion of higher education:

iframesrc=" frameborder="0" allowfullscreen=""</iframe</p>

<div class="spacer"</div>

<div style="text-align:center;">

<a href=" target="_blank">img src=" /</a>

</div>

</span>

<div class="spacer"</div>

<?php // Link to audio feed// ?>

<?php if (get_post_meta( $post->ID, 'audio-tag', true )) : ?>

<h3 class="member-page-title"<a href="

img src=" />

</a>

<!-- Pull member's audio posts-->

<?php

$key = 'audio-tag';

$tag = get_post_meta($post->ID, $key, true);

$args=array(

'showposts' =>3,

'tag' => $tag,

'orderby' =>'post_date',

'order' => 'DESC',

);

$my_query = new WP_Query($args);

$key = 'audio-tag';

$tag = get_post_meta($post->ID, $key, true);

if( $my_query->have_posts() ) {

echo 'Listen:</h3>';

while ($my_query->have_posts()) : $my_query->the_post(); ?>

<li<a href="<?phpthe_permalink() ?>" rel="bookmark" title="Permanent Link to <?php

the_title_attribute(); ?>"<?phpthe_title(); ?</a</li>

<?php

endwhile;

} //if ($my_query)

wp_reset_query(); // Restore global post data stomped by the_post().

?>

<div class="spacer"</div>

<!-- Extra code to close loop on checking if there is any audio-->

<?php else : ?>

<?phpendif; ?>

<a href=" to all audio</a>

<!-- End pull member's audio posts-->

</div<!-- #member-right -->

</div<!-- #primary -->

<?phpget_footer(); ?>