コード例 #1
0
ファイル: post-head.php プロジェクト: hongtien510/gia_su
                $size = 'slider';
            }
            $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 = 'false';
            if (!empty($get_meta["tie_audio_soundcloud_play"][0])) {
                $play = 'true';
            }
            echo tie_soundcloud($get_meta["tie_audio_soundcloud"][0], $play);
            ?>
	<?php 
        }
コード例 #2
0
ファイル: post-head.php プロジェクト: rebeccayshen/kitlist
			<?php tie_video(); ?>
		</div>
	<?php	
	}elseif( !empty( $get_meta['tie_post_head'][0] ) && $get_meta['tie_post_head'][0] == 'audio' ){
		if( !empty( $get_meta["tie_audio_mp3"][0] ) || !empty( $get_meta["tie_audio_m4a"][0] ) || !empty( $get_meta["tie_audio_oga"][0] ) ){
			if( $get_meta["tie_sidebar_pos"][0] == 'full' || !empty( $get_meta["tie_post_head_cover"][0] ) ){
				$size = 'big-slider';
			}else{
				$size = 'slider';
			}
			
			$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{