This file contains hidden or 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
jQuery(document).ready(function($){ | |
$('#thumbs').galleriffic({ | |
imageContainerSel: '#slideshow', | |
controlsContainerSel: '#controls', | |
loadingContainerSel: '#loading', | |
numThumbs: 9999, | |
renderSSControls: false, | |
onSlideChange: function(prevIndex, nextIndex) { | |
// get the pin it URL from the next slide | |
var piniturl = this.find('ul.thumbs li.selected .sm-pinit a').attr('href'); |
This file contains hidden or 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
<div class="module"> | |
<h3>Currently Installed Plugins</h3> | |
<?php | |
// assign get_plugins() to a variable | |
$current_plugins = get_plugins(); | |
// something should happen if no plugins are installed | |
if ( empty( $current_plugins ) ) : | |
echo '<p>Unable to display plugins. This could mean there are no plugins installed, or that the plugins directory is inaccessible.</p>'; |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
// This first section is all about formatting the content correctly for tabs | |
// Add the opening list tag before the first H5 within the description | |
$('.description h5:first-of-type').before('<ul class="tabs" />'); | |
// Loop through each H5 in the description | |
$('.description h5').each(function(index, value){ | |
// Assign them each a number, in order |
This file contains hidden or 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
<h2>Post Title</h2> | |
becomes | |
<h2><?php the_title(); ?></h2> |
This file contains hidden or 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
<script type="text/javascript"> | |
var fnames = new Array();var ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text'; | |
jQuery(document).ready( function($) { | |
var options = { errorClass: 'mce_inline_error', errorElement: 'div', onkeyup: function(){}, onfocusout:function(){}, onblur:function(){} }; | |
var mce_validator = $("#mc-embedded-subscribe-form").validate(options); | |
$("#mc-embedded-subscribe-form").unbind('submit');//remove the validator so we can get into beforeSubmit on the ajaxform, which then calls the validator | |
options = { url: 'http://replace-with-your-specific-url', type: 'GET', dataType: 'json', contentType: "application/json; charset=utf-8", | |
beforeSubmit: function(){ |
This file contains hidden or 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
.question:hover { | |
cursor: pointer; | |
opacity: 0.6; | |
} | |
/* Not much to see here - most of the action-oriented code has been moved to the jQuery */ |
This file contains hidden or 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 | |
// create a variable, use it to get the lead time digit from an ACF custom field | |
$lead_time = get_field('lead_time'); | |
// then display the date relative to that lead time | |
echo date('F Y', strtotime('+'.$lead_time.' weeks')); | |
?> |