|  | @@ -199,6 +199,24 @@ function dashboard_application_bottom(){
 | 
	
		
			
				|  |  |     <?php
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +Plugin::addHook('widget',function(&$models){
 | 
	
		
			
				|  |  | +		$clock = new DashboardWidget();
 | 
	
		
			
				|  |  | +		$clock->icon = 'far fa-user';
 | 
	
		
			
				|  |  | +		$clock->headerBackground = 'rgb(0, 123, 255)';
 | 
	
		
			
				|  |  | +		$clock->description = 'Une Horloge toute couillone';
 | 
	
		
			
				|  |  | +		$clock->label = 'Horloge';
 | 
	
		
			
				|  |  | +		$clock->content = '<div class="text-center m-auto">13:37</div>';
 | 
	
		
			
				|  |  | +		$clock->width = 3;
 | 
	
		
			
				|  |  | +		$clock->height = 3;
 | 
	
		
			
				|  |  | +		$clock->model = 'clock';
 | 
	
		
			
				|  |  | +		$clock->refresh = function($widget){
 | 
	
		
			
				|  |  | +			$widget->content = '<div class="text-center m-auto">13:38</div>';
 | 
	
		
			
				|  |  | +		};
 | 
	
		
			
				|  |  | +		$models['clock'] = $clock;
 | 
	
		
			
				|  |  | +});
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  //Déclation des assets
 | 
	
		
			
				|  |  |  Plugin::addCss("/css/main.css");
 | 
	
		
			
				|  |  |  Plugin::addCss("/css/component.css?v=2");
 |