LLMS_Meta_Box_Email_Settings
Meta box Certificate Options class.
Description Description
Displays email settings meta box. Only displays on email post.
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.email.settings.php
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | class LLMS_Meta_Box_Email_Settings extends LLMS_Admin_Metabox { /** * Configure the metabox settings. * * @since 3.0.0 * @since 3.1.4 Unknown. * * @return void */ public function configure() { $this ->id = 'lifterlms-email' ; $this ->title = __( 'Email Settings' , 'lifterlms' ); $this ->screens = array ( 'llms_email' , ); $this ->priority = 'high' ; } /** * Builds array of metabox options. * * Array is called in output method to display options. * Appropriate fields are generated based on type. * * @since 3.0.0 * @since 3.1.0 Unknown. * @since 3.37.12 Allow some fields to store values with quotes. * * @return array Array of metabox fields. */ public function get_fields() { $email_merge = array ( '{student_email}' => __( 'Student Email' , 'lifterlms' ), '{admin_email}' => __( 'Admin Email' , 'lifterlms' ), ); return array ( array ( 'title' => 'Settings' , 'fields' => array ( array ( 'type' => 'text' , 'label' => __( 'Email Subject' , 'lifterlms' ), 'desc' => __( 'This will be used for the subject line of your email.' , 'lifterlms' ) . llms_merge_code_button( '#' . $this ->prefix . 'email_subject' , false ), 'id' => $this ->prefix . 'email_subject' , 'class' => 'code input-full' , 'value' => '' , 'desc_class' => 'd-all' , 'group' => 'top' , 'sanitize' => 'no_encode_quotes' , ), array ( 'type' => 'text' , 'label' => __( 'Email Heading' , 'lifterlms' ), 'desc' => __( 'This is the heading for your email. It will display above the content.' , 'lifterlms' ), 'id' => $this ->prefix . 'email_heading' , 'class' => 'code input-full' , 'value' => '' , 'desc_class' => 'd-all' , 'group' => 'bottom' , 'sanitize' => 'no_encode_quotes' , ), array ( 'type' => 'text' , 'label' => __( 'Email To:' , 'lifterlms' ), 'desc' => __( 'Separate multiple address with a comma.' , 'lifterlms' ) . llms_merge_code_button( '#' . $this ->prefix . 'email_to' , false, $email_merge ), 'default' => '{student_email}' , 'id' => $this ->prefix . 'email_to' , 'class' => 'code input-full' , 'required' => true, 'value' => '' , 'desc_class' => 'd-all' , ), array ( 'type' => 'text' , 'label' => __( 'Email CC:' , 'lifterlms' ), 'desc' => __( 'Separate multiple address with a comma.' , 'lifterlms' ) . llms_merge_code_button( '#' . $this ->prefix . 'email_cc' , false, $email_merge ), 'id' => $this ->prefix . 'email_cc' , 'class' => 'code input-full' , 'value' => '' , 'desc_class' => 'd-all' , ), array ( 'type' => 'text' , 'label' => __( 'Email BCC:' , 'lifterlms' ), 'desc' => __( 'Separate multiple address with a comma.' , 'lifterlms' ) . llms_merge_code_button( '#' . $this ->prefix . 'email_bcc' , false, $email_merge ), 'id' => $this ->prefix . 'email_bcc' , 'class' => 'code input-full' , 'value' => '' , 'desc_class' => 'd-all' , ), ), ), ); } } |
Expand full source code Collapse full source code View on GitHub
Methods Methods
- configure — Configure the metabox settings.
- get_fields — Builds array of metabox options.
Changelog Changelog
Version | Description |
---|---|
3.37.12 | Allow some fields to store values with quotes. |
3.1.4 | Unknown. |
3.1.0 | Unknown. |
1.0.0 | Introduced. |