PHP Classes

File: system/dependencies/tracy/tracy/src/Tracy/Bar/assets/loader.phtml

Recommend this page to a friend!
  Classes of Dimitri Sitchet   dFramework   system/dependencies/tracy/tracy/src/Tracy/Bar/assets/loader.phtml   Download  
File: system/dependencies/tracy/tracy/src/Tracy/Bar/assets/loader.phtml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: dFramework
Framework to build PHP applications
Author: By
Last change:
Date: 4 years ago
Size: 1,139 bytes
 

Contents

Class file image Download
<?php /** * Debug Bar loader template. * * It uses Font Awesome by Dave Gandy - http://fontawesome.io * * This file is part of the Tracy (https://tracy.nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ declare(strict_types=1); namespace Tracy; $baseUrl = $_SERVER['REQUEST_URI'] ?? ''; $baseUrl .= strpos($baseUrl, '?') === false ? '?' : '&'; $nonceAttr = $nonce ? ' nonce="' . Helpers::escapeHtml($nonce) . '"' : ''; $asyncAttr = $async ? ' async' : ''; ?> <?php if (empty($content)): ?> <script src="<?= Helpers::escapeHtml($baseUrl) ?>_tracy_bar=<?= urlencode("content.$contentId") ?>&amp;XDEBUG_SESSION_STOP=1" data-id="<?= Helpers::escapeHtml($contentId) ?>"<?= $asyncAttr, $nonceAttr ?>></script> <?php else: ?> <!-- Tracy Debug Bar --> <script src="<?= Helpers::escapeHtml($baseUrl) ?>_tracy_bar=js&amp;v=<?= urlencode(Debugger::VERSION) ?>&amp;XDEBUG_SESSION_STOP=1" data-id="<?= Helpers::escapeHtml($contentId) ?>"<?= $nonceAttr ?>></script> <script<?= $nonceAttr ?>> Tracy.Debug.init(<?= str_replace('</s', '<\/s', json_encode($content, JSON_UNESCAPED_SLASHES)) ?>); </script> <?php endif ?>