extensions/extension.decaf_piwik_tracker_stats.inc.php
/**
 * adds the js code to the html <head> section
 */
adds the js code to the html  section
adds the js code to the html section
function decaf_piwik_tracker_stats($params)
{
  $mypage = 'decaf_piwik_tracker';
  global $REX;
  $piwik_config = parse_ini_file($REX['INCLUDE_PATH']. '/addons/'.$mypage.'/config/config.ini.php', true);
  $content = $params['subject'];
  $js = '  <script src="../files/addons/'.$mypage.'/raphael.js" type="text/javascript" charset="utf-8"></script>';
  $content = str_replace("</head>", $js."\n</head>", $content);
  return $content;
}
function decaf_piwik_tracker_stats ( $ params ) { $ mypage = 'decaf_piwik_tracker' ; global $ REX ; $ piwik_config = parse_ini_file ( $ REX [ 'INCLUDE_PATH' ] . '/addons/' . $ mypage . '/config/config.ini.php' , true ) ; $ content = $ params [ 'subject' ] ; $ js = '  <script src="../files/addons/' . $ mypage . '/raphael.js" type="text/javascript" charset="utf-8"></script>' ; $ content = str_replace ( " </head> " , $ js . " \n </head> " , $ content ) ; return $ content ; }
adds the js code to the html <head> section
adds the js code to the html <head > section
// Backend - include raphael.js