Skip to content

Instantly share code, notes, and snippets.

Devin DevinVinson

View GitHub Profile
View trustpulse-trigger-on-page-load.js
// REPLACE THIS WITH THE CAMPAIGN'S ID
var campaignId = 'XXXXX';
// DO NOT EDIT BELOW THIS LINE
document.addEventListener('tp.Main.EventListener.Ready', function () {
var event = new CustomEvent('tp.Custom.Submit', {
bubbles : true,
cancelable : true,
detail : {
widgetId: campaignId,
fields: []
View om-inline-prioritizer.php
<?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
View ems-sample-plugin
<?php
/*
Plugin Name: Emergency Broadcast System
Author: Everyone
*/
function ebs_header_message() {
echo '<div style="background:red;color:white">THIS IS BAD. COME BACK LATER</div>';
View verified-users-plugin
<?php
/*
Plugin Name: Verified Users
Version: 1.0
Description: Very simple verified users option
Author: Devin Vinson
Text Domain: verified-users
Domain Path: /languages
*/
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@DevinVinson
DevinVinson / gist:9559479
Created Mar 14, 2014
Change the Enfold single product page layout
View gist:9559479
#
# wrap single product image in an extra div
#
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20);
function avia_add_image_div()
{
echo "<div class='four units single-product-main-image alpha'>";
}
@DevinVinson
DevinVinson / gist:9266284
Created Feb 28, 2014
Change single product page to have right sidebar
View gist:9266284
#
# wrap single product image in an extra div
#
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20);
function avia_add_image_div()
{
echo "<div class='four units single-product-main-image alpha'>";
}
@DevinVinson
DevinVinson / Print.css
Last active Dec 20, 2016
Print.css working file for Enfold
View Print.css
/*
* Print Styling
*/
.page-break { display: block; page-break-before: always; }
p, a, strong{
color: black !important;
}
a{
@DevinVinson
DevinVinson / template-fullwidth.php
Created Nov 19, 2013
Full width Template for Enfold
View template-fullwidth.php
<?php
/*
* Template Name: Full width
* See the codex entry on custom template for more information: http://codex.wordpress.org/Page_Templates#Custom_Page_Template
*
* Add html above or below the_content inside the comments
* Add php snippets as well with their own opening and closing php
*/
global $avia_config, $post;
View demo.html
<ol>
<li>
<div class="fade-in one">
<div class="box" style="background:#d10000;"></div>
</div>
</li>
<li>
<div class="fade-in two">
<div class="box" style="background:#ff6622;"></div>
You can’t perform that action at this time.