mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
Update functions.php
This commit is contained in:
parent
ddd46cad2d
commit
cbbc8dd6c5
1 changed files with 2 additions and 2 deletions
|
|
@ -1764,7 +1764,7 @@ function archive_list($custom = null)
|
|||
|
||||
$script = <<<EOF
|
||||
if (this.parentNode.className.indexOf('expanded') > -1){this.parentNode.className = 'collapsed';this.innerHTML = '►';} else {this.parentNode.className = 'expanded';this.innerHTML = '▼';}
|
||||
EOF;
|
||||
EOF;
|
||||
$arch .= '<ul class="archivegroup">';
|
||||
$arch .= '<li class="' . $class . '">';
|
||||
$arch .= '<a href="javascript:void(0)" class="toggle" onclick="' . $script . '">' . $arrow . '</a> ';
|
||||
|
|
@ -3633,7 +3633,7 @@ function insert_toc($id, $part_1 = null, $part_2 = null)
|
|||
|
||||
});
|
||||
</script>
|
||||
EOF;
|
||||
EOF;
|
||||
$result = $part_1 . '<div class="toc-wrapper" id="toc-wrapper.'. $id .'" style="display:none;" >'. $load . $style .'<details '. $state .'><summary title="'. $label .'"><span class="details">'. $label .'</span></summary><div class="inner"><div class="toc" id="toc.'. $id .'"></div></div></details><script src="'. site_url().'system/resources/js/toc.generator.js"></script></div>' . $part_2;
|
||||
return $result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue