├── LICENSE.txt ├── README.txt ├── admin ├── class-mailtpl-admin.php ├── css │ └── mailtpl-admin.css ├── index.php ├── js │ ├── mailtpl-admin.js │ ├── mailtpl-pointer.js │ └── mailtpl-public.js ├── templates │ ├── default.php │ └── partials │ │ ├── default-message.php │ │ ├── email-content.php │ │ ├── footer.php │ │ └── header.php └── test.php ├── assets ├── css │ ├── customizer-icon-select.css │ ├── customizer-range-value-control.css │ ├── customizer-repeater-control.css │ ├── customizer-styles.css │ ├── customizer-toggle-switch-control.css │ └── fonts │ │ ├── iconpicker.eot │ │ ├── iconpicker.svg │ │ ├── iconpicker.ttf │ │ ├── iconpicker.woff │ │ ├── woomail-social.eot │ │ ├── woomail-social.svg │ │ ├── woomail-social.ttf │ │ ├── woomail-social.woff │ │ └── woomail-social.woff2 ├── fonts │ ├── iconpicker.eot │ ├── iconpicker.svg │ ├── iconpicker.ttf │ └── iconpicker.woff ├── images │ ├── WooCommerce-wordpress-01.png │ ├── WooCommerce-wordpress-02.png │ ├── attendees.xlsx │ ├── black │ │ ├── digg.png │ │ ├── dribbble.png │ │ ├── facebook.png │ │ ├── google-plus.png │ │ ├── instagram.png │ │ ├── link.png │ │ ├── linkedin.png │ │ ├── pinterest.png │ │ ├── rss.png │ │ ├── stumbleupon.png │ │ ├── tumblr.png │ │ ├── twitter.png │ │ ├── vimeo.png │ │ ├── vk.png │ │ ├── whatsapp.png │ │ └── youtube.png │ ├── gray │ │ ├── digg.png │ │ ├── dribbble.png │ │ ├── facebook.png │ │ ├── google-plus.png │ │ ├── instagram.png │ │ ├── link.png │ │ ├── linkedin.png │ │ ├── pinterest.png │ │ ├── rss.png │ │ ├── stumbleupon.png │ │ ├── tumblr.png │ │ ├── twitter.png │ │ ├── vimeo.png │ │ ├── vk.png │ │ ├── whatsapp.png │ │ └── youtube.png │ ├── icon-128x128.png │ ├── image-1-01.png │ ├── image-2-02.png │ ├── kt_flat_template.jpg │ ├── kt_full_template.jpg │ ├── kt_skinny_template.jpg │ └── white │ │ ├── digg.png │ │ ├── dribbble.png │ │ ├── facebook.png │ │ ├── google-plus.png │ │ ├── instagram.png │ │ ├── link.png │ │ ├── linkedin.png │ │ ├── pinterest.png │ │ ├── rss.png │ │ ├── stumbleupon.png │ │ ├── tumblr.png │ │ ├── twitter.png │ │ ├── vimeo.png │ │ ├── vk.png │ │ ├── whatsapp.png │ │ └── youtube.png └── js │ ├── customizer-range-value-control.js │ ├── customizer-repeater-control.js │ ├── customizer-scripts.js │ └── customizer-toggle-switch-control.js ├── email-templates.php ├── includes ├── class-customizer-mailtplimportexport-control.php ├── class-customizer-mailtplinfoblock-control.php ├── class-customizer-mailtplsendemail-control.php ├── class-customizer-mailtpltemplateload-control.php ├── class-customizer-range-value-control.php ├── class-customizer-repeater-control.php ├── class-customizer-toggle-control.php ├── class-mailtpl-activator.php ├── class-mailtpl-customizer.php ├── class-mailtpl-deactivator.php ├── class-mailtpl-i18n.php ├── class-mailtpl-loader.php ├── class-mailtpl-mailer.php ├── class-mailtpl-woomail-customizer.php ├── class-mailtpl-woomail-import-export.php ├── class-mailtpl-woomail-import-option.php ├── class-mailtpl-woomail-preview.php ├── class-mailtpl-woomail-settings.php ├── class-mailtpl-woomail-woo.php ├── class-mailtpl.php ├── customize-controls │ ├── class-font-size-customize-control.php │ └── class-send-mail-customize-control.php └── index.php ├── index.php ├── languages ├── email-templates-de_DE.mo ├── email-templates-es_ES.mo ├── email-templates-fa_IR.mo ├── email-templates-fr_FR.mo ├── email-templates-nl_NL.mo ├── email-templates-pt_BR.mo ├── email-templates-ru_RU.mo ├── email-templates-zh_CN.mo ├── email-templates.mo └── email-templates.po ├── preview.php ├── templates ├── wcmp │ └── vendor-new-order.php └── woo │ └── emails │ ├── admin-cancelled-order.php │ ├── admin-failed-order.php │ ├── admin-new-order.php │ ├── admin-new-renewal-order.php │ ├── admin-payment-retry.php │ ├── cancelled-subscription.php │ ├── customer-completed-order.php │ ├── customer-completed-renewal-order.php │ ├── customer-completed-switch-order.php │ ├── customer-invoice.php │ ├── customer-new-account.php │ ├── customer-note.php │ ├── customer-on-hold-order.php │ ├── customer-payment-retry.php │ ├── customer-processing-order.php │ ├── customer-processing-renewal-order.php │ ├── customer-refunded-order.php │ ├── customer-renewal-invoice.php │ ├── customer-reset-password.php │ ├── email-addresses.php │ ├── email-customer-details.php │ ├── email-downloads.php │ ├── email-footer.php │ ├── email-header.php │ ├── email-order-details.php │ ├── email-order-items.php │ ├── email-styles.php │ ├── subscription-info.php │ └── waitlist-mailout.php ├── uninstall.php └── wpml-config.xml /README.txt: -------------------------------------------------------------------------------- 1 | === Email Templates Customizer and Designer for WordPress and WooCommerce === 2 | Contributors: wpexpertsio 3 | Tags: Email templates, email designer, email customizer, email, woocommerce email 4 | Requires at least: 7.4 5 | Tested up to: 6.1.1 6 | Stable tag: 1.4 7 | License: GPLv2 or later 8 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 | 10 | Send beautiful emails with the WordPress Email Templates plugin 11 | == Description == 12 | 13 | Send beautiful emails with the WordPress Email Templates plugin. Choose your template style, add a logo or some text, change colors, edit footer and start sending nice emails in WordPress. 14 | 15 | Email Template plugin uses Customizer to make it easier. Preview your changes or send a test email with just a few clicks. **Requires WordPress 4.0.0** 16 | 17 | Compatible with : [Post SMTP](https://wordpress.org/plugins/post-smtp/) 18 | 19 | = Help with translations = 20 | 21 | Send your translations to [Transifex](https://www.transifex.com/projects/p/wp-email-templates/) 22 | 23 | = Currently Available in: = 24 | * English 25 | * Spanish 26 | * French 27 | * Chinese 28 | * Portuguese 29 | * Dutch 30 | * Persian 31 | * Russian 32 | * German 33 | 34 | = Collaborate in Github = - [https://github.com/wpexpertsio/wordpress-email-templates](https://github.com/wpexpertsio/wordpress-email-templates) 35 | 36 | == Installation == 37 | 38 | 1. Upload the plugin in /wp-admin/plugin-install.php 39 | 2. Activate the plugin through the 'Plugins' menu in WordPress 40 | 3. Click on Email Templates -> "WordPress Email" to start editing 41 | 4. Click on Email Templates -> "WooCommerce Email" to start editing 42 | 43 | == Frequently Asked Questions == 44 | 45 | = How to add a custom template? = 46 | 47 | Copy the templates folder into your theme , then in functions.php add the following: 48 | 49 | `add_filter(‘mailtpl/customizer_template’, function(){ 50 | return get_stylesheet_directory() . “/admin/templates/default.php”; 51 | });` 52 | 53 | == Screenshots == 54 | 55 | 1. Email Templates - Settings 56 | 2. Boxed layout 57 | 3. Full-width layout 58 | 4. Email Notification 59 | 5. Email Type 60 | 6. Background Color 61 | 7. Bundle Icon 62 | 8. Send Preview Email 63 | 9. Email Type and Text 64 | 10. Font Family 65 | 11. WooCommerce Emails 66 | 67 | == Changelog == 68 | 69 | = 1.4 = 70 | * NEW - WooCommerce Email Customizer Added 71 | 72 | = 1.3.2.1 = 73 | * Emails not being send when multiple emails where being sent at the same time 74 | 75 | = 1.3.2 = 76 | * Support for multiple templates PR #29 77 | * Fix Increase priority for the preview template 78 | 79 | = 1.3.1.2 = 80 | * Fixed css width 81 | * new filter for default message 82 | 83 | = 1.3.1.1 = 84 | * Only filter non html messages 85 | * Fixed bug introduced on 1.3.1 86 | 87 | = 1.3.1 = 88 | * Security fix to prevent html injection 89 | * Filter attributes for images 90 | 91 | = 1.3 = 92 | * Instead of multiple filters we now just modify wp_mail to make plugin more compatible 93 | with transactional mail plugins 94 | 95 | = 1.2.2.3 = 96 | * Fixed issue with maxwith not working on certain installs. 97 | 98 | = 1.2.2.2 = 99 | * Fixed issue with boxed layout 100 | 101 | = 1.2.2.1 = 102 | * Text domain update 103 | 104 | = 1.2.2 = 105 | * Added image support in header text 106 | * Fixed issue with spaces on gravity forms ( gravity plugin needs to be >= 2.2.1.5 ) 107 | 108 | = 1.2.1 = 109 | * Added shortcode support in header/footer 110 | * Header text now it's used for alt image when using images 111 | * Fixed bug where image was not responsive on mobile devices 112 | 113 | = 1.2 = 114 | * Added custom css support on template section 115 | * Added link color in body section 116 | * Updated templates with changes above 117 | * Mailgun / sengrid integration 118 | 119 | = 1.1.4 = 120 | 121 | * Added body size to template section 122 | * Leaving emtpty from name & from email will let you use other plugins settings now 123 | * Logo alt text is now site description by default 124 | * Removed other panels showing on email templates customizer 125 | * Removed email templates panel from normal customizer 126 | 127 | = 1.1.3.1 = 128 | * Fixed woocommerce preview link 129 | 130 | = 1.1.3 = 131 | * Fixed bug with some links missing or not clickable 132 | * Added more languages and updated some 133 | * Added more action hooks for devs 134 | 135 | = 1.1.2.1 = 136 | * Remove "powered by" by default 137 | * Updated languages 138 | 139 | = 1.1.2 = 140 | * Fixed bug with powered by still showing on some mail clients 141 | * Added new languages 142 | 143 | = 1.1.1 = 144 | * Added Postman SMTP compatibility 145 | * Added WP SMTP compatibility 146 | * Added Easy WP SMTP compatibility 147 | * Added Easy SMTP Mail compatibility 148 | 149 | = 1.1 = 150 | * Fixed bug with wpmandrill 151 | * Added chinese, spanish and portuguese languages 152 | * Added new font size control 153 | * WooCommerce Integration 154 | * Easy Digital Downloads Integration 155 | * Added Email body settings 156 | 157 | = 1.0.2 = 158 | 159 | * Fixed email link on retrieve password emails from WP 160 | 161 | = 1.0.1 = 162 | 163 | * Bug - Template is cached to avoid issues when sending multiple emails 164 | * Added fallback text email for non html email clients and to improve inbox hits 165 | * Added site url to the logo/text logo in header 166 | * Fixed some typos in descriptions 167 | * Added Emails templates menu using add_submenu_page 168 | 169 | 170 | = 1.0 = 171 | * First release 172 | -------------------------------------------------------------------------------- /admin/css/mailtpl-admin.css: -------------------------------------------------------------------------------- 1 | /** 2 | * All of the CSS for your admin-specific functionality should be 3 | * included in this file. 4 | */ 5 | .font_value { 6 | float: left; 7 | BACKGROUND-COLOR: #fff; 8 | padding: 5px; 9 | margin-right: 10px; 10 | margin-top: -4px; 11 | border: 1px solid #E6E6E6; 12 | } -------------------------------------------------------------------------------- /admin/index.php: -------------------------------------------------------------------------------- 1 | ' ); 27 | } else { 28 | $( '#logo a' ).html( '' ); 29 | } 30 | } ); 31 | } ); 32 | wp.customize( 'mailtpl_opts[header_logo_text]', function( value ) { 33 | value.bind( function( newval ) { 34 | if( newval.length && ! $('#logo img.mailtpl_img').length ) 35 | $( '#logo a' ).html( newval ); 36 | if( newval.length && $('#logo img').length ) 37 | $( '#logo img' ).prop('alt', newval ); 38 | } ); 39 | } ); 40 | wp.customize( 'mailtpl_opts[header_aligment]', function( value ) { 41 | value.bind( function( newval ) { 42 | if( newval.length ) 43 | $( '#logo' ).css( 'text-align', newval ); 44 | } ); 45 | } ); 46 | wp.customize( 'mailtpl_opts[header_bg]', function( value ) { 47 | value.bind( function( newval ) { 48 | if( newval.length ) 49 | $( '#template_header' ).css( 'background-color', newval ); 50 | } ); 51 | } ); 52 | wp.customize( 'mailtpl_opts[header_text_size]', function( value ) { 53 | value.bind( function( newval ) { 54 | if( newval.length ) 55 | $( '#logo' ).css( 'font-size', newval +'px' ); 56 | } ); 57 | } ); 58 | wp.customize( 'mailtpl_opts[header_text_color]', function( value ) { 59 | value.bind( function( newval ) { 60 | if( newval.length ) 61 | $( '#logo a' ).css( 'color', newval ); 62 | } ); 63 | } ); 64 | 65 | wp.customize( 'mailtpl_opts[email_body_bg]', function( value ) { 66 | value.bind( function( newval ) { 67 | if( newval.length ) 68 | $( '#mailtpl_body_bg' ).css( 'background-color', newval ); 69 | } ); 70 | } ); 71 | wp.customize( 'mailtpl_opts[body_text_size]', function( value ) { 72 | value.bind( function( newval ) { 73 | if( newval.length ) 74 | $( '#mailtpl_body' ).css( 'font-size', newval +'px' ); 75 | } ); 76 | } ); 77 | wp.customize( 'mailtpl_opts[body_text_color]', function( value ) { 78 | value.bind( function( newval ) { 79 | if( newval.length ) 80 | $( '#mailtpl_body' ).css( 'color', newval ); 81 | } ); 82 | } ); 83 | wp.customize( 'mailtpl_opts[body_href_color]', function( value ) { 84 | value.bind( function( newval ) { 85 | if( newval.length ) 86 | $( '#template_body a' ).css( 'color', newval ); 87 | } ); 88 | } ); 89 | wp.customize( 'mailtpl_opts[footer_aligment]', function( value ) { 90 | value.bind( function( newval ) { 91 | if( newval.length ) 92 | $( '#credit' ).css( 'text-align', newval ); 93 | } ); 94 | } ); 95 | wp.customize( 'mailtpl_opts[footer_bg]', function( value ) { 96 | value.bind( function( newval ) { 97 | if( newval.length ) 98 | $( '#template_footer' ).css( 'background-color', newval ); 99 | } ); 100 | } ); 101 | 102 | wp.customize( 'mailtpl_opts[footer_text_size]', function( value ) { 103 | value.bind( function( newval ) { 104 | if( newval.length ) 105 | $( '#credit' ).css( 'font-size', newval +'px' ); 106 | } ); 107 | } ); 108 | wp.customize( 'mailtpl_opts[footer_text_color]', function( value ) { 109 | value.bind( function( newval ) { 110 | if( newval.length ) 111 | $( '#credit' ).css( 'color', newval ); 112 | } ); 113 | } ); 114 | 115 | 116 | wp.customize( 'mailtpl_opts[footer_text]', function( value ) { 117 | value.bind( function( newval ) { 118 | $( '#credit' ).html( newval ); 119 | } ); 120 | } ); 121 | 122 | wp.customize( 'mailtpl_opts[footer_powered_by]', function( value ) { 123 | value.bind( function( newval ) { 124 | if( newval == 'off' ) { 125 | $( '#powered' ).hide(); 126 | } else { 127 | $( '#powered' ).show(); 128 | } 129 | } ); 130 | } ); 131 | 132 | 133 | })( jQuery ); 134 | -------------------------------------------------------------------------------- /admin/templates/default.php: -------------------------------------------------------------------------------- 1 |

2 |

3 |

leave a nice review on WordPress. It will be a tremendous help for us!', 'mailtpm' ), 'https://wordpress.org/support/view/plugin-reviews/email-templates?filter=5');?>

4 | 5 |

Placeholders

6 |

7 | -------------------------------------------------------------------------------- /admin/templates/partials/email-content.php: -------------------------------------------------------------------------------- 1 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |

Powered by Email Templates Plugin

66 | 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /admin/templates/partials/header.php: -------------------------------------------------------------------------------- 1 | 69 | 70 | 71 | 72 | <?php echo get_bloginfo('name'); ?> 73 | 78 | 81 | 82 | 83 |
84 | 85 | 86 | 57 | 58 | 59 | 82 | 83 |
87 | 88 | 89 | 118 | 119 | 120 | 53 | 54 |
90 | 91 | 92 | 93 | 114 | 115 |
94 |

95 | 'max-width:100%;')); 99 | 100 | $header_logo_attr = []; 101 | foreach($attrs as $attr_key => $attr_value) 102 | $header_logo_attr[] = sanitize_key($attr_key).'='.sanitize_text_field($attr_value); 103 | 104 | echo ''. apply_filters( 'mailtpl/templates/header_logo_alt', !empty($settings['header_logo_text']) ? do_shortcode( strip_tags($settings['header_logo_text']) ) : get_bloginfo( 'description' ) ) .''; 105 | } elseif ( !empty( $settings['header_logo_text'] ) ) { 106 | echo do_shortcode($settings['header_logo_text']); 107 | } else { 108 | echo get_bloginfo('name'); 109 | } ?> 110 | 111 |

