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
/** | |
* Add support for JetPack infinite scroll | |
**/ | |
function zpd_infinite_scroll_init() { | |
add_theme_support( 'infinite-scroll', array( | |
'container' => 'content', | |
'footer' => 'footer', | |
'render' => 'genesis_do_loop' | |
) ); | |
} |
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 lc_js_redirect($url, $seconds=1){ | |
echo "<script language=\"JavaScript\">\n"; | |
echo "<!-- hide from old browser\n\n"; | |
echo "function redirect() {\n"; | |
echo "window.location = \"" . $url . "\";\n"; | |
echo "}\n\n"; | |
echo "timer = setTimeout('redirect()', '" . ($seconds*1000) . "');\n\n"; | |
echo "-->\n"; | |
echo "</script>\n"; | |
return true; |
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
//Turn on our credit card field for admin and front end | |
add_action("gform_enable_credit_card_field", "enable_creditcard"); | |
function enable_creditcard($is_enabled){ | |
return true; | |
} | |
//Email encoded card details when the form is submitted. | |
add_action('gform_after_submission', 'email_encoded_cc', 10, 2); | |
function email_encoded_cc($entry, $form) { | |
function get_creditcard_field($form){ | |
$fields = GFCommon::get_fields_by_type($form, array("creditcard")); |
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
/** | |
* register custom form scripts | |
* @param array $form | |
* @return array | |
*/ | |
add_filter('gform_register_init_scripts', function($form) { | |
ob_start(); | |
?> | |
jQuery(".ginput_container").has("input[type='email'],input[type='text'],input[type='password'],select,textarea").find("label").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
var $height = 0 ; | |
$("li.l").each(function(){ | |
if(($(this).height())>$height){ | |
$height = $(this).height(); | |
} | |
}); | |
$("li.l").each(function(){ | |
$(this).css("height",$height) | |
}); |
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
<a href="https://2016.sydney.wordcamp.org" title="I'm attending WordCamp Sydney 2016" target="_blank"><img src="https://2016.sydney.wordcamp.org/files/2016/05/im-attending-wcsyd-2016-transparent-bg-300x300.png"></a> |
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
<a href="https://2016.sydney.wordcamp.org" title="I'm attending WordCamp Sydney 2016" target="_blank"><img src="https://2016.sydney.wordcamp.org/files/2016/05/im-attending-wcsyd-2016-white-bg-300x300.jpg"></a> |
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
<a href="https://2016.sydney.wordcamp.org" title="I'm speaking at WordCamp Sydney 2016" target="_blank"><img src="https://2016.sydney.wordcamp.org/files/2016/05/im-speaking-at-wcsyd-2016-transparent-bg-300x300.png"></a> |
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
<a href="https://2016.sydney.wordcamp.org" title="I'm speaking at WordCamp Sydney 2016" target="_blank"><img src="https://2016.sydney.wordcamp.org/files/2016/05/im-speaking-at-wcsyd-2016-white-bg-300x300.jpg"></a> |
OlderNewer