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-page.php
<?php
/**
 * @package     Riffles
 * @link        http://www.u-hg.com/
 * @author      RiffleHatch
 * @copyright   Copyright (c)2014 RiffleHatch
 */
?>

<article 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]; ?>">
	        <?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]; ?>">
            <?php endif; ?>
        </div>
    <?php endif; ?>
	<header class="entry-header">
		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
	</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 if( ! is_page(array('usces-cart')) && ! is_page(array('usces-member'))): ?>
    <?php get_template_part('social'); ?>
<?php endif; ?>
    
	<footer class="entry-footer">
		<?php edit_post_link( __( 'Edit', 'riffles' ), '<span class="edit-link">', '</span>' ); ?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## -->