HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: /virtual/nagasaki/public_html/shop/wp-content/themes/riffles_ver1.1/content-single.php
<?php
/**
 * @package     Riffles
 * @link        http://www.u-hg.com/
 * @author      RiffleHatch
 * @copyright   Copyright (c)2014 RiffleHatch
 */
?>

<!-- single-php -->
<article itemscope itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php if( has_post_thumbnail()) : ?>
        <div class="post-thumbnail">
            <?php if (isset($_COOKIE["imgswitch"]) or !is_mymobile() ): ?>
                <?php $image_id = get_post_thumbnail_id();
                    $image_url = wp_get_attachment_image_src($image_id, array(600,300));
                    $alt = get_post(get_post_thumbnail_id())->post_title;
                    ?>
                <img src="<?php echo $image_url[0]; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_url[1]; ?>" height="<?php echo $image_url[2]; ?>" itemprop="image">
	        <?php else: ?>
                <?php $image_id = get_post_thumbnail_id();
                    $image_url = wp_get_attachment_image_src($image_id, array(300,300));
                    $alt = get_post(get_post_thumbnail_id())->post_title;
                    ?>
                <img src="<?php echo $image_url[0]; ?>" alt="<?php echo $alt; ?>" width="<?php echo $image_url[1]; ?>" height="<?php echo $image_url[2]; ?>" itemprop="image">
            <?php endif; ?>
    </div>
    <?php endif; ?>
	<header class="entry-header">
		<?php the_title( '<h1 class="entry-title" itemprop="name headline">', '</h1>' ); ?>

		<div class="entry-meta">
			<?php riffles_posted_on(); ?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<div class="entry-content" itemprop="articleBody">
		<?php the_content(); ?>
		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'riffles' ),
				'after'  => '</div>',
			) );
		?>
	</div><!-- .entry-content -->
    
    <?php get_template_part('social'); ?>

	<footer class="entry-footer">
		<?php riffles_entry_footer(); ?>
	</footer><!-- .entry-footer -->
    
    <?php if ( is_active_sidebar( 'sidebar-8' ) ) : ?>
      <section class="related_blog">
          <?php dynamic_sidebar( 'sidebar-8' ); ?>
        </section>
    <?php endif; ?>
    
   <nav class="navigation post-navigation" role="navigation">
            <?php previous_post_link('<span class="nav-previous">%link</span>', '<i class="fa fa-hand-o-left"></i> 以前の記事へ', TRUE); ?>
            <?php next_post_link('<span class="nav-next">%link</span>', '新しい記事へ <i class="fa fa-hand-o-right"></i>', TRUE); ?>
	</nav><!-- .navigation -->

</article><!-- #post-## -->
<hr>