/** * It creates a new instance of this class. * * @param string $title The title of the page. * Default: empty string. * * @return NelioABAdminPage a new instance of this class. * * @since PHPDOC */ public function __construct($title = '') { $this->title = $title; $this->title_action = ''; $this->icon_id = 'icon-options-general'; $this->classes = array(); $this->message = false; try { $config = NelioABAccountSettings::check_user_settings(); } catch (Exception $e) { $config = false; } if ($config && NelioABSettings::is_upgrade_message_visible()) { $this->message = sprintf(__('<b><a href="%s">Upgrade to our Professional Plan</a></b> and get the most out of Nelio A/B Testing. Track <b>more visitors</b>, use the service on <b>more sites</b>, and benefit from our <b>consulting services</b>. <small><a class="dismiss-upgrade-notice" href="#" onClick="javascript:dismissUpgradeNotice();">Dismiss</a></small>', 'nelioab'), 'mailto:support@neliosoftware.com?' . 'subject=Nelio%20A%2FB%20Testing%20-%20Upgrade%20my%20Subscription&' . 'body=' . esc_html('I\'d like to upgrade my subscription plan. I\'m subscribed to Nelio A/B Testing with the following e-mail address: ' . NelioABAccountSettings::get_email() . '.')); } }