-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from woocommerce/add/email-template-file
Extract email template to a template file
- Loading branch information
Showing
3 changed files
with
113 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* The Template for rendering the Lesson Drip email. | ||
* | ||
* Override this template by copying it to yourtheme/sensei-content-drip/single-email-drip-notification.php | ||
* | ||
* @author Automattic | ||
* @package sensei-content-drip | ||
* @category Templates | ||
* @version 2.0.0 | ||
*/ | ||
?> | ||
|
||
<p><?php echo esc_html( $email_greeting ); ?></p> | ||
|
||
<p><?php echo esc_html( $email_body ); ?></p> | ||
|
||
<p> | ||
<ul> | ||
<?php foreach ( $courses_and_lessons as $course_id => $lesson_data_items ) { ?> | ||
<?php foreach ( $lesson_data_items as $lesson_id => $lesson_data ) { ?> | ||
|
||
<li> | ||
<a href="<?php echo esc_url( $lesson_data['url'] ); ?>"> | ||
<?php echo esc_html( $lesson_data['title'] ); ?> | ||
</a> | ||
</li> | ||
|
||
<?php } ?> | ||
<?php } ?> | ||
</ul> | ||
</p> | ||
|
||
<p><?php echo wp_kses_post( $email_footer ); ?></p> |