-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcarousel_words.php
More file actions
131 lines (97 loc) · 3.55 KB
/
carousel_words.php
File metadata and controls
131 lines (97 loc) · 3.55 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php include "partials/header.php" ?>
</header>
<body>
<?php include "data/slova_anglictina.php";
$sort_by_10 = array_chunk($data_anglictina, 10, true);
/*
echo "<pre>";
print_r($sort_by_10);
echo "</pre>";
*/
$i_sort_by_10 = 1;
$slova = [ "udržovat, zachovat" => "maintain",
"protilátka" => "antibody",
"dospělý" => "mature",
"rozvinutý" => "developed",
"rozdělit" => "distribute",
"uvolnit" => "release",
"buď a nebo" => "either or",
"nezralý" => "immature",
"vázat se" => "bind",
"rozpoznat" => "recognize",
"důsledky" => "consequences",
"překážka" => "obstacle",
"čelit" => "face",
"představovat hrozbu" => "pose a threat",
"přispět k problému" => "contribute to the problem",
"zmírnit" => "mitigate",
"vlastnost" => "feature",
"překážet, bránit" => "hinder",
"hledat" => "seek",
"chřipka" => "Influenza",
"nedostatek" => "Scarcity",
"hodnotit" => "evaluate",
"stejně" => "equally"];
$sort_by_5 = array_chunk($slova, 5, true);
?>
<?php
function kazdychPet($sort_by_5){
foreach($sort_by_5 as $sorted){
echo '<div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<h2>Ahoj</h2>
</div>
<div class="carousel-item">HEJ</div>;
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>';
}
}
function okno($sort_by_5){
foreach($sort_by_5 as $sorted){
foreach($sorted as $key=>$value){/*
echo '<div class="carousel-item">';
echo $key;
echo '</div>';*/
echo '<pre>';
print_r($key);
echo '</pre>';
}
}
}
kazdychPet($sort_by_5);
okno($sort_by_5)
/*
foreach($sort_by_5 as $sorted){
echo '<div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="..." class="d-block w-100" alt="...">
</div>';
foreach($sorted as $nevim) {
echo '<pre>';
print_r($nevim);
echo '</pre>';
echo '<input class="btn btn-primary" type="button" value="Input">'.$nevim;
}
echo ' <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>';
}*/
?>
</body>
<?php include "partials/footer.php"?>