public static function parse_firstimg($str)
{
preg_match('/\[attach\]([0-9]+)\[\/attach]/', $str, $matches);
if ($attach = AWS_APP::model('publish')->get_attach_by_id($matches[1]))
{
TPL::assign('attach', $attach);
return TPL::output('question/ajax/load_attach', false);
}
}
阅读全文
收起全文