website view lib/rand-sponsor.php @ rev 1344

Resize balinor logo to 120px
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 22 23:02:15 2021 +0100 (17 months ago)
parents fc134ef65fed
children
line source
1 <?php
2 //
3 // Display random sponsor. Only main sponsor are featured on main page.
4 //
6 $total = "3";
7 $folder = "/images/sponsor";
8 $random = mt_rand(1, $total);
10 switch($random) {
11 case 1:
12 $name = "Allied Data Sys";
13 $img = "ads.png";
14 $url = "http://www.ads-lu.com/";
15 break;
16 case 2:
17 $name = "DuckDuckGo";
18 $img = "ddg.png";
19 $url = "https://duckduckgo.com/?t=slitaz";
20 break;
21 case 3:
22 $name = "Balinor Technologies";
23 $img = "balinor_logo.png";
24 $url = "https://www.linkedin.com/company/balinor-technologies";
25 break;
26 }
28 echo "<a href='$url'><img src='$folder/$img' title='$name' alt='[ $name ]' /></a>";
30 ?>