Skip to content

Commit

Permalink
Open external links in new tab/window
Browse files Browse the repository at this point in the history
  • Loading branch information
MWDelaney committed Sep 18, 2013
1 parent 07f97ed commit 2517dcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/bootstrap-shortcodes-help.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function retitle($match) {
<div class="container">
<?php
# Put HTML content in the document
$html = preg_replace('/(<a href="http:[^"]+")>/is','\\1 target="_blank">',$html);
$html = str_replace('<table>', '<table class="table table-striped">', $html);
$html = preg_replace_callback("#<(h[1-6])>(.*?)</\\1>#", "retitle", $html);
$html = str_replace('</pre>', '</pre><p><button class="btn btn-primary btn-sm insert-code">Insert Example <i class="glyphicon glyphicon-share-alt"></i></button></p>', $html);
Expand Down

0 comments on commit 2517dcf

Please sign in to comment.