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
/* update all post permalinks */ | |
update wp_posts | |
set guid = REPLACE(guid, 'http://www.oldsite.com', 'http://www.newsite.com') | |
where guid LIKE '%http://www.oldsite.com%'; | |
/* update all post content */ | |
update wp_posts | |
SET post_content = REPLACE(post_content, 'http://www.oldsite.com', 'http://www.newsite.com') | |
where post_content LIKE '%http://www.oldsite.com%'; | |
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
//Less Variables | |
@spritePath: "../img/sprite.png"; //Path of standard sprite | |
@spritePathx2: "../img/sprite-retina.png"; //Path of retina sprite | |
@1xSpriteSizeW: 1000px; //Width of standard sprite | |
@1xSpriteSizeH: 1000px; //Height of standard sprite | |
//Sprite defaults | |
[class^="sprite-"], | |
[class*=" sprite-"] { |
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 checkAllHeights(row, item) { | |
if ($(row).length !== 0) { | |
var itemHeight = 0; | |
//reset size | |
$(row + ' ' + item).removeAttr('style'); | |
//Check heights | |
$(row + ' ' + item).each(function (index) { |
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
.svg .img-class { | |
content: url('filename.svg'); | |
} |
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 checkAllHeights(row, item) { | |
if ($(row).length !== 0) { | |
var itemHeight = 0; | |
//reset size | |
$(row + ' ' + item).removeAttr('style'); | |
//Check heights to get tallest | |
$(row + ' ' + item).each(function (index) { |
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
$.each($.browser, function (key, value) { | |
if (key != 'version') { | |
$('html').addClass(key); | |
} | |
}); |
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
//Mobile Detect | |
var testMobile; | |
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { |
OlderNewer