Drag and drop sortable list with click sound
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 if (ICL_LANGUAGE_CODE == 'es') { echo 'Español content'; } elseif (ICL_LANGUAGE_CODE == 'pt-br') { echo 'PT brazil content'; } else { echo 'Deafult language - english';}?> |
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
input::-webkit-input-placeholder { | |
color: #000; | |
} | |
input:-moz-placeholder { /* Firefox 18- */ | |
color: #000; | |
opacity: 1; | |
} | |
input::-moz-placeholder { /* Firefox 19+ */ |
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
<a href"<?php echo get_category_link(icl_object_id(7,'category',false,ICL_LANGUAGE_CODE));?>">Link</a> |
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(function(){ | |
jQuery('select[name="catUrl"]').change(function() { | |
window.location.replace($(this).val()); | |
}); | |
}); |
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
@mixin responsive-table($thead-title...) { | |
table { | |
width: 100%; | |
border-collapse: collapse; | |
} | |
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { | |
/* Force table to not be like tables anymore */ |
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
UPDATE wp_posts SET post_content = replace(post_content, 'http://oldsite.com/','http://newsite.com') |
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
//Check what files are going to be ignored | |
git ls-files -ci --exclude-standard | |
//Add those files to git ignore | |
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
OlderNewer