Skip to content

Commit

Permalink
Remove unused function print_bracket_link
Browse files Browse the repository at this point in the history
Issue #23754
  • Loading branch information
atrol committed Jan 3, 2018
1 parent 903befa commit a123429
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions core/print_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1433,26 +1433,6 @@ function print_bracket_link_prepared( $p_link ) {
echo '<span class="bracket-link">[&#160;' . $p_link . '&#160;]</span> ';
}

/**
* print the bracketed links used near the top
* if the $p_link is blank then the text is printed but no link is created
* if $p_new_window is true, link will open in a new window, default false.
* @param string $p_link The URL to link to.
* @param string $p_url_text The text to display.
* @param boolean $p_new_window Whether to open in a new window.
* @param string $p_class CSS class to use with the link.
* @return void
*/
function print_bracket_link( $p_link, $p_url_text, $p_new_window = false, $p_class = '' ) {
echo '<span class="bracket-link';
if( $p_class !== '' ) {
echo ' bracket-link-',$p_class; # prefix on a container allows styling of whole link, including brackets
}
echo '">[&#160;';
print_link( $p_link, $p_url_text, $p_new_window, $p_class );
echo '&#160;]</span> ';
}

/**
* print a HTML link
* @param string $p_link The page URL.
Expand Down

0 comments on commit a123429

Please sign in to comment.