コード例 #1
0
ファイル: content.php プロジェクト: mynein/myne
    ?>
			<?php 
    $_post_config = get_post_meta($post_id, THEME_SLUG . 'custom_post_config', true);
    $_post_config = unserialize($_post_config);
    $video_url = '';
    if (isset($_post_config['video']) && $_post_config['video'] != '') {
        $video_url = esc_url($_post_config['video']);
    }
    ?>
			<div class="thumbnail-content <?php 
    echo !empty($video_url) ? 'video' : '';
    ?>
">
				<?php 
    if (!empty($video_url)) {
        echo wd_get_embbed_video($video_url, 800, 470);
    } else {
        ?>
							<a class="thumbnail" href="<?php 
        the_permalink();
        ?>
">
							<?php 
        if (has_post_thumbnail()) {
            the_post_thumbnail('blog_shortcode', array('class' => 'thumbnail-blog'));
        } else {
            ?>
									<img alt="<?php 
            the_title();
            ?>
" title="<?php 
コード例 #2
0
ファイル: single-portfolio.php プロジェクト: mynein/myne
        }
        ?>
											
										</div>
										
										<?php 
        if (1 || $data['wd_blog_details_thumbnail'] == 1) {
            ?>
										<div class="thumbnail"><?php 
            //if( $single_post_config['show_thumb_phone'] != 1 ) echo " hidden-phone";
            ?>
											<?php 
            $_post_config = get_post_meta($post->ID, THEME_SLUG . 'custom_post_config', true);
            $_post_config = unserialize($_post_config);
            if (isset($_post_config['video']) && $_post_config['video'] != '') {
                echo wd_get_embbed_video(esc_url($_post_config['video']), 800, 470);
            } else {
                ?>
													<div class="image">
														<!--<a class="thumb-image" href="<?php 
                the_permalink();
                ?>
">-->
														<?php 
                if (has_post_thumbnail()) {
                    the_post_thumbnail('blog_shortcode', array('class' => 'thumbnail-blog'));
                    //the_post_thumbnail('blog_thumb',array('class' => 'thumbnail-effect-2'));
                }
                ?>
	
															<!--<div class="thumbnail-shadow"></div>