<?php $postaudio_soundcloud = get_post_meta($post->ID,'lioit_audio_soundcloud', true); global $admin_data; ?>

<?php if($postaudio_soundcloud){ ?>
<div class="postTypeWrapper">
    <div class="audio">
        <iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo esc_html($postaudio_soundcloud); ?>&amp;auto_play=false&amp;show_artwork=true"></iframe>
    </div>
</div>
<?php } else { ?>

	
 
    <div class="postTypeWrapper">
	<?php lioit_audio($post->ID); ?>
    <div id="jquery_jplayer_<?php the_ID(); ?>" style="width: 0px; height: 0px;"><img id="jp_poster_0" style="width: 0px; height: 0px; display: none;"></div>
    <div class="jp-interface">
        <div class="audioDetails">
            <div class="audioThumb">
                <?php the_post_thumbnail('main-block', array('title' => strip_tags(get_the_title()))); ?>
            </div><!--End AuidoThumb-->
            <h2 class="audioTitle"><a href="#"><?php the_title(); ?></a>
            </h2>
            <p><?php echo excerpt(15); ?></p>
        </div><!--End AudioDetails-->
        
        <div class="jp-controls-holder">
            <div id="jp_container_1">
                <a href="javascript:;" class="jp-play" tabindex="1" style="display: block;"><i class="icon-play"></i></a>
                <a href="javascript:;" class="jp-pause" tabindex="1" style="display: none;"><i class="icon-pause"></i></a>
                <div class="jp-progress">
                    <div class="jp-seek-bar" style="width: 80%;">
                        <div class="jp-play-bar" style="width: 1.0022488292675553%;"><span></span></div>
                    </div>
                </div>
            
                <a href="javascript:;" class="jp-mute" tabindex="2" title="mute"><i class="icon-volume-up"></i></a>
                <a href="javascript:;" class="jp-unmute" tabindex="2" title="unmute" style="display: none;"><i class="icon-volume-off"></i></a>
                <!--volume bar-->
                <div class="jp-volume-bar hidden-xs">
                    <div class="jp-volume-bar-value" style="width: 80%;"><span class="handle"></span></div>
                </div>
            </div>                                    
        </div>
    </div>    <!-- JPLAYER END --> 
</div><!--End postMedia-->
<?php } ?>