Merge pull request #366 from PrisisForks/issue-159-link-to-google-stackoverflow

Issue 159 link to google stackoverflow
This commit is contained in:
Denis Sokolov
2016-01-15 19:14:34 +02:00
2 changed files with 62 additions and 16 deletions
File diff suppressed because one or more lines are too long
+13 -8
View File
@@ -12,16 +12,21 @@
<?php endif ?>
</div>
<span id="plain-exception"><?php echo $tpl->escape($plain_exception) ?></span>
<button id="copy-button" class="clipboard" data-clipboard-text="<?php echo $tpl->escape($plain_exception) ?>" title="Copy exception details to clipabord">
COPY
</button>
<p class="exc-message">
<div class="exc-message">
<?php if (!empty($message)): ?>
<?php echo $tpl->escape($message) ?>
<span><?php echo $tpl->escape($message) ?></span>
<?php else: ?>
<span class="exc-message-empty-notice">No message</span>
<?php endif ?>
</p>
<ul class="search-for-help">
<li><a target="_blank" href="https://google.com/search?q=<?php echo urlencode(implode('\\', $name).' '.$message) ?>" title="Search for help on Google."><i class="google"></i></a></li>
<li><a target="_blank" href="https://stackoverflow.com/search?q=<?php echo urlencode(implode('\\', $name).' '.$message) ?>" title="Search for help on Stack Overflow."><i class="stackoverflow"></i></a></li>
</ul>
<span id="plain-exception"><?php echo $tpl->escape($plain_exception) ?></span>
<button id="copy-button" class="clipboard" data-clipboard-text="<?php echo $tpl->escape($plain_exception) ?>" title="Copy exception details to clipabord">
COPY
</button>
</div>
</div>