Skip to content

Instantly share code, notes, and snippets.

View mrkkr's full-sized avatar

Marek mrkkr

  • Poland
View GitHub Profile
@mrkkr
mrkkr / lets_encrypt_ssl_home_tut.txt
Last active December 20, 2017 11:58
Let's Encrypt SSL w home.pl tutorial #link #ssl
https://dominikroszkowski.pl/2017/03/manualne-dodanie-certyfikatu-ssl-od-lets-encrypt-bez-roota-na-serwerze/
@mrkkr
mrkkr / woocommerce_price_amount_with_tax_currency.php
Last active February 19, 2018 15:10
Woocomerce - cena z podatkiem + waluta #php
<?php echo wc_price($product->get_price_including_tax()); ?>
/// function above is decrapated, used this:
<?php
$global;
$price = $product->get_regular_price();
$suffix = get_woocommerce_currency_symbol();
echo wc_get_price_including_tax( $product, array('price' => $price) ) . $suffix;
@mrkkr
mrkkr / woocommerce_checkout_custom_fields.txt
Created December 20, 2017 11:56
Woocommerce własne pola w zamówieniu/mailu #php #link
https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
@mrkkr
mrkkr / link_text_hover_box_grid.html
Last active December 21, 2017 10:29
Tekst z linkiem onhover na kaflu (gridzie) #html #css
@mrkkr
mrkkr / mouseenter_change_bootstrap_tabs.js
Last active December 22, 2017 13:23
Zmiana Bootstrapowych tabsów po najechaniu myszką #js
$(document).on('mouseenter', '[data-toggle="tab"]', function () {
$(this).tab('show');
});
@mrkkr
mrkkr / bootstrap_onhover_dropdown_menu.js
Created December 28, 2017 10:57
Rozwijane bootstrapowe menu po najechaniu #js
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).fadeIn(200);
}, function() {
$(this).find('.dropdown-menu').stop(true, true).fadeOut(200);
});
@mrkkr
mrkkr / searching_custom_fieds.txt
Created December 28, 2017 11:26
Wyszukiwanie po custom fields w WP #link #php
https://adambalee.com/search-wordpress-by-custom-fields-without-a-plugin/
@mrkkr
mrkkr / accordion_pure_css.html
Created January 2, 2018 11:58
Prosty accordion w czystym CSS #html #css
<a href="#test">Kliknij tutaj</a>
<ul id="test" class="accordion-steps">
<li style="list-style-type: none;"><i class="fa fa-angle-right" aria-hidden="true"></i>EN 1888 dla wózków i spacerówek dziecięcych;</li>
<li style="list-style-type: none;"><i class="fa fa-angle-right" aria-hidden="true"></i>EN 716 dla łóżeczek turystycznych;</li>
<li style="list-style-type: none;"><i class="fa fa-angle-right" aria-hidden="true"></i>EN 12227 dla kojców;</li>
</ul>
<style>
.accordion-steps:target {
display: block;
@mrkkr
mrkkr / fadein_on_scroll.js
Created January 2, 2018 15:35
efekt lazy load #js
$(document).ready(function() {
/* Every time the window is scrolled ... */
$(window).scroll( function(){
/* Check the location of each desired element */
$('.hideme').each( function(i){
var bottom_of_object = $(this).offset().top + $(this).outerHeight();
var bottom_of_window = $(window).scrollTop() + $(window).height();
@mrkkr
mrkkr / delete_all_thumbnails_ssh.bash
Created January 5, 2018 14:18
Usunięcie zdjęć miniaturek z folderu /uploads/ w WP przez SSH #bash
find . -name *-*x*.jpg | xargs rm -f