Skip to content

Instantly share code, notes, and snippets.

View Steveb-p's full-sized avatar

Paweł Niedzielski Steveb-p

View GitHub Profile
<?php
declare(strict_types=1);
namespace Denkwerk\IbexaConnector\Core\Load\Actions\Location;
use Ibexa\Platform\Migration\ValueObject\Step\Action;
final class AssignContentLocations implements Action
{
<?php
function tracking_js()
{
$apiSettings = get_option('module_settings_option');
$apiKey = $apiSettings['tracking_api_key'];
$tc_dont_show = (isset($_SESSION['tc_dont_show']) && $_SESSION['tc_dont_show']) == 1 ? 1 : 0;
$xtroScript = "<script type='text/javascript'>
(function(i,n,t,r,e,d,o){
i['IntredoAnalyticsObject'] = e; i[e] = i[e] || function(){ (i[e].q=i[e].q||[]).push(arguments)