瀏覽代碼

CEpages: automatically add anchors

dev01
Dom SP 3 年之前
父節點
當前提交
92def6efa4
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      app/modules/filesinfolders.php

+ 3
- 1
app/modules/filesinfolders.php 查看文件

@@ -649,6 +649,7 @@ class FilesInFolders {
$target = array_shift($request);
$class = array_shift($request);
$folder = $this->folder.$target."/";
$anchor_name=array_pop(explode("/",$target));
$fff = new \Modules\FilesInFolders(
$folder,
array(
@@ -660,8 +661,9 @@ class FilesInFolders {
);
$fff->prepare_files();
$fff->fill_content();
$new = sprintf("<div class=\"content_element_page %s\">\n%s\n</div>",
$new = sprintf("<div class=\"content_element_page %s\"><a name=\"%s\"></a>\n%s\n</div>",
$class,
$anchor_name,
implode("\n",$fff->content['default']));
break;

Loading…
取消
儲存