You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					28 lines
				
				539 B
			
		
		
			
		
	
	
					28 lines
				
				539 B
			| 
								 
											7 years ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								/* For license terms, see /license.txt */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								$plugin = KeycloakPlugin::create();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								$content = $plugin->get_content();
							 | 
						||
| 
								 | 
							
								$title = $plugin->get_block_title();
							 | 
						||
| 
								 | 
							
								$title = $title ? "<h4>$title</h4>" : '';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								$css = $plugin->get_css();
							 | 
						||
| 
								 | 
							
								$css = $css ? "<style type=\"text/css\" scoped=\"scoped\">$css</style>" : '';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if (empty($content)) {
							 | 
						||
| 
								 | 
							
								    echo '';
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo <<<EOT
							 | 
						||
| 
								 | 
							
								<div class="well sidebar-nav static">
							 | 
						||
| 
								 | 
							
								    $css
							 | 
						||
| 
								 | 
							
								    <div class="menusection">
							 | 
						||
| 
								 | 
							
								        $title
							 | 
						||
| 
								 | 
							
								        <div class="content">
							 | 
						||
| 
								 | 
							
								            $content
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								</div>
							 | 
						||
| 
								 | 
							
								EOT;
							 |