PHP 8.2.31
Preview: Settings.php Size: 1.25 KB
//home/nshryvcy/blissfulnepal.com/wp-content/plugins/newsletter/classes/Newsletter/Subscription/Settings.php

<?php

/**
 * @property string $optin
 *
 * @property int $welcome_page_id
 * @property string $welcome_page_url
 * @property string $welcome_page_text
 *
 * @property int $welcome_email
 * @property int $welcome_email_id
 * @property string $welcome_email_subject
 * @property string $welcome_email_body
 *
 *
 *
 * @property int $confirmation_page_id
 * @property string $confirmation_page_url
 * @property string $confirmation_page_text
 *
 * @property int $confirmation_email_type
 * @property int $confirmation_email_id
 * @property string $confirmation_email_subject
 * @property string $confirmation_email_body
 *
 * @property int $notify
 * @property string $notify_email
 *
 */
class Settings {

    var $data = [];
    /** @var NewsletterSubscription */
    var $module = null;

    function __construct($module) {
        $this->module = $module;
    }

    function __get($name) {
        switch ($name) {
            case 'optin':
                return ($this->data['noconfirmation'] ?? 1) ? 'single' : 'double';

            case 'welcome_email_body':
                return $this->module->get_text('confirmed_message');

                return ($this->data['noconfirmation'] ?? 1) ? 'single' : 'double';

        }
        return $this->data[$name] ?? null;
    }
}

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
1.25 KB lrw-r--r-- 2026-06-03 14:57:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).