-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.php
24 lines (23 loc) · 1.15 KB
/
navbar.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
<?php
function generateFilter() {
$menu = array(
'+Contrast' => array('text'=>'+ contraste', 'url'=>'?filter=1'),
'-Contrast' => array('text'=>'- contraste', 'url'=>'?filter=2'),
'+Brightness'=> array('text'=>'+ luminosité', 'url'=>'?filter=3'),
'-Brightness'=> array('text'=>'- luminosité', 'url'=>'?filter=4'),
'Sepia' => array('text'=>'Sepia', 'url'=>'?filter=5'),
'Grayscale' => array('text'=>'Gris', 'url'=>'?filter=6'),
'Gauss' => array('text'=>'Gauss', 'url'=>'?filter=7'),
'Edge' => array('text'=>'Contours', 'url'=>'?filter=8'),
'Sharpen' => array('text'=>'Accentuer', 'url'=>'?filter=9'),
'Pixelate' => array('text'=>'Pixeliser', 'url'=>'?filter=10'),
'Invert' => array('text'=>'Negatif', 'url'=>'?filter=11'),
'DoubleFlip' => array('text'=>'Double flip', 'url'=>'?filter=12')
);
$html = "<nav style=\"text-align:center\">\n";
foreach($menu as $item) {
$html .= "<a href='{$item['url']}'>{$item['text']}</a>\n";
}
$html .= "</nav>\n";
return $html;
}