Skip to content

Instantly share code, notes, and snippets.

@johnbuck
Last active September 8, 2015 18:55
Show Gist options
  • Save johnbuck/62d894cee52537106299 to your computer and use it in GitHub Desktop.
Save johnbuck/62d894cee52537106299 to your computer and use it in GitHub Desktop.
DRY output markup for modular use
prefix_output_example_markup() {
echo prefix_get_example_markup_html();
}
prefix_get_example_markup_html() {
$output = '<div>Here\'s some example markup</div>';
$output = '<div>Here\'s some more example markup </div>'
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment