All pastes #188597 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-10-02 09:18 UTC
rendered paste body
<?php
/*
Filename: 		sidebar.php
Date: 			06-06-25
Copyright: 		2006, Glued Ideas
Author: 		Christopher Frazier (cfrazier@gluedideas.com)
Description: 	Multi-Author Template for WordPress (Subtle)
Requires:
*/

$aOptions = get_option('gi_subtle_theme');

load_theme_textdomain('gluedideas_subtle');

?>
<h3>Gallery Feature</h3>
<p>Feature coming soon</p>

<h3>Events</h3>

<!-- Content Start -->

			<div id="loop_events">

<?php 
query_posts( 'category_name=Events&showposts=4' );
if (have_posts()) : 

	$iLeadIndex = 0;

	while (have_posts()) : the_post();

		$iLeadIndex++;
		$sPostClass = '';
		$bShowContent = true;

		if ($iLeadIndex <= $aOptions['lead_count']) {
			$sPostClass .= ' lead';
			$bShowContent = true;
		} else {
			$sPostClass .= ' summary';
			$bShowContent = false;
		}

		if ($iLeadIndex == $aOptions['lead_count'] + 1) {
			echo (__('<h2>Previous Announcements</h2>'));
		}

?>
	
				<div id="post_<?php the_ID(); ?>" class="post<?php echo($sPostClass); ?>">
					<ul class="metalinks">
          <li class="icon date"><p class="title"><a href="<?php the_permalink() ?>"><span><?php the_title(); ?></span></a></p></li>
          </ul>
					</div>

<?php 

	endwhile; 

else : 
	
?>

				<h2><?php _e("Oops - There's Nothing Here", 'gluedideas_subtle'); ?></h2>
				<p><?php _e("It appears that there havent been any events posted yet!", 'gluedideas_subtle'); ?></p>

<?php 

endif; 

?>

			</div>
			
<?php if ($aOptions['description'] != '') : ?>
			<div id="information" class="prominent reduced"><div class="inner">
				<?php echo($aOptions['description']); ?>
			</div></div>

<?php endif; ?>


<h3>Recent Topics</h3>
<p>Feature coming soon</p>

<h3>Archives</h3>
<ul class="icon category">
	<?php wp_get_archives('type=monthly'); ?>
</ul>