Base setup for displaying groups and listing members
This commit is contained in:
		
							
								
								
									
										9
									
								
								components/partials/telephon-link.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								components/partials/telephon-link.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
<?php
 | 
			
		||||
 function kompass_print_telephone_link(string $telephonnumber)
 | 
			
		||||
 {
 | 
			
		||||
	 $numberInternational = $telephonnumber;
 | 
			
		||||
	 if (str_starts_with($numberInternational, '0')) {
 | 
			
		||||
		 $numberInternational = '+49' . substr($numberInternational,1);
 | 
			
		||||
	 }
 | 
			
		||||
	 echo '<a href="tel:' . $numberInternational . '">' . $telephonnumber . '</a>';
 | 
			
		||||
 }
 | 
			
		||||
		Reference in New Issue
	
	Block a user