- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
<?php | |
/** | |
* Plugin Name: Envira Gallery - Lightbox for Custom Images | |
* Plugin URI: http://enviragallery.com | |
* Version: 2.0 | |
* Author: Erica Franz | |
* Author URI: https://fatpony.me/ | |
* Description: Use the Envira Gallery lightbox for non-gallery images throughout your site. | |
*/ |
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: Soliloquy - Change YouTube Video Arguments | |
* Plugin URI: http://soliloquywp.com | |
* Version: 1.0 | |
* Author: Tim Carr | |
* Author URI: http://www.n7studios.co.uk | |
* Description: Add, edit or remove arguments for the YouTube Video Slides | |
*/ |
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 | |
add_filter( 'optin_monster_pre_optin_mailchimp', 'tgm_om_custom_mailchimp_data', 10, 4 ); | |
/** | |
* Filter the data sent to Mailchimp. | |
* | |
* See here for more info on what is passed: https://apidocs.mailchimp.com/api/2.0/lists/subscribe.php | |
* | |
* @param array $data Array of data being sent to Mailchimp. | |
* @param array $lead Array of lead data captured from the optin submission. | |
* @param string $list_id The unique list ID to subscribe the lead to. |
- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
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: OptinMonster Query Limit | |
* Description: Increases the default query limit for page-level targeting. | |
* Version: 1.0.0 | |
*/ | |
add_filter( 'optin_monster_post_selection_limit', 'tgm_om_post_selection_limit' ); | |
function tgm_om_post_selection_limit( $limit ) { | |
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('click', '.om-custom-html-form a button', function(e){ | |
// Prepare variables. | |
var $this = $(this), | |
optin = $this.closest('.optin-monster-overlay').attr('id').replace('om-', '').replace('-', '_'); | |
if ( ! window[optin] ) { | |
return; | |
} | |
// Send ajax request to track the optin. |
NewerOlder