Skip to content

Commit

Permalink
for part of #21, expand the regions and conditionals for site messagi…
Browse files Browse the repository at this point in the history
…ng plugin. don't do the template changes yet since the messages won't be ready.
jonathanstegall committed Nov 8, 2019

Verified

This commit was signed with the committer’s verified signature.
1 parent 8eaa79e commit 747e2af
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front-page.php
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@

<aside class="o-content-message o-content-message-homepage">
<article class="o-content-message-body o-content-message-homepage-body">
<?php do_action( 'wp_message_inserter', 'homepage_middle' ); ?>
<?php echo do_shortcode( '[newsletter_form placement="frontpage" content_before="<header><h3 class=\'a-signup-title-homepage\'>Stay informed</h3><h4>Sign up for our daily newsletter</h4></header>" in_content_label="Enter your email address or see our <a href=\'/newsletters/\'>other free newsletter options</a>" in_content_label_placement="after"]' ); ?>
</article>
</aside>

2 changes: 1 addition & 1 deletion template-parts/content.php
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@
<?php minnpost_share_buttons( 'bottom' ); ?>

<?php if ( 'on' !== get_post_meta( get_the_ID(), '_mp_remove_newsletter_signup_from_display', true ) ) : ?>
<?php do_action( 'wp_message_inserter', 'article_bottom' ); ?>
<?php echo do_shortcode( '[newsletter_form placement="instory" content_before="<h3 class=\'a-signup-title\'>Get MinnPost in your email inbox:</h3>" content_after="<p>You can also <a href=\'/newsletters/\'>learn about all our free newsletter options</a>.</p>"]' ); ?>
<?php endif; ?>

<?php

0 comments on commit 747e2af

Please sign in to comment.