[ Index ]

MailPress 7.1

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

title

Body

[close]

/mp-content/add-ons/ -> MailPress_signer_smime.php (source)

   1  <?php
   2  if ( class_exists( 'MailPress' ) && !class_exists( 'Mailpress_signer_smime' ) )
   3  {
   4  /*
   5  Plugin Name: MailPress_signer_smime 
   6  Plugin URI: http://blog.mailpress.org/tutorials/add-ons/signer_smime/
   7  Description: Signer : use of S/MIME
   8  Version: 7.1
   9  */
  10  
  11  class Mailpress_signer_smime
  12  {
  13      const option_name = 'MailPress_signer_smime';
  14  
  15  	function __construct()
  16      {
  17          new MP_Swift_Signer_smime();
  18  
  19  // for wp admin
  20          if ( is_admin() )
  21          {
  22          // for link on plugin page
  23              add_filter( 'plugin_action_links',             array( __CLASS__, 'plugin_action_links' ), 10, 2 );
  24          }
  25      }
  26  
  27  ////  ADMIN  ////
  28  ////  ADMIN  ////
  29  ////  ADMIN  ////
  30  ////  ADMIN  ////
  31  
  32  // for link on plugin page
  33  	public static function plugin_action_links( $links, $file )
  34      {
  35          return MailPress::plugin_links( $links, $file, plugin_basename( __FILE__ ), 'signer_smime' );
  36      }
  37  }
  38  new Mailpress_signer_smime();
  39  }


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1