This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ) ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ) ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//<!-- 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(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
psMainSize(); | |
}); | |
$(window).load(function() { | |
psMainSize(); | |
}); | |
$(window).resize(psMainSize); | |