slug = $_brandSlug; $this->page = $current; $s = $_SERVER["HTTP_HOST"]; // テスト環境 if($s == 'newdev.celebrities-jewelry.com'){ $this->serverPath = '/home/kir820556/public_html/dev'; // 本番環境 } else { $this->serverPath = '/home/kir820556/public_html/www'; } $this->baseUrl = '/brand/'.$this->slug; $this->topUrl = ''; //ブランドページがあるかどうか $this->hasPage = false; //公開しているかどうか $this->public = false; //各ページ名 $this->pageTitle = array( 'wedding' => 'ウエディング', 'history' => 'ブランドの歴史', 'topics' => 'トピックス' ); if(file_exists($this->serverPath.'/data/'.$_brandSlug.'/inc/config.inc')){ include($this->serverPath.'/data/'.$_brandSlug.'/inc/config.inc'); $this->hasPage = true; $this->config = $caj_brand_config[$_brandSlug]; //全て公開 $this->public = true; if($this->config['public']){ $this->public = true; } } } /* * ブランドヘッダー * -------------------------------- */ public function buildHeader(){ $html = ''; $html = <<< EOD
{$this->config['dec']}
'.$r['priceText'].'
'; } $now_url = $_SERVER['REQUEST_URI']; $ringCategory = ''; if(strstr($now_url,"/engagement")){ $ringCategory = 'Engagement Ringsエンゲージリング
'; }else if(strstr($now_url,"/marriage")){ $ringCategory = 'Wedding Ringsマリッジリング
'; } $html = <<< EOD'.$v['priceText'].'
'; } $j .= <<< EOD EOD; } //アクセシブル・ジュエリー $html .= <<< EOD'.nl2br($_data['body']).'
'."\n"; //画像 $img = ''; foreach($_data['img'] as $k => $v){ if(file_exists($serverImgBaseUrl.$v.'.jpg')){ $c = 'img-'.$k; $c .= $_data['textLeft'] ? ' r' : ' l'; if(!empty($_data['caption'][$k]) && is_array($_data['caption'][$k])){ $caption = ''.$_data['caption'][$k]['title'].'
' : ''; $caption .= !empty($_data['caption'][$k]['body']) ? ''.$_data['caption'][$k]['body'].'
' : ''; $caption .= ''.nl2br($_data['body']).'
'."\n"; //サブ画像 $subImg = ''; if(file_exists($this->serverPath.'/data/'.$this->slug.'/img/'.$_page.'/'.$_data['img']['sub1'].'.jpg')){ $class = ($_data['lastFlag']) ? 'l spR' : 'l spL'; $subImg = '