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
doctrine: | |
dbal: | |
option: | |
# This is PDO::MYSQL_ATTR_LOCAL_INFILE | |
1001: true |
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 count_posts($language_code = '', $post_type = 'post', $post_status = 'publish'){ | |
global $sitepress, $wpdb; | |
//get default language code | |
$default_language_code = $sitepress->get_default_language(); | |
//adjust post type to format WPML uses | |
switch($post_type){ | |
case 'page': |
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
$('html').attr('class') | |
.split(' ') | |
.filter( function (word) { | |
return word.match(/wf-(.*)-active/g); } | |
) | |
.forEach( function (font) { | |
console.log(font.replace(/wf-|-active/g, '')) | |
}) |
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 scrollTo(element) { | |
jQuery('html, body').animate({ | |
scrollTop: jQuery(element).offset().top | |
}, 500); | |
} | |
jQuery('.accordion').on('accordionactivate', function( event, ui ) { | |
scrollTo(jQuery(event.target).find('.ui-accordion-header-active')) | |
}); |
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
.swiper-container { | |
position: relative; | |
overflow: hidden; | |
width: 100%; | |
} | |
.swiper-wrapper { | |
position: relative; | |
width: 10000%; | |
} |
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
filetype plugin indent on | |
syntax on |
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() { | |
var exec = false; | |
if(typeof requirejs !== 'undefined') { | |
exec = requirejs; | |
} else if (typeof require !== 'undefined') { | |
exec = require; | |
} else { | |
console.log('require.js not found'); | |
return false; | |
} |
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
[client] | |
user=mysqluser | |
password=mysqlpass | |
host=localhost |
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
alias ip='dig +short myip.opendns.com @resolver1.opendns.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
<?xml version="1.0"?> | |
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
<body> | |
<referenceBlock name="product.info.review" remove="true" /> | |
<referenceBlock name="reviews.tab" remove="true" /> | |
</body> | |
</page> |