$recom_image = array(); if($data = $this->post->get_post($this->thispage)){ $single='single'; //画像 if($data['image']){ $image_list = $this->post->image_list($data['post_id'],'jpg','cube'); $first = array_shift($image_list); $first = $this->img->convertImageMode($first,'mid'); // $recom_image = array(); $i=0; foreach($image_list as $k=>$v){ $cap = $this->get_caption($data['post_id'],$k+2); if($cap=='main') continue; if($cap=='staff'){ $staff_image = $this->img->convertImageMode($v,''); continue; } if(substr($cap,0,5)=='recom'){ $recom_image[$cap] = $this->img->convertImageMode($v,''); continue; } if($i>8) continue; $cap = nl2br($cap); $imgs .= '
'.$data['catch'].'
' : '' ; //インフォメーション $information = ''; if($first){ $information .= ''."\n";
if($recom_image['recom'.$i]){
$recom .= '';
}
if($data['recom'.$i]){
$recom .= $data['recom'.$i]."\n";
}
$recom .= '
'.$s.'
'; $staff .= ''.$data['staff'].'
'; if($staff_image) $staff .= '生年月日:'.$data['staff_birth'].'
'; if($data['staff_hobby']) $staff .= '趣味:'.$data['staff_hobby'].'
'; if($data['staff_blog']) $staff .= 'ブログ書いてます'; if($data['staff_fb']) $staff .= 'Facebookやってます'; $staff .= ''.nl2br($data['staff_c']).'
'; $staff .= ''.$data['tel1']; $home .= ' ※お問い合せの際は「キズナッズ」を見たと言うとスムーズです'; $home .= '
'; $home .= '