[ Index ]

MailPress 7.0.1

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

title

Body

[close]

/mp-includes/class/options/tracking/metaboxes/mail/ -> m008.php (source)

   1  <?php
   2  class MP_Tracking_metabox_m008 extends MP_tracking_metabox_
   3  {
   4      var $id    = 'm008';
   5      var $context= 'normal';
   6      var $file     = __FILE__;
   7  
   8  	function meta_box( $mail )
   9      {
  10          global $wpdb;
  11          $tracks = $wpdb->get_results( $wpdb->prepare( "SELECT track, count( * ) as count FROM $wpdb->mp_tracks WHERE mail_id = %d AND track <> '_MailPress_mail_opened' GROUP BY 1 ORDER BY 2 DESC, 1 DESC LIMIT 10;", $mail->id ) );
  12          if ( $tracks )
  13          {
  14              $out = '';
  15  
  16              foreach( $tracks as $track )
  17              {
  18                  $out .= '( ' . $track->count . ' ) '  . MailPress_tracking::translate_track( $track->track, $mail->id, 50 ) . ' <br />';
  19              }
  20  
  21              echo $out;
  22          }
  23      }
  24  }
  25  new MP_Tracking_metabox_m008( __( 'Most clicked', 'MailPress' ) );


Generated: Mon Jan 28 00:07:10 2019 Cross-referenced by PHPXref 0.7.1