Makes JSON objects a lot easier to read. Great for debugging.
A Pen by Nelson Polanco on CodePen.
Makes JSON objects a lot easier to read. Great for debugging.
A Pen by Nelson Polanco on CodePen.
http_path = "/" | |
css_dir = "." | |
sass_dir = "sass" | |
images_dir = "img" | |
javascripts_dir = "js" | |
preferred_syntax = :scss | |
output_style = :compressed | |
relative_assets = true |
<?php | |
add_action('wp_footer', 'show_template'); | |
function show_template() { | |
global $template; | |
echo '<div style="width: 50%; margin: 40px auto; font-size: 12px; color: #c09853; background-color: #fcf8e3; border: 1px solid #fbeed5;padding: 2em; border-radius: 4px;"><p><strong>Current Template</strong></p><em>'; | |
print_r(str_replace(get_template_directory(), '', $template) ); | |
echo '</em></div>'; | |
} |
<?php | |
//Loop through each file in the Widgets directory and include it. | |
foreach ( glob( get_template_directory_uri() . "/widgets/*.php", GLOB_NOSORT) as $filename ){ | |
include $filename; | |
} | |
?> |