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
^(\S+?)\s(\S+)\s-\s\[([^\]]+)\]\s"(\S+)\s(\S+)\s(\S+)"\s(\S+)\s(\S+)\s"(\S+)"\s"([^"]+)" | |
$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 |
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_filter( 'elementor/widget/render_content', function($output){ | |
// replace the | |
$re = '/(<svg[^>]+class="[^"]*e-fab-twitter".*?<path\s+d=")(.+?)(".+?<\/svg>)/s'; | |
$output = preg_replace_callback($re, function($matches){ | |
$path = "M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"; | |
return $matches[1].$path.$matches[3]; | |
}, $output); | |
return $output; |
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 stripScript( html ){ | |
let match; | |
const re = /<script[^>]+?src=['"](.+?)['"][^>]*?><\/script>/gi; | |
while( (match =re.exec(html)) ){ | |
const script = document.createElement('script'); | |
script.src = match[1]; | |
document.body.appendChild( script ); | |
} | |
html = html.replace(re, ''); |
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
import Cookies from './cookies'; | |
import distance from './geo'; | |
const $ = jQuery; | |
class UserLocation { | |
constructor(){ | |
this.stores = cabothouse_config.locations; | |
this.initLocation(); | |
this.initEvents(); |
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
<div | |
style="margin-bottom: 30px; position: relative; z-index: 2" | |
data-freddiemac-chart="lihtc" | |
data-xls="PATH/TO/DIST/lihtc/data/LIHTC-data.xlsx" | |
></div> | |
<script type="text/javascript" src="PATH/TO/DIST/common/embed.js"></script> |
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 | |
$path = pathinfo( __FILE__ ) ['dirname']; | |
include( $path . '/config.php' ); | |
wp_enqueue_script( 'wpb_composer_front_js' ); | |
$fullwidth_start = $output = $fullwidth_end = ''; |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp\-content\/uploads(.*)$ https://production-domain.com/wp-content/uploads$1 [L,R=301] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp\-content\/blogs(.*)$ https://production-domain.com/wp-content/blogs$1 [L,R=301] | |
RewriteCond %{REQUEST_FILENAME} !-f |
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 $ = jQuery; | |
module.exports = { | |
init : function(){ | |
$(document).on('submit', 'form.searchform', function(e){ | |
if( window.angular ){ | |
e.preventDefault(); | |
var $form = $(e.currentTarget); | |
var data = $form.serialize(); | |
var $injector = angular.element( $('html')[0] ).injector(); | |
NewerOlder