This file contains hidden or 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
<form id="campaign-{{id}}" novalidate class="{{ns}}" method="POST" action="submit.php"> | |
<input id="name" type="text" placeholder="First and Last Name" required /> | |
<input id="email" type="email" placeholder="Email" required /> | |
<span class="error"></span> | |
<input type="submit" name="submit" value="Submit" /> | |
</form> | |
<script> | |
(function() { | |
const form = document.getElementById('campaign-{{id}}'); |
This file contains hidden or 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
<form id="campaign-{{id}}" novalidate class="{{ns}}" method="POST" action="submit.php"> | |
<input id="name" type="text" placeholder="First and Last Name" required /> | |
<input id="email" type="email" placeholder="Email" required /> | |
<span class="error"></span> | |
<input type="submit" name="submit" value="Submit" /> | |
</form> | |
<script> | |
(function() { | |
const form = document.getElementById('campaign-{{id}}'); |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
$(document).on('om.Campaign.load', function(e, data){ | |
// Grab the email address submitted by the user. | |
var email = $('#om-' + data.optin).find('input[type="email"]').val(); | |
// Test to ensure it is a proper email. Otherwise, redirect to another page. | |
if ( /@yahoo\.com$/.test(email) || /@gmail\.com$/.test(email) || /@hotmail\.com$/.test(email) || /@googlemail\.com$/.test(email) || /@live\.com$/.test(email) || /@aol\.com$/.test(email) || /@outlook\.com$/.test(email) || /@comcast\.net$/.test(email) || /@inbox\.com$/.test(email) || /@hushmail\.com$/.test(email) || /@lycos\.com$/.test(email) || /@zoho\.com$/.test(email) || /@gmx\.com$/.test(email) ) { | |
window[data.optin_js].optin = function(){ | |
return window.location.href = 'https://optinmonster.com/'; | |
}; |
This file contains hidden or 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
<a href="https://app.monstercampaigns.com/c/CAMPAIGN_ID/" target="_blank" >MonsterLink</a> | |
<script type="text/javascript"> | |
document.addEventListener('om.Campaign.afterShow', function(event) { | |
if (event.detail.Campaign.id === "CAMPAIGN_ID") { | |
var redirectWindow = window.open('REDIRECT_URL', '_blank'); | |
jQuery.ajax({ |
This file contains hidden or 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
add_filter('envira_gallery_output_before_image', 'enfold_envira_gallery_output_before_image', 10, 5); | |
function enfold_envira_gallery_output_before_image( $output, $id, $item, $data, $i ) { | |
$output = str_replace('envira-gallery-link', 'envira-gallery-link noHover', $output); | |
return $output; | |
} |
This file contains hidden or 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
/** | |
* Force Download | |
* | |
* Generates headers that force a download to happen | |
* Example usage: | |
* force_download( 'screenshot.png', './images/screenshot.png' ); | |
* | |
* @access public | |
* @param string $filename | |
* @param string $data |
This file contains hidden or 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 | |
/** | |
* Plugin Name: OM Inline Prioritizer | |
* Version: 1.0 | |
* Description: Simple change to the OptinMonster default priority for inline optins. | |
* Author: Devin Vinson | |
* Author URI: http://optinmonster.com | |
* Text Domain: om-inline-prioritizer | |
* Domain Path: /languages | |
* @package om-inline-prioritizer |