[ Index ]

MailPress 7.0.1

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

title

Body

[close]

/ -> mailpress-config-sample.php (source)

   1  <?php
   2  /**
   3   * Optional config file to 
   4      ** rename mp-content folder :
   5          *** rename mp-content folder to the new folder name ( e.g. : mailpress-content )
   6          *** create mailpress-config.php file from this file inside mailpress folder, rename "mp-content" ( e.g. : replace 'mp-content' by 'mailpress-content' ).
   7          *** check under Wp Admin : Mails > Themes, that themes are located with the right path.
   8      ** place mp-content folder outside mailpress folder
   9          *** copy mp-content folder in the mailpress parent directory with a new folder name ( e.g. : mailpress-content )
  10          *** create mailpress-config.php file from this file inside mailpress parent directory, rename "mp-content" ( e.g. : replace 'mp-content' by 'mailpress-content' ).
  11          *** check under Wp Admin : Mails > Themes, that themes are located with the right path.
  12  
  13       ** define use of wp_enqueue_script for mailpress subscription form >> requires : wp_print_scripts(); in your wordpress theme footer !! .
  14  
  15       ** define log for debug purpose only, uncomment appropriate line.
  16  */
  17  
  18  // 0.
  19  
  20  //define ( 'MP_Ip_ipinfodb_ApiKey',     '<- get your api key here : http://www.ipinfodb.com/register.php ->' );
  21  
  22  // 1.
  23  
  24  /** Folder name of MailPress 'mp-content'. */
  25  //define ( 'MP_CONTENT_FOLDER',     'mp-content' );
  26  
  27  // 2.
  28  
  29  /** Since MailPress 6.0, MP_wp_enqueue_script is set to true if not defined */
  30  /** if your WordPress theme has a wp_footer in it's footer.php, you donot need to uncomment the following line */
  31  //define ( 'MP_wp_enqueue_script', false );
  32  
  33  // 3.
  34  
  35  /** MailPress dev log ( uncomment if necessary ) */
  36  //define ( 'MP_DEBUG_LOG', true );
  37  
  38  
  39  
  40  
  41  
  42  /* That's all, stop editing! Check right path under Mails > Themes and Happy mailing. */
  43  
  44  if ( defined( 'MP_CONTENT_FOLDER' ) )
  45  {
  46      /** Absolute path to the MailPress 'mp-content' folder. */
  47      define ( 'MP_CONTENT_DIR',     __DIR__ . '/' . MP_CONTENT_FOLDER . '/' );
  48  
  49      /** Relative path to the MailPress 'mp-content' folder. */
  50      if ( MP_FOLDER != basename( __DIR__ ) )
  51          define ( 'MP_PATH_CONTENT',     dirname( MP_PATH ) . '/'     . MP_CONTENT_FOLDER . '/' );
  52  }


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