public static function replaceCity($ret) { $ceo_word = Meta::getCitys(); if (is_array($ret)) { if (isset($ceo_word) && is_array($ceo_word)) { //$ret[]= 'description'; $ret['meta_title'] = Meta::sprintf2($ret['meta_title'], $ceo_word); $ret['meta_description'] = Meta::sprintf2($ret['meta_description'], $ceo_word); $ret['meta_keywords'] = Meta::sprintf2($ret['meta_keywords'], $ceo_word); $ret['description'] = Meta::sprintf2($ret['description'], $ceo_word); } } else { $ret = Meta::sprintf2($ret, $ceo_word); } return $ret; }
public function replaceCeoWords($page) { $ceo_word = Meta::getCitys(); $host = array('host' => $this->host); $ceo_word = array_merge($ceo_word, $host); return Meta::sprintf2($page, $ceo_word); }