itemscope itemtype="https://schema.org/WebPage">
ID, 'addhead', true ); if( !empty( $addhead ) ) { if( stripos( $addhead, '<' . 'title>' ) !== false && stripos( $addhead, '' ) !== false ) { $title = esc_html( preg_replace( '/.*?<' . 'title>(.*?)<\/title' . '>.*/ism', '$1', $addhead ) ); } } } if( empty( $title ) ) $title = wp_get_document_title(); echo '<', 'title>', $title, '', 'title>', "\n"; } $noindex = ''; // インデクスさせるかどうか $next_index = false; // で分割してる場合の判別 $cpage = (int)get_query_var('cpage'); // コメントをページ分割してる場合の判別 // カスタマイズ画面で設定されている の2ページ目以降のインデクス有無によって分岐 if( $_is['singular'] === true ) { // で分割してる場合の判別 if( isset( $luxe['nextpage_index'] ) ) { if( stripos( $post->post_content, '' ) !== 0 ) { $paged = get_query_var('page'); if( empty( $paged ) ) $paged = 1; if( $paged > 1 ) $next_index = true; } } $robots = get_post_meta( $post->ID, 'thk_robots', true ); if( !empty( $robots ) || $next_index === true ) { $robots = explode( ',', $robots ); if( $next_index === true ) { $noindex .= 'noindex,'; } else { $noindex .= isset( $robots[0] ) && $robots[0] == 1 ? 'noindex,' : 'index,'; } $noindex .= isset( $robots[1] ) && $robots[1] == 1 ? 'nofollow,' : 'follow,'; if( $noindex === 'index,follow,' ) $noindex = ''; $noindex .= isset( $robots[2] ) && $robots[2] == 1 ? 'noarchive,' : ''; $noindex .= isset( $robots[3] ) && $robots[3] == 1 ? 'noimageindex,' : ''; $noindex = rtrim( $noindex, ',' ); } } // カテゴリとタグのインデクス状態 if( isset( $luxe['category_or_tag_index'] ) ) { if( $_is['tag'] === true && $luxe['category_or_tag_index'] !== 'tag' || $_is['category'] === true && $luxe['category_or_tag_index'] !== 'category' ) { $noindex = 'noindex,follow'; } } if( ( $_is['archive'] === true && $_is['category'] === false && $_is['tag'] === false ) || $_is['search'] === true || is_paged() === true || $_is['404'] === true || $cpage > 0 || is_page_template( 'pages/sitemap.php' ) === true ) { $noindex = 'noindex,follow'; } if( !empty( $noindex ) ) { ?> ID, 'addhead', true ); if( stripos( $addhead, '<' . 'title>' ) !== false && stripos( $addhead, '' ) !== false ) { $addhead = trim( preg_replace( '/(.*?)<' . 'title>.*?<\/title' . '>(.*)/im', '$1$2', $addhead ) ); $addhead = str_replace( array( "\n\n", "\r\n\r\n" ), "\n", $addhead ); } if( stripos( $addhead, '#', $addhead, $matches ); if( isset( $matches[1] ) ) { foreach( (array)$matches[1] as $key => $val ) { if( isset( $matches[1][$key] ) ) { $addhead = str_replace( $matches[1][$key], thk_simple_css_minify( $val ), $addhead ); } } } } if( !empty( $addhead ) ) echo $addhead, "\n"; } } if( isset( $luxe['buffering_enable'] ) ) thk_flash(); ?> > analytics( 'add-analytics-head.php' ); // AMP HTML ( body ) if( isset( $luxe['amp_body_position'] ) && $luxe['amp_body_position'] === 'top' ) { get_template_part( 'add-amp-body' ); } } // アクセス解析追加用( Bodyタグ最上部に設定されてる場合 ) if( isset( $luxe['analytics_position'] ) && $luxe['analytics_position'] === 'top' ) { echo $analytics->analytics( 'add-analytics.php' ); } // bootstrap container Inner if( isset($luxe['bootstrap_header']) && $luxe['bootstrap_header'] !== 'out' ) { ?>