<?php/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<?php if ((in_category('news')) && (!in_category('*************'))) { // Post format for News items that are NOT Press Releases ?>
<?php } else if (in_category('*************')) { // Post format for Press Releases ?>
<style>a#news {color:#000 !important; font-weight:bold}</style>
<div id="headline">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/pr-headline.png" style="margin:40px 0 0 44px" border="0" />
<div class="lime sub-head12" style="width:410px; margin:30px 0 30px 292px; font-weight:bold">
<?php $source = get_post_meta($post->ID, 'source', $single = true); echo $source; // Pulls source from Page custom fields ?>
</div>
</div>
<div id="content" style="padding-top:38px;">
<div id="sub-head">
<a href="<?php echo home_url( '/' ); ?>news/" id="title-news"></a>
</div>
<div id="sub-nav">
<a href="http://visitor.r20.constantcontact.com/d.jsp?llr=5uu8rpdab&p=oi&m=1103254901406" target="_blank" style="color:#75abd5;">Sign up for updates »</a>
<a href="http://www.addthis.com/bookmark.php" addthis:url="<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?> " addthis:title="<?php echo get_the_title(ID) ?>" addthis:description="Regenerative Network" target="_blank" style="color:#75abd5;">Share »</a>
<a href="<?php echo home_url( '/' ); ?>news/" style="color:#75abd5;">More news »</a>
</div>
<div id="loaded-content" style="margin:0 0 0 390px; width:471px" class="dk-gray main-content2">
<h4 style="color:#3a4d81; margin:0px 0 20px 0"><?php the_title() ?></h4>
<div style="float:left;"><?php the_time('n/j/y') ?> – </div> <?php the_content() ?>
<?php $isdownload = get_post_meta($post->ID, download, true); if($isdownload){ ?>
<a href="<?php echo get_post_meta($post->ID, download, true); ?>" style="color:#75abd5;">Download »</a>
<?php } else { ?><?php } ?>
<?php // comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div>
<div style="clear:both"></div>
</div><!--content -->
<?php } else if (in_category('private-events')) { // Post format for Private Events ?>
<?php if ( is_user_logged_in() ) { ?>
<style>a#about, a#private-events {color:#000 !important; font-weight:bold} #post-meta a {text-decoration:none; color:#75abd5;} </style>
<div id="headline">
<div class="millerheadlinelight" style="line-height:58px; font-size:54px; margin-left:43px"><?php the_title(); ?></div>
<div class="lt-gray sub-head11" style="width:410px; margin:20px 0 40px 420px;">
</div>
</div>
<div id="content" style="padding-top:38px">
<div class="news-column sub-head11" style="color:#a2a2a2">
<?php include (TEMPLATEPATH . '/sidebar-members.php'); ?>
</div>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div class="news-column sub-head11">
<?php include (TEMPLATEPATH . '/nav-members.php'); ?>
<?php $isdownload = get_post_meta($post->ID, download, true); if($isdownload){ ?>
<div style="margin:20px 0 0 0" class="dk-gray">Event agenda</div>
<a href="<?php echo get_post_meta($post->ID, download, true); ?>" style="color:#75abd5;">Download PDF »</a>
<?php } else { ?><?php } ?>
</div>
<div class="dk-gray main-content2 events" style="width:338px; padding:0 17px 0 17px; float:left">
<?php the_content() ?>
<?php endwhile; // end of the loop. ?>
</div>
<div class="news-column sub-head11" style="width:180px">
<h1 style="margin:0 0 16px 0">Previous Events</h1>
Members have exclusive access to<br />
the high-level, proprietary content from the RegenForums™. <br /><br />
<?php query_posts('cat=30&showposts=10'); while (have_posts()) : the_post(); ?>
<?php the_time('F Y') ?> <a href="<?php the_permalink(); ?>" style="color:#75abd5; text-decoration:none; font-size:11px"><em><?php echo get_post_meta($post->ID, short_title, true); ?></em></a><br />
<?php endwhile; ?>
</div>
<div style="clear:both; height:40px"></div>
</div><!--content -->
<?php } else { ?><div class="lt-gray" style="width:410px; margin:20px 0 40px 420px;">This content is restricted to members only.</div><?php } ?>
<?php } else { // Post format for public and private blog posts ?>
<?php if (in_category('idea-exchange')) { ?>
<style>a#idea-exchange {color:#000 !important; font-weight:bold}</style>
<?php } else if (in_category('public-blog')) { ?>
<style>a#blog {color:#000 !important; font-weight:bold}</style>
<?php } else { ?>
<?php } ?>
<div id="headline">
<?php if ((is_user_logged_in()) && (in_category('network-announcements'))) { ?>
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/members-private-headline.png" style="margin-left:-10px" border="0" />
<div class="lt-gray sub-head11" style="width:410px; margin:20px 0 40px 420px;">
</div>
<?php } else if ((is_user_logged_in()) && (in_category('idea-exchange'))) { ?>
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/idea-exchange-headline.png" style="margin-left:-10px" border="0" />
<div class="lime sub-head12" style="font-weight:bold; width:310px; margin:20px 0 30px 293px;">
Regenerative Network Idea Exchange
</div>
<?php } else { ?>
<img src="<?php bloginfo( 'stylesheet_directory' ); ?>/images/blog-headline.png" border="0" />
<div class="lime sub-head12" style="font-weight:bold; width:310px; margin:20px 0 30px 420px;">
This is where great ideas meet great minds.
</div>
<?php } ?>
</div>