112 | 113 |
116 | 117 |
121 | 122 | 123 | 124 | 49 | 50 |
125 | 126 | 127 | 128 | 98 | 101 | 109 | 110 | id == 'mailtpl_body_size' ) { 11 | $range_min = '320'; 12 | $range_max = '1280'; 13 | } 14 | ?> 22 | -------------------------------------------------------------------------------- /languages/email-templates-de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-de_DE.mo -------------------------------------------------------------------------------- /languages/email-templates-es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-es_ES.mo -------------------------------------------------------------------------------- /languages/email-templates-fa_IR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-fa_IR.mo -------------------------------------------------------------------------------- /languages/email-templates-fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-fr_FR.mo -------------------------------------------------------------------------------- /languages/email-templates-nl_NL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-nl_NL.mo -------------------------------------------------------------------------------- /languages/email-templates-pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-pt_BR.mo -------------------------------------------------------------------------------- /languages/email-templates-ru_RU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-ru_RU.mo -------------------------------------------------------------------------------- /languages/email-templates-zh_CN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates-zh_CN.mo -------------------------------------------------------------------------------- /languages/email-templates.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/languages/email-templates.mo -------------------------------------------------------------------------------- /languages/email-templates.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: Email Templates\n" 4 | "POT-Creation-Date: 2015-09-20 10:21-0300\n" 5 | "PO-Revision-Date: 2015-09-20 10:22-0300\n" 6 | "Last-Translator: \n" 7 | "Language-Team: Timersys \n" 8 | "Language: en_US\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "X-Generator: Poedit 1.7.4\n" 13 | "X-Poedit-Basepath: .\n" 14 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 15 | "X-Poedit-KeywordsList: __;_e\n" 16 | "X-Poedit-SearchPath-0: ../.\n" 17 | 18 | #: .././admin/class-mailtpl-admin.php:169 19 | #: .././includes/class-mailtpl-customizer.php:55 20 | msgid "Email Templates" 21 | msgstr "" 22 | 23 | #: .././admin/class-mailtpl-admin.php:170 24 | msgid "Now you can edit your email template right in the Appearance menu" 25 | msgstr "" 26 | 27 | #: .././admin/templates/partials/default-message.php:1 28 | msgid "Here you will see the email content that is normally sent in WordPress." 29 | msgstr "" 30 | 31 | #: .././admin/templates/partials/default-message.php:2 32 | msgid "" 33 | "The email template is responsive an fully customizable. I hope you enjoy it!" 34 | msgstr "" 35 | 36 | #: .././admin/templates/partials/default-message.php:3 37 | #, php-format 38 | msgid "" 39 | "We would like to ask you a little favour. If you are happy with the plugin " 40 | "and can take a minute please leave a nice " 41 | "review on WordPress. It will be a tremendous help for us!" 42 | msgstr "" 43 | 44 | #: .././admin/templates/partials/default-message.php:6 45 | msgid "" 46 | "You can use any of these placeholders in your emails content or templates " 47 | "and they will be automatically replaced" 48 | msgstr "" 49 | 50 | #: .././admin/test.php:25 51 | msgid "MyTheme Options" 52 | msgstr "" 53 | 54 | #: .././admin/test.php:28 55 | msgid "Allows you to customize some example settings for MyTheme." 56 | msgstr "" 57 | 58 | #: .././admin/test.php:47 59 | msgid "Link Color" 60 | msgstr "" 61 | 62 | #: .././includes/class-mailtpl-customizer.php:56 63 | msgid "" 64 | "Within the Email Templates customizer you can change how your WordPress " 65 | "Emails looks. It's fully compatible with WooCommerce and Easy Digital " 66 | "Downloads html emails" 67 | msgstr "" 68 | 69 | #: .././includes/class-mailtpl-customizer.php:62 70 | msgid "Settings" 71 | msgstr "" 72 | 73 | #: .././includes/class-mailtpl-customizer.php:66 74 | msgid "Template" 75 | msgstr "" 76 | 77 | #: .././includes/class-mailtpl-customizer.php:70 78 | msgid "Email Header" 79 | msgstr "" 80 | 81 | #: .././includes/class-mailtpl-customizer.php:74 82 | msgid "Email Body" 83 | msgstr "" 84 | 85 | #: .././includes/class-mailtpl-customizer.php:78 86 | msgid "Footer" 87 | msgstr "" 88 | 89 | #: .././includes/class-mailtpl-customizer.php:82 90 | #: .././includes/class-mailtpl-customizer.php:601 91 | msgid "Send test email" 92 | msgstr "" 93 | 94 | #: .././includes/class-mailtpl-customizer.php:179 95 | msgid "From name" 96 | msgstr "" 97 | 98 | #: .././includes/class-mailtpl-customizer.php:183 99 | #: .././includes/class-mailtpl-customizer.php:201 100 | msgid "Default: " 101 | msgstr "" 102 | 103 | #: .././includes/class-mailtpl-customizer.php:197 104 | msgid "From Email" 105 | msgstr "" 106 | 107 | #: .././includes/class-mailtpl-customizer.php:228 108 | msgid "Choose one" 109 | msgstr "" 110 | 111 | #: .././includes/class-mailtpl-customizer.php:250 112 | #: .././includes/class-mailtpl-customizer.php:341 113 | #: .././includes/class-mailtpl-customizer.php:405 114 | #: .././includes/class-mailtpl-customizer.php:514 115 | msgid "Background Color" 116 | msgstr "" 117 | 118 | #: .././includes/class-mailtpl-customizer.php:253 119 | msgid "Choose email background color" 120 | msgstr "" 121 | 122 | #: .././includes/class-mailtpl-customizer.php:279 123 | #: .././includes/class-mailtpl-customizer.php:298 124 | msgid "Logo" 125 | msgstr "" 126 | 127 | #: .././includes/class-mailtpl-customizer.php:283 128 | msgid "Add an image to use in header. Leave empty to use text instead" 129 | msgstr "" 130 | 131 | #: .././includes/class-mailtpl-customizer.php:302 132 | msgid "Add text to your mail header" 133 | msgstr "" 134 | 135 | #: .././includes/class-mailtpl-customizer.php:316 136 | #: .././includes/class-mailtpl-customizer.php:489 137 | msgid "Aligment" 138 | msgstr "" 139 | 140 | #: .././includes/class-mailtpl-customizer.php:326 141 | msgid "Choose alignment for header" 142 | msgstr "" 143 | 144 | #: .././includes/class-mailtpl-customizer.php:344 145 | msgid "Choose header background color" 146 | msgstr "" 147 | 148 | #: .././includes/class-mailtpl-customizer.php:358 149 | #: .././includes/class-mailtpl-customizer.php:422 150 | #: .././includes/class-mailtpl-customizer.php:531 151 | msgid "Text size" 152 | msgstr "" 153 | 154 | #: .././includes/class-mailtpl-customizer.php:362 155 | #: .././includes/class-mailtpl-customizer.php:426 156 | #: .././includes/class-mailtpl-customizer.php:535 157 | msgid "Slide to change text size" 158 | msgstr "" 159 | 160 | #: .././includes/class-mailtpl-customizer.php:377 161 | #: .././includes/class-mailtpl-customizer.php:441 162 | #: .././includes/class-mailtpl-customizer.php:549 163 | msgid "Text Color" 164 | msgstr "" 165 | 166 | #: .././includes/class-mailtpl-customizer.php:380 167 | msgid "Choose header text color" 168 | msgstr "" 169 | 170 | #: .././includes/class-mailtpl-customizer.php:408 171 | msgid "Choose email body background color" 172 | msgstr "" 173 | 174 | #: .././includes/class-mailtpl-customizer.php:444 175 | msgid "Choose body text color" 176 | msgstr "" 177 | 178 | #: .././includes/class-mailtpl-customizer.php:470 179 | msgid "Footer text" 180 | msgstr "" 181 | 182 | #: .././includes/class-mailtpl-customizer.php:474 183 | msgid "Change the email footer here" 184 | msgstr "" 185 | 186 | #: .././includes/class-mailtpl-customizer.php:499 187 | msgid "Choose alignment for footer" 188 | msgstr "" 189 | 190 | #: .././includes/class-mailtpl-customizer.php:517 191 | msgid "Choose footer background color" 192 | msgstr "" 193 | 194 | #: .././includes/class-mailtpl-customizer.php:552 195 | msgid "Choose footer text color" 196 | msgstr "" 197 | 198 | #: .././includes/class-mailtpl-customizer.php:567 199 | msgid "Powered by" 200 | msgstr "" 201 | 202 | #: .././includes/class-mailtpl-customizer.php:575 203 | msgid "Display a tiny link to the plugin page" 204 | msgstr "" 205 | 206 | #: .././includes/class-mailtpl-customizer.php:605 207 | msgid "" 208 | "Save the template and then click the button to send a test email to admin " 209 | "email " 210 | msgstr "" 211 | 212 | #: .././includes/class-mailtpl-mailer.php:114 213 | msgid "Wp Email Templates" 214 | msgstr "" 215 | 216 | #: .././includes/class-mailtpl.php:80 .././includes/class-mailtpl.php:88 217 | msgid "Cheatin’ huh?" 218 | msgstr "" 219 | 220 | #: .././includes/customize-controls/class-send-mail-customize-control.php:13 221 | msgid "Send" 222 | msgstr "" 223 | 224 | #: .././includes/customize-controls/class-send-mail-customize-control.php:15 225 | msgid "Email sent!" 226 | msgstr "" 227 | -------------------------------------------------------------------------------- /preview.php: -------------------------------------------------------------------------------- 1 | 14 | 15 | 18 | 21 | 22 | > 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | <?php echo __( 'Email Composer', 'mailtpl-woocommerce-email-composer' ); ?> 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 | 40 | 41 | 42 |
43 | 44 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /templates/wcmp/vendor-new-order.php: -------------------------------------------------------------------------------- 1 | 27 | 28 |

get_billing_first_name() . ' ' . $order->get_billing_last_name() ); ?>

29 | 30 | 31 |
129 |
-------------------------------------------------------------------------------- /admin/test.php: -------------------------------------------------------------------------------- 1 | add_section( 'mytheme_options', 24 | array( 25 | 'title' => __( 'MyTheme Options', 'mytheme' ), //Visible title of section 26 | 'priority' => 35, //Determines what order this appears in 27 | 'capability' => 'edit_theme_options', //Capability needed to tweak 28 | 'description' => __('Allows you to customize some example settings for MyTheme.', 'mytheme'), //Descriptive tooltip 29 | ) 30 | ); 31 | 32 | //2. Register new settings to the WP database... 33 | $wp_customize->add_setting( 'link_textcolor', //No need to use a SERIALIZED name, as `theme_mod` settings already live under one db record 34 | array( 35 | 'default' => '#2BA6CB', //Default setting/value to save 36 | 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? 37 | 'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting. 38 | 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? 39 | ) 40 | ); 41 | 42 | //3. Finally, we define the control itself (which links a setting to a section and renders the HTML controls)... 43 | $wp_customize->add_control( new WP_Customize_Color_Control( //Instantiate the color control class 44 | $wp_customize, //Pass the $wp_customize object (required) 45 | 'mytheme_link_textcolor', //Set a unique ID for the control 46 | array( 47 | 'label' => __( 'Link Color', 'mytheme' ), //Admin-visible name of the control 48 | 'section' => 'colors', //ID of the section this control should render in (can be one of yours, or a WordPress default section) 49 | 'settings' => 'link_textcolor', //Which setting to load and manipulate (serialized is okay) 50 | 'priority' => 10, //Determines the order this control appears in for the specified section 51 | ) 52 | ) ); 53 | 54 | //4. We can also change built-in settings by modifying properties. For instance, let's make some stuff use live preview JS... 55 | $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 56 | $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 57 | $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 58 | $wp_customize->get_setting( 'background_color' )->transport = 'postMessage'; 59 | } 60 | 61 | /** 62 | * This will output the custom WordPress settings to the live theme's WP head. 63 | * 64 | * Used by hook: 'wp_head' 65 | * 66 | * @see add_action('wp_head',$func) 67 | * @since MyTheme 1.0 68 | */ 69 | public static function header_output() { 70 | ?> 71 | 72 | 77 | 78 | 'postMessage' instead of the default 'transport' 85 | * => 'refresh' 86 | * 87 | * Used by hook: 'customize_preview_init' 88 | * 89 | * @see add_action('customize_preview_init',$func) 90 | * @since MyTheme 1.0 91 | */ 92 | public static function live_preview() { 93 | wp_enqueue_script( 94 | 'mytheme-themecustomizer', // Give the script a unique ID 95 | get_template_directory_uri() . '/assets/js/theme-customizer.js', // Define the path to the JS file 96 | array( 'jquery', 'customize-preview' ), // Define dependencies 97 | '', // Define a version (optional) 98 | true // Specify whether to put in footer (leave this true) 99 | ); 100 | } 101 | 102 | /** 103 | * This will generate a line of CSS for use in header output. If the setting 104 | * ($mod_name) has no defined value, the CSS will not be output. 105 | * 106 | * @uses get_theme_mod() 107 | * @param string $selector CSS selector 108 | * @param string $style The name of the CSS *property* to modify 109 | * @param string $mod_name The name of the 'theme_mod' option to fetch 110 | * @param string $prefix Optional. Anything that needs to be output before the CSS property 111 | * @param string $postfix Optional. Anything that needs to be output after the CSS property 112 | * @param bool $echo Optional. Whether to print directly to the page (default: true). 113 | * @return string Returns a single line of CSS with selectors and a property. 114 | * @since MyTheme 1.0 115 | */ 116 | public static function generate_css( $selector, $style, $mod_name, $prefix='', $postfix='', $echo=true ) { 117 | $return = ''; 118 | $mod = get_theme_mod($mod_name); 119 | if ( ! empty( $mod ) ) { 120 | $return = sprintf('%s { %s:%s; }', 121 | $selector, 122 | $style, 123 | $prefix.$mod.$postfix 124 | ); 125 | if ( $echo ) { 126 | echo $return; 127 | } 128 | } 129 | return $return; 130 | } 131 | } 132 | 133 | // Setup the Theme Customizer settings and controls... 134 | add_action( 'customize_register' , array( 'MyTheme_Customize' , 'register' ) ); 135 | 136 | // Output custom CSS to live site 137 | add_action( 'wp_head' , array( 'MyTheme_Customize' , 'header_output' ) ); 138 | 139 | // Enqueue live preview javascript in Theme Customizer admin screen 140 | add_action( 'customize_preview_init' , array( 'MyTheme_Customize' , 'live_preview' ) ); -------------------------------------------------------------------------------- /assets/css/customizer-range-value-control.css: -------------------------------------------------------------------------------- 1 | /* 2 | *, *:before, *:after { 3 | box-sizing: border-box; 4 | } 5 | 6 | body { 7 | font-family: sans-serif; 8 | padding: 60px 20px; 9 | } 10 | 11 | @media (min-width: 600px) { 12 | body { 13 | padding: 60px; 14 | } 15 | } 16 | */ 17 | /*.range-slider { 18 | margin: 60px 0 0 0%; 19 | }*/ 20 | 21 | .range-slider { 22 | width: 100%; 23 | } 24 | /* 25 | .range-slider__range { 26 | -webkit-appearance: none; 27 | width: calc(100% - (95px)); 28 | height: 10px; 29 | border-radius: 5px; 30 | background: #d7dcdf; 31 | outline: none; 32 | padding: 0; 33 | margin: 0; 34 | } 35 | 36 | .range-slider__range::-webkit-slider-thumb { 37 | -webkit-appearance: none; 38 | appearance: none; 39 | width: 20px; 40 | height: 20px; 41 | border-radius: 50%; 42 | background: #bb77ae; 43 | cursor: pointer; 44 | -webkit-transition: background .15s ease-in-out; 45 | transition: background .15s ease-in-out; 46 | } 47 | 48 | .range-slider__range::-webkit-slider-thumb:hover { 49 | background: #bb77ae; 50 | } 51 | 52 | .range-slider__range:active::-webkit-slider-thumb { 53 | background: #bb77ae; 54 | } 55 | 56 | .range-slider__range::-moz-range-thumb { 57 | width: 20px; 58 | height: 20px; 59 | border: 0; 60 | border-radius: 50%; 61 | background: #bb77ae; 62 | cursor: pointer; 63 | -webkit-transition: background .15s ease-in-out; 64 | transition: background .15s ease-in-out; 65 | } 66 | 67 | .range-slider__range::-moz-range-thumb:hover { 68 | background: #bb77ae; 69 | } 70 | 71 | .range-slider__range:active::-moz-range-thumb { 72 | background: #bb77ae; 73 | } */ 74 | 75 | .range-slider__value { 76 | display: inline-block; 77 | position: relative; 78 | width: 60px; 79 | color: #fff; 80 | line-height: 20px; 81 | text-align: center; 82 | border-radius: 3px; 83 | background: #0075ff; 84 | padding: 5px 10px; 85 | margin-left: 8px; 86 | } 87 | 88 | /*.range-slider__value:after { 89 | position: absolute; 90 | top: 8px; 91 | left: -7px; 92 | width: 0; 93 | height: 0; 94 | border-top: 7px solid transparent; 95 | border-right: 7px solid #bb77ae; 96 | border-bottom: 7px solid transparent; 97 | content: ''; 98 | }*/ 99 | 100 | ::-moz-range-track { 101 | background: #d7dcdf; 102 | border: 0; 103 | } 104 | 105 | input::-moz-focus-inner, input::-moz-focus-outer { 106 | border: 0; 107 | } 108 | input[type=checkbox].tgl-light:checked + .tgl-btn { 109 | background: #0075ff; 110 | } -------------------------------------------------------------------------------- /assets/css/customizer-repeater-control.css: -------------------------------------------------------------------------------- 1 | .customizer-repeater-general-control-repeater-container .customizer-repeater-box-content-hidden:after { 2 | content: ""; 3 | display: table; 4 | clear: both; 5 | } 6 | 7 | .customizer-repeater-general-control-repeater-container .customizer-repeater-box-content-hidden { 8 | display: none; 9 | } 10 | 11 | .customizer-repeater-customize-control-title-box { 12 | margin: 0; 13 | padding: 15px; 14 | font-size: 1em; 15 | line-height: 1; 16 | -webkit-user-select: none; 17 | -moz-user-select: none; 18 | -ms-user-select: none; 19 | user-select: none; 20 | display: block; 21 | font-weight: 600; 22 | color: #23282d; 23 | border: 1px solid #e5e5e5; 24 | cursor: move; 25 | } 26 | 27 | .customizer-repeater-customize-control-title-box:hover { 28 | border: 1px solid #999; 29 | } 30 | 31 | .customizer-repeater-customize-control-title-box:after { 32 | content: "\f140"; 33 | font-family: dashicons; 34 | font-size: 20px; 35 | height: 13px; 36 | bottom: 3px; 37 | position: relative; 38 | float: right; 39 | } 40 | 41 | .customizer-repeater-customize-control-title-box.repeater-expanded:after { 42 | content: "\f142"; 43 | } 44 | 45 | .customizer-repeater-box-content-hidden { 46 | border: 1px solid #e5e5e5; 47 | border-top: none; 48 | padding: 1px 10px 10px; 49 | } 50 | 51 | .customizer-repeater-box-content-hidden > div { 52 | margin: 1em 0; 53 | } 54 | 55 | .customizer-repeater-box-content-hidden .customize-control-title { 56 | font-size: 13px; 57 | line-height: 1.5; 58 | font-weight: normal; 59 | margin-bottom: 0; 60 | margin-top: 1em; 61 | } 62 | 63 | .customizer-repeater-box-content-hidden .customize-control-title:after { 64 | content: ":"; 65 | } 66 | 67 | .customizer-repeater-box-content-hidden span.description { 68 | font-size: 12px; 69 | font-style: normal; 70 | } 71 | 72 | .customizer-repeater-general-control-repeater-container, .customizer-repeater-general-control-repeater_container { 73 | border: 1px solid #e5e5e5; 74 | border-top: none; 75 | margin-bottom: 12px; 76 | width: 100%; 77 | float: left; 78 | background: #fff; 79 | -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .04); 80 | box-shadow: 0 1px 1px rgba(0, 0, 0, .04); 81 | } 82 | 83 | .customizer-repeater-box-content-hidden .wp-picker-container, .customizer-repeater-box-content-hidden .wp-picker-container .wp-color-result, .icp-container { 84 | margin: 0; 85 | } 86 | 87 | .customizer-repeater-box-content-hidden input:not(.icp, .wp-color-picker), 88 | .customizer-repeater-box-content-hidden textarea, 89 | .customizer-repeater-box-content-hidden .wp-picker-container { 90 | margin-bottom: 1em !important; 91 | } 92 | 93 | .social-repeater-general-control-remove-field { 94 | cursor: pointer; 95 | color: #a00; 96 | background: none; 97 | border: none; 98 | padding: 0; 99 | margin-top: 10px; 100 | } 101 | 102 | .social-repeater-general-control-remove-field:hover { 103 | color: red; 104 | } 105 | 106 | .customizer-repeater-box-content-hidden .wp-picker-holder { 107 | position: relative; 108 | left: -10px; 109 | } 110 | 111 | .customizer-repeater-box-content-hidden .wp-picker-input-wrap { 112 | margin-left: 10px; 113 | } 114 | 115 | .customizer-repeater-box-content-hidden .wp-picker-container .iris-picker { 116 | border-left: none; 117 | border-right: none; 118 | } 119 | 120 | button.customizer-repeater-new-field { 121 | float: right; 122 | } 123 | 124 | button.customizer-repeater-new-field:before { 125 | content: "\f132"; 126 | display: inline-block; 127 | position: relative; 128 | left: -2px; 129 | top: -1px; 130 | font: 400 20px/1 dashicons; 131 | vertical-align: middle; 132 | -webkit-transition: all .2s; 133 | transition: all .2s; 134 | -webkit-font-smoothing: antialiased; 135 | -moz-osx-font-smoothing: grayscale; 136 | } 137 | 138 | .customizer-repeater-box-content-hidden > div.customizer-repeater-social-repeater { 139 | margin-top: 0; 140 | } 141 | 142 | .customizer-repeater-general-control-repeater-container .customizer-repeater-icon-control { 143 | width: 100%; 144 | margin: 0; 145 | padding: 0; 146 | } 147 | 148 | #customizer-repeater-new-field { 149 | width: 100%; 150 | } 151 | 152 | .customize-control-widget_form .widget-control-save { 153 | display: block !important; 154 | } 155 | 156 | .customizer-repeater-box-content-hidden { 157 | background-color: #fff; 158 | } 159 | 160 | .customizer-repeater-image-control .customizer-repeater-custom-media-button { 161 | margin-top: 5px; 162 | } 163 | 164 | .customizer-icons { 165 | display: inline-block; 166 | padding: 0 10px 0 0; 167 | vertical-align: middle; 168 | } 169 | 170 | .social-repeater-remove-social-item { 171 | display: inline-block; 172 | vertical-align: top; 173 | color: #a00; 174 | border: none; 175 | background: none; 176 | cursor: pointer; 177 | padding: 0; 178 | } 179 | 180 | .social-repeater-remove-social-item:hover { 181 | color: red; 182 | } 183 | 184 | .customizer-repeater-social-repeater > .customizer-repeater-social-repeater-container:not(:first-child) { 185 | margin-top: 25px; 186 | } 187 | 188 | .icp-container { 189 | margin-bottom: 10px; 190 | } 191 | 192 | .button-secondary.social-repeater-add-social-item:before { 193 | content: "\f132"; 194 | display: inline-block; 195 | position: relative; 196 | left: -2px; 197 | top: -1px; 198 | font: 400 20px/1 dashicons; 199 | vertical-align: middle; 200 | -webkit-transition: all .2s; 201 | transition: all .2s; 202 | -webkit-font-smoothing: antialiased; 203 | -moz-osx-font-smoothing: grayscale; 204 | } 205 | 206 | .button-secondary.social-repeater-add-social-item { 207 | vertical-align: text-top; 208 | float: right; 209 | } 210 | 211 | .customizer-repeater-box-content-hidden textarea { 212 | width: 100%; 213 | } -------------------------------------------------------------------------------- /assets/css/customizer-styles.css: -------------------------------------------------------------------------------- 1 | 2 | #customize-theme-controls .accordion-section-content { 3 | background-color: #f9f9f9; 4 | } 5 | 6 | /* Color Control Tweaks */ 7 | .wp-picker-container, .wp-picker-input-wrap { 8 | width: 100%; 9 | border-radius: 3px; 10 | overflow: hidden; 11 | } 12 | .wp-core-ui .wp-picker-container .wp-color-result.button { 13 | height: 30px !important; 14 | border-radius: 3px; 15 | padding: 0 0 0 30px !important; 16 | /* width:100%; */ 17 | color:#fff; 18 | position:relative; 19 | } 20 | .wp-core-ui .button.wp-color-result .wp-color-result-text { 21 | background-color: rgba(0,0,0,.2); 22 | color: #fff; 23 | height: 30px; 24 | line-height: 30px; 25 | border: none; 26 | box-shadow: none; 27 | font-size: 12px; 28 | border-radius: 3; 29 | padding: 0 15px; 30 | } 31 | .wp-core-ui button.wp-color-result + .wp-picker-input-wrap > label { 32 | width: 45%; 33 | } 34 | .wp-core-ui button.wp-color-result + .wp-picker-input-wrap input[type=text].wp-color-picker { 35 | width: 100% !important; 36 | vertical-align: bottom; 37 | margin-top: 10px; 38 | line-height: 20px; 39 | border-color: #ccc; 40 | } 41 | .wp-customizer .wp-picker-active .wp-picker-input-wrap .wp-picker-default, .wp-customizer .wp-picker-active .wp-picker-input-wrap .wp-picker-clear { 42 | display: inline-block !important; 43 | margin-left: 10%; 44 | width: 45%; 45 | height: 28px; 46 | margin-top: 10px; 47 | } 48 | .wp-customizer .wp-picker-container .iris-picker { 49 | width: 95% !important; 50 | margin-top: 15px; 51 | } 52 | .wp-customizer .wp-picker-container .iris-picker .iris-square { 53 | width: 80% !important; 54 | } 55 | .wp-customizer .wp-picker-container .iris-picker .iris-strip { 56 | width: 10% !important; 57 | } 58 | /* General Tweaks */ 59 | .customize-control-select select { 60 | min-width: 100%; 61 | height: 30px; 62 | border-radius: 3px; 63 | border-color: #ccc; 64 | } 65 | .customize-control-title { 66 | margin-top: 15px; 67 | text-transform: uppercase; 68 | font-size: 12px; 69 | } 70 | .customize-control input[type=number], .customize-control input[type=search], .customize-control input[type=tel], .customize-control input[type=url], .customize-control input[type=text], .customize-control input[type=password], .customize-control input[type=email] { 71 | line-height: 22px; 72 | border-color:#ccc; 73 | } 74 | .customize-control code { 75 | padding: 10px; 76 | display: block; 77 | } 78 | 79 | /* Mobile preview */ 80 | .preview-mobile #customize-preview iframe { 81 | width:600px; 82 | height: 1500px; 83 | -ms-transform: scale(0.50); 84 | -moz-transform: scale(0.50); 85 | -o-transform: scale(0.50); 86 | -webkit-transform: scale(0.50); 87 | transform: scale(0.50); 88 | -ms-transform-origin: 0 0; 89 | -moz-transform-origin: 0 0; 90 | -o-transform-origin: 0 0; 91 | -webkit-transform-origin: 0 0; 92 | transform-origin: 0 0; 93 | } 94 | .preview-mobile .wp-full-overlay-main { 95 | overflow-y:scroll; 96 | overflow-x:auto; 97 | } 98 | 99 | /* Template Control */ 100 | .customize-control-mailtpltemplateload .image-radio-select label { 101 | display: block; 102 | height: auto; 103 | float: none; 104 | width: 100%; 105 | margin-bottom: 8px; 106 | padding: 8px 8px 0; 107 | box-shadow: none; 108 | box-sizing: border-box; 109 | } 110 | #customize-controls .customize-control-mailtpltemplateload label img { 111 | border: 4px solid #ccc; 112 | box-sizing: border-box; 113 | cursor: pointer; 114 | height: auto; 115 | max-width: 100%; 116 | padding: 1px; 117 | } 118 | #customize-controls .customize-control-mailtpltemplateload label.mailtplactive img { 119 | border-color: #00a0d2; 120 | } 121 | .customize-control-mailtpltemplateload .mailtpl-template-woomail-load-controls:after { 122 | clear: both; 123 | display: table; 124 | content: ''; 125 | } 126 | /* Also Button for Importer */ 127 | .mailtpl-woomail-button { 128 | width: 100%; 129 | padding: 6px 12px; 130 | height: auto; 131 | } 132 | /* Import Export styles */ 133 | .mailtpl-woomail-form { 134 | position: absolute; 135 | left: -99999px; 136 | } 137 | .mailtpl-woomail-hr { 138 | margin: 20px 0px 10px; 139 | } 140 | .mailtpl-woomail-import-file { 141 | background: #eeeeee; 142 | width: 100%; 143 | margin: 10px 0; 144 | padding: 10px; 145 | font-size: 12px; 146 | } 147 | .mailtpl-woomail-uploading, .mailtpl-woomail-loading { 148 | background: #eeeeee; 149 | display: none; 150 | margin: 10px 0; 151 | padding: 10px; 152 | font-size: 12px; 153 | } 154 | 155 | .preview-mobile .wp-full-overlay-main { 156 | margin: auto 0 auto -190px; 157 | width: 380px; 158 | height: 580px; 159 | max-height: 100%; 160 | max-width: 100%; 161 | left: 50%; 162 | } 163 | /* Fix for Shopkeeper theme */ 164 | #customize-control-mailtpl_woomail_email_load_template { 165 | max-height: none; 166 | } -------------------------------------------------------------------------------- /assets/css/customizer-toggle-switch-control.css: -------------------------------------------------------------------------------- 1 | input[type=checkbox].tgl { 2 | display: none; 3 | } 4 | input[type=checkbox].tgl, input[type=checkbox].tgl:after, input[type=checkbox].tgl:before, input[type=checkbox].tgl *, input[type=checkbox].tgl *:after, input[type=checkbox].tgl *:before, input[type=checkbox].tgl + .tgl-btn { 5 | box-sizing: border-box; 6 | } 7 | input[type=checkbox].tgl::-moz-selection, input[type=checkbox].tgl:after::-moz-selection, input[type=checkbox].tgl:before::-moz-selection, input[type=checkbox].tgl *::-moz-selection, input[type=checkbox].tgl *:after::-moz-selection, input[type=checkbox].tgl *:before::-moz-selection, input[type=checkbox].tgl + .tgl-btn::-moz-selection { 8 | background: none; 9 | } 10 | input[type=checkbox].tgl::selection, input[type=checkbox].tgl:after::selection, input[type=checkbox].tgl:before::selection, input[type=checkbox].tgl *::selection, input[type=checkbox].tgl *:after::selection, input[type=checkbox].tgl *:before::selection, input[type=checkbox].tgl + .tgl-btn::selection { 11 | background: none; 12 | } 13 | input[type=checkbox].tgl + .tgl-btn { 14 | outline: 0; 15 | display: block; 16 | width: 4em; 17 | height: 2em; 18 | position: relative; 19 | cursor: pointer; 20 | -webkit-user-select: none; 21 | -moz-user-select: none; 22 | -ms-user-select: none; 23 | user-select: none; 24 | } 25 | input[type=checkbox].tgl + .tgl-btn:after, input[type=checkbox].tgl + .tgl-btn:before { 26 | position: relative; 27 | display: block; 28 | content: ""; 29 | width: 50%; 30 | height: 100%; 31 | } 32 | input[type=checkbox].tgl + .tgl-btn:after { 33 | left: 0; 34 | } 35 | input[type=checkbox].tgl + .tgl-btn:before { 36 | display: none; 37 | } 38 | input[type=checkbox].tgl:checked + .tgl-btn:after { 39 | left: 50%; 40 | } 41 | 42 | input[type=checkbox].tgl-light + .tgl-btn { 43 | background: #f0f0f0; 44 | border-radius: 2em; 45 | padding: 2px; 46 | -webkit-transition: all .4s ease; 47 | transition: all .4s ease; 48 | } 49 | input[type=checkbox].tgl-light + .tgl-btn:after { 50 | border-radius: 50%; 51 | background: #fff; 52 | -webkit-transition: all .2s ease; 53 | transition: all .2s ease; 54 | } 55 | input[type=checkbox].tgl-light:checked + .tgl-btn { 56 | background: #9FD6AE; 57 | } 58 | 59 | input[type=checkbox].tgl-ios + .tgl-btn { 60 | background: #fbfbfb; 61 | border-radius: 2em; 62 | padding: 2px; 63 | -webkit-transition: all .4s ease; 64 | transition: all .4s ease; 65 | border: 1px solid #e8eae9; 66 | } 67 | input[type=checkbox].tgl-ios + .tgl-btn:after { 68 | border-radius: 2em; 69 | background: #fbfbfb; 70 | -webkit-transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease; 71 | transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease; 72 | box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.08); 73 | } 74 | input[type=checkbox].tgl-ios + .tgl-btn:hover:after { 75 | will-change: padding; 76 | } 77 | input[type=checkbox].tgl-ios + .tgl-btn:active { 78 | box-shadow: inset 0 0 0 2em #e8eae9; 79 | } 80 | input[type=checkbox].tgl-ios + .tgl-btn:active:after { 81 | padding-right: .8em; 82 | } 83 | input[type=checkbox].tgl-ios:checked + .tgl-btn { 84 | background: #86d993; 85 | } 86 | input[type=checkbox].tgl-ios:checked + .tgl-btn:active { 87 | box-shadow: none; 88 | } 89 | input[type=checkbox].tgl-ios:checked + .tgl-btn:active:after { 90 | margin-left: -.8em; 91 | } 92 | 93 | input[type=checkbox].tgl-flat + .tgl-btn { 94 | padding: 2px; 95 | -webkit-transition: all .2s ease; 96 | transition: all .2s ease; 97 | background: #fff; 98 | border: 4px solid #f2f2f2; 99 | border-radius: 2em; 100 | } 101 | input[type=checkbox].tgl-flat + .tgl-btn:after { 102 | -webkit-transition: all .2s ease; 103 | transition: all .2s ease; 104 | background: #f2f2f2; 105 | content: ""; 106 | border-radius: 1em; 107 | } 108 | input[type=checkbox].tgl-flat:checked + .tgl-btn { 109 | border: 4px solid #7FC6A6; 110 | } 111 | input[type=checkbox].tgl-flat:checked + .tgl-btn:after { 112 | left: 50%; 113 | background: #7FC6A6; 114 | } -------------------------------------------------------------------------------- /assets/css/fonts/iconpicker.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/css/fonts/iconpicker.eot -------------------------------------------------------------------------------- /assets/css/fonts/iconpicker.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Copyright (C) 2014 by original authors @ fontello.com 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /assets/css/fonts/iconpicker.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/css/fonts/iconpicker.ttf -------------------------------------------------------------------------------- /assets/css/fonts/iconpicker.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/css/fonts/iconpicker.woff -------------------------------------------------------------------------------- /assets/css/fonts/woomail-social.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/css/fonts/woomail-social.eot -------------------------------------------------------------------------------- /assets/css/fonts/woomail-social.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/css/fonts/woomail-social.ttf -------------------------------------------------------------------------------- /assets/css/fonts/woomail-social.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/css/fonts/woomail-social.woff -------------------------------------------------------------------------------- /assets/css/fonts/woomail-social.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/css/fonts/woomail-social.woff2 -------------------------------------------------------------------------------- /assets/fonts/iconpicker.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/fonts/iconpicker.eot -------------------------------------------------------------------------------- /assets/fonts/iconpicker.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Copyright (C) 2014 by original authors @ fontello.com 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /assets/fonts/iconpicker.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/fonts/iconpicker.ttf -------------------------------------------------------------------------------- /assets/fonts/iconpicker.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/fonts/iconpicker.woff -------------------------------------------------------------------------------- /assets/images/WooCommerce-wordpress-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/WooCommerce-wordpress-01.png -------------------------------------------------------------------------------- /assets/images/WooCommerce-wordpress-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/WooCommerce-wordpress-02.png -------------------------------------------------------------------------------- /assets/images/attendees.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/attendees.xlsx -------------------------------------------------------------------------------- /assets/images/black/digg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/digg.png -------------------------------------------------------------------------------- /assets/images/black/dribbble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/dribbble.png -------------------------------------------------------------------------------- /assets/images/black/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/facebook.png -------------------------------------------------------------------------------- /assets/images/black/google-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/google-plus.png -------------------------------------------------------------------------------- /assets/images/black/instagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/instagram.png -------------------------------------------------------------------------------- /assets/images/black/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/link.png -------------------------------------------------------------------------------- /assets/images/black/linkedin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/linkedin.png -------------------------------------------------------------------------------- /assets/images/black/pinterest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/pinterest.png -------------------------------------------------------------------------------- /assets/images/black/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/rss.png -------------------------------------------------------------------------------- /assets/images/black/stumbleupon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/stumbleupon.png -------------------------------------------------------------------------------- /assets/images/black/tumblr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/tumblr.png -------------------------------------------------------------------------------- /assets/images/black/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/twitter.png -------------------------------------------------------------------------------- /assets/images/black/vimeo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/vimeo.png -------------------------------------------------------------------------------- /assets/images/black/vk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/vk.png -------------------------------------------------------------------------------- /assets/images/black/whatsapp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/whatsapp.png -------------------------------------------------------------------------------- /assets/images/black/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/black/youtube.png -------------------------------------------------------------------------------- /assets/images/gray/digg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/digg.png -------------------------------------------------------------------------------- /assets/images/gray/dribbble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/dribbble.png -------------------------------------------------------------------------------- /assets/images/gray/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/facebook.png -------------------------------------------------------------------------------- /assets/images/gray/google-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/google-plus.png -------------------------------------------------------------------------------- /assets/images/gray/instagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/instagram.png -------------------------------------------------------------------------------- /assets/images/gray/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/link.png -------------------------------------------------------------------------------- /assets/images/gray/linkedin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/linkedin.png -------------------------------------------------------------------------------- /assets/images/gray/pinterest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/pinterest.png -------------------------------------------------------------------------------- /assets/images/gray/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/rss.png -------------------------------------------------------------------------------- /assets/images/gray/stumbleupon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/stumbleupon.png -------------------------------------------------------------------------------- /assets/images/gray/tumblr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/tumblr.png -------------------------------------------------------------------------------- /assets/images/gray/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/twitter.png -------------------------------------------------------------------------------- /assets/images/gray/vimeo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/vimeo.png -------------------------------------------------------------------------------- /assets/images/gray/vk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/vk.png -------------------------------------------------------------------------------- /assets/images/gray/whatsapp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/whatsapp.png -------------------------------------------------------------------------------- /assets/images/gray/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/gray/youtube.png -------------------------------------------------------------------------------- /assets/images/icon-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/icon-128x128.png -------------------------------------------------------------------------------- /assets/images/image-1-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/image-1-01.png -------------------------------------------------------------------------------- /assets/images/image-2-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/image-2-02.png -------------------------------------------------------------------------------- /assets/images/kt_flat_template.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/kt_flat_template.jpg -------------------------------------------------------------------------------- /assets/images/kt_full_template.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/kt_full_template.jpg -------------------------------------------------------------------------------- /assets/images/kt_skinny_template.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/kt_skinny_template.jpg -------------------------------------------------------------------------------- /assets/images/white/digg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/digg.png -------------------------------------------------------------------------------- /assets/images/white/dribbble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/dribbble.png -------------------------------------------------------------------------------- /assets/images/white/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/facebook.png -------------------------------------------------------------------------------- /assets/images/white/google-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/google-plus.png -------------------------------------------------------------------------------- /assets/images/white/instagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/instagram.png -------------------------------------------------------------------------------- /assets/images/white/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/link.png -------------------------------------------------------------------------------- /assets/images/white/linkedin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/linkedin.png -------------------------------------------------------------------------------- /assets/images/white/pinterest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/pinterest.png -------------------------------------------------------------------------------- /assets/images/white/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/rss.png -------------------------------------------------------------------------------- /assets/images/white/stumbleupon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/stumbleupon.png -------------------------------------------------------------------------------- /assets/images/white/tumblr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/tumblr.png -------------------------------------------------------------------------------- /assets/images/white/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/twitter.png -------------------------------------------------------------------------------- /assets/images/white/vimeo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/vimeo.png -------------------------------------------------------------------------------- /assets/images/white/vk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/vk.png -------------------------------------------------------------------------------- /assets/images/white/whatsapp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/whatsapp.png -------------------------------------------------------------------------------- /assets/images/white/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wpexpertsio/wordpress-email-templates/637386d1a8774aa0af15445022cb6355c31cbaf4/assets/images/white/youtube.png -------------------------------------------------------------------------------- /assets/js/customizer-range-value-control.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Script run inside a Customizer control sidebar 3 | */ 4 | (function($) { 5 | wp.customize.bind('ready', function() { 6 | rangeSlider(); 7 | }); 8 | 9 | var rangeSlider = function() { 10 | var slider = $('.range-slider'), 11 | range = $('.range-slider__range'), 12 | value = $('.range-slider__value'); 13 | 14 | slider.each(function() { 15 | 16 | value.each(function() { 17 | var value = $(this).prev().attr('value'); 18 | var suffix = ($(this).prev().attr('suffix')) ? $(this).prev().attr('suffix') : ''; 19 | $(this).html(value + suffix); 20 | }); 21 | 22 | range.on('input', function() { 23 | var suffix = ($(this).attr('suffix')) ? $(this).attr('suffix') : ''; 24 | $(this).next(value).html(this.value + suffix ); 25 | }); 26 | }); 27 | }; 28 | 29 | })(jQuery); 30 | -------------------------------------------------------------------------------- /assets/js/customizer-scripts.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Customizer Scripts 3 | * Need to rewrite and clean up this file. 4 | */ 5 | 6 | jQuery(document).ready(function() { 7 | 8 | /** 9 | * Change description 10 | */ 11 | jQuery('#customize-info .customize-panel-description').html(mailtpl_woomail.labels.description); 12 | jQuery('#customize-info .panel-title.site-title').html(mailtpl_woomail.labels.customtitle); 13 | // Add reset button 14 | jQuery('#customize-header-actions input#save').after(''); 15 | 16 | // Handle reset button click 17 | jQuery('#customize-header-actions #mailtpl_woomail_reset').click(function(e) { 18 | 19 | // Prevent form submit 20 | e.preventDefault(); 21 | 22 | // Display confirmation prompt 23 | var confirmation = confirm(mailtpl_woomail.labels.reset_confirmation); 24 | 25 | // Check user input 26 | if ( ! confirmation ) { 27 | return; 28 | } 29 | 30 | // Disable reset button 31 | jQuery(this).prop('disabled', true); 32 | 33 | // Populate request data object 34 | var data = { 35 | wp_customize: 'on', 36 | action: 'mailtpl_woomail_reset', 37 | }; 38 | 39 | // Send request to server 40 | jQuery.post(mailtpl_woomail.ajax_url, data, function() { 41 | wp.customize.state('saved').set(true); 42 | window.location.replace(mailtpl_woomail.customizer_url); 43 | }); 44 | }); 45 | wp.customize.state('saved').bind( 'change', function() { 46 | if( wp.customize.state( 'saved' ).get() ) { 47 | jQuery('input[name=mailtpl-woomail-send-email]').prop('disabled', false); 48 | } else { 49 | jQuery('input[name=mailtpl-woomail-send-email]').prop('disabled', true); 50 | } 51 | }); 52 | 53 | // Handle send email button click 54 | jQuery('input[name=mailtpl-woomail-send-email]').click(function(e) { 55 | 56 | // Prevent form submit 57 | e.preventDefault(); 58 | 59 | // Get recipients 60 | var recipients = jQuery('input#_customize-input-mailtpl_woomail_email_recipient').val(); 61 | // Display confirmation prompt 62 | var confirmation = confirm(mailtpl_woomail.labels.send_confirmation); 63 | 64 | // Check user input 65 | if ( ! confirmation ) { 66 | return; 67 | } 68 | 69 | // Disable send button 70 | jQuery(this).prop('disabled', true); 71 | 72 | // Populate request data object 73 | var data = { 74 | wp_customize: 'on', 75 | action: 'mailtpl_woomail_send_email', 76 | recipients: recipients, 77 | }; 78 | // Send request to server 79 | jQuery.post(mailtpl_woomail.ajax_url, data, function( result ) { 80 | if ( result != 0 ) { 81 | alert( mailtpl_woomail.labels.sent ); 82 | } else { 83 | alert( mailtpl_woomail.labels.failed ); 84 | } 85 | jQuery(this).prop('disabled', false); 86 | }); 87 | }); 88 | 89 | jQuery( '.image-radio-select label' ).on( 'click', function(e) { 90 | var new_val = jQuery(this).attr('data-image-value'); 91 | jQuery('#mailtpl-woomail-prebuilt-template').val(new_val); 92 | jQuery('.image-radio-select label.mailtplactive').each( function () { 93 | jQuery(this).removeClass("mailtplactive"); 94 | }); 95 | jQuery(this).addClass("mailtplactive"); 96 | }); 97 | 98 | // Handle mobile button click 99 | function custom_size_mobile() { 100 | // get email width. 101 | var email_width = parseInt( jQuery('#customize-control-mailtpl_woomail_content_width .range-slider__range').val() ); 102 | var ratio = 380/email_width; 103 | var framescale = 100/ratio; 104 | var framescale = framescale/100; 105 | jQuery('#customize-preview iframe').width(email_width+'px'); 106 | jQuery('#customize-preview iframe').css({ 107 | '-webkit-transform' : 'scale(' + ratio + ')', 108 | '-moz-transform' : 'scale(' + ratio + ')', 109 | '-ms-transform' : 'scale(' + ratio + ')', 110 | '-o-transform' : 'scale(' + ratio + ')', 111 | 'transform' : 'scale(' + ratio + ')' 112 | }); 113 | } 114 | jQuery('#customize-footer-actions .preview-mobile').click(function(e) { 115 | if ( mailtpl_woomail.responsive_mode ) { 116 | jQuery('#customize-preview iframe').width('100%'); 117 | jQuery('#customize-preview iframe').css({ 118 | '-webkit-transform' : 'scale(1)', 119 | '-moz-transform' : 'scale(1)', 120 | '-ms-transform' : 'scale(1)', 121 | '-o-transform' : 'scale(1)', 122 | 'transform' : 'scale(1)' 123 | }); 124 | } else { 125 | custom_size_mobile(); 126 | } 127 | }); 128 | 129 | jQuery('#customize-footer-actions .preview-desktop').click(function(e) { 130 | jQuery('#customize-preview iframe').width('100%'); 131 | jQuery('#customize-preview iframe').css({ 132 | '-webkit-transform' : 'scale(1)', 133 | '-moz-transform' : 'scale(1)', 134 | '-ms-transform' : 'scale(1)', 135 | '-o-transform' : 'scale(1)', 136 | 'transform' : 'scale(1)' 137 | }); 138 | }); 139 | jQuery('#customize-footer-actions .preview-tablet').click(function(e) { 140 | jQuery('#customize-preview iframe').width('100%'); 141 | jQuery('#customize-preview iframe').css({ 142 | '-webkit-transform' : 'scale(1)', 143 | '-moz-transform' : 'scale(1)', 144 | '-ms-transform' : 'scale(1)', 145 | '-o-transform' : 'scale(1)', 146 | 'transform' : 'scale(1)' 147 | }); 148 | }); 149 | 150 | }); 151 | 152 | ( function( $ ) { 153 | 154 | var KWMDIE = { 155 | 156 | init: function() { 157 | $( 'input[name=mailtpl-woomail-export-button]' ).on( 'click', KWMDIE._export ); 158 | $( 'input[name=mailtpl-woomail-import-button]' ).on( 'click', KWMDIE._import ); 159 | }, 160 | 161 | _export: function() { 162 | window.location.href = KWMDIEConfig.customizerURL + '&mailtpl-woomail-export=' + KWMDIEConfig.exportNonce; 163 | }, 164 | 165 | _import: function() { 166 | 167 | // Display confirmation prompt 168 | var confirmation = confirm(KWMDIEl10n.confrim_override); 169 | 170 | // Check user input 171 | if ( ! confirmation ) { 172 | return; 173 | } 174 | 175 | var win = $( window ), 176 | body = $( 'body' ), 177 | form = $( '
' ), 178 | controls = $( '.mailtpl-woomail-import-controls' ), 179 | file = $( 'input[name=mailtpl-woomail-import-file]' ), 180 | message = $( '.mailtpl-woomail-uploading' ); 181 | 182 | if ( '' == file.val() ) { 183 | alert( KWMDIEl10n.emptyImport ); 184 | } else { 185 | win.off( 'beforeunload' ); 186 | body.append( form ); 187 | form.append( controls ); 188 | message.show(); 189 | form.submit(); 190 | } 191 | } 192 | }; 193 | 194 | $( KWMDIE.init ); 195 | 196 | })( jQuery ); 197 | 198 | ( function( $ ) { 199 | 200 | var KWMDTL = { 201 | 202 | init: function() { 203 | $( 'input[name=mailtpl-woomail-template-button]' ).on( 'click', KWMDTL._import_template ); 204 | }, 205 | _import_template: function() { 206 | 207 | // Display confirmation prompt 208 | var confirmation = confirm(KWMDIEl10n.confrim_override); 209 | 210 | // Check user input 211 | if ( ! confirmation ) { 212 | return; 213 | } 214 | var win = $( window ), 215 | body = $( 'body' ), 216 | form = $( '
' ), 217 | controls = $( '.mailtpl-template-woomail-load-controls' ), 218 | message = $( '.mailtpl-woomail-loading' ); 219 | 220 | win.off( 'beforeunload' ); 221 | body.append( form ); 222 | form.append( controls ); 223 | message.show(); 224 | form.submit(); 225 | } 226 | }; 227 | 228 | $( KWMDTL.init ); 229 | 230 | })( jQuery ); 231 | -------------------------------------------------------------------------------- /assets/js/customizer-toggle-switch-control.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Script run inside a Customizer control sidebar 3 | * 4 | * Enable / disable the control title by toggeling its .disabled-control-title style class on or off. 5 | */ 6 | ( function( $ ) { 7 | wp.customize.bind( 'ready', function() { // Ready? 8 | 9 | var customize = this; // Customize object alias. 10 | // Array with the control names 11 | // TODO: Replace #CONTROLNAME01#, #CONTROLNAME02# etc with the real control names. 12 | var toggleControls = [ 13 | '#CONTROLNAME01#', 14 | '#CONTROLNAME02#' 15 | ]; 16 | $.each( toggleControls, function( index, control_name ) { 17 | customize( control_name, function( value ) { 18 | var controlTitle = customize.control( control_name ).container.find( '.customize-control-title' ); // Get control title. 19 | // 1. On loading. 20 | controlTitle.toggleClass('disabled-control-title', !value.get() ); 21 | // 2. Binding to value change. 22 | value.bind( function( to ) { 23 | controlTitle.toggleClass( 'disabled-control-title', !value.get() ); 24 | } ); 25 | } ); 26 | } ); 27 | } ); 28 | } )( jQuery ); -------------------------------------------------------------------------------- /includes/class-customizer-mailtplimportexport-control.php: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 33 | 34 |
35 |
36 | 37 | 13 | 19 | 14 | 15 | label ); ?> 16 | 17 | description ) ) : ?> 18 | description; ?> 19 | 20 | input_attrs(); $this->link(); ?>> 21 |
22 | 23 |
24 | 16 | 17 |
18 | NEW! 19 |

Free Fluid Template

20 | Download Here 21 |
22 | 23 | 24 | 25 |
26 |
27 | choices as $value => $label ) : ?> 28 | 31 | 32 |
33 | 34 | 35 |
36 |
37 | 38 | 31 | 41 | 59 | 69 | domain, 47 | false, 48 | dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' 49 | ); 50 | 51 | } 52 | 53 | /** 54 | * Set the domain equal to that of the specified domain. 55 | * 56 | * @since 1.0.0 57 | * @param string $domain The domain that represents the locale of this plugin. 58 | */ 59 | public function set_domain( $domain ) { 60 | $this->domain = $domain; 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /includes/class-mailtpl-loader.php: -------------------------------------------------------------------------------- 1 | actions = array(); 52 | $this->filters = array(); 53 | 54 | } 55 | 56 | /** 57 | * Add a new action to the collection to be registered with WordPress. 58 | * 59 | * @since 1.0.0 60 | * @param string $hook The name of the WordPress action that is being registered. 61 | * @param object $component A reference to the instance of the object on which the action is defined. 62 | * @param string $callback The name of the function definition on the $component. 63 | * @param int Optional $priority The priority at which the function should be fired. 64 | * @param int Optional $accepted_args The number of arguments that should be passed to the $callback. 65 | */ 66 | public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { 67 | $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args ); 68 | } 69 | 70 | /** 71 | * Add a new filter to the collection to be registered with WordPress. 72 | * 73 | * @since 1.0.0 74 | * @param string $hook The name of the WordPress filter that is being registered. 75 | * @param object $component A reference to the instance of the object on which the filter is defined. 76 | * @param string $callback The name of the function definition on the $component. 77 | * @param int Optional $priority The priority at which the function should be fired. 78 | * @param int Optional $accepted_args The number of arguments that should be passed to the $callback. 79 | */ 80 | public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { 81 | $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args ); 82 | } 83 | 84 | /** 85 | * A utility function that is used to register the actions and hooks into a single 86 | * collection. 87 | * 88 | * @since 1.0.0 89 | * @access private 90 | * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). 91 | * @param string $hook The name of the WordPress filter that is being registered. 92 | * @param object $component A reference to the instance of the object on which the filter is defined. 93 | * @param string $callback The name of the function definition on the $component. 94 | * @param int Optional $priority The priority at which the function should be fired. 95 | * @param int Optional $accepted_args The number of arguments that should be passed to the $callback. 96 | * @return type The collection of actions and filters registered with WordPress. 97 | */ 98 | private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { 99 | 100 | $hooks[] = array( 101 | 'hook' => $hook, 102 | 'component' => $component, 103 | 'callback' => $callback, 104 | 'priority' => $priority, 105 | 'accepted_args' => $accepted_args 106 | ); 107 | 108 | return $hooks; 109 | 110 | } 111 | 112 | /** 113 | * Register the filters and actions with WordPress. 114 | * 115 | * @since 1.0.0 116 | */ 117 | public function run() { 118 | 119 | foreach ( $this->filters as $hook ) { 120 | if( empty( $hook['component'] ) ) { 121 | add_filter( $hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args'] ); 122 | continue; 123 | } 124 | add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); 125 | } 126 | 127 | foreach ( $this->actions as $hook ) { 128 | add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); 129 | } 130 | 131 | } 132 | 133 | } 134 | -------------------------------------------------------------------------------- /includes/class-mailtpl-mailer.php: -------------------------------------------------------------------------------- 1 | plugin_name = $plugin_name; 44 | $this->version = $version; 45 | $this->opts = Mailtpl::opts(); 46 | 47 | } 48 | 49 | /** 50 | * Send html emails instead of text plain 51 | * 52 | * @param $type 53 | * 54 | * @return string 55 | * @since 1.0.0 56 | */ 57 | public function set_content_type($type) { 58 | if( $type != 'text/html' ) { 59 | // If not html, work with content and filter it 60 | add_filter( 'mailtpl/email_content', 'wp_kses_post', 50 ); 61 | $this->add_content_filters(); 62 | } 63 | return $content_type = 'text/html'; 64 | } 65 | 66 | /** 67 | * Send Email to All the SMTP Plugins 68 | * @since 1.0.0 69 | */ 70 | public function send_email($args) { 71 | 72 | do_action( 'mailtpl/send_email', $args, $this ); 73 | $temp_message = $this->add_template( apply_filters( 'mailtpl/email_content', $args['message'] ) ); 74 | $user_email = isset( $args['to'] ) ? $args['to'] : get_option( 'admin_email' ); 75 | $args['message'] = $this->replace_placeholders( $temp_message, $user_email ); 76 | 77 | return $args; 78 | } 79 | 80 | /** 81 | * Add content filters 82 | */ 83 | private function add_content_filters() { 84 | add_filter( 'mailtpl/email_content', 'wptexturize' ); 85 | add_filter( 'mailtpl/email_content', 'convert_chars' ); 86 | add_filter( 'mailtpl/email_content', 'wpautop' ); 87 | } 88 | 89 | /** 90 | * Send a test email to admin email 91 | * @since 1.0.0 92 | */ 93 | public function send_test_email () { 94 | ob_start(); 95 | include_once( apply_filters( 'mailtpl/customizer_template_message', MAILTPL_PLUGIN_DIR . '/admin/templates/partials/default-message.php' ) ); 96 | $message = ob_get_contents(); 97 | ob_end_clean(); 98 | $subject = __( 'Wp Email Templates', 'email-templates'); 99 | 100 | echo wp_mail( get_bloginfo('admin_email'), $subject, $message); 101 | 102 | die(); 103 | } 104 | 105 | /** 106 | * Add template to plain mail 107 | * @param $email string Mail to be send 108 | * @since 1.0.0 109 | * @return string 110 | */ 111 | private function add_template( $email ) { 112 | do_action( 'mailtpl/add_template', $email, $this ); 113 | 114 | $template_file = apply_filters( 'mailtpl/customizer_template', MAILTPL_PLUGIN_DIR . "/admin/templates/default.php"); 115 | ob_start(); 116 | include( $template_file ); 117 | $template = ob_get_contents(); 118 | ob_end_clean(); 119 | return apply_filters('mailtpl/return_template',str_replace( '%%MAILCONTENT%%', $email, $template )); 120 | } 121 | 122 | /** 123 | * Replace placeholders 124 | * 125 | * @param $email string Mail to be send 126 | * 127 | * @param $user_email string Get destination email 128 | * Passed to the filters in case users needs something 129 | * 130 | * @return string 131 | */ 132 | private function replace_placeholders( $email, $user_email = '' ) { 133 | 134 | $to_replace = apply_filters( 'emailtpl/placeholders', array( 135 | '##SITEURL###' => get_option( 'siteurl' ), 136 | '%%BLOG_URL%%' => get_option( 'siteurl' ), 137 | '%%HOME_URL%%' => get_option( 'home' ), 138 | '%%BLOG_NAME%%' => get_option( 'blogname' ), 139 | '%%BLOG_DESCRIPTION%%' => get_option( 'blogdescription' ), 140 | '%%ADMIN_EMAIL%%' => get_option( 'admin_email' ), 141 | '%%DATE%%' => date_i18n( get_option( 'date_format' ) ), 142 | '%%TIME%%' => date_i18n( get_option( 'time_format' ) ), 143 | '%%USER_EMAIL%%' => $user_email 144 | ), $user_email); 145 | 146 | foreach ( $to_replace as $placeholder => $var ) { 147 | if( is_array($var) ){ 148 | do{ 149 | $var = reset($var); 150 | } while( is_array($var) ); 151 | } 152 | $email = str_replace( $placeholder , $var, $email ); 153 | } 154 | 155 | return $email; 156 | 157 | } 158 | 159 | /** 160 | * Sets email's From email 161 | * @since 1.0.0 162 | * @return string 163 | */ 164 | public function set_from_email( $email ){ 165 | if( empty( $this->opts['from_email'] ) ) 166 | return $email; 167 | return $this->opts['from_email']; 168 | } 169 | 170 | /** 171 | * Sets email's From name 172 | * @since 1.0.0 173 | * @return string 174 | */ 175 | public function set_from_name( $name ){ 176 | if( empty( $this->opts['from_name'] ) ) 177 | return $name; 178 | return $this->opts['from_name']; 179 | } 180 | 181 | /** 182 | * Clear retrieve password message for wrong html tag 183 | * @param $message 184 | * 185 | * @return mixed 186 | */ 187 | public function clean_retrieve_password( $message ) { 188 | return make_clickable( preg_replace( '@<(http[^> ]+)>@', '$1', $message ) ); 189 | } 190 | 191 | /** 192 | * This way we fully removed html added by gravity forms. Only possible on versions 2.2.1.5 or above 193 | * @since 1.2.2 194 | * @return string 195 | */ 196 | public function gform_template(){ 197 | return '{message}'; 198 | } 199 | } 200 | -------------------------------------------------------------------------------- /includes/class-mailtpl-woomail-import-option.php: -------------------------------------------------------------------------------- 1 | update( $value ); 23 | } 24 | } -------------------------------------------------------------------------------- /includes/class-mailtpl-woomail-woo.php: -------------------------------------------------------------------------------- 1 | 'mailtpl_woomail', 67 | 'type' => 'title', 68 | 'title' => __('Woocommerce Email Composer', 'mailtpl-woocommerce-email-composer'), 69 | ); 70 | 71 | // Add Open Composer button 72 | $settings[] = array( 73 | 'id' => 'mailtpl_woomail_open_customizer_button', 74 | 'type' => 'mailtpl_woomail_open_customizer_button', 75 | ); 76 | 77 | // Close section 78 | $settings[] = array( 79 | 'id' => 'mailtpl_woomail', 80 | 'type' => 'sectionend', 81 | ); 82 | 83 | // Return remaining settings 84 | return $settings; 85 | 86 | } 87 | 88 | /** 89 | * Print Open Composer button 90 | * 91 | * @access public 92 | * @param array $options settings options. 93 | * @return void 94 | */ 95 | public function print_open_customizer_button( $options ) { 96 | ?> 97 |
99 | 100 | 102 | 103 | 106 | 107 |

Email Templates plugin by wpexpertsio.', 'mailtpl-woocommerce-email-composer' ), 'https://wordpress.org/plugins/email-templates/', 'https://wpexperts.io/' ); ?>

108 |
32 | 33 | 34 | term_id); ?> 35 | 36 | 37 | 38 | term_id); ?> 39 | 40 | 41 | 42 | vendor_order_item_table( $order, $vendor->term_id ); 44 | ?> 45 | 46 |
47 | id)) { 49 | ?> 50 | 51 | wcmp_vendor_get_order_item_totals($order, $vendor->term_id); 53 | if ($totals) { 54 | foreach ($totals as $total_key => $total) { 55 | ?> 56 | 57 | 58 | 62 |
63 | id)) { 66 | ?> 67 |

68 | get_billing_email()) { ?> 69 |

get_billing_first_name() . ' ' . $order->get_billing_last_name(); ?>

70 |

get_billing_email(); ?>

71 | 72 | get_billing_phone()) { ?> 73 |

get_billing_phone(); ?>

74 | id)) { 78 | ?> 79 | 80 | 81 | 85 | 86 |
82 |

83 |

get_formatted_billing_address(); ?>

84 |
87 | 89 | 90 | id)) { ?> 91 | get_formatted_shipping_address())) { ?> 92 | 93 | 94 | 98 | 99 |
95 |

96 |

97 |
100 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /templates/woo/emails/admin-cancelled-order.php: -------------------------------------------------------------------------------- 1 | 45 | -------------------------------------------------------------------------------- /templates/woo/emails/admin-payment-retry.php: -------------------------------------------------------------------------------- 1 | 36 |

get_order_number(), $order->get_formatted_billing_full_name(), wcs_get_human_time_diff( $retry->get_time() ) ) ); ?>

37 |

38 | 32 | 67 | 70 | 105 | 121 | -------------------------------------------------------------------------------- /templates/woo/emails/customer-completed-order.php: -------------------------------------------------------------------------------- 1 | 21 | 22 | 23 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 47 | -------------------------------------------------------------------------------- /templates/woo/emails/customer-completed-switch-order.php: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 | 23 | 29 | 30 | 31 | 32 | 33 | 34 |

35 | 36 | 37 | 38 | 39 | 51 | -------------------------------------------------------------------------------- /templates/woo/emails/customer-invoice.php: -------------------------------------------------------------------------------- 1 | 38 | 39 | 40 | 41 | 42 |

43 | 44 |

' . esc_html( $user_pass ) . '' ); ?>

45 | 46 | 47 | ' . esc_html__( 'You can access your account area to view your orders and change your password.', 'mailtpl-woocommerce-email-composer' ) . '

'; 52 | echo '

' . esc_html__( 'View Account', 'mailtpl-woocommerce-email-composer' ) . '

'; 53 | } else { 54 | ?> 55 |

56 | 38 | 39 |
40 | 41 |

42 | 43 | 37 |

38 | get_time() ) ), array( 'a' => array( 'href' => true ) ) ); 41 | ?> 42 |

43 | ' . esc_html__( 'To reactivate the subscription now, you can also login and pay for the renewal from your account page:', 'mailtpl-woocommerce-email-composer' ) . '

'; 46 | echo '

' . esc_html__( 'Pay Now »', 'mailtpl-woocommerce-email-composer' ) . '

'; 47 | } else { 48 | ?> 49 |

50 | get_checkout_payment_url() ) . '">', '' ), array( 'a' => array( 'href' => true ) ) ); 53 | ?> 54 |

55 | 20 | 21 | 22 | 23 | 31 | 32 | 33 | 34 | 35 | 36 | 48 | -------------------------------------------------------------------------------- /templates/woo/emails/customer-refunded-order.php: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 | 23 | 31 | 32 | 43 | -------------------------------------------------------------------------------- /templates/woo/emails/customer-reset-password.php: -------------------------------------------------------------------------------- 1 | ' . esc_html__( 'Reset Password', 'mailtpl-woocommerce-email-composer' ) . '

'; 40 | } else { 41 | ?> 42 |

43 | 44 | 45 |

46 | 49 |

50 | 60 | -------------------------------------------------------------------------------- /templates/woo/emails/email-addresses.php: -------------------------------------------------------------------------------- 1 | get_formatted_billing_address(); 32 | $shipping = $order->get_formatted_shipping_address(); 33 | $responsive_check = Mailtpl_Woomail_Customizer::opt( 'responsive_mode' ); 34 | if ( true == $responsive_check ) { 35 | ?> 36 | 37 | 38 | 64 | 65 | needs_shipping_address() && $shipping ) : ?> 66 | 67 | 80 | 81 | 82 |
39 |

40 | 41 |
42 | 43 | 44 | 60 | 61 |
45 | 46 | get_billing_phone() ) : 50 | ?> 51 |
get_billing_phone() ); ?> 52 | 53 | get_billing_email() ) : ?> 54 | get_billing_email() ); ?> 55 | 59 |
62 |
63 |
68 |

69 | 70 |
71 | 72 | 73 | 76 | 77 |
74 | 75 |
78 |
79 |
83 | 86 | 87 | 88 | 114 | needs_shipping_address() && $shipping ) : ?> 115 | 127 | 128 | 129 |
89 |

90 | 91 |
92 | 93 | 94 | 110 | 111 |
95 | 96 | get_billing_phone() ) : 100 | ?> 101 |
get_billing_phone() ); ?> 102 | 103 | get_billing_email() ) : ?> 104 | get_billing_email() ); ?> 105 | 109 |
112 |
113 |
116 |

117 |
118 | 119 | 120 | 123 | 124 |
121 | 122 |
125 |
126 |
130 | 32 | 33 | 41 | 42 | -------------------------------------------------------------------------------- /templates/woo/emails/email-downloads.php: -------------------------------------------------------------------------------- 1 | 38 |
39 |

40 | 41 | 42 | 43 | 44 | $column_name ) : ?> 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | $column_name ) : ?> 53 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /templates/woo/emails/email-footer.php: -------------------------------------------------------------------------------- 1 | 47 | 48 |
51 | 52 |
55 | 56 |
60 | 64 | 65 | 66 | 78 | 79 |
67 | 68 | 69 | 71 | 73 | 75 | 76 |
70 | 72 | 74 |
77 |
80 | 81 |
84 | 88 | 89 | 90 | 102 | 103 |
91 | 92 | 93 | 95 | 97 | 99 | 100 |
94 | 96 | 98 |
101 |
104 | 105 | 106 | 107 | 108 |
109 | 110 | 111 | -------------------------------------------------------------------------------- /templates/woo/emails/email-header.php: -------------------------------------------------------------------------------- 1 | id ) ) { 32 | $key = $email->id; 33 | } else { 34 | $key = ''; 35 | } 36 | 37 | 38 | $email_subtitle = Mailtpl_Woomail_Customizer::opt( $key . '_subtitle' ); 39 | if ( ! empty( $email_subtitle ) ) { 40 | $email_subtitle = Mailtpl_Woomail_Composer::filter_subtitle( $email_subtitle, $email ); 41 | } 42 | $subtitle_placement = Mailtpl_Woomail_Customizer::opt( 'subtitle_placement' ); 43 | $responsive_check = Mailtpl_Woomail_Customizer::opt( 'responsive_mode' ); 44 | if ( true == $responsive_check ) { 45 | $responsive_mode = 'fluid'; 46 | } else { 47 | $responsive_mode = 'normal'; 48 | } 49 | $content_width = Mailtpl_Woomail_Customizer::opt( 'content_width' ); 50 | if ( empty( $content_width ) ) { 51 | $content_width = '600'; 52 | } 53 | $content_width = str_replace( 'px', '', $content_width ); 54 | $order_style = Mailtpl_Woomail_Customizer::opt( 'order_items_style' ); 55 | if ( empty( $order_style ) ) { 56 | $order_style = 'normal'; 57 | } 58 | $h2_style = Mailtpl_Woomail_Customizer::opt( 'h2_style' ); 59 | if ( empty( $h2_style ) ) { 60 | $h2_style = 'none'; 61 | } 62 | $header_image_maxwidth = Mailtpl_Woomail_Customizer::opt( 'header_image_maxwidth' ); 63 | if ( empty( $header_image_maxwidth ) ) { 64 | $header_image_maxwidth = 'auto'; 65 | } 66 | $header_image_maxwidth = str_replace( 'px', '', $header_image_maxwidth ); 67 | $header_placement = Mailtpl_Woomail_Customizer::opt( 'header_image_placement' ); 68 | if ( empty( $header_placement ) ) { 69 | $header_placement = 'outside'; 70 | } 71 | $header_image_link = Mailtpl_Woomail_Customizer::opt( 'header_image_link' ); 72 | $img = get_option( 'woocommerce_email_header_image' ); 73 | ?> 74 | 75 | > 76 | 77 | 78 | <?php echo wp_kses_post( get_bloginfo( 'name', 'display' ) ); ?> 79 | 80 | ="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" class="mailtpl-woo-wrap order-items- k-responsive- title-style- email-id-"> 81 |
82 | 83 | 84 |
85 | 86 | 87 | 88 | 109 | 110 |
89 | 90 | 91 | 106 | 107 |
92 | '; 95 | if ( $header_image_link ) { 96 | echo ''; 97 | } 98 | echo '' . esc_attr( get_bloginfo( 'name', 'display' ) ) . ''; 99 | if ( $header_image_link ) { 100 | echo ''; 101 | } 102 | echo '

