Created
December 10, 2019 02:18
-
-
Save mhige/9ceb6f18fd8d38c5e00e512310200c39 to your computer and use it in GitHub Desktop.
パラメータでampにするかどうか決めるis_amp関数
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 | |
// AMPページの判断 | |
function is_amp() { | |
if(isset($_GET['amp']) && $_GET['amp'] == 1){ | |
return true; | |
} else { | |
return false; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment