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
// http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms | |
add_action('gform_pre_submission', 'ch_total_quiz_values'); | |
function ch_total_quiz_values ($form) { | |
// change the number 20 here to your form ID | |
// if this is not form 20, don't do any processing | |
if($form['id'] != 3) | |
return $form; | |
// otherwise ... | |
$score = 0; |
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 | |
add_action('gform_after_submission', 'post_to_third_party', 10, 2); | |
function post_to_third_party($entry, $form) { | |
$post_url = 'http://forms.franklin.edu/newsletter-registration/Register'; | |
$body = array( | |
'fullName' => $entry['1.1'], | |
'email' => $entry['1.2'] | |
); | |
$request = new WP_Http(); | |
$response = $request->post($post_url, array('body' => $body)); |
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 | |
class Walker_Nav_Menu_Mobile extends Walker_Nav_Menu{ | |
var $to_depth = -1; | |
function start_lvl(&$output, $depth){ | |
$output .= '</option>'; | |
} | |
function end_lvl(&$output, $depth){ |
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
<html> | |
<head> | |
<title>Checkbox</title> | |
<style> | |
input[type=checkbox] { | |
display:none; | |
} | |
input[type=checkbox] + label | |
{ |
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
# robots.txt for wordpress | |
# https://gist.github.com/chuckreynolds/135728 | |
User-agent: * | |
Disallow: /*.php$ | |
Disallow: /cgi-bin/ | |
Disallow: /comment-page-* | |
Disallow: /?s=* | |
Disallow: /search/* | |
Disallow: /trackback/ |
NewerOlder