'; 103 | } 104 | ?> 105 |
108 |
111 | 112 | 113 | 114 | 158 | 159 | 160 |
115 | 116 | 117 | 118 | 139 | 140 |
119 | 120 | 121 | 136 | 137 |
122 | '; 125 | if ( $header_image_link ) { 126 | echo ''; 127 | } 128 | echo '' . esc_attr( get_bloginfo( 'name', 'display' ) ) . ''; 129 | if ( $header_image_link ) { 130 | echo ''; 131 | } 132 | echo '

'; 133 | } 134 | ?> 135 |
138 |
141 | 142 | 143 | 144 | 145 | 154 | 155 |
146 | 147 |
148 | 149 |

150 | 151 |
152 | 153 |
156 | 157 |
161 | 162 | 163 | 164 |
165 | 166 | 167 | 168 | 49 | 90 | 93 | 94 | 98 | 99 | 104 | 105 | 108 | 109 | $item ) : 114 | $product = $item->get_product(); 115 | $sku = ''; 116 | $purchase_note = ''; 117 | $image = ''; 118 | 119 | if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { 120 | continue; 121 | } 122 | 123 | if ( is_object( $product ) ) { 124 | $sku = $product->get_sku(); 125 | $purchase_note = $product->get_purchase_note(); 126 | $image = $product->get_image( $image_size ); 127 | } 128 | 129 | ?> 130 | 131 | 162 | 175 | 178 | 179 | 183 | 184 | 189 | 190 | 193 | 194 | 198 | -------------------------------------------------------------------------------- /templates/woo/emails/subscription-info.php: -------------------------------------------------------------------------------- 1 | 24 |
25 |

26 |
27 | 28 |
169 |
170 | -------------------------------------------------------------------------------- /templates/woo/emails/email-order-items.php: -------------------------------------------------------------------------------- 1 | $item ) : 32 | $product = $item->get_product(); 33 | $sku = ''; 34 | $purchase_note = ''; 35 | $image = ''; 36 | 37 | if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { 38 | continue; 39 | } 40 | 41 | if ( is_object( $product ) ) { 42 | $sku = $product->get_sku(); 43 | $purchase_note = $product->get_purchase_note(); 44 | $image = $product->get_image( $image_size ); 45 | } 46 | 47 | ?> 48 |
50 | ' . wp_kses_post( apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ) ) . '

'; 59 | 60 | // SKU. 61 | if ( $show_sku && $sku ) { 62 | echo wp_kses_post( ' (#' . $sku . ')' ); 63 | } 64 | 65 | // allow other plugins to add additional product information here. 66 | do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); 67 | 68 | $qty = $item->get_quantity(); 69 | $refunded_qty = $order->get_qty_refunded_for_item( $item_id ); 70 | 71 | if ( $refunded_qty ) { 72 | $qty_display = '' . esc_html( $qty ) . ' ' . esc_html( $qty - ( $refunded_qty * -1 ) ) . ''; 73 | } else { 74 | $qty_display = esc_html( $qty ); 75 | } 76 | echo '

' . esc_html__( 'Quantity:', 'mailtpl-woocommerce-email-composer' ) . ' ' . wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ) ) . '

'; 77 | 78 | wc_display_item_meta( 79 | $item, 80 | array( 81 | 'label_before' => '', 82 | ) 83 | ); 84 | 85 | // allow other plugins to add additional product information here. 86 | do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text ); 87 | 88 | ?> 89 |
91 | get_formatted_line_subtotal( $item ) ); ?> 92 |
100 | 103 |
132 | get_name(), $item, false ) ); 141 | 142 | // SKU. 143 | if ( $show_sku && $sku ) { 144 | echo wp_kses_post( ' (#' . $sku . ')' ); 145 | } 146 | 147 | // allow other plugins to add additional product information here. 148 | do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text ); 149 | 150 | wc_display_item_meta( 151 | $item, 152 | array( 153 | 'label_before' => '', 154 | ) 155 | ); 156 | 157 | // allow other plugins to add additional product information here. 158 | do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text ); 159 | 160 | ?> 161 | 163 | get_quantity(); 165 | $refunded_qty = $order->get_qty_refunded_for_item( $item_id ); 166 | 167 | if ( $refunded_qty ) { 168 | $qty_display = '' . esc_html( $qty ) . ' ' . esc_html( $qty - ( $refunded_qty * -1 ) ) . ''; 169 | } else { 170 | $qty_display = esc_html( $qty ); 171 | } 172 | echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ) ); 173 | ?> 174 | 176 | get_formatted_line_subtotal( $item ) ); ?> 177 |
185 | 188 |
29 | 30 | 31 | 35 | 39 | 40 | 41 | 45 | 49 | 50 | 51 |
32 |

33 |

get_order_number() ) ); ?>

34 |
36 |

37 |

get_formatted_order_total() ); ?>

38 |
42 |

43 |

get_time( 'date_created', 'site' ) ) ); ?>

44 |
46 |

47 |

get_time( 'end' ) ) ? date_i18n( wc_date_format(), $subscription->get_time( 'end', 'site' ) ) : _x( 'When Cancelled', 'Used as end date for an indefinite subscription', 'mailtpl-woocommerce-email-composer' ) ); ?>

48 |
52 | 53 | 54 | 55 |
56 |

57 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /templates/woo/emails/waitlist-mailout.php: -------------------------------------------------------------------------------- 1 | id = 'woocommerce_waitlist_mailout'; 14 | $eobject->object = wc_get_product( $product_id ); 15 | $hide_check = Mailtpl_Woomail_Customizer::opt( 'woocommerce_waitlist_mailout_hide_content' ); 16 | do_action( 'woocommerce_email_header', $email_heading, $eobject ); ?> 17 | 18 | 24 | 25 |

26 | 28 |

29 |

30 | ' . $product_link . '' ); ?> 31 |

32 | 33 | ' . __( 'You have been removed from the waitlist for this product', 'mailtpl-woocommerce-email-composer' ) . '

'; 35 | } 36 | } 37 | /** 38 | * Show user-defined additonal content - this is set in each email's settings. 39 | */ 40 | if ( isset( $additional_content ) && ! empty( $additional_content ) ) { 41 | echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) ); 42 | } 43 | do_action( 'woocommerce_email_footer', $eobject ); ?> -------------------------------------------------------------------------------- /uninstall.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | --------------------------------------------------------------------------------