Skip to content

Instantly share code, notes, and snippets.

View chrisjimallen's full-sized avatar

Chris Allen chrisjimallen

View GitHub Profile
.submit-button {
@include button;
border-radius: 3px;
font-size: rem-calc(20);
text-transform: capitalize;
background-color : $cta-color;
display: block;
margin: rem-calc(10) auto;
&:hover,
&:focus {
$sendy = App::make('Hbsa\Api\Sendy\Connector');
$list = MailingList::where('name','=',$contactData['list_name'])->first();
$sendy->setListId($list->sendy_id);
$data = Array(
'name' => $contactData['first_name'],
'email' => $contactData['email_address'],
// 'email_address' => 'testingpost'.time().'@chrisjallen.com',
'Firstname' => $contactData['first_name'],
'Lastname' => $contactData['last_name'],
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
Uncaught Exception
Expected response code 220 but got code "421", with message "421 4.4.5 Server busy, try again later. (mx.google.com) g4sm55605691obe.5 - gsmtp
" in ./__swift/thirdparty/SwiftMailer/classes/SwiftMailer/Transport/AbstractSmtpTransport.php:422
=================================================================================================================================
#0 ./__swift/thirdparty/SwiftMailer/classes/SwiftMailer/Transport/AbstractSmtpTransport.php(315): SwiftMailer_Transport_AbstractSmtpTransport->_assertResponseCode('421 4.4.5 Serve...', Array)
#1 ./__swift/thirdparty/SwiftMailer/classes/SwiftMailer/Transport/AbstractSmtpTransport.php(123): SwiftMailer_Transport_AbstractSmtpTransport->_readGreeting()
#2 ./__swift/thirdparty/SwiftMailer/classes/SwiftMailer/Mailer.php(79): SwiftMailer_Transport_AbstractSmtpTransport->start()
#3 ./__swift/library/Mail/class.SWIFT_Mail.php(529): SwiftMailer_Mailer->send(Object(SwiftMailer_Message))
#4 ./__apps/tickets/library/Ticket/class.SWIFT_Ti
@chrisjimallen
chrisjimallen / gist:7944411
Created December 13, 2013 13:45
Quick fix for WP3.8 logo sizing
.login h1 a { width: inherit;}
@chrisjimallen
chrisjimallen / gist:6653448
Created September 21, 2013 19:29
This CSS will have to be added to the bottom of every stylesheet that you require a step 4 page.
.step4 label {
font-size: 26px;
font-weight: bold;
color:#fff;
margin-top: 5px;
}
.step4 input[type="text"] {
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
@chrisjimallen
chrisjimallen / gist:6507709
Created September 10, 2013 10:42
Neat way of handling a value and setting defaults
if (isset( $atts['style'])) {
$form_style = ($atts['style'] == '') ? 1 : $atts['style']; // Choose checkout form style
} else {
$form_style = 1;
}
@chrisjimallen
chrisjimallen / gist:6245322
Created August 15, 2013 21:53
How to make sure the event is tracked BEFORE the form is submitted.
jQuery(document).ready(function($){
$('form').submit(function(event){
//if analytics object exists
if(window._gat){
event.preventDefault();
optinForm = this;
_gaq.push(['_set','hitCallback', function(){
optinForm.submit();
}]);
_gaq.push(['_trackEvent', 'Forms', 'Submit', 'hbsanewtraffic']);
@chrisjimallen
chrisjimallen / gist:5804374
Last active December 18, 2015 15:28
Toggle Accordion for Andy-San
$( "p.title" ).click(function() {
if ($(this).parent().hasClass("active")) {
$(this).parent().removeClass("active");
return false; // Prevents further propagation of event
}
});
/*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.section = {
name: 'section',
version : '4.2.2',