What needs to be added to the mail template to include this text and two icons at the very bottom

Hey:

What needs to be added to the mail template to include this text and two icons at the very bottom of the Subscribe By Email notifications? See attached.

Also, is the are way to have a "forward to a friend" share form link with SBE (if not, we will link that somewhere else for now but just curious)? Also, if not, are there plans to add that as a feature or would that be a good feature request perhaps? OR, is there another plugin or method that would be a good way to do it (show a web form, they insert 3 or so friend emails, and forward the email or blog post link)....?

:slight_smile:

Greg

  • Vaughan

    Hi Greg,

    you would need to add this directly to the template as I mentioned previously, in the render_mail_contents function.

    See the following code;

    <table <?php echo $table_style; ?>>
    						<tbody>
    							<tr>
    								<td></td>
    								<td <?php echo $column_style; ?> bgcolor="#EFEFEF">
    									<div <?php echo $column_wrap_style; ?>>
    										<table <?php echo $table_style; ?>>
    											<tbody>
    												<tr>
    													<td <?php echo $footer_style; ?>>
    														<p>
    															<?php printf( __( 'You are subscribed to email updates from <a href="%s">%s</a>', INCSUB_SBE_LANG_DOMAIN ), get_home_url(), get_bloginfo( 'name' ) ); ?>  <br/>
    															<?php if ( absint( $this->settings['manage_subs_page'] ) ): ?>
    																<?php printf( __( 'To manage your subscriptions, <a href="%s">click here</a>.', INCSUB_SBE_LANG_DOMAIN ), esc_url( add_query_arg( 'sub_key', $key, get_permalink( $this->settings['manage_subs_page'] ) ) ) ); ?> <br/>
    															<?php endif; ?>
    															<?php printf( __( 'To stop receiving these emails, <a href="%s">click here</a>.', INCSUB_SBE_LANG_DOMAIN ), esc_url( $this->get_unsubscribe_url( $key ) ) ); ?>
    														</p>
    														<p><?php echo wpautop( $this->settings['footer_text'] ); ?></p>
    													</td>
    												</tr>
    											</tbody>
    										</table>
    									</div>
    								</td>
    								<td></td>
    							</tr>
    						</tbody>
    					</table>

    So you would need to place the code in the above where you want it displayed.

    Unfortunately, I don't think it's possible to add a forward to form as some clients wouldn't work with that anyway. Most email clients have a forwarding button anyway, so i'm not sure having a button in the email is necessary, the users could just hit the forward button in their email client.

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.