Persist individual attributes; render last

This commit is contained in:
Jarek Rozanski 2021-12-30 12:58:35 +01:00
parent a646dc311d
commit fb1789343c
4 changed files with 90 additions and 65 deletions

View file

@ -4,6 +4,7 @@ $trackerDomain = $this->settings[self::WAA_CONF_TRACKER_DOMAIN];
$ignoreHash = filter_var($this->settings[self::WAA_CONF_IGNORE_HASH], FILTER_VALIDATE_BOOLEAN);
$parsedExclusions = $this->plugin->helpers->parseExclusionSetting($this->settings[self::WAA_CONF_EXC_PATHS]);
$parsedIncludeParams = $this->plugin->helpers->parseIncludeParamsSetting($this->settings[self::WAA_CONF_INC_PARAMS]);
$generator = new WideAngleGenerator($this->settings[self::WAA_CONF_ATTRIBUTES]);
?>
<div class="wrap">
<h2>
@ -136,11 +137,11 @@ $parsedIncludeParams = $this->plugin->helpers->parseIncludeParamsSetting($this-
<pre style="padding: 1rem; border: 1px solid;">
&lt;head&gt;
&lt;!-- .. --&gt;
<b><?php echo esc_html($this->settings[self::WAA_CONF_GENERATED_HEADER_SCRIPT]); ?></b>
<b><?php echo esc_html($generator->generateHeaderScript()); ?></b>
&lt;/head&gt;
&lt;!-- .. --&gt;
<b><?php echo esc_html($this->settings[self::WAA_CONF_GENERATED_FOOTER_SCRIPT]); ?></b>
<b><?php echo esc_html($generator->generateFooterScript()); ?></b>
</pre>
</code>
</div>