?> </ul> <?php foreach ($dirs_to_scan as $dir => $title) { $template_finder = new CUAR_TemplateFinder($this->plugin->get_template_engine()); $template_finder->scan_directory($dir); include_once CUAR_INCLUDES_DIR . '/core-addons/status/template-printer.class.php'; $template_printer = new CUAR_TemplatePrinter(); ?> <div id="section_tab_<?php echo esc_attr(sanitize_title($title)); ?> "> <h2><?php printf(__('%s: %d template(s)', 'cuar'), $title, $template_finder->get_template_count()); ?> </h2> <table class="widefat cuar-templates-table"> <?php $template_printer->print_template_headings(); $template_printer->print_template_list($template_finder->get_all_templates()); ?> </table> </div> <?php } ?> </div>