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 | |
/* Determining the domain - DO NOT EDIT */ | |
$host = $HTTP_HOST; | |
$parts = explode('.',$host); | |
if ($parts[3] = "") { | |
$domain = $parts[0]; | |
} else { | |
$domain = $parts[1]; |
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
// jQuery isVisible script - bg color swap | |
var win = $(window); | |
var allMods = $(".featurette"); | |
allMods.each(function(i, el) { | |
var el = $(el); | |
if (el.visible(false, true)) { | |
//el.addClass("colorize"); | |
} | |
}); |
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 | |
/* | |
* WordPress Sample function and action | |
* for loading scripts in themes | |
*/ | |
add_action( 'wp_enqueue_scripts', 'wptuts_styles_with_the_lot' ); | |
function wptuts_styles_with_the_lot() |
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
// hide modal on ajax submit | |
$('#gform_id').on('submit', function(){ | |
$.post("/#gf_id", $(this).serialize(), function(){ | |
var delay = 6000; | |
setTimeout(function(){ | |
$("#modalID").modal('hide'); | |
//window.location.href = 'success.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 | |
/** | |
* Filter out the html for fields if they should be hidden from users logged in or out. | |
*/ | |
function _avm_dym_gform_field_content( $content, $field, $value, $zero, $form_id ) { | |
if( is_admin() ) | |
return $content; | |
if( !empty( $field['hideIfLoggedIn'] ) && is_user_logged_in() ) | |
return ''; |
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
body { | |
text-rendering: auto; | |
text-rendering: optimizeSpeed; | |
text-rendering: optimizeLegibility; | |
text-rendering: geometricPrecision; | |
} |
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() { | |
if (document.getElementById('flying-focus')) return; | |
var flyingFocus = document.createElement('flying-focus'); // use uniq element name to decrease the chances of a conflict with website styles | |
flyingFocus.id = 'flying-focus'; | |
document.body.appendChild(flyingFocus); | |
var DURATION = 100; | |
flyingFocus.style.transitionDuration = flyingFocus.style.WebkitTransitionDuration = DURATION / 1000 + 's'; |
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 a custom field to the field editor (See editor screenshot) */ | |
add_action("gform_field_standard_settings", "my_standard_settings", 10, 2); | |
function my_standard_settings($position, $form_id){ | |
// Create settings on position 25 (right after Field Label) | |
if($position == 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
<!-- | |
CSS STYLES: | |
body { padding-top:30px; } | |
.form-control { margin-bottom: 10px; } | |
--> | |
<!-- User Sign-up Form --> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-12 col-sm-12 col-md-4 well well-sm"> |