Last active
December 13, 2016 21:47
-
-
Save cjwd-snippets/5e0f29e3ab2c7e8ee07e883d921616b8 to your computer and use it in GitHub Desktop.
Function to print sage's main and base templates
This file contains hidden or 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 | |
| use Vault\Sage\Wrapper; | |
| function sage_wrap_info() { | |
| $format = '<h6>The %s template being used is: %s</h6>'; | |
| $main = Wrapper\SpringWrapping::$main_template; | |
| global $template; | |
| printf($format, 'Main', $main); | |
| printf($format, 'Base', $template); | |
| } | |
| add_action('wp_footer', __NAMESPACE__ . '\\sage_wrap_info'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment