source/Core/Smarty/Plugin/Emos.php
public function _prepareScript()
    {
        $this->_sPrescript =  '<script type="text/javascript">window.emosTrackVersion = 2;</script>' . $this->_br;

        $this->_sIncScript .= "<script type=\"text/javascript\" " .
        "src=\"" . $this->_sPathToFile . $this->_sScriptFileName . "\">" .
        "</script>" . $this->_br;

        $this->_sPostscript  = '<script type="text/javascript"><!--' . $this->_br;
        $this->_sPostscript .= $this->_tab . 'var emospro = {};' . $this->_br;

        $this->_sPostscript .= $this->_addJsFormat("content", $this->_content);
        $this->_sPostscript .= $this->_addJsFormat("orderProcess", $this->_orderProcess);
        $this->_sPostscript .= $this->_addJsFormat("siteid", $this->_siteid);
        $this->_sPostscript .= $this->_addJsFormat("langid", $this->_langid);
        $this->_sPostscript .= $this->_addJsFormat("countryid", $this->_countryid);
        $this->_sPostscript .= $this->_addJsFormat("pageId", $this->_pageid);
        $this->_sPostscript .= $this->_addJsFormat("scontact", $this->_scontact);
        $this->_sPostscript .= $this->_addJsFormat("download", $this->_download);
        $this->_sPostscript .= $this->_addJsFormat("billing", [$this->_billing]);

        $this->_sPostscript .= $this->_addJsFormat("search", [[$this->_searchQuery, $this->_searchNumberOfHits]]);
        $this->_sPostscript .= $this->_addJsFormat("register", [[$this->_registerUser, $this->_registerResult]]);
        $this->_sPostscript .= $this->_addJsFormat("login", [[$this->_loginUser, $this->_loginResult]]);

        $this->_sPostscript .= $this->_addJsFormat("ec_Event", $this->_ecEvent);

        $this->_sPostscript .= $this->_tab . 'window.emosPropertiesEvent(emospro);' . $this->_br;
        $this->_sPostscript .= '//-->' . $this->_br . '</script>' . $this->_br;
    }
public function _prepareScript()
    {
        $this->_sPrescript =  '<script type="text/javascript">window.emosTrackVersion = 2;</script>' . $this->_br;

        $this->_sIncScript .= "<script type=\"text/javascript\" " .
        "src=\"" . $this->_sPathToFile . $this->_sScriptFileName . "\">" .
        "</script>" . $this->_br;

        $this->_sPostscript  = '<script type="text/javascript"><!--' . $this->_br;
        $this->_sPostscript .= $this->_tab . 'var emospro = {};' . $this->_br;

        $this->_sPostscript .= $this->_addJsFormat("content", $this->_content);
        $this->_sPostscript .= $this->_addJsFormat("orderProcess", $this->_orderProcess);
        $this->_sPostscript .= $this->_addJsFormat("siteid", $this->_siteid);
        $this->_sPostscript .= $this->_addJsFormat("langid", $this->_langid);
        $this->_sPostscript .= $this->_addJsFormat("countryid", $this->_countryid);
        $this->_sPostscript .= $this->_addJsFormat("pageId", $this->_pageid);
        $this->_sPostscript .= $this->_addJsFormat("scontact", $this->_scontact);
        $this->_sPostscript .= $this->_addJsFormat("download", $this->_download);
        $this->_sPostscript .= $this->_addJsFormat("billing", [$this->_billing]);

        $this->_sPostscript .= $this->_addJsFormat("search", [[$this->_searchQuery, $this->_searchNumberOfHits]]);
        $this->_sPostscript .= $this->_addJsFormat("register", [[$this->_registerUser, $this->_registerResult]]);
        $this->_sPostscript .= $this->_addJsFormat("login", [[$this->_loginUser, $this->_loginResult]]);

        $this->_sPostscript .= $this->_addJsFormat("ec_Event", $this->_ecEvent);

        $this->_sPostscript .= $this->_tab . 'window.emosPropertiesEvent(emospro);' . $this->_br;
        $this->_sPostscript .= '//-->' . $this->_br . '</script>' . $this->_br;
    }
public function _prepareScript ( ) { $ this -> _sPrescript = '<script type="text/javascript">window.emosTrackVersion = 2;</script>' . $ this -> _br ; $ this -> _sIncScript .= "<script type=\"text/javascript\" " . "src=\"" . $ this -> _sPathToFile . $ this -> _sScriptFileName . "\">" . "</script>" . $ this -> _br ; $ this -> _sPostscript = '<script type="text/javascript"><!--' . $ this -> _br ; $ this -> _sPostscript .= $ this -> _tab . 'var emospro = {};' . $ this -> _br ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "content" , $ this -> _content ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "orderProcess" , $ this -> _orderProcess ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "siteid" , $ this -> _siteid ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "langid" , $ this -> _langid ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "countryid" , $ this -> _countryid ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "pageId" , $ this -> _pageid ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "scontact" , $ this -> _scontact ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "download" , $ this -> _download ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "billing" , [ $ this -> _billing ] ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "search" , [ [ $ this -> _searchQuery , $ this -> _searchNumberOfHits ] ] ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "register" , [ [ $ this -> _registerUser , $ this -> _registerResult ] ] ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "login" , [ [ $ this -> _loginUser , $ this -> _loginResult ] ] ) ; $ this -> _sPostscript .= $ this -> _addJsFormat ( "ec_Event" , $ this -> _ecEvent ) ; $ this -> _sPostscript .= $ this -> _tab . 'window.emosPropertiesEvent(emospro);' . $ this -> _br ; $ this -> _sPostscript .= '//-->' . $ this -> _br . '</script>' . $ this -> _br ; }
formats up the connector script in a Econda ver 2 JS format
formats up the connector script in a Econda ver 2 JS format