Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Site 1</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="crossorigin="anonymous"></script>
<script>
// var bsLeadgenConfirmCampaign = 'Lead Gen – LW Dividend ETFs';
</script>
<!--BING-->
<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"XXXXXX"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");</script>
<!-- CRITEO -->
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
window.criteo_q.push({
jQuery( document ).ready(function($) {
//target whatever submits the form.
$('button.lp-pom-button').on('click', function (e) {
//prevent the form from submitting
e.preventDefault();
//get the email address
var emailaddress = $('.form_elem_email').val();
/*
REMOVE EMAIL PII FROM URL
For best use: run this after scripts that need to leverage the email in the query string
and before you start loading marketing pixels.
*/
var afga_page_props = {
is_logged_in : 'true',
tags : 'tags:autoimmune disorder,tags:gains,tags:Phase 3,tags:placebo,tags:platelets,tags:Rigel Pharmaceuticals (RIGL),tags:trial data,sent:exclusivity,sent:long term,sent:bio tech,',
authors : 'Ray Blanco',
categories : 'Flash Alert,',
post_type : 'post'
}
Using this Table definition...
CREATE TABLE test (
id INT NOT NULL,
last_name CHAR(30) NOT NULL,
first_name CHAR(30) NOT NULL,
PRIMARY KEY (id),
INDEX name (first_name, last_name)
);
<a href="linktopromo" target="_blank"><img class="new-image" src="imageurlhere"></a>
function lfbwc_get_author_links($post_id) {
if (!class_exists('WC_Product')) {
return array();
}
$product = get_product($post_id);
$attrs = $product->get_attributes();
$values = array();
if (!empty($attrs['pa_product-author'])) {
$author_terms = $attrs['pa_product-author'];
$author_terms = wp_get_post_terms($product->id, $author_terms['name']);
<span data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
<span data-src="small.jpg"></span>
<span data-src="small_x2.jpg" data-media="(min-device-pixel-ratio: 2.0)"></span>
<span data-src="medium.jpg" data-media="(min-width: 400px)"></span>
<span data-src="medium_x2.jpg" data-media="(min-width: 400px) and (min-device-pixel-ratio: 2.0)"></span>
<span data-src="large.jpg" data-media="(min-width: 800px)"></span>
<span data-src="large_x2.jpg" data-media="(min-width: 800px) and (min-device-pixel-ratio: 2.0)"></span>
<span data-src="extralarge.jpg" data-media="(min-width: 1000px)"></span>
<span data-src="extralarge_x2.jpg" data-media="(min-width: 1000px) and (min-device-pixel-ratio: 2.0)"></span>
public function main_css() {
$versionNum = '2.0';
if(preg_match('/(?i)msie [1-8]/',$_SERVER['HTTP_USER_AGENT'])) {
echo '<link rel="stylesheet" href="'.site_url( 'dr-content/themes/dr' ) . '/css/main.css?ver='.$versionNum.'" type="text/css" media="all" />';
}
else {
wp_enqueue_style( 'dr-main-css', site_url( 'dr-content/themes/dr' ) . '/css/main.css', array(), $versionNum );
}
}