function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $url = $instance['url']; $autoplay = $instance['autoplay']; $play = 'false'; if (!empty($autoplay)) { $play = 'true'; } echo $before_widget; echo $before_title; echo $title; echo $after_title; echo tie_soundcloud($url, $play); echo $after_widget; }
echo $style; ?> ><?php tie_audio(); ?> </div> </div> <?php } } elseif (!empty($get_meta['tie_post_head'][0]) && $get_meta['tie_post_head'][0] == 'soundcloud') { if (!empty($get_meta["tie_audio_soundcloud"][0])) { $play = 'false'; if (!empty($get_meta["tie_audio_soundcloud_play"][0])) { $play = 'true'; } echo tie_soundcloud($get_meta["tie_audio_soundcloud"][0], $play); ?> <?php } } elseif (!empty($get_meta['tie_post_head'][0]) && $get_meta['tie_post_head'][0] == 'thumb' || empty($get_meta['tie_post_head'][0]) && tie_get_option('post_featured')) { if (!empty($get_meta['tie_sidebar_pos'][0]) && $get_meta["tie_sidebar_pos"][0] == 'full' || !empty($get_meta["tie_post_head_cover"][0])) { $size = 'big-slider'; } else { $size = 'slider'; } ?> <?php if (!empty($get_meta["tie_post_head_cover"][0])) { ?>
} $style = ''; if ( !has_post_thumbnail($post->ID) ) $style =' style="bottom:0;"'; ?> <div class="single-post-audio single-post-thumb"> <?php the_post_thumbnail( $size ); ?> <div class="single-audio"<?php echo $style ?>><?php tie_audio(); ?></div> </div> <?php } }elseif( !empty( $get_meta['tie_post_head'][0] ) && $get_meta['tie_post_head'][0] == 'soundcloud' ){ if( !empty( $get_meta["tie_audio_soundcloud"][0] ) ){ $play = $visual = 'false'; if( !empty( $get_meta["tie_audio_soundcloud_play"][0] )) $play = 'true'; if( !empty( $get_meta["tie_audio_soundcloud_visual"][0] )) $visual = 'true'; echo tie_soundcloud($get_meta["tie_audio_soundcloud"][0] , $play, $visual );?> <?php } }elseif( ( !empty( $get_meta['tie_post_head'][0] ) && $get_meta['tie_post_head'][0] == 'thumb' ) || ( empty( $get_meta['tie_post_head'][0] ) && tie_get_option( 'post_featured' ) ) ){ if( ( !empty( $get_meta['tie_sidebar_pos'][0] ) && $get_meta["tie_sidebar_pos"][0] == 'full' ) || !empty( $get_meta["tie_post_head_cover"][0] ) ){ $size = 'big-slider'; }else{ $size = 'slider'; } ?> <?php if( !empty( $get_meta["tie_post_head_cover"][0] ) ) : ?> <div class="single-post-thumb<?php if( has_post_thumbnail() ){ ?> single-has-thumb<?php } ?>"<?php if( has_post_thumbnail() ){ ?> style="background-image:url( <?php echo tie_thumb_src( 'full' ); ?>);"<?php } ?>> <div class="post-cover-title"> <?php tie_breadcrumbs() ?> <h1 class="name post-title entry-title" itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing"><span itemprop="name"><?php the_title(); ?></span></h1>