Skip to content

Instantly share code, notes, and snippets.

@elioverbey
elioverbey / SIM.php
Last active December 20, 2015 03:29
Adding SIM (Server Integration Method) from Auth.net to Wordpress
<?php
require_once 'anet_php_sdk/AuthorizeNet.php'; // Include the SDK you downloaded in Step 2
$api_login_id = '########';
$transaction_key = '#############';
$amount = "599.00";
$fp_timestamp = time();
$fp_sequence = "1" . time(); // Enter an invoice or other unique number.
$fingerprint = AuthorizeNetSIM_Form::getFingerprint($api_login_id,
$transaction_key, $amount, $fp_sequence, $fp_timestamp)
?>
@elioverbey
elioverbey / Contact Form 7
Created August 2, 2013 03:34
Contact Form 7
<p>Your Name (required)<br />
[text* your-name] </p>
<p>Your Email (required)<br />
[email* your-email] </p>
<p>Subject<br />
[text your-subject] </p>
<p>Your Message<br />
@elioverbey
elioverbey / NPS.html
Created October 1, 2013 22:56
NPS.GOV
<div id="mainContent">
<!--<h1>Title</h1>
<h2>Subtitle</h2>-->
<p>Because of the federal government shutdown, all national parks are closed and National Park Service webpages are not operating. For more information, go to <a href="http://www.doi.gov">www.doi.gov</a>.</p>
<p>&nbsp;</p>
<!-- end #mainContent -->
@elioverbey
elioverbey / single-listing.php
Created November 21, 2013 13:05
AppThemes' Vantage does not have no follow on the directory links nor the social icons. Replace this with what is on single-listing.php to add no follow links (otherwise you will be following all the links off your page)
<div id="main">
<?php the_post(); ?>
<?php do_action( 'appthemes_notices' ); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope itemtype="http://schema.org/Organization">
<?php the_listing_image_gallery(); ?>
<?php appthemes_before_post_title( VA_LISTING_PTYPE ); ?>
@elioverbey
elioverbey / wrapper.php
Created November 21, 2013 16:11
No Index, No Follow for Vantage AppThemes
<?php if(is_archive()): ?>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW" />
<?php endif; ?>
@elioverbey
elioverbey / Friends-Badge.html
Created January 7, 2014 20:26
Thriveworks Badge
<a href="http://thriveworks.com/wp-content/uploads/2014/01/Thriveworks-Badge.png">
<img class="alignright size-full wp-image-8547" alt="Thriveworks Badge" src="http://thriveworks.com/wp-content/uploads/2014/01/Thriveworks-Badge.png" width="150" height="154" />
</a>
<?php
//* Start the engine
include_once( get_template_directory() . '/lib/init.php' );
//* Child theme
define( 'CHILD_THEME_NAME', 'Nominal Theme' );
define( 'CHILD_THEME_URL', 'http://elioverbey.net' );
define( 'CHILD_THEME_VERSION', '1.0' );
//* Enqueue scripts and styles
/*
Theme Name: Nominal Theme
Theme URI: http://elioverbey.net/blog/build-first-genesis-child-theme/
Description: A minimal responsive and HTML5 free theme built for the Genesis Framework.
Author: Eli Overbey
Author URI: http://www.elioverbey.net
Version: 1.0
Template: genesis
@elioverbey
elioverbey / global.js
Created March 18, 2014 21:09
Remove the Shrinking Header Action on the Centric Pro Theme from Genesis
jQuery(function( $ ){
$(".site-header").after('<div class="bumper"></div>');
$(window).scroll(function () {
if ($(document).scrollTop() > 1 ) {
$('.site-header').removeClass('shrink');
} else {
$('.site-header').removeClass('shrink');
}
/* On Line 1049 Change: */
.site-header .wrap {
min-height: 30px;
}
/* On Line 1053 Change: */
.bumper {
min-height: 30px;
}