where("item_id", "=", $item->id) ->find(); if ($items_video->loaded() && file_exists($item->resize_path() . ".flv")) { print html::anchor(str_replace("?m=", ".flv?m=", $item->resize_url(true)), "", $attrs); } else { print html::anchor($item->file_url(true), "", $attrs); } ?>