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
version: '3' | |
services: | |
# Database | |
db: | |
platform: linux/x86_64 | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always |
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
add_filter('woocommerce_get_price_suffix', function ( $html, $product, $price, $qty ) { | |
if ( ! $html && $product instanceof WC_Product_Variable) { | |
// Copied from plugins/woocommerce/includes/abstracts/abstract-wc-product.php#get_price_suffix | |
if ( ( $suffix = get_option( 'woocommerce_price_display_suffix' ) ) | |
&& wc_tax_enabled() | |
&& 'taxable' === $product->get_tax_status() | |
) { | |
$replacements = array( | |
'{price_including_tax}' => wc_price( wc_get_price_including_tax( $product, array( 'qty' => $qty, 'price' => $price ) ) ), | |
'{price_excluding_tax}' => wc_price( wc_get_price_excluding_tax( $product, array( 'qty' => $qty, 'price' => $price ) ) ), |
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 | |
// paste into the 'functions.php' | |
// author: weart.hu | |
// New Statuses | |
function weart_filter_stock_status_options( $status ) { | |
// Add new statuses | |
$status['raktar_2_3'] = __( 'Raktáron, kiszállítás 2-3 munkanap', 'woocommerce' ); | |
$status['raktar_4_5'] = __( 'Raktáron, kiszállítás 4-5 munkanap', 'woocommerce' ); | |
$status['kulso_raktar_4_5'] = __( 'Külső raktáron, kiszállítás 4-5 munkanap', 'woocommerce' ); |
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
assets/.sass-cache/* | |
assets/.sass-cache | |
.sass-cache/ | |
*.css.map |
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
/* This solution is for html frontend development. | |
1.) Install Node https://nodejs.org/en/ | |
2.) In a commander or dash or anything like this type this after you find the working folder with 'cd': | |
npm install -g live-server | |
3.) Than you just start the server, type: | |
live-server | |
*/ |
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 $container = $('#container'); | |
$container.imagesLoaded(function(){ | |
$container.masonry({ | |
itemSelector: '.box', | |
columnWidth: 100 | |
}); | |
}); | |
$container.infinitescroll({ |
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 | |
//sanitize adsense box adsense codes | |
function weart_sanitize_adsense( $input ) { | |
esc_js($input); | |
$input = str_replace(array("\r", "\n"), '', $input); | |
return $input; | |
} | |
//sanitize checkbox |
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
//the mixin | |
@mixin transition(){ | |
-o-transition: all 0.15s ease-in-out; | |
-webkit-transition: all 0.15s ease-in-out; | |
-moz-transition: all 0.15s ease-in-out; | |
transition: all 0.15s ease-in-out; | |
} | |
//the usage | |
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
<?php if( is_home() && !is_paged() ) : ?> | |
<!-- The content what do you want to hide. --> | |
<?php endif; ?> |
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 | |
$fpi = 0; | |
global $post; | |
$featured_posts = get_posts( array( | |
'tag' => 'tag_as_you_want', //tag that you want to select the posts | |
'numberposts' => 5, //how many posts | |
) ); | |
if($featured_posts) { foreach ( $featured_posts as $post ) : setup_postdata( $post ); ?> | |