-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpertise.php
71 lines (66 loc) · 2.39 KB
/
expertise.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
include_once 'scripts/lang.php';
$language = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$deviceLang = substr($language, 0, 2);
session_start();
$lang = isset($_SESSION['lang']) ? $_SESSION['lang'] : $deviceLang;
?>
<!DOCTYPE html>
<html lang="<?php echo $lang; ?>">
<head>
<title><?php getValueFromJson('title'); ?></title>
<?php include 'components/head.php'; ?>
<link rel="stylesheet" href="css/expertise.css">
<link rel="stylesheet" href="css/responsive/expertise.css">
<link rel="stylesheet" href="css/components/expertiseCard.css">
<link rel="stylesheet" href="css/responsive/components/expertiseCard.css">
<script src="js/expertise.js" defer></script>
</head>
<body>
<?php include ('components/scrollToTop.php'); ?>
<header>
<?php include ('components/header.php'); ?>
</header>
<main>
<h1><?php getValueFromJson('expertise.title'); ?></h1>
<section id="expertise">
<div>
<?php
$side = '';
$title = getValueFromJson('expertise.1.title', false);
$text = getValueFromJson('expertise.1.text', false);
$images = [
'assets/img/expertise/ionSource1.webp',
'assets/img/expertise/ionSource2.webp'
];
include ('components/expertiseCard.php');
?>
<?php
$side = 'reversed';
$title = getValueFromJson('expertise.2.title', false);
$text = getValueFromJson('expertise.2.text', false);
$images = [
'assets/img/expertise/cyclotron1.webp',
'assets/img/expertise/cyclotron2.webp'
];
include ('components/expertiseCard.php');
?>
<?php
$side = '';
$title = getValueFromJson('expertise.3.title', false);
$text = getValueFromJson('expertise.3.text', false);
$images = [
'assets/img/expertise/beamline1.webp',
'assets/img/expertise/beamline2.webp'
];
include ('components/expertiseCard.php');
?>
</div>
</section>
</main>
<footer>
<?php include ('components/footer.php'); ?>
</footer>
</body>
</html>
<!-- © AIMA DEVELOPPEMENT 2024 -->