public function &Index_getTopMessageMedia() { $list = TemplateInfo::getTemplateList(); $data = $list['22']; $text = ""; $file = $data['file']; $path = TemplateInfo::getTplDirectory() . $file; if (is_file($path) == true) { $text = file_get_contents($path); } $core =& $this->_core; $pairs = TemplateInfo::getIndexReplacePairs($core); $text = strtr($text, $pairs); return $text; }