1. <?php $content = get_the_content('','',false); echo substr($content, 0, 300); if (strlen($content) > 300) echo "..."; ?><?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Classic_Theme
  5.  */
  6. get_header();
  7. ?>
  8.  
  9. <div class="wrapper">
  10.    
  11.     <div id="photo"><?php echo get_the_post_thumbnail( $post_id); ?></div>
  12.    
  13.     <?php if(is_front_page()) { ?>
  14.         <?php include (TEMPLATEPATH . '/music.php'); ?>
  15.     <?php } ?>
  16.    
  17.     <?php if(is_page('Home')) { ?>
  18.    
  19.         <div id="latest-news">
  20.             <h1>Latest News</h1>
  21.             <?php query_posts('showposts=1'); ?>
  22.             <?php while (have_posts()) : the_post(); ?>
  23.                 <?php $content = get_the_news(); echo substr($content, 0, 600); if (strlen($content) > 600) echo '&nbsp;<a href="'.get_permalink().'">(more...)</a>'; ?>
  24.             <?php endwhile; ?>
  25.             <?php wp_reset_query(); ?>
  26.         </div>
  27.         <div id="upcoming-shows">
  28.             <h1>Upcoming Shows</h1>
  29.             <?php $options = array('scope' => 'all', 'artist' => 42, 'limit' => 2, 'sort' => 'asc'); echo gigpress_shows($options); ?>
  30.         </div>
  31.         <?php get_sidebar(); ?>
  32.         <br class="clearfloat" />
  33.     <?php } ?>
  34.    
  35.    
  36.    
  37.     <?php if(is_home()) { ?>
  38.    
  39.         <?php include (TEMPLATEPATH . '/music.php'); ?>
  40.    
  41.         <div id="content">
  42.             <h1>News</h1>
  43.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  44.            
  45.                 <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
  46.                
  47.                 <div class="meta">Posted by <?php the_author() ?> on <?php the_time('F j, Y') ?></div>
  48.            
  49.                 <?php the_content(__('(more...)')); ?>
  50.            
  51.                 <div class="feedback">
  52.                     <?php wp_link_pages(); ?>
  53.                     <?php comments_popup_link(__('0 Comments'), __('1 Comment'), __('% Comments')); ?>
  54.                 </div>
  55.            
  56.             <?php comments_template(); ?>
  57.            
  58.             <?php endwhile; else: ?>
  59.             <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  60.             <?php endif; ?>
  61.            
  62.             <?php if(function_exists('wp_paginate')) {
  63.                 wp_paginate();
  64.             } ?>
  65.         </div>
  66.         <?php get_sidebar(); ?>
  67.        
  68.     <?php } ?>
  69.    
  70.    
  71.     <?php if(is_page('Tours')) { ?>
  72.        
  73.         <?php include (TEMPLATEPATH . '/music.php'); ?>
  74.    
  75.         <div id="content">
  76.             <h1>Tours</h1>
  77.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  78.                 <?php the_content(__('(more...)')); ?>
  79.             <?php endwhile; else: ?>
  80.             <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  81.             <?php endif; ?>
  82.         </div>
  83.         <?php get_sidebar(); ?>
  84.    
  85.     <?php } ?>
  86.    
  87.    
  88.     <?php if(is_page('Media')) { ?>
  89.    
  90.         <?php include (TEMPLATEPATH . '/music.php'); ?>
  91.    
  92.         <div id="content">
  93.             <div id="photos">
  94.                 <h1>Photos</h1>
  95.                 <?php query_posts('cat=3&showposts=100'); ?>
  96.                 <?php while (have_posts()) : the_post(); ?>
  97.                     <?php echo get_the_content(); ?>
  98.                 <?php endwhile; ?>
  99.                 <?php wp_reset_query(); ?>
  100.             </div>
  101.             <div id="videos">
  102.             <h1>Videos</h1>
  103.                 <?php query_posts('cat=4&showposts=2'); ?>
  104.                 <?php while (have_posts()) : the_post(); ?>
  105.                     <?php the_content(); ?>
  106.                     <p><?php the_title(); ?></p>
  107.                 <?php endwhile; ?>
  108.                 <?php wp_reset_query(); ?>
  109.             </div>
  110.         </div>
  111.         <?php get_sidebar(); ?>
  112.    
  113.     <?php } ?>
  114.    
  115.     <?php if(is_page('Discography')) { ?>
  116.    
  117.         <?php include (TEMPLATEPATH . '/music.php'); ?>
  118.    
  119.         <div id="content">
  120.             <h1>Discography</h1>
  121.             <div id="discography">
  122.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  123.                     <?php the_content(__('(more...)')); ?>
  124.                 <?php endwhile; else: ?>
  125.                 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  126.                 <?php endif; ?>
  127.             </div>
  128.         </div>
  129.         <?php get_sidebar(); ?>
  130.    
  131.     <?php } ?>
  132.    
  133.    
  134.     <?php if(is_page('Biography')) { ?>
  135.    
  136.         <?php include (TEMPLATEPATH . '/music.php'); ?>
  137.    
  138.         <div id="content">
  139.             <h1>Biography</h1>
  140.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  141.                 <?php the_content(__('(more...)')); ?>
  142.             <?php endwhile; else: ?>
  143.             <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  144.             <?php endif; ?>
  145.         </div>
  146.         <?php get_sidebar(); ?>
  147.    
  148.     <?php } ?>
  149.    
  150.    
  151.     <?php if(is_page('Contact')) { ?>
  152.    
  153.         <?php include (TEMPLATEPATH . '/music.php'); ?>
  154.    
  155.         <div id="content">
  156.             <h1>Contact</h1>
  157.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  158.                 <?php the_content(__('(more...)')); ?>
  159.             <?php endwhile; else: ?>
  160.             <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  161.             <?php endif; ?>
  162.         </div>
  163.         <?php get_sidebar(); ?>
  164.    
  165.     <?php } ?>
  166.    
  167.    
  168.    
  169.  
  170. </div>
  171.  
  172. <?php get_footer(); ?>