| Server IP : 148.113.13.24 / Your IP : 216.73.217.94 Web Server : Apache/2.4.59 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 System : Linux o1.zxs.ovh 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : b051826 ( 1041) PHP Version : 8.2.19 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/b051826/web/zenpathjapan.com/public_html/wp-content/themes/zenpathjapan/ |
Upload File : |
<?php
/**
* index.php — generic blog/listing fallback.
* front-page.php (static page loader) is added in Stage 2.
*/
defined('ABSPATH') || exit;
get_header(); ?>
<div class="zpj-wrap">
<?php zpj_breadcrumbs(); ?>
<header class="zpj-list-head">
<h1 class="zpj-list-title"><?php echo esc_html(is_home() ? '記事一覧' : get_the_archive_title()); ?></h1>
</header>
<?php if (have_posts()) : ?>
<div class="zpj-post-grid">
<?php while (have_posts()) : the_post(); ?>
<article class="zpj-card">
<a class="zpj-card__link" href="<?php the_permalink(); ?>">
<?php if (has_post_thumbnail()) : ?>
<div class="zpj-ci"><?php the_post_thumbnail('zpj-card', ['loading' => 'lazy', 'decoding' => 'async']); ?></div>
<?php endif; ?>
<div class="zpj-cb">
<?php $pc = zpj_primary_cat(); if ($pc) : ?>
<span class="zpj-tag" style="--t:<?php echo esc_attr(zpj_cat_hue($pc)); ?>"><?php echo esc_html($pc->name); ?></span>
<?php endif; ?>
<h2 class="zpj-ct"><?php the_title(); ?></h2>
<p class="zpj-card-excerpt"><?php echo zpj_excerpt(); ?></p>
<span class="zpj-cm"><?php echo zpj_pub_date(); ?> · 約<?php echo (int) zpj_calc_rt(); ?>分</span>
</div>
</a>
</article>
<?php endwhile; ?>
</div>
<div class="zpj-pager"><?php the_posts_pagination(['mid_size' => 1, 'prev_text' => '前へ', 'next_text' => '次へ']); ?></div>
<?php else : ?>
<p class="zpj-empty">記事が見つかりませんでした。</p>
<?php endif; ?>
</div>
<?php get_footer();