Skip to content

Commit

Permalink
Some clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kurbaitis committed Sep 22, 2021
1 parent a56cf87 commit 78bd73b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages/com_signalzen.zip
packages/plg_signalzen.zip
.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
<br />
To enable SignalZen chat widget on your website, you just need to enter your <strong>Public Token</strong> which you can get in the <strong>Integration page</strong> while logged in to your account at <a href="https://signalzen.com" target="_blank">signalzen.com</a>.
<br />
For entering that information together with other available configuration options, please click the button below, which will lead you to component configuration page.
In order to integrate with SignalZen and configure your setup, please click the button below, which will lead you to component configuration page.
<br/>
Once you enter your Public Token in the component configuration and save the configuration, your website will contain SignalZen live chat widget and you can start talking to them by using our Console or <a href="https://slack.com" target="_blank">Slack</a> if you choose to integrate with it also.
<br />
<br />
<button onclick="window.location='index.php?option=com_config&view=component&component=com_signalzen'">Configure SignalZen</button>
<button onclick="window.location='index.php?option=com_config&view=component&component=com_signalzen'">Integrate and Configure SignalZen</button>
<br />
<br />
Happy chatting!
Expand Down
7 changes: 0 additions & 7 deletions packages/plg_signalzen/signalzen.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,6 @@ public function onAfterInitialise()
};
var _sz=_sz||{};_sz.appId="'.$token.'",function(){var e=document.createElement("script");e.src="https://cdn.signalzen.com/signalzen.js",e.setAttribute("async","true"),document.documentElement.firstChild.appendChild(e);var t=setInterval(function(){"undefined"!=typeof SignalZen&&(clearInterval(t),new SignalZen(_sz).load())},10)}();';
$doc->addScriptDeclaration($script, $type = 'text/javascript');
// $doc->addCustomTag('<script type="text/javascript">'.$script.'</script>');

if (!$user->guest) {
$script = '$signalzen.push(["set", "user:email", "' . $user->email . '"]);';
$script = '$signalzen.push(["set", "user:nickname", "' . $user->name . '"]);';
$doc->addScriptDeclaration($script, $type = 'text/javascript');
}
}

/**
Expand Down

0 comments on commit 78bd73b

Please sign in to comment.