Created
April 28, 2017 09:18
-
-
Save koentjuh1/571f41625caf62e3931c34b2c1bb435e to your computer and use it in GitHub Desktop.
Mobile detect DOIT.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $mobile_detect = new Mobile_Detect(); ?> | |
<?php if($mobile_detect->isMobile() && $mobile_detect->isTablet()) { ?> | |
<li><a href="tel:0488451524">0488 45 15 24</a></li> | |
<?php } else { ?> | |
<li>0488 45 15 24</li> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment