Last active
October 24, 2015 01:16
-
-
Save reasonstousegenesis/831699ea0e3bd8409bed to your computer and use it in GitHub Desktop.
Check if the child theme is HTML5 or 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. | |
/** | |
* Check if the child theme is HTML5 or XHTML with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-html5/ | |
*/ | |
add_filter( 'genesis_footer_creds_text', 'rtug_currently_reading' ); | |
function rtug_currently_reading() { | |
if ( genesis_html5() ) | |
return 'I am currently reading <span itemscope itemtype="http://schema.org/Book"><em itemprop="name">Go Set a Watchman</em> by <span itemprop="author">Harper Lee</span></span>.'; | |
else | |
return 'I am currently reading <em>Go Set a Watchman</em> by Harper Lee.'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment