Skip to content

На странице блога Articles не происходит конвертация изображений #2

@gener

Description

@gener

В Плагине 177 - 183 строка

 <head>
    <meta http-equiv='content-type' content='text/html; charset={$charset}'>
  </head>
<body>{$cur_output}</body>
</html>";
$output_dom->loadHTML($cur_output);```

$cur_output - не содержит весь HTML страницы, а содержит подключение сниппета, например 
```[[+articles]]

<div class="pagination">
[[!+paging]]
</div>```

Поэтому последнюю строчку $output_dom->loadHTML($cur_output); предлагаю заменить на $output_dom->loadHTML($o);А предыдущие строчки 
```$cur_output="<html>
 <head>
    <meta http-equiv='content-type' content='text/html; charset={$charset}'>
  </head>
<body>{$cur_output}</body>
</html>"; ```
вообще убрать


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions