*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
global $post;
$theme_options = get_theme_options();
$custom_css = get_custom_css();
// カウントダウン有無
$countdown = false;
if( is_page() ) {
if( get_field('countdown_method', $post->ID) === 'access' || get_field('countdown_method', $post->ID) === 'date' ) {
$countdown = true;
}
}
// ページ幅
if( is_home() || is_single() || is_archive() || is_search() || (get_field('entire_enable', $post->ID) === 'on' || $theme_options['all_enable'] === 'on') ) { // 全体設定
if( $theme_options['pwidth'] ) {
$pwidth = $theme_options['pwidth'];
} else {
$pwidth = 900;
}
$sp_enable = $theme_options['sp_enable'];
} else { // 個別設定
if( get_field('pwidth', $post->ID) ) {
$pwidth = get_field('pwidth', $post->ID);
} else {
$pwidth = 900;
}
$sp_enable = get_field('sp_enable', $post->ID);
}
?>
NCS限定動画(質疑応答など) | 最新LP
NCSへの参加はこちら
→https://yokomasa001.com/neocontents/
Copyright (C) 2021 MASAKI All Rights Reserved.
|