Skip to content

Instantly share code, notes, and snippets.

<?php
// ASSUMING [module name="some-slug"]
function cpt_shortcode( $atts ){
$a = shortcode_atts( array(
'name' => 'something else',
), $atts );
if( false === ( $shortcode_post = get_transient( 'shortcode_post' ) ) ) {
<?php
// ASSUMING [cpt type="client" name="some-slug"]
function cpt_shortcode( $atts ){
$a = shortcode_atts( array(
'type' => 'something',
'name' => 'something else',
), $atts );
if( false === ( $shortcode_post = get_transient( 'shortcode_post' ) ) ) {
@Auxo
Auxo / parallax
Created July 21, 2014 23:32
parallax
/*
Plugin: jQuery Parallax
Version 1.1.3
Author: Ian Lunn
Twitter: @IanLunn
Author URL: http://www.ianlunn.co.uk/
Plugin URL: http://www.ianlunn.co.uk/plugins/jquery-parallax/
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
<?php
ini_set('display_errors', true);
// SETTINGS FROM HOSTING
// Please specify your Mail Server - Example: mail.yourdomain.com.
ini_set("SMTP","mail.tridentseafoods.com");
// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
ini_set("smtp_port","25");
$(function() {
$('.error').hide();
$("#emailSubmit").click(function(e) {
e.preventDefault();
console.log('clicked submit');
//collect input field values
var name = $('input[name=name]').val();
var email = $('input[name=email]').val();
var zip = $('input[name=zip]').val();
var businessName = $('input[name=businessName]').val();
//<!-- Stop Video -->
$('.modal').on('hide', function () {
$('iframe.modal-video').attr('src', $('iframe').attr('src'));
});
SHOULD BE:
$('.modal').on('hide', function () {
$('iframe.modal-video').each(function(){
$(document).ready(function(){
psMainSize();
});
$(window).load(function() {
psMainSize();
});
$(window).resize(psMainSize);