Skip to content

Commit

Permalink
Added Class to header links
Browse files Browse the repository at this point in the history
  • Loading branch information
maherelgamil authored Oct 25, 2016
1 parent bb46d34 commit d194803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laradown.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function element(array $Element)

if (str_is('h*', $Element['name'])) {
$link = str_replace(' ', '-', strtolower($Element['text']));
$markup = '<a href="#'.$link.'" id="'.$link.'"><i class="glyphicon glyphicon-link"></i></a>';
$markup = '<a class="header-link" href="#'.$link.'" id="'.$link.'"><i class="glyphicon glyphicon-link"></i></a>';
}

$markup .= parent::element($Element);
Expand Down

0 comments on commit d194803

Please sign in to comment.