'
',
'after' => '
',
] );
endif;
// 「投稿ページ」の時、タイトルとコンテンツ出力
if ( ! is_front_page() && $the_id ) :
$queried_object = get_queried_object();
$the_content = $queried_object->post_content ?? '';
SWELL_Theme::get_parts( 'parts/page_head' );
if ( ! empty( $the_content ) ) :
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo '
' . apply_filters( 'the_content', $the_content ) . '
';
endif;
endif;
// 投稿リスト
$cache_key = '';
$the_paged = (int) get_query_var( 'paged' );
if ( 0 === $the_paged && SWELL_Theme::get_setting( 'cache_top' ) ) :
$cache_key = ( IS_MOBILE ) ? 'home_posts_sp' : 'home_posts';
endif;
echo '
';
SWELL_Theme::get_parts( 'parts/home_content', '', $cache_key, 24 * HOUR_IN_SECONDS );
echo '
';
if ( is_front_page() ) :
\SWELL_Theme::outuput_widgets( 'front_bottom', [
'before' => '
',
'after' => '
',
] );
else :
// ウィジェット(「投稿ページ」の時)
SWELL_Theme::outuput_content_widget( 'page', 'bottom' );
endif;
?>