Włączenie w szablonie dodatkowych funkcji gutenberga https://wordpress.org/gutenberg/handbook/extensibility/theme-support/ Rozszerzanie funkcjonalności istniejącego bloku https://wordpress.org/gutenberg/handbook/extensibility/extending-blocks/#block-style-variations Block Variations https://css-tricks.com/how-to-use-block-variations-in-wordpress/ Tutek, jak dodawać bloki Tworzenie styli bloków Tworzenie szablonów bloków myplugin_register_template Importowanie bloków https://wordpress.stackexchange.com/questions/315941/are-there-gutenberg-container-blocks Wtyka ze sporą liczbą bloków Gutenberg custom block boilerplate https://github.com/ahmadawais/Gutenberg-Boilerplate Gutenberg Block toolkit https://github.com/ahmadawais/create-g..

Read more

Dodanie nowej opcji szablonu Controls: elementy formularza Settings: pod jaką nazwą w bazie zapisze się nowe ustawienie Sections: sekcje function addSocialLinks( $wp_customize ) { $wp_customize->add_setting(’social_fb’, array( 'default’ => ”, 'transport’ => 'refresh’, )); $wp_customize->add_section(’social_media_links’, array( 'title’ => __(’Social media’, 'Publico 24′), 'priority’ => 30 )); $wp_customize->add_control(new WP_Customize_Control( $wp_customize, 'your_setting_id’, array( 'label’ => __( 'Facebook’, 'theme_name’ ..

Read more

Przesyłanie plików ajaxem z input[type=”file”] Najpierw utwórz Route w web.php typu post i z metodą prowadzącą do jakiegoś controllera. Gdy masz formularz z polem z plikiem nie zapomnij dodać pola _token var formData = new FormData(); formData.append(„file”, $(’input[name=”myFile”]’)[0].files[0] ); formData.append(„_token”, $(’input[name=”_token”]’).val() ); $.ajax({ type: 'post’, url: ajaxUrl, data: formData, contentType: false, processData: false, error: function ..

Read more

Łączenie się VPN Windows try, sieć i ustawienia > VPN Łączenie się VPN CISCO http://www.firewall.cx/downloads/cisco-tools-a-applications.html (CISCO VPN client) plus rozwiązanie problemów pod windows 10 http://www.firewall.cx/cisco-technical-knowledgebase/cisco-services-tech/1127-cisco-vpn-client-windows-10-install-fix-442-failed-to-enable-virtual-ad..

Read more

Breakpointy $desktop: „only screen and (min-width: 1599px)”; $menuBreak: „only screen and (min-width: 1599px)”; $sDesktop: „only screen and (min-width: 1365px)”; $tablet: „only screen and (min-width: 1279px)”; $sTablet: „only screen and (min-width: 1023px)”; $mobile: „only screen and (min-width: 767px)”; $mMobile: „only screen and (min-width: 479px)”; $sMobile: „only screen and (min-width: 371px)”; Puszczanie for po tablicy $colorsArray: $color1, ..

Read more

Kurs pixi: https://github.com/kittykatattack/learningPixi Różne na wstępie app.renderer.view.width //rozmiar renderera Podstawowy template do wczytywania grafik PIXI.loader .add([ „images/one.png”, „images/two.png”, „images/three.png” ]) .on(„progress”, loadProgressHandler) .load(setup) function setup() { var cat = new PIXI.Sprite(PIXI.loader[„img/cat.png”].resources); app.stage.addChild(cat); } Particle/emitter https://pixijs.io/pixi-particles/examples/ Filters http://pixijs.io/pixi-filters/tools/demo/http://pixijs.io/pixi-filters/t..

Read more