Skip to content

Instantly share code, notes, and snippets.

@koentjuh1
Created April 28, 2017 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koentjuh1/571f41625caf62e3931c34b2c1bb435e to your computer and use it in GitHub Desktop.
Save koentjuh1/571f41625caf62e3931c34b2c1bb435e to your computer and use it in GitHub Desktop.
Mobile detect DOIT.php
<?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