PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.2
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Partial / editor / template.php

template.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.2, at back/Partial/editor/template.php

19 lines 802 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
3 defined('ABSPATH') || die('Restricted Access');
4 if (strpos($this->content, 'acym__wysid__template') !== false) {
5 $bodyPos = strpos($this->content, '<body>');
6 $endBodyPos = strpos($this->content, '</body>');
7
8 $emailContent = $this->content;
9
10 if ($bodyPos !== false && $endBodyPos !== false) {
11 $emailContent = substr(substr($this->content, 0, $endBodyPos), $bodyPos + 6);
12 }
13
14 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Raw newsletter content built by the user with the email editor.
15 echo $emailContent;
16 } else {
17 include acym_getPartial('editor', 'default_template');
18 }
19