git-svn-id: file:///home/shish/svn/shimmie2/trunk@660 7f39781d-f577-437e-ae19-be835c7a54ca
		
			
				
	
	
		
			17 lines
		
	
	
		
			498 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			498 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| class SVGFileHandlerTheme extends Themelet {
 | |
| 	public function display_image($page, $image) {
 | |
| 		$link = make_link("get_svg/{$image->id}/{$image->id}.svg");
 | |
| 		$ilink = $image->get_image_link();
 | |
| 		// FIXME: object and embed have "height" and "width"
 | |
| 		$html = "
 | |
| 			<object data='$ilink' type='image/svg+xml' width='300' height='300'>
 | |
| 			    <embed src='$ilink' type='image/svg+xml' width='300' height='300' />
 | |
| 			</object>
 | |
| 		";
 | |
| 		$page->add_block(new Block("Image", $html, "main", 0));
 | |
| 	}
 | |
| }
 | |
| ?>
 |