$site_seo = get_site_options(); if(empty($SEO)){ $SEO = array(); $SEO['title'] = $site_seo['site_seo_title']; $SEO['keyword'] = $site_seo['site_seo_keywords']; $SEO['description'] = $site_seo['site_seo_description']; } $siteOption = sp_get_site_options(); $logo = json_decode($siteOption['smeta_logo'] ,true); {$SEO['title']} {$siteOption[site_copyright]} $ban = M('ads')->where("position_id = 1")->find(); $banfen = M('ads')->where("position_id = 3")->find();