Icon preview pour chaque fonction
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								img/error404.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								img/error404.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 168 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/function-image/calculateAge.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								img/function-image/calculateAge.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 140 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/function-image/convertDistance.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								img/function-image/convertDistance.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 224 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/function-image/convertTemperature.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								img/function-image/convertTemperature.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 62 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/function-image/randomNumber.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								img/function-image/randomNumber.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 76 KiB | 
							
								
								
									
										
											BIN
										
									
								
								img/function-image/weatherRequest.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								img/function-image/weatherRequest.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 232 KiB | 
| @@ -2,7 +2,7 @@ | ||||
| <html lang="fr" prefix="og: http://ogp.me/ns#"> | ||||
|     <head> | ||||
|         <title><?php echo $title?></title> | ||||
|         <link rel="icon" type="image/png" href="/img/FunctionProject_logo.png"/> | ||||
|         <link rel="icon" type="image/png" href="<?php echo $image?>"/> | ||||
|  | ||||
|         <!-- Meta Tag --> | ||||
|         <meta charset="utf-8"> | ||||
| @@ -17,7 +17,7 @@ | ||||
|         <meta property="og:title" content="<?php echo $title?>"> | ||||
|         <meta property="og:type" content="website">  | ||||
|         <meta property="og:url" content="https://function.divlo.fr/">  | ||||
|         <meta property="og:image" content="https://function.divlo.fr/img/FunctionProject.png">  | ||||
|         <meta property="og:image" content="<?php echo $image?>">  | ||||
|         <meta property="og:description" content="<?php echo $description?>">  | ||||
|         <meta property="og:locale" content="fr_FR"> | ||||
|         <meta property="og:site_name" content="Function Project">  | ||||
| @@ -27,7 +27,7 @@ | ||||
|         <meta name="twitter:description" content="<?php echo $description?>"> | ||||
|         <meta name="twitter:title" content="<?php echo $title?>"> | ||||
|         <meta name="twitter:site" content="@Divlo_FR"> | ||||
|         <meta name="twitter:image:src" content="https://function.divlo.fr/img/FunctionProject.png"> | ||||
|         <meta name="twitter:image:src" content="<?php echo $image?>"> | ||||
|         <meta name="twitter:creator" content="@Divlo_FR"> | ||||
|  | ||||
|         <!-- Frameworks and Tools --> | ||||
|   | ||||
| @@ -6,38 +6,42 @@ switch ($currentpage) { | ||||
|     case '/index.php': | ||||
|         $title = 'FunctionProject'; | ||||
|         $description = 'FunctionProject est un projet créé par Divlo qui a pour but de rassembler plein de mini-programme (fonctions JavaScript) permettant de faire plusieurs choses comme savoir la météo, générer un nombre aléatoire, etc.'; | ||||
|         $image = 'https://function.divlo.fr/img/FunctionProject_logo.png'; | ||||
|         break; | ||||
|     case '/views/function-list.php': | ||||
|         $title = 'Liste des fonctions'; | ||||
|         $description = ''; | ||||
|         break; | ||||
|     case '/views/error404.php': | ||||
|         $title = 'Erreur 404'; | ||||
|         $description = ''; | ||||
|         $description = 'La liste des mini-programmes (fonctions JavaScript).'; | ||||
|         $image = 'https://function.divlo.fr/img/FunctionProject_logo.png'; | ||||
|         break; | ||||
|     case '/views/function-views/calculateAge.php': | ||||
|         $title = 'Quelle âge avez-vous ?'; | ||||
|         $description = "Calcule l'âge de quelqu'un selon la date de naissance."; | ||||
|         $image = 'https://function.divlo.fr/img/function-image/calculateAge.png'; | ||||
|         break; | ||||
|     case '/views/function-views/convertDistance.php': | ||||
|         $title = 'Conversion de Distance'; | ||||
|         $description = 'Convertit la longueur (distance) avec les unités allant de picomètre au Téramètre.'; | ||||
|         $image = 'https://function.divlo.fr/img/function-image/convertDistance.png'; | ||||
|         break; | ||||
|     case '/views/function-views/convertTemperature.php': | ||||
|         $title = 'Conversion de Température'; | ||||
|         $description = "Convertit des Degré Celsius en Degré Fahrenheit et l'inverse aussi."; | ||||
|         $image = 'https://function.divlo.fr/img/function-image/convertTemperature.png'; | ||||
|         break; | ||||
|     case '/views/function-views/randomNumber.php': | ||||
|         $title = 'Nombre Aléatoire'; | ||||
|         $description = 'Génère un nombre aléatoire entre un minimum inclus et un maximum inclus.'; | ||||
|         $image = 'https://function.divlo.fr/img/function-image/randomNumber.png'; | ||||
|         break; | ||||
|     case '/views/function-views/weatherRequest.php': | ||||
|         $title = 'Météo'; | ||||
|         $description = "Affiche la météo et l'heure local selon la ville."; | ||||
|         $image = 'https://function.divlo.fr/img/function-image/weatherRequest.png'; | ||||
|         break; | ||||
|     default: | ||||
|         $title = 'Erreur 404'; | ||||
|         $description = "Cette page n'existe pas!"; | ||||
|         $image = 'https://function.divlo.fr/img/error404.png'; | ||||
| } | ||||
|  | ||||
| ?> | ||||
		Reference in New Issue
	
	Block a user