Ich habe das "form_wrapper" template geändert:
PHP-Code:
<!-- indexer::stop -->
<div class="<?= $this->class ?> block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?= $this->hl ?>><?= $this->headline ?></<?= $this->hl ?>>
<?php endif; ?>
<?php if ($this->eloqua==1): ?>
<form action="<?php echo $this->eloqua_formAction; ?>" name="<?php echo $this->eloqua_formName; ?>" id="<?php echo $this->formId; ?>" method="<?php echo $this->method; ?>" enctype="<?php echo $this->enctype; ?>"<?php echo $this->attributes; ?>>
<?php
$pageUrl = $_SERVER['REQUEST_URI'];
$pageName = "{{page::title}}";
$hubspotutk = $_COOKIE['hubspotutk']; //grab the cookie from the visitors browser.
$ip_addr = $_SERVER['REMOTE_ADDR']; //IP address too.
$hs_context = array(
'hutk' => $hubspotutk,
'ipAddress' => $ip_addr,
'pageUrl' => $pageUrl,
'pageName' => $pageName
);
$hs_context_json = json_encode($hs_context);
?>
<?php else: ?>
<form<?php if ($this->action): ?> action="<?= $this->action ?>"<?php endif; ?> id="<?= $this->formId ?>" method="<?= $this->method ?>" enctype="<?= $this->enctype ?>"<?= $this->attributes ?><?= $this->novalidate ?>>
<?php endif; ?>
<div class="formbody">
<?php if ($this->method != 'get' && !$this->eloqua): ?>
<input type="hidden" name="FORM_SUBMIT" value="<?= $this->formSubmit ?>">
<input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
<?php if ($this->maxFileSize): ?>
<input type="hidden" name="MAX_FILE_SIZE" value="<?= $this->maxFileSize ?>">
<?php endif; ?>
<?php endif; ?>
<?php if ($this->eloqua==1): ?>
<input type="hidden" name="elqFormName" value="<?php echo $this->eloqua_formName; ?>">
<input type="hidden" name="elqSiteID" value="<?php echo $this->eloqua_ID; ?>">
<input type="hidden" name="hutk" value="<?php echo $hubspotutk; ?>">
<input type="hidden" name="ipAddress" value="<?php echo $ip_addr; ?>">
<input type="hidden" name="pageUrl" value="<?php echo $pageUrl; ?>">
<input type="hidden" name="pageUrl" value="<?php echo $pageName; ?>">
<?php endif; ?>
<?= $this->hidden ?>
<?= $this->fields ?>
</div>
</form>
</div>
<!-- indexer::continue -->
Und bin aktuell recht verloren. -.-
Lesezeichen