Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created July 5, 2018 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryceadams/bab0c33e33c4fe7915ab3429e3f827b4 to your computer and use it in GitHub Desktop.
Save bryceadams/bab0c33e33c4fe7915ab3429e3f827b4 to your computer and use it in GitHub Desktop.
Metorik Helper 1.0.0 - Add Cart Email Form template file
<?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