Last active
April 10, 2017 09:47
-
-
Save diego-betto/b5be60e1b2f9407a66c0d6631d97790c to your computer and use it in GitHub Desktop.
inline-svg.php
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
function inlineSvg($file) | |
{ | |
$theFile = get_template_directory().'/dist/images/'.$file.'.svg'; | |
echo (is_file($theFile) ? file_get_contents(get_template_directory().'/dist/images/'.$file.'.svg') : ''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment