代码高亮
<?php /** * @package ZMLTheme\Hooks */ namespace ZMLTheme\Hooks; use ZMLTheme\Utils\Site as SiteUtil; defined( 'ZMLTHEME_PRESENT' ) or die( 'Access Denied' ); /** * Class ZMLTheme\Hooks\Term * * Term选项 * * @since 1.0.0 */ class Term { private $setup, $areas; private $term; public function __const …
代码高亮测试
//* 检查访问 defined( 'ABSPATH' ) or die( 'Access Denied' ); //* 全局常量 define( 'ZMLPAINT_ID', 'zml-plugin-paint' ); define( 'ZMLPAINT_VER', '3.0.0' ); define( 'ZMLPAINT_DEV', true ); define( 'ZMLPAINT_URL', plugin_dir_url( __FILE__ ) ); define( 'ZMLPAINT_PATH', plugin_dir_path( __FILE__ ) ); define( 'ZML …
Block category: Layout Elements
The Layout Elements category includes the following blocks: Group, Button, Columns, Media & Text, separator, spacer, read more, and page break. This group block has a light green background color. The read more block should be right below this text, but only on list pages of themes that show the …
Block category: Formatting
The formatting category includes the following blocks: The classic block can have almost anything in it. a heading The custom HTML block lets you put HTML that isn’t configured like blocks in it. (this div has a width of 45%) The preformatted block.The Road Not TakenRobert Frost Two roads dive …
Block category: Widgets
The shortcode widget: The Archive Widget: The same Archive widget but as a dropdown: The Category widget block has an additional option for showing category hierarchies: The Latest Comments widget can display or hide the avatars, the date, and the comment excerpt: Here is an example of the Co …
Block: Quote
The quote block has two styles, regular: Gutenberg is more than an editor. The Gutenberg Team and large: Yes, it is a press, certainly, but a press from which shall flow in inexhaustible streams, the most abundant and most marvelous liquor that has ever flowed to relieve the thirst of men! Johannes …
Block: Columns
This page tests how the theme displays the columns block. The first block tests a two column block with paragraphs. This is the second column. It should align next to the first column. Reduce the browser window width to test the responsiveness. This is the second column block. It has 3 columns. Para …
Block: Gallery
Gallery blocks have two settings: the number of columns, and whether or not images should be cropped. The default number of columns is three, and the maximum number of columns is eight. Below is a three column gallery at full width, with cropped images. Some more text for taking up space. A two colu …
Block: Cover
The cover block lets you add text on top of images or videos. This blocktype has several alignment options, and you can also align or center the text inside the block. The background image can be fixed and you can change its opacity and add an overlay color. Make sure that the text wraps corr …
Block: Button
Button blocks are not semantically buttons, but links inside a styled div. If you do not add a link, a link tag without an anchor will be used. Check to make sure that the text wraps correctly when the button has more than one line of text, and when it is extra long. Buttons have three styles: If …
Block: Image
Welcome to image alignment! If you recognize this post, it is because these are blocks that have been converted from the classic Markup: Image Alignment post. The best way to demonstrate the ebb and flow of the various image positioning options is to nestle them snuggly among an ocean of words. Grab …
WP 6.1 Text category blocks
This test post was generated using the block theme Emptytheme in WordPress 6.1.1. Paragraph H1 Heading H2 Heading H3 Heading H4 Heading H5 Heading H6 Heading Quote block citation classic block Preformatted block Pull quote Citation table cell table cell two table cell three table cell four Table cap …








