Skip to content

Commit

Permalink
Merge pull request #2515 from WPO-Foundation/socialtemplate
Browse files Browse the repository at this point in the history
Use the social meta globals in blade templates
  • Loading branch information
scottjehl authored Nov 3, 2022
2 parents 81a6654 + 1029dd4 commit e475001
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/consolelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
$testInfo = TestInfo::fromFiles($testPath);
$testRunResults = TestRunResults::fromFiles($testInfo, $run, $cached, $fileHandler);

$socialDesc = 'Console.log output of the page being tested';

// template
echo view('pages.consolelog', [
'test_results_view' => true,
Expand Down
3 changes: 3 additions & 0 deletions www/resources/views/default.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
global $client_error;
global $test_is_private;
global $noanalytics;
global $socialDesc;
global $useScreenshot;
global $socialTitle;
$page_title = $page_title ? $page_title : 'WebPageTest';
$body_class = $body_class ? ' class=' . $body_class : '';
Expand Down

0 comments on commit e475001

Please sign in to comment.