function getMap($src, $dst) { $data = array(); list($gmap, $TOT) = getGoogleMap(); $data["{MAP}"] = $gmap; $data["{YEAR}"] = YEAR_CONTEST; $s = file_get_contents($src); $s = str_replace(array_keys($data), array_values($data), $s); file_put_contents($dst, $s); }
/** * ### Google Map Bilgileri * Bir içerik için kaydedilmiş Google Map * bilgilerini getirir. Facade yerine * getGoogleMap($content) yardımcı * fonksiyonu da aynı işlevi görür. * * @example Content::googleMap($content) * * @param $content : içerik (collection) * * @return mixed */ public function googleMap($content) { return getGoogleMap($content); }