Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add_indented($fn, $num_tabs=1, $params=null){
- ob_start();
- call_user_func($fn, $params);
- $html = ob_get_contents();
- ob_end_clean();
- $tabs="";
- for ($i=0 ; $i<$num_tabs ; $i++) $tabs.="t";
- echo preg_replace("/n/", "n" . $tabs, substr($html, 0, - 1));
- echo "n";
- }
- <?php wp_head(); ?>
- <?php wp_footer(); ?>
- <?php get_template_part('template-parts/content','home'); ?>
- <?php print_indented("wp_head"); ?>
- <?php print_indented("wp_footer"); ?>
- <!-- Add 4 tabs -->
- <?php print_indented('get_template_part', 4,'template-parts/content', 'home'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement