[ Index ]

MailPress 7.2

[ 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 ) )
  18          {
  19  //            $txt .= '<img class="' . $ug->classes  . '" src="' . $ug->icon_path . '" alt="' . esc_attr( $ug->string ) . '" />';
  20              $txt .= '<div class="' . $ug->classes  . '" title="' . esc_attr( $ug->string ) . '" ></div>';
  21          }
  22          if ( isset( $ug->link ) )
  23          {
  24              $txt .= '&#160;<a href="' . $ug->link . '" title="' . $ug->full_name . '" >' . $ug->name . '</a>';
  25          }
  26          else
  27          {
  28              $txt .= '&#160;' . $ug->full_name;
  29          }
  30          return trim( $txt );
  31      }
  32  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1