| 
					
				 | 
			
			
				@@ -13,7 +13,19 @@ use Drupal\Core\Url; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function popsu_preprocess_html(&$variables) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $node = \Drupal::routeMatch()->getParameter('node'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // $type = $node->getType(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  // 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  $frontpage = \Drupal::service('path.matcher')->isFrontPage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  $variables['head_title']['slogan'] = \Drupal::config('system.site')->get('slogan'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  //var_dump($variables['head_title']); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if( $frontpage == true){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   $variables['head_title'] = $variables['head_title']["name"]." | ".$variables['head_title']['slogan']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $variables['head_title'] = $variables['head_title']["name"]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if ($node){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if($node->hasField('field_programme') && $node->get('field_programme')->getString() != ""){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       $variables['attributes']['class'][] = 'programme-' . $node->get('field_programme')->getString(); 
			 |