Created
December 31, 2014 23:33
-
-
Save jamiebrwr/9066d8c4d399a0443c12 to your computer and use it in GitHub Desktop.
Load Frontend Notices for clients to visualize site layout
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
/** | |
* Load Frontend Notices | |
*/ | |
function post_type_notice($type, $color){ | |
//echo 'post_type' == $type ? '<p style="color:'.$color.';text-align:center;padding-left:2em;"><strong>POST TYPE:</strong> ' . get_post_type() . '</p>' : ''; | |
//echo 'header' == $type ? '<p style="border-top: 3px solid '.$color.';"> </p>' : ''; | |
//echo 'section' == $type ? 'style="background: '.$color.';"' : ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment