webmcp
diff framework/env/ui_deprecated/image.lua @ 0:9fdfb27f8e67
Version 1.0.0
author | jbe/bsw |
---|---|
date | Sun Oct 25 12:00:00 2009 +0100 (2009-10-25) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/framework/env/ui_deprecated/image.lua Sun Oct 25 12:00:00 2009 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +-- 1.5 +-- Creates an image 1.6 +-- 1.7 +-- image (string) 1.8 +-- 1.9 +-- Example: 1.10 +-- 1.11 +-- ui_deprecated.image({ 1.12 +-- image = 'test.png', 1.13 +-- }) 1.14 +-- 1.15 + 1.16 +function ui_deprecated.image(args) 1.17 + assert(args.image, "No image argument given.") 1.18 + slot.put( 1.19 + '<img src="', 1.20 + request.get_relative_baseurl(), 1.21 + 'static/', 1.22 + args.image, 1.23 + '" />' 1.24 + ) 1.25 +end