{embed="embeds/html_header" 

     
    
my_title="Audio Messages 

     
    {exp:weblog:category_heading weblog="
audio-messages"}
         | {category_name}
    {/exp:weblog:category_heading} 

     
    {if segment_2 !="
category" AND segment_3!=""}
        {exp:weblog:entries weblog="
audio-messages" limit="1" disable="custom_fields|trackbacks|member_data|pagination|categories"}
            {date_heading display="
monthly"}
                 | Posts from {entry_date format="
%%Y"}
            {/date_heading}
        {/exp:weblog:entries}
    {/if}
"
}

<body id="audio">
    <
div id="wrapper">
        
{embed="embeds/page_header"}
        {embed
="embeds/main_nav" my_location=""}
    
        
<div class="clear"></div>
   
        <!--
BEGIN CONTENT SECTION-->
        <
div class="interiorBox">
            <
h2>Audio Messages</h2>

            <
div class="content_page_right">
                
                 
                
{exp:weblog:category_heading weblog="audio-messages"}
                    
<div id="category_header">
                        <
h5>{category_name}</h5>
                        
{if category_description}
                            
<p>{category_description}</p>
                        
{/if}
                    
</div>
                
{/exp:weblog:category_heading}

                
                 
                {exp
:weblog:entries weblog="audio-messages" disable="trackbacks" paginate="bottom" limit="10"}

                     
                    {if segment_2 
!="category" AND segment_3!=""}
                        {date_heading display
="monthly"}
                            
<div id="category_header">
                                <
h2>Posts from {entry_date format="%F %Y"}</h2>
                            </
div>
                        
{/date_heading}
                    {
/if}

                    
<div class="post">
                        <
h3>{entry_date format='%F %d, %Y'}</h3>
                        <
em>{message_summary}</em>

                        <
div class="wimpy_player_right redBorder">
                            <
h5>Play this Message</h5>
                            
{embed="embeds/wimpy-button" the-audio-file="{audio_file}" the-entry-id="{entry_id}"}
                        
</div>

                        <
div class="sermon_details_left">
                            <
p>Title: <strong>{title}</strong></p>
                            <
p>Series: <strong>{categories}{category_name}{/categories}</strong></p>

                            
{if worship_service !="0"}
                                
<p>Service:&nbsp;<strong>{related_entries id="worship_service"}{title}{/related_entries}</strong></p>
                            
{/if}

                            {if number_in_series}
                                
<p># in Series:&nbsp;<strong>{number_in_series}</strong></p>
                            
{/if}

                            {if scripture_verses}
                                
<p>Verses:&nbsp;<strong>{scripture_verses}</strong></p>
                            
{/if}
                    
                            {if message_length}
                                
<p>Length:&nbsp;<strong>{message_length} minutes</strong></p>
                            
{/if}

                            
<p>Download Audio: <strong><a href="{site_url}audio_files/{audio_file}">{audio_file}</a></strong></p>
                        </
div>
                        
                        <
div style="clear: both;"></div>                
                    
                        <
div class="post_meta">
                            <
p>By {url_or_email_as_author}&nbsp;&nbsp;
                            
{if allow_comments}({comment_total}) <a href="{url_title_path=audio-messages/comments}#comments">Comments</a>{/if}</p>
                        </
div>
                    </
div>

                    
{paginate}
                        
<p>Page {current_page} of {total_pages} pages {pagination_links} </p>
                    
{/paginate} 

                {
/exp:weblog:entries}
            
</div>

            <
div class="content_page_left">
                
{embed="embeds/sidebar_category_nav" my-section="audio-messages"}
                {embed
="embeds/sidebar_archive_nav" my-section="audio-messages"}
                {embed
="embeds/sidebar_podcast_link"}
            
</div>
    
            <
div class="spacer"></div>
          
        </
div><!--END CONTENT SECTION-->

        <
div class="clear"></div>
    
        
{embed="embeds/footer"}    

    
</div><!--END BODY WRAPPER-->

</
body>
</
html