[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/template/inc_script/frontend_render/disabled/ -> vgwort.php (source)

   1  <?php
   2  /*
   3  
   4      a simple way to handle tracing pixel of VG Wort
   5      
   6      1) define the tracking code
   7         Fill in the unique text ID in article keyword like
   8         VGW:e2531725f43b35656065
   9      2) put the replacement tag {VGWort}
  10         inside your template source code
  11  
  12  */
  13  
  14  if(is_array($content['all_keywords']) && count($content['all_keywords'])) {
  15      foreach($content['all_keywords'] as $vgwort) {
  16          if(strpos($vgwort, 'VGW:') === 0) {
  17              $vgwort = str_replace('VGW:', '', $vgwort);
  18              $vgwort = '<img src="http://vg00.met.vgwort.de/na/'.$vgwort.'?timestamp='.time().'" width="0" height="0" alt="" />';
  19              $content['all'] = str_replace('{VGWort}', $vgwort, $content['all']);
  20              break;
  21          }
  22      }
  23  }
  24  $content['all'] = str_replace('{VGWort}', '', $content['all']);
  25  
  26  
  27  ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7