Skip to content

Commit

Permalink
enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasKrais committed May 4, 2023
1 parent 39ea4a9 commit 61620fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function addD2UHelperTOC(rex_extension_point $ep): void
{
$content = $ep->getSubject();

if('' !== $content) {
// is string not empty an can it be HTML
if(false !== strpos($content, '<')) {
// table of contents
$toc_html = '<p onClick="toggle_toc()"><span class="fa-icon icon_toc"></span>'. \Sprog\Wildcard::get('d2u_helper_toc') .'<span class="fa-icon h_toggle icon_right" id="toc_arrow"></span></p>'. PHP_EOL;
$toc_html .= '<ol id="toc_list"><li>';
Expand Down

0 comments on commit 61620fe

Please sign in to comment.