namespace Langchecker; ?> <p id="back"><a href="http://l10n.mozilla-community.org/webdashboard/">Back to Web Dashboard</a></p> <h1>List of indexed pages</h1> <?php $html_output = ''; $displayed_sites = []; if ($website != '' && isset($sites[$website])) { $displayed_sites[$website] = $sites[$website]; } else { $displayed_sites = $sites; } foreach ($displayed_sites as $site_index => $current_website) { $websitename = Project::getWebsiteName($current_website); $website_data_source = Project::getWebsiteDataType($current_website); if ($website_data_source == 'lang') { $table_headers = "<th>Filename</th><th>URL</th><th>Status</th><th>Translations</th><th>Strings</th><th>Words</th>"; } else { $table_headers = "<th>Filename</th>\n<th>Status</th>\n\n"; } $html_output .= "\n\t<h2 id='{$websitename}'><a href='#{$websitename}'>{$websitename}</a></h2>\n"; $html_output .= "\t<table class='listpages'>\n <thead>\n <tr>{$table_headers}</tr>\n </thead>\n <tbody>\n"; // Totals to display in the table footer $total_strings = $total_words = $total_files = 0; foreach (Project::getWebsiteFiles($current_website) as $current_filename) { if ($website_data_source == 'lang') { $reference_locale = Project::getReferenceLocale($current_website); $reference_data = LangManager::loadSource($current_website, $reference_locale, $current_filename); $get_words = function ($item) {