[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/ -> MP_tracking_useragent_.class.php (source)

   1  <?php
   2  abstract class MP_tracking_useragent_ extends MP_tracking_xml_
   3  {
   4      public $folder = 'useragents';
   5  
   6  	function __construct($title)
   7      {
   8          add_filter("MailPress_tracking_{$this->folder}_{$this->id}_get_info",        array($this, 'get_info'),    8, 1);
   9          parent::__construct($title);
  10      }
  11  
  12  	function get_info($useragent)
  13      {
  14          $ug = $this->get($useragent);
  15  
  16          $txt = '';
  17          if (isset($ug->icon_path)) $txt .= "<img src='" . $ug->icon_path . "' alt='" . esc_attr($ug->string) . "' />";
  18          if (isset($ug->link))
  19              $txt .= "&#160;<a href='" . $ug->link . "' title='" . $ug->full_name . "' >" . $ug->name . '</a>';
  20          else
  21              $txt .= '&#160;' . $ug->full_name;
  22          return trim($txt);
  23      }
  24  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1