Skip to content

Commit

Permalink
make the link scan the checked page
Browse files Browse the repository at this point in the history
  • Loading branch information
mfairchild365 committed Apr 17, 2014
1 parent 30cbf0f commit a5a021c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion www/templates/html/Metric.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
The W3C HTML validator checks for html validation errors. It will only report errors and ignores notices. HTML errors are due to invalid HTML markup in your pages. They may cause inconsistent rendering and behavior between browsers.
</p>
<p>
To find and fix these errors, you can run your page though the <a href="<?php echo $context->options['service_url'] ?>">W3C HTML validator</a>.
<?php
$url = $context->options['service_url'];
if (isset($parent) && $parent->context->getRawObject() instanceof \SiteMaster\Core\Auditor\Site\Page\MetricGrade) {
$page = $parent->context->getPage();
$url .= '?uri=' . urlencode($page->uri);
}
?>
To find and fix these errors, you can run your page though the <a href="<?php echo $url ?>">W3C HTML validator</a>.
</p>

0 comments on commit a5a021c

Please sign in to comment.