add smarty plugin
add function upload_absolute_url and upload_url reaname to upload_relative_url
add plugin
optimize