❌

Reading view

Theme patterns for the Site Editor

We’ve been bundling block patterns with all of our themes for quite a while now, but recent improvements to the Template Part and Query Loop blocks has opened up a whole new world for how patterns can be used.

Both blocks can now display a carousel of block patterns in their setup state, allowing users to choose between a menu of pre-designed versions of these blocks. These patterns can be bundled with your theme, so that users have a wide range of pre-designed header, query, and footer options available to choose from in the Site Editor:

The only difference between these and other patterns you’d build is that they include a special blockTypes property to let Gutenberg know which block to associate them with. Here’s a simplified example:

register_block_pattern(
	'theme/pattern-slug',
	array(
		'title'       => _x( 'Pattern Title' 'theme-slug' ),
		'blockTypes'  => array( 'core/template-part/header' ),
		'content'     => '<!-- Your Pattern Markup -->'
	)
);

The markup above specifies that this pattern should be surfaced for a Header template part block. The value there would core/template-part/footer or core/query if you were designing a pattern for those blocks instead. (This property also powers pattern transforms, but that’s a topic for another time).

Once you register a pattern that way, it will show up in the carousel for the specified block. It’s as simple as that!

There are already a few Query Loop patterns bundled with Core today that use this method, and the header patterns shown in the video above are actually from a Gutenberg PR I’m working on as well. I’ve prepared a quick code example using our in-progress Quadrat theme to show how they could be bundled — we definitely plan on including a handful of these sorts of patterns in our block themes moving forward.

https://github.com/Automattic/themes/pull/4104

When combined together, Header, Query Loop, and Footer patterns allow you to mix-and-match pre-designed sections to create your entire website. I’m truly excited to see not only how themes use this feature, but how the Pattern Directory might provide hundreds more options for these blocks. This feels groundbreaking for WordPress, and I can’t wait to see how it turns out.

Podcast Revoar: Vigilância, vigilantismo e democracia

💾

Cuidado, estão te vigiando. Na terceira temporada do Revoar, Anna Carolina Venturini e Felipe de Paula conduzem oito episódios na companhia de especialistas que explicam como a vigilância e o vigilantismo estão presentes no dia a dia das democracias, quais são seus riscos e possíveis soluções contra arbitrariedades.

O podcast Revoar é uma produção da Rádio Novelo para o LAUT, o Centro de Análise da Liberdade e do Autoritarismo. A terceira temporada é apresentada por Anna Carolina Venturini e Felipe de Paula. Novos episódios às quintas. Para ouvir os demais episódios, acesse a playlist https://bit.ly/revoarpodcast ou visite o site do programa https://bit.ly/revoart3teaser

--

Ficha técnica
O podcast é uma produção da Rádio Novelo para o LAUT
Apresentação: Anna Carolina Venturini e Felipe de Paula
Coordenação: Clara Rellstab
Roteiro: Anna Venturini, Felipe de Paula, Luisa Plastino e Pedro Ansel
Tratamento de roteiro: Clara Rellstab
Pesquisa: Pedro Ansel e Luisa Plastino
Edição e montagem: Claudia Holanda e Julia Matos
Finalização e mixagem: João Jabace
Engenheiro de som: Gabriel Nascimbeni (Estúdio Trampolim)
Música original: Mari Romano
Identidade visual: Sergio Berkenbrock dos Santos
Coordenação digital: Iara Crepaldi e Bia Ribeiro
Redes sociais: Andressa Maciel
Para falar com a equipe: revoar@laut.org.br
--

Siga o Instagram do Revoar: @revoar.podcast

Os mistérios de Lygia Fagundes Telles

Um mergulho sonoro pelo estranho universo de uma escritora que abriu caminhos e desafiou convenções literárias e sociais. No segundo episódio da série Narradores do Brasil, o 451 MHz desvenda os enigmas de Lygia Fagundes Telles e convida a ouvir um texto inédito da autora.

Participação especial de Adriana Esteves. Depoimentos de Lucia Telles, Nilton Resende, Ignácio de Loyola Brandão, Giovana Madalosso, Cidinha da Silva, Marcelino Freire, Julián Fuks e Tércia Montenegro, Letícia Chagas e Tamy Ghannam. Ilustrações sonoras: Maria Beraldo.

Seja um Ouvinte Entusiasta e apoie o podcast 451 MHz: https://bit.ly/Assine451

💾

❌