Exemplo n.º 1
0
 /**
  * Creates a new instance of this class.
  *
  * @return NelioABFreeTrialPage the new instance of this class.
  *
  * @since 4.1.3
  */
 public function __construct()
 {
     $colorscheme = NelioABWpHelper::get_current_colorscheme();
     $title = __('Nelio A/B Testing — Free Trial', 'nelioab');
     $title .= sprintf(' <span class="nelio-ftcode" style="color:%1$s;border-color:%1$s;">%2$s%3$s</span>', $colorscheme['primary'], __('Code:', 'nelioab'), NelioABAccountSettings::get_nelioab_option('free_trial_code'));
     parent::__construct($title);
 }
Exemplo n.º 2
0
 public function __construct($title)
 {
     parent::__construct($title);
     $this->add_class('settings-page');
     $this->set_icon('icon-nelioab');
     $ae_sync_errors = NelioABSettings::get_unsync_fields();
     if (count($ae_sync_errors) > 0) {
         $msg = __('There was a problem while updating some of your options. The following fields could not be properly updated:</p>%s<p>Please, try it again in a few moments.', 'nelioab');
         $errors = '<ul>';
         if (in_array('algorithm', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Algorithm', 'nelioab') . '</li>';
         }
         if (in_array('make_site_consistent', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Site-wide Consistency', 'nelioab') . '</li>';
         }
         if (in_array('expl_ratio', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Exploitation or Exploration (using Greedy Algorithm)', 'nelioab') . '</li>';
         }
         if (in_array('get_params_visibility', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('A/B GET Params', 'nelioab') . '</li>';
         }
         if (in_array('hm_tracking_mode', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Heatmap Tracking', 'nelioab') . '</li>';
         }
         if (in_array('user_split', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Test Mode', 'nelioab') . '</li>';
         }
         if (in_array('ori_perc', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Original Percentage (using Prioritize Original Algorithm)', 'nelioab') . '</li>';
         }
         if (in_array('perc_of_tested_users', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Num. of Tested Users', 'nelioab') . '</li>';
         }
         if (in_array('quota_limit_per_exp', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Quota Limit', 'nelioab') . '</li>';
         }
         if (in_array('notification_email', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Notification E-Mail', 'nelioab') . '</li>';
         }
         if (in_array('notifications', $ae_sync_errors)) {
             $errors .= '<li>- ' . __('Notifications', 'nelioab') . '</li>';
         }
         $errors .= '</ul>';
         if ('<ul></ul>' == $errors) {
             $errors = '';
         }
         $errors = str_replace('<ul', '<ul style="padding-left:1em;"', $errors);
         global $nelioab_admin_controller;
         $nelioab_admin_controller->error_message = sprintf($msg, $errors);
     }
 }
 public function __construct($title)
 {
     parent::__construct($title);
     $this->set_icon('icon-nelioab');
 }
Exemplo n.º 4
0
 /**
  * It creates a new instance of this class.
  *
  * @param string $title The title of the page.
  *
  * @return NelioABAdminAjaxPage a new instance of this class.
  *
  * @since PHPDOC
  */
 public function __construct($title)
 {
     parent::__construct($title);
     $this->is_data_pending = false;
     $this->post_params = array();
 }
 public function __construct($title)
 {
     parent::__construct($title);
     $this->add_class('settings-page');
     $this->set_icon('icon-nelioab');
 }