[ Index ]

MailPress 544

[ 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  //define ('MP_Ip_quova_ApiKey',     '<- get your api key here : http://developer.quova.com/member/register ->');
  23  //define ('MP_Ip_quova_Secret',     '<- get your secret  here : http://developer.quova.com/member/register ->');
  24  
  25  // 1.
  26  
  27  /** Folder name of MailPress 'mp-content'. */
  28  //define ('MP_CONTENT_FOLDER',     'mp-content');
  29  
  30  // 2.
  31  
  32  /** MailPress subscription form wp_enqueue_script (uncomment if necessary) */
  33  /** requires : wp_print_scripts(); in your wordpress theme footer !! */
  34  //define ('MP_wp_enqueue_script', true);
  35  
  36  // 3.
  37  
  38  /** MailPress dev log (uncomment if necessary) */
  39  //define ('MP_DEBUG_LOG', true);
  40  
  41  
  42  
  43  
  44  
  45  /* That's all, stop editing! Check right path under Mails > Themes and Happy mailing. */
  46  
  47  if ( defined('MP_CONTENT_FOLDER') )
  48  {
  49      /** Absolute path to the MailPress 'mp-content' folder. */
  50      define ('MP_CONTENT_DIR',     dirname(__FILE__) . '/' . MP_CONTENT_FOLDER . '/' );
  51  
  52      /** Relative path to the MailPress 'mp-content' folder. */
  53      if ( MP_FOLDER != basename(dirname(__FILE__)) )
  54          define ('MP_PATH_CONTENT',     dirname(MP_PATH) . '/'     . MP_CONTENT_FOLDER . '/' );
  55  }


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