/** * Writes Tracking image to the HTML source of WP */ function wpmautic_function($atts, $content = null) { $options = get_option('wpmautic_options'); $url_query = wpmautic_get_url_query(); $encoded_query = urlencode(base64_encode(serialize($url_query))); $image = '<img style="display:none" src="' . trim($options['base_url'], " \t\n\r\v/") . '/mtracking.gif?d=' . $encoded_query . '" alt="mautic is open source marketing automation" />'; echo $image; }
/** * Writes Tracking image to the HTML source of WP */ function wpmautic_function($atts, $content = null) { $options = get_option('wpmautic_options'); $url_query = wpmautic_get_url_query(); $encoded_query = urlencode(base64_encode(serialize($url_query))); $image = '<img style="display:none" src="' . trim($options['base_url'], ' \\t\\n\\r\\0\\x0B/') . '/mtracking.gif?d=' . $encoded_query . '" />'; echo $image; }