Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
 }