Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created October 24, 2015 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/6816548d7ccb81d57c3e to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/6816548d7ccb81d57c3e to your computer and use it in GitHub Desktop.
Output different markup for HTML5 and XHTML with Genesis
<?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