| 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
/**
* front-page.php — render the static home page content (built in Stage 4).
* NEVER use the have_posts() loop here (it would print blog posts).
*/
defined('ABSPATH') || exit;
get_header();
$front_page_id = get_option('page_on_front');
if ($front_page_id) {
$front_page = get_post($front_page_id);
echo do_shortcode($front_page->post_content); // home is hand-built HTML; skip wpautop
} else {
$home_page = get_page_by_path('home');
if ($home_page) {
echo do_shortcode($home_page->post_content);
} else {
// pre-import fallback so the theme never renders blank
echo '<div class="zpj-wrap"><p class="zpj-empty">ホームページは未設定です。コンテンツをインポートしてください。</p></div>';
}
}
get_footer();