# acymailing/10.11.1/back/Partial/editor/template.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version 10.11.1. 13 lines.

- Page: https://pluginprobe.com/plugins/acymailing/10.11.1/code/back/Partial/editor/template.php
- Raw: https://pluginprobe.com/plugins/acymailing/10.11.1/raw/back/Partial/editor/template.php
- Modified: 2025-01-27T11:09:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/10.11.1/code/back/Partial/editor/template.php#L10-L20`.

```php
<?php
if (strpos($this->content, 'acym__wysid__template') !== false) {
    $bodyPos = strpos($this->content, '<body>');
    $endBodyPos = strpos($this->content, '</body>');
    if ($bodyPos !== false && $endBodyPos !== false) {
        echo substr(substr($this->content, 0, $endBodyPos), $bodyPos + 6);
    } else {
        echo $this->content;
    }
} else {
    echo $this->defaultTemplate;
}

```
