| 1 |
<?php |
| 2 |
/** |
| 3 |
* Email Footer |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/emails/footer.php |
| 6 |
* |
| 7 |
* @author WP Charitable LLC |
| 8 |
* @package Charitable/Templates/Emails |
| 9 |
* @version 1.0.0 |
| 10 |
* @version 1.8.8.4 - fixed PHP warning when using wp_kses_post() in footer content. |
| 11 |
* @version 1.8.8.6 |
| 12 |
*/ |
| 13 |
|
| 14 |
// Exit if accessed directly. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
// For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. |
| 20 |
$charitable_template_footer = " |
| 21 |
border-top:0; |
| 22 |
-webkit-border-radius:3px; |
| 23 |
"; |
| 24 |
|
| 25 |
$charitable_credit = " |
| 26 |
border:0; |
| 27 |
color: #000000; |
| 28 |
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
| 29 |
font-size:12px; |
| 30 |
line-height:125%; |
| 31 |
text-align:center; |
| 32 |
"; |
| 33 |
?> |
| 34 |
</div> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
</table> |
| 38 |
<!-- End Content --> |
| 39 |
</td> |
| 40 |
</tr> |
| 41 |
</table> |
| 42 |
<!-- End Body --> |
| 43 |
</td> |
| 44 |
</tr> |
| 45 |
<tr> |
| 46 |
<td align="center" valign="top"> |
| 47 |
<!-- Footer --> |
| 48 |
<table border="0" cellpadding="10" cellspacing="0" width="600" id="template_footer" style="<?php echo esc_attr( $charitable_template_footer ); ?>"> |
| 49 |
<tr> |
| 50 |
<td valign="top"> |
| 51 |
<table border="0" cellpadding="10" cellspacing="0" width="100%"> |
| 52 |
<tr> |
| 53 |
<td colspan="2" valign="middle" id="credit" style="<?php echo esc_attr( $charitable_credit ); ?>"> |
| 54 |
<?php |
| 55 |
/** |
| 56 |
* Filter the complete email footer content output. |
| 57 |
* |
| 58 |
* @since 1.8.0 |
| 59 |
* |
| 60 |
* @param string $footer_content The default footer content. |
| 61 |
*/ |
| 62 |
$charitable_footer_content = apply_filters( 'charitable_email_footer_content', wp_kses_post( wpautop( |
| 63 |
wp_kses_post( |
| 64 |
wptexturize( |
| 65 |
/** |
| 66 |
* Filter the email footer text & link. |
| 67 |
* |
| 68 |
* @since 1.0.0 |
| 69 |
* |
| 70 |
* @param string $text The default text. |
| 71 |
*/ |
| 72 |
apply_filters( 'charitable_email_footer_text', '<a href="' . esc_url( home_url() ) . '">' . get_bloginfo( 'name' ) . '</a>' ) |
| 73 |
) |
| 74 |
) |
| 75 |
) ) ); |
| 76 |
|
| 77 |
echo wp_kses_post( $charitable_footer_content ); |
| 78 |
?> |
| 79 |
</td> |
| 80 |
</tr> |
| 81 |
</table> |
| 82 |
</td> |
| 83 |
</tr> |
| 84 |
</table> |
| 85 |
<!-- End Footer --> |
| 86 |
</td> |
| 87 |
</tr> |
| 88 |
</table> |
| 89 |
</td> |
| 90 |
</tr> |
| 91 |
</table> |
| 92 |
</div> |
| 93 |
</body> |
| 94 |
</html> |
| 95 |
|