Last active
September 8, 2015 18:55
-
-
Save johnbuck/62d894cee52537106299 to your computer and use it in GitHub Desktop.
DRY output markup for modular use
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
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