duffhome
Active Member
Hello guys!
I've used this code to integrate Interakt.co App with MailWizz. its working fine. However I just noticed that when this code is inserted on:
[PATH]/apps/customer/views/layouts/main.php
I got problem with CKeditor, check this screen. It does not show the editing tools.
This is without the code.
I've used this code to integrate Interakt.co App with MailWizz. its working fine. However I just noticed that when this code is inserted on:
[PATH]/apps/customer/views/layouts/main.php
PHP:
<!--New Engagement App--!>
<?php
$name = $email = $timestamp = $phone = $groupName = null;
if ($customer = Yii::app()->customer->getModel()) {
$name = $customer->fullName;
$email = $customer->email;
$timestamp = strtotime($customer->date_added);
$phone = !empty($customer->company) ? $customer->company->phone : null;
$groupName = !empty($customer->group) ? $customer->group->name : null;
}
?>
<script>
(function() {
var interakt = document.createElement('script');
interakt.type = 'text/javascript'; interakt.async = true;
interakt.src = "//cdn.interakt.co/interakt/0d35356539d796ffed0ccd47281ccbad.js";
var scrpt = document.getElementsByTagName('script')[0];
scrpt.parentNode.insertBefore(interakt, scrpt);
})()
</script>
<script>
window.mySettings = {
name: '<?php echo $name;?>',
email: '<?php echo $email;?>',
created_at: <?php echo (int)$timestamp;?>,
phoneNum: '<?php echo $phone;?>',
groupName: '<?php echo $groupName;?>',
app_id: '0d35356539d796ffed0ccd47281ccbad',
};
</script>
<!--New Engagement App--!>
I got problem with CKeditor, check this screen. It does not show the editing tools.
This is without the code.