allow extension documentation to contain raw HTML
This commit is contained in:
		
							parent
							
								
									3554d0e323
								
							
						
					
					
						commit
						f0f8242c3c
					
				| @ -16,6 +16,7 @@ use function MicroHTML\DIV; | |||||||
| use function MicroHTML\P; | use function MicroHTML\P; | ||||||
| use function MicroHTML\BR; | use function MicroHTML\BR; | ||||||
| use function MicroHTML\emptyHTML; | use function MicroHTML\emptyHTML; | ||||||
|  | use function MicroHTML\rawHTML; | ||||||
| 
 | 
 | ||||||
| class ExtManagerTheme extends Themelet | class ExtManagerTheme extends Themelet | ||||||
| { | { | ||||||
| @ -92,7 +93,7 @@ class ExtManagerTheme extends Themelet | |||||||
|         $author = emptyHTML(); |         $author = emptyHTML(); | ||||||
|         if (count($info->authors) > 0) { |         if (count($info->authors) > 0) { | ||||||
|             $author->appendChild(BR()); |             $author->appendChild(BR()); | ||||||
|             $author->appendChild(B(count($info->authors) > 1 ? "Authors" : "Author")); |             $author->appendChild(B(count($info->authors) > 1 ? "Authors: " : "Author: ")); | ||||||
|             foreach ($info->authors as $auth=>$email) { |             foreach ($info->authors as $auth=>$email) { | ||||||
|                 if (!empty($email)) { |                 if (!empty($email)) { | ||||||
|                     $author->appendChild(A(["href"=>"mailto:$email"], $auth)); |                     $author->appendChild(A(["href"=>"mailto:$email"], $auth)); | ||||||
| @ -108,7 +109,7 @@ class ExtManagerTheme extends Themelet | |||||||
|             $author, |             $author, | ||||||
|             ($info->version ? emptyHTML(BR(), B("Version"), $info->version) : null), |             ($info->version ? emptyHTML(BR(), B("Version"), $info->version) : null), | ||||||
|             ($info->link ? emptyHTML(BR(), B("Home Page"), A(["href"=>$info->link], "Link")) : null), |             ($info->link ? emptyHTML(BR(), B("Home Page"), A(["href"=>$info->link], "Link")) : null), | ||||||
|             P($info->documentation), |             P(rawHTML($info->documentation)), | ||||||
|             // <hr>,
 |             // <hr>,
 | ||||||
|             P(A(["href"=>make_link("ext_manager")], "Back to the list")) |             P(A(["href"=>make_link("ext_manager")], "Back to the list")) | ||||||
|         ); |         ); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user