Skip to content

Instantly share code, notes, and snippets.

@jamiebrwr
Created December 31, 2014 23:33
Show Gist options
  • Save jamiebrwr/9066d8c4d399a0443c12 to your computer and use it in GitHub Desktop.
Save jamiebrwr/9066d8c4d399a0443c12 to your computer and use it in GitHub Desktop.
Load Frontend Notices for clients to visualize site layout
/**
* 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.';">&nbsp;</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