Created
February 12, 2018 17:10
-
-
Save AladinDridi/2d52b0d6287c3484a13e70edf2576d11 to your computer and use it in GitHub Desktop.
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
function iframe_loggedout($msg){ | |
$msg = shortcode_atts( | |
array( | |
'lien' => '', | |
), $msg, 'iframe_loggedout_link'); | |
if(wp_is_mobile()){ | |
return '<iframe width="560" height="315" src="'.$msg['lien'].'" frameborder="0" allowfullscreen></iframe>'; | |
} | |
} | |
add_shortcode('iframe_loggedout_link','iframe_loggedout'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment