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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Google Maps Autocomplete</title> | |
<style> | |
body{ | |
background: #1a202c; | |
color:white; |
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
<!-- Put this html code after <body> tag --> | |
<div class="mouse-cursor cursor-outer"></div> | |
<div class="mouse-cursor cursor-inner"></div> | |
<!--Put this js code in footer --> | |
<script> | |
jQuery(document).ready(function($) { | |
function mousecursor() { |
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
add this shortcode in contact from | |
[select upcoming-gigs data:gigs] | |
add this code in functions.php | |
<?php | |
add_filter('wpcf7_form_tag_data_option', function($n, $options, $args) { | |
global $wpdb; | |
$result = $wpdb->get_results("SELECT DATE_FORMAT(termin, '%d.%m.%Y') as termin FROM einweihungen where termin >= CURDATE() ORDER BY einweihungen.termin ASC;"); | |
$optionsarr = array(); |
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
add_action('wp_footer', 'method'); | |
function method() | |
{ | |
global $post; | |
//get_product id | |
$product = get_product( $post->ID ); | |
//if Product is variable add a message | |
if(is_product() && $product->is_type( 'variable' ) ){ |
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
function scrollingdiv(parentid, id){ | |
$("#"+parentid).animate({scrollTop: $("#"+id).position().top}, 800, 'swing'); | |
} |
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
add_filter( 'martfury_image_alt_text', 'ct_martfury_image_alt_text' ); | |
add_filter('wp_get_attachment_image_attributes', 'change_attachement_image_attributes', 20, 2); | |
function change_attachement_image_attributes( $attr, $attachment ){ | |
$product_id = get_the_ID(); | |
$vendor_id = get_post_field( 'post_author', $product_id ); | |
// Get the WP_User object (the vendor) from author ID | |
$vendor = new WP_User($vendor_id); | |
$vendor_name = $vendor->display_name; | |
// var_dump($product_cat);exit; |
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> | |
var revapi = jQuery(document).ready(function() { | |
jQuery('#rev_slider_2_3').show().revolution({ | |
waitForInit: true, | |
/* SLIDER SETTINGS CONTINUED */ | |
}); | |
}); | |
// only start the slider once the entire window has loaded | |
revapi.on('revolution.slide.onchange', function(event, data) { | |
var get_id1 = data.currentslide[0]['id']; |
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
add_filter( 'gform_stripe_customer_id', function ( $customer_id, $feed, $entry, $form ) { | |
if ( rgars( $feed, 'meta/transactionType' ) == 'product' && rgars( $feed, 'meta/feedName' ) == 'Create Customer and Payment' ) { | |
$customer_meta = array(); | |
$metadata_field = rgars( $feed, 'meta/metaData' ); | |
foreach ($metadata_field as $metadata) { | |
if ($metadata['custom_key'] == 'Email') { | |
$email_field = $metadata['value']; | |
} |
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
// Passed to function: ::: | |
//::: lat1, lon1 = Latitude and Longitude of point 1 (in decimal degrees) ::: | |
//::: lat2, lon2 = Latitude and Longitude of point 2 (in decimal degrees) ::: | |
//::: unit = the unit you desire for results ::: | |
//::: where: 'M' is statute miles (default) ::: | |
//::: 'K' is kilometers ::: | |
//::: 'N' is nautical miles | |
function distance(lat1, lon1, lat2, lon2, unit) { | |
if ((lat1 == lat2) && (lon1 == lon2)) { |
NewerOlder