| 1 |
<?php |
| 2 |
/** |
| 3 |
* Emails: Template interface |
| 4 |
* |
| 5 |
* @package SimplePay |
| 6 |
* @copyright Copyright (c) 2023, Sandhills Development, LLC |
| 7 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 8 |
* @since 4.7.3 |
| 9 |
*/ |
| 10 |
|
| 11 |
namespace SimplePay\Core\Emails\Template; |
| 12 |
|
| 13 |
if ( ! defined( 'ABSPATH' ) ) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
/** |
| 18 |
* TemplateInterface interface. |
| 19 |
* |
| 20 |
* @since 4.7.3 |
| 21 |
*/ |
| 22 |
interface TemplateInterface { |
| 23 |
|
| 24 |
/** |
| 25 |
* Returns the CSS styles for the template. |
| 26 |
* |
| 27 |
* @since 4.7.3 |
| 28 |
* |
| 29 |
* @return string |
| 30 |
*/ |
| 31 |
public function get_styles(); |
| 32 |
|
| 33 |
/** |
| 34 |
* Returns the header markup for the template. |
| 35 |
* |
| 36 |
* @since 4.7.3 |
| 37 |
* |
| 38 |
* @param string $content The header content of the email. |
| 39 |
* @return string |
| 40 |
*/ |
| 41 |
public function get_header( $content ); |
| 42 |
|
| 43 |
/** |
| 44 |
* Returns the body of the email. |
| 45 |
* |
| 46 |
* @since 4.7.3 |
| 47 |
* |
| 48 |
* @param string $content The content of the email. |
| 49 |
* @return string |
| 50 |
*/ |
| 51 |
public function get_body( $content ); |
| 52 |
|
| 53 |
/** |
| 54 |
* Returns the footer of the email. |
| 55 |
* |
| 56 |
* @since 4.7.3 |
| 57 |
* |
| 58 |
* @param string $content The footer content of the email. |
| 59 |
* @return string |
| 60 |
*/ |
| 61 |
public function get_footer( $content ); |
| 62 |
|
| 63 |
} |
| 64 |
|