Přidat homepage/middle.html
This commit is contained in:
parent
f2371c1598
commit
bac0864a59
1 changed files with 15 additions and 0 deletions
15
homepage/middle.html
Normal file
15
homepage/middle.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<fieldset>
|
||||
<legend>[fi=sun] Počasí</legend>
|
||||
<?php
|
||||
function isMobile2() {
|
||||
return preg_match('/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i', $_SERVER['HTTP_USER_AGENT']);
|
||||
}
|
||||
if(isMobile2()){
|
||||
// Do something for only mobile users
|
||||
echo('<div class="feed__item feed--listing feed__list"><a href="https://www.slunecno.cz/mista/as-2" target="_new"><img src="https://www.slunecno.cz/predpoved-na-web.php?m=2&p1=DD3333&t1=FFFFFF&p2=FFFFFF&v=2" alt="Počasí Aš" style="border: 0px;"></a><br><br><a href="http://www.slunecno.cz/meteoradar/" target="_new"><img width="100%" src="https://www.slunecno.cz/mapa.php" alt="Radar bouřky" style="border: 0px;" /></a><br>Zdroj: <a href="https://slunecno.cz" title="Aktuální počasí a dlouhodobá předpověď pro více než 150.000 míst po celém světě" target="_new">Počasí Slunecno.cz</a></div>');
|
||||
} else {
|
||||
// Do something for only desktop users
|
||||
echo('<div style="margin-left: 0px;" class="feed__item feed--listing feed__list"><a href="https://www.slunecno.cz/mista/as-2" target="_new"><img src="https://www.slunecno.cz/predpoved-na-web.php?m=2&p1=DD3333&t1=FFFFFF&p2=FFFFFF&v=2" alt="Počasí Aš" style="border: 0px;"></a><br><br><a href="http://www.slunecno.cz/meteoradar/" target="_new"><img width="100%" src="https://www.slunecno.cz/mapa.php" alt="Radar bouřky" style="border: 0px;" /></a><br>Zdroj: <a href="https://slunecno.cz" title="Aktuální počasí a dlouhodobá předpověď pro více než 150.000 míst po celém světě" target="_new">Počasí Slunecno.cz</a></div>');
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
Loading…
Add table
Reference in a new issue