Browse Source

Fix strings

pull/691/head
danpros 1 year ago
parent
commit
81bf71c872
3 changed files with 9 additions and 3 deletions
  1. +7
    -1
      config/config.ini.example
  2. +1
    -1
      system/admin/views/config-widget.html.php
  3. +1
    -1
      system/includes/functions.php

+ 7
- 1
config/config.ini.example View File

@ -28,6 +28,12 @@ blog.enable = "false"
; Social account ; Social account
social.twitter = "" social.twitter = ""
social.facebook = "" social.facebook = ""
social.instagram = ""
social.linkedin = ""
social.github = ""
social.youtube = ""
social.mastodon = ""
social.tiktok = ""
; Breadcrumb home text. Useful when installed on subfolder. ; Breadcrumb home text. Useful when installed on subfolder.
breadcrumb.home = "Home" breadcrumb.home = "Home"
@ -148,7 +154,7 @@ toc.style = "default"
; Option "true" and "false" ; Option "true" and "false"
toc.automatic = "false" toc.automatic = "false"
; Automatically insert the TOC in x paragraph
; Automatically insert the TOC after x paragraph
toc.position = "1" toc.position = "1"
; Set the theme here ; Set the theme here


+ 1
- 1
system/admin/views/config-widget.html.php View File

@ -125,7 +125,7 @@
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label for="toc.position" class="col-sm-2 col-form-label">TOC position in x paragraph</label>
<label for="toc.position" class="col-sm-2 col-form-label">TOC position after x paragraph</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input type="number" name="-config-toc.position" class="form-control" id="toc.position" value="<?php echo config('toc.position');?>"> <input type="number" name="-config-toc.position" class="form-control" id="toc.position" value="<?php echo config('toc.position');?>">
</div> </div>


+ 1
- 1
system/includes/functions.php View File

@ -3654,7 +3654,7 @@ function insert_toc($id, $part_1 = null, $part_2 = null)
return $result; return $result;
} }
// Automatically add toc in x paragraph
// Automatically add toc after x paragraph
function automatic_toc($content, $id) function automatic_toc($content, $id)
{ {
$pos = config('toc.position'); $pos = config('toc.position');


Loading…
Cancel
Save