Created
July 5, 2018 07:43
-
-
Save bryceadams/bab0c33e33c4fe7915ab3429e3f827b4 to your computer and use it in GitHub Desktop.
Metorik Helper 1.0.0 - Add Cart Email Form template file
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
<?php | |
/** | |
* Metorik: Add cart email form template. | |
* | |
* This template can be overriden by copying this file to your-theme/metorik/add-cart-email-form.php | |
* | |
* Variables available: | |
* 1. $title - Title (set in Metorik). | |
* 2. $email_usage_notice - Email usage notice (if enabled in Metorik and customer didn't opt-out). | |
* | |
* @version 1.0.0 | |
*/ | |
if (!defined('ABSPATH')) { | |
exit; | |
} // Don't allow direct access | |
?> | |
<div class="metorik-add-cart-email-form"> | |
<!-- Title of the popup --> | |
<h3><?php echo $title; ?></h3> | |
<!-- Email input wrapper - it's recommended to keep this markup as-is so loading icons can automatically be added --> | |
<div class="email-input-wrapper"> | |
<!-- Don't change the 'email-input' class on this input - used for saving email --> | |
<input type="text" placeholder="<?php _e('Your email', 'metorik'); ?>" class="email-input" /> | |
</div> | |
<!-- Email usage notice if enabled --> | |
<?php if ($email_usage_notice) { | |
?> | |
<div class="email-usage-notice"> | |
<!-- Output email usage notice text / opt-out link --> | |
<?php echo $email_usage_notice; ?> | |
</div> | |
<?php | |
} ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment