Created
October 24, 2015 01:18
-
-
Save reasonstousegenesis/6816548d7ccb81d57c3e to your computer and use it in GitHub Desktop.
Output different markup for HTML5 and XHTML with Genesis
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 | |
// Paste the code BELOW this line into your plugin. | |
/** | |
* Output different markup for HTML5 and XHTML with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-markup/ | |
*/ | |
genesis_markup( array( | |
'html5' => '<article %s>', | |
'xhtml' => '<div class="example">', | |
'context' => 'example', | |
'echo' => true | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment