Skip to content

Instantly share code, notes, and snippets.

View JBreit's full-sized avatar

Jason Breitigan JBreit

  • Inner Mind Co.
  • Lancaster, PA
View GitHub Profile
@JBreit
JBreit / confirmation.php
Last active December 16, 2015 23:29
A PHP script to validate the contact form on contact.php and either send the user back to the contact page to fix their errors or forgotten data entry or echo a success message that their form was mailed off after they were validated and accepted for not being a spam bot.
<?php
/*
* reCaptcha spam filter is 3rd party code was provided
* by Google and downloaded at http://www.google.com/recaptcha/
*
* Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net
* AUTHORS:
* Mike Crawford
* Ben Maurer
*
@JBreit
JBreit / contact.php
Last active December 16, 2015 23:29
Contact page with a working form that validates that the user not only entered in correct user information but also is not a spam bot trolling the internet.
<?php
$action = (isset($_POST['__action'])) ? $_POST['__action'] : null; // is the action we have to take
$err = array(); // empty array to hold any processing errors
if($action){ // there is an action
if($action == 'Send'){
// we must process the email form
require_once('confirmation.php'); // require the file needed to process email form
a img {
border: none;
}
article.content-article p img {
float: left;
height: 250px;
width: 350px;
margin-right: 20px;
}
article#ben-info p img {
a img {
border: none;
}
article.content-article p img {
float: left;
height: 250px;
width: 350px;
margin-right: 20px;
}
article#ben-info p img {
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Come Alive Chiropractic - Home</title>
<style type="text/css" media="screen">
@import "css/comealive_style.css";
</style>
<!--[if gte IE 9]>
<style type="text/css">
a img {
border: none !important;
}
body {
font-family: "Helvetica Neue" , sans-serif;
margin: 0 auto;
}
footer {
color: #FFFFFF;
height: 50px;
<!DOCTYPE html>
<!-- saved from url=(0032)http://www.nicbrunson.com/#stats -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Type" content="">
<meta name="viewport" content="width=device-width; initial-scale=0.5; maximum-scale=1.0; user-scalable=0;">
<link rel="icon" href="favicon.ico">
<link rel="shortcut icon" href="favicon.ico">
<title>Nic Brunson</title>
<link href="css/manifest.css" rel="stylesheet" type="text/css">
@JBreit
JBreit / home_test.html
Created October 27, 2013 20:19
Picture Polyfill for image swap based on display resolution with issues with the images being cut off when absolutely positioned bottom and left 0.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Spundies">
<meta name="author" content="Jason Breitigan">
<link rel="shortcut icon" href="images/favicon.ico">
<?php
class BaseController extends Controller {
/**
<div class="billboard">
<div class="carousel">
<div class="container">
</div><!-- .container -->
</div><!-- .carousel -->
</div><!-- .billboard -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="container">