';
include("../incfiles/inc_google_ad_responsive.php");
echo '
';
/****************************************************
ページタイトル
*****************************************************/
echo ''.$spot_name.'|'.$todou_name.'のパワースポット
'; echo '';
//中黒(・)区切りでカテゴリを分割する
$spotcateAlley = explode("・", $spot_cate);
$spotcate1st = $spotcateAlley[0]; //1つめのカテゴリ
$spotcate2nd = $spotcateAlley[1]; //2つめのカテゴリ
$spotcate3rd = $spotcateAlley[2]; //3つめのカテゴリ
if ($spotcate1st) {
$cateWord = getCateword($spotcate1st);
echo '';
}
if ($spotcate2nd) {
$cateWord = getCateword($spotcate2nd);
echo '';
}
if ($spotcate3rd) {
$cateWord = getCateword($spotcate3rd);
echo '';
}
$todou_nameShort = str_replace('県', '', $todou_name);
echo '';
echo '
';
echo ''; echo ''; echo $spot_name; echo ''; echo ''; echo '
'; echo '';
if ($spot_point!='') {
$array = explode("\n", $spot_point); //改行ごとに分割
$array = array_map('trim', $array); //各行にtrim()をかける
$array = array_filter($array, 'strlen'); //文字数が0の行を取り除く
$array = array_values($array); //キーを連番に振り直す
$arrayCnt = count($array); //配列の要素数をカウント
//echo '
'.$arrayCnt.'
'; for ($i = 0; $i <= $arrayCnt; $i++){ if ($i==0) { if ($spot_pic1==1) {echo '
'; $pic1_disp=1;}
if ($array[0]) {echo '
'; $pic2_disp=1;}
if ($array[1]) {echo '
'; $pic3_disp=1;}
if ($array[2]) {echo '
'; $pic4_disp=1;}
if ($array[3]) {echo '
'; $pic5_disp=1;}
if ($array[4]) {echo '
';}
if ($pic2_disp!=1 && $spot_pic2==1) {echo '
';}
if ($pic3_disp!=1 && $spot_pic3==1) {echo '
';}
if ($pic4_disp!=1 && $spot_pic4==1) {echo '
';}
if ($pic5_disp!=1 && $spot_pic5==1) {echo '
';}
echo '
';
echo ''.$arrayCnt.'
'; for ($i = 0; $i <= $arrayCnt; $i++){ if ($i==0) { if ($spot_pic1==1) {echo '

'.$array[0].'
';} } else if ($i==1) { if ($spot_pic2==1) {echo '
'.$array[1].'
';} } else if ($i==2) { if ($spot_pic3==1) {echo '
'.$array[2].'
';} } else if ($i==3) { if ($spot_pic4==1) {echo '
'.$array[3].'
';} } else if ($i==4) { if ($spot_pic5==1) {echo '
'.$array[4].'
';} } else { if ($array[$i]) {echo ''.$array[$i].'
';} } } } if ($pic1_disp!=1 && $spot_pic1==1) {echo '




'; echo '
'.$spot_name.'の住所
'; if ($spot_zip!='') {echo '〒'.$spot_zip.'
';}
echo '';
echo ''.$todou_name.'';
echo $spot_sikugun;
echo $spot_choson;
echo '
';
if ($spot_tatemono!='') {echo ''.$spot_tatemono.'
';}
if ($spot_tel!='') {
echo 'TEL '.$spot_tel;
if ($spot_telname!='') {echo '('.$spot_telname.')';}
echo '
';
}
if ($spot_url1!='') {echo '';}
if ($spot_url2!='') {echo '';}
echo '';
if ($spot_access!='') {
echo ''; echo '
'.$spot_name.'への交通アクセス
'; if ($spot_access!='') {echo ''.hsc_br($spot_access).'
';}
echo '';
}
/******************************************************
一覧ページへのリンク
******************************************************/
echo '';
if ($spotcate1st) {
$cateWord = getCateword($spotcate1st);
echo '';
echo '';
}
if ($spotcate2nd) {
$cateWord = getCateword($spotcate2nd);
echo '';
echo '';
}
echo '';
$affiliatekey = 'パワースポット';
include("../incfiles/paapi5-php-sdk/SearchItems_searchItems.php");
echo '
';
echo '';
include("../incfiles/inc_af_bottom.php");
echo '
';
echo '';
include("../incfiles/inc_google_ad_responsive.php");
echo '
';
echo '';
echo '