<?php $content = get_the_content('','',false); echo substr($content, 0, 300); if (strlen($content) > 300) echo "..."; ?><?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
get_header();
?>
<div class="wrapper">
<div id="photo"><?php echo get_the_post_thumbnail( $post_id); ?></div>
<?php if(is_front_page()) { ?>
<?php include (TEMPLATEPATH . '/music.php'); ?>
<?php } ?>
<?php if(is_page('Home')) { ?>
<div id="latest-news">
<h1>Latest News</h1>
<?php query_posts('showposts=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php $content = get_the_news(); echo substr($content, 0, 600); if (strlen($content) > 600) echo ' <a href="'.get_permalink().'">(more...)</a>'; ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
<div id="upcoming-shows">
<h1>Upcoming Shows</h1>
<?php $options = array('scope' => 'all', 'artist' => 42, 'limit' => 2, 'sort' => 'asc'); echo gigpress_shows($options); ?>
</div>
<?php get_sidebar(); ?>
<br class="clearfloat" />
<?php } ?>
<?php if(is_home()) { ?>
<?php include (TEMPLATEPATH . '/music.php'); ?>
<div id="content">
<h1>News</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<div class="meta">Posted by <?php the_author() ?> on <?php the_time('F j, Y') ?></div>
<?php the_content(__('(more...)')); ?>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('0 Comments'), __('1 Comment'), __('% Comments')); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php if(function_exists('wp_paginate')) {
wp_paginate();
} ?>
</div>
<?php get_sidebar(); ?>
<?php } ?>
<?php if(is_page('Tours')) { ?>
<?php include (TEMPLATEPATH . '/music.php'); ?>
<div id="content">
<h1>Tours</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__('(more...)')); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php } ?>
<?php if(is_page('Media')) { ?>
<?php include (TEMPLATEPATH . '/music.php'); ?>
<div id="content">
<div id="photos">
<h1>Photos</h1>
<?php query_posts('cat=3&showposts=100'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php echo get_the_content(); ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
<div id="videos">
<h1>Videos</h1>
<?php query_posts('cat=4&showposts=2'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<p><?php the_title(); ?></p>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php } ?>
<?php if(is_page('Discography')) { ?>
<?php include (TEMPLATEPATH . '/music.php'); ?>
<div id="content">
<h1>Discography</h1>
<div id="discography">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__('(more...)')); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php } ?>
<?php if(is_page('Biography')) { ?>
<?php include (TEMPLATEPATH . '/music.php'); ?>
<div id="content">
<h1>Biography</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__('(more...)')); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php } ?>
<?php if(is_page('Contact')) { ?>
<?php include (TEMPLATEPATH . '/music.php'); ?>
<div id="content">
<h1>Contact</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__('(more...)')); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php } ?>
</div>
<?php get_footer(); ?>