Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Detect special conditions devices
- $iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
- $iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad");
- $Android = stripos($_SERVER['HTTP_USER_AGENT'],"Android");
- $webOS = stripos($_SERVER['HTTP_USER_AGENT'],"webOS");
- //do something with this information
- if( $iPhone ){
- ?>
- <a href="fb://group/?id=444955502537159" target="_blank" class="joinfb" name="button1" onclick="dataLayer.push({'event': 'join-facebook-btn'});"><i class="fa fa-facebook"></i>הצטרפו לקהילת הפייסבוק שלנו</a>
- <?php
- } else
- ?>
- <?php
- if($iPad){
- <a href="fb://group/?id=444955502537159" target="_blank" class="joinfb" name="button1" onclick="dataLayer.push({'event': 'join-facebook-btn'});"><i class="fa fa-facebook"></i>הצטרפו לקהילת הפייסבוק שלנו</a>
- ?>
- <?php
- }else if($Android){
- <a href="fb://group/?id=444955502537159" target="_blank" class="joinfb" name="button1" onclick="dataLayer.push({'event': 'join-facebook-btn'});"><i class="fa fa-facebook"></i>הצטרפו לקהילת הפייסבוק שלנו</a> <?php
- }else if($webOS){
- <a href="fb://group/?id=444955502537159" target="_blank" class="joinfb" name="button1" onclick="dataLayer.push({'event': 'join-facebook-btn'});"><i class="fa fa-facebook"></i>הצטרפו לקהילת הפייסבוק שלנו</a>
- ?>
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement