Created
August 11, 2017 06:06
-
-
Save avdoshenkov/e0e6146b64ae884120bc999934a6b7b6 to your computer and use it in GitHub Desktop.
Adding new stylesheet (e.g. redesign) through http://example.com/?x
This file contains hidden or 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 if (isset($_GET['x'])) { | |
echo '<link href="path/to/style_new.css" rel="stylesheet">'; | |
} else { | |
echo '<link href="path/to/style.css" rel="stylesheet">'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment