Skip to content

Commit

Permalink
Add "target="_blank" to the links to force them to open in a new brow…
Browse files Browse the repository at this point in the history
…ser window or tab.
  • Loading branch information
JustCarmen committed Dec 24, 2013
1 parent 00ef708 commit 9ac47d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ public function getSidebarContent() {
$html.='<li><span class="ui-icon ui-icon-triangle-1-e left"></span><a class="mainlink" href="'.$link.'">'.$plugin->getName().'</a>';
$html .= '<ul class="sublinks">';
foreach ($sublinks as $sublink) {
$html.='<li><span class="ui-icon ui-icon-triangle-1-e left"></span><a class="research_link" href="'.$sublink['link'].'">'.$sublink['title'].'</a></li>';
$html.='<li><span class="ui-icon ui-icon-triangle-1-e left"></span><a class="research_link" href="'.$sublink['link'].'" target="_blank">'.$sublink['title'].'</a></li>';
}
$html .= '</ul></li>';
}
else { // default
$html.='<li><span class="ui-icon ui-icon-triangle-1-e left"></span><a class="research_link" href="'.$link.'">'.$plugin->getName().'</a></li>';
$html.='<li><span class="ui-icon ui-icon-triangle-1-e left"></span><a class="research_link" href="'.$link.'" target="_blank">'.$plugin->getName().'</a></li>';
}
}
$html.= '</ul>';
Expand Down

0 comments on commit 9ac47d1

Please sign in to comment.