proper tags, no need for loader hack?
git-svn-id: file:///home/shish/svn/shimmie2/trunk@660 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									b31a0fd1ac
								
							
						
					
					
						commit
						b2ef2502db
					
				| @ -3,10 +3,11 @@ | |||||||
| class SVGFileHandlerTheme extends Themelet { | class SVGFileHandlerTheme extends Themelet { | ||||||
| 	public function display_image($page, $image) { | 	public function display_image($page, $image) { | ||||||
| 		$link = make_link("get_svg/{$image->id}/{$image->id}.svg"); | 		$link = make_link("get_svg/{$image->id}/{$image->id}.svg"); | ||||||
|  | 		$ilink = $image->get_image_link(); | ||||||
| 		// FIXME: object and embed have "height" and "width"
 | 		// FIXME: object and embed have "height" and "width"
 | ||||||
| 		$html = " | 		$html = " | ||||||
| 			<object data='$link' type='image/svg+xml' width='300' height='300' /> | 			<object data='$ilink' type='image/svg+xml' width='300' height='300'> | ||||||
| 			    <embed src='$link' type='image/svg+xml' width='300' height='300' /> | 			    <embed src='$ilink' type='image/svg+xml' width='300' height='300' /> | ||||||
| 			</object> | 			</object> | ||||||
| 		";
 | 		";
 | ||||||
| 		$page->add_block(new Block("Image", $html, "main", 0)); | 		$page->add_block(new Block("Image", $html, "main", 0)); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user