PluginProbe ʕ •ᴥ•ʔ
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets / 4.0.7
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets v4.0.7
4.2.5 4.2.4 trunk 3.7.10 3.7.11 3.7.12 3.7.13 3.7.14 3.7.2 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8 3.8.1 3.8.10 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.8.8 3.8.9 3.8.9.1 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.5.1 4.0.6 4.0.6.1 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.2.0 4.2.1 4.2.2 4.2.3
widget-options / includes / widgets / gutenberg / post-content.php
widget-options / includes / widgets / gutenberg Last commit date
build 1 year ago lib 1 year ago packages 1 year ago src 1 year ago README.md 1 year ago changelog.txt 1 year ago gutenberg-toolbar.php 1 year ago gutenberg.php 1 year ago package-lock.json 1 year ago package.json 1 year ago post-content.php 1 year ago readme.txt 1 year ago
post-content.php
191 lines
1 <?php
2 /**
3 * Default content of the demo page
4 *
5 * @package gutenberg
6 */
7
8 ?>
9 <!-- wp:cover {"url":"https://cldup.com/Fz-ASbo2s3.jpg","align":"wide"} -->
10 <div class="wp-block-cover has-background-dim alignwide" style="background-image:url(https://cldup.com/Fz-ASbo2s3.jpg)"><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","textColor":"white","fontSize":"large"} -->
11 <p class="has-text-align-center has-white-color has-text-color has-large-font-size"><?php _e( 'Of Mountains &amp; Printing Presses', 'gutenberg' ); ?></p>
12 <!-- /wp:paragraph --></div></div>
13 <!-- /wp:cover -->
14
15 <!-- wp:paragraph -->
16 <p><?php _e( 'The goal of this new editor is to make adding rich content to WordPress simple and enjoyable. This whole post is composed of <em>pieces of content</em>—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you&#8217;ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.', 'gutenberg' ); ?></p>
17 <!-- /wp:paragraph -->
18
19 <!-- wp:paragraph -->
20 <p><?php _e( 'What you are reading now is a <strong>text block</strong> the most basic block of all. The text block has its own controls to be moved freely around the post...', 'gutenberg' ); ?></p>
21 <!-- /wp:paragraph -->
22
23 <!-- wp:paragraph {"align":"right"} -->
24 <p class="has-text-align-right"><?php _e( '... like this one, which is right aligned.', 'gutenberg' ); ?></p>
25 <!-- /wp:paragraph -->
26
27 <!-- wp:paragraph -->
28 <p><?php _e( 'Headings are separate blocks as well, which helps with the outline and organization of your content.', 'gutenberg' ); ?></p>
29 <!-- /wp:paragraph -->
30
31 <!-- wp:heading {"level":2} -->
32 <h2><?php _e( 'A Picture is Worth a Thousand Words', 'gutenberg' ); ?></h2>
33 <!-- /wp:heading -->
34
35 <!-- wp:paragraph -->
36 <p><?php _e( 'Handling images and media with the utmost care is a primary focus of the new editor. Hopefully, you&#8217;ll find aspects of adding captions or going full-width with your pictures much easier and robust than before.', 'gutenberg' ); ?></p>
37 <!-- /wp:paragraph -->
38
39 <!-- wp:image {"align":"center"} -->
40 <div class="wp-block-image">
41 <figure class="aligncenter"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="<?php esc_attr_e( 'Beautiful landscape', 'gutenberg' ); ?>" />
42 <figcaption><?php _e( 'If your theme supports it, you&#8217;ll see the "wide" button on the image toolbar. Give it a try.', 'gutenberg' ); ?></figcaption>
43 </figure>
44 </div>
45 <!-- /wp:image -->
46
47 <!-- wp:paragraph -->
48 <p><?php _e( 'Try selecting and removing or editing the caption, now you don&#8217;t have to be careful about selecting the image or other text by mistake and ruining the presentation.', 'gutenberg' ); ?></p>
49 <!-- /wp:paragraph -->
50
51 <!-- wp:heading {"level":2} -->
52 <h2><?php _e( 'The <em>Inserter</em> Tool', 'gutenberg' ); ?></h2>
53 <!-- /wp:heading -->
54
55 <!-- wp:paragraph -->
56 <p><?php _e( 'Imagine everything that WordPress can do is available to you quickly and in the same place on the interface. No need to figure out HTML tags, classes, or remember complicated shortcode syntax. That&#8217;s the spirit behind the inserter—the <code>(+)</code> button you&#8217;ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.', 'gutenberg' ); ?></p>
57 <!-- /wp:paragraph -->
58
59 <!-- wp:paragraph -->
60 <p><?php _e( 'Go give it a try, you may discover things WordPress can already add into your posts that you didn&#8217;t know about. Here&#8217;s a short list of what you can currently find there:', 'gutenberg' ); ?></p>
61 <!-- /wp:paragraph -->
62
63 <!-- wp:list -->
64 <ul>
65 <li><?php _e( 'Text &amp; Headings', 'gutenberg' ); ?></li>
66 <li><?php _e( 'Images &amp; Videos', 'gutenberg' ); ?></li>
67 <li><?php _e( 'Galleries', 'gutenberg' ); ?></li>
68 <li><?php _e( 'Embeds, like YouTube, Tweets, or other WordPress posts.', 'gutenberg' ); ?></li>
69 <li><?php _e( 'Layout blocks, like Buttons, Hero Images, Separators, etc.', 'gutenberg' ); ?></li>
70 <li><?php _e( 'And <em>Lists</em> like this one of course :)', 'gutenberg' ); ?></li>
71 </ul>
72 <!-- /wp:list -->
73
74 <!-- wp:separator -->
75 <hr class="wp-block-separator" />
76 <!-- /wp:separator -->
77
78 <!-- wp:heading {"level":2} -->
79 <h2><?php _e( 'Visual Editing', 'gutenberg' ); ?></h2>
80 <!-- /wp:heading -->
81
82 <!-- wp:paragraph -->
83 <p><?php _e( 'A huge benefit of blocks is that you can edit them in place and manipulate your content directly. Instead of having fields for editing things like the source of a quote, or the text of a button, you can directly change the content. Try editing the following quote:', 'gutenberg' ); ?></p>
84 <!-- /wp:paragraph -->
85
86 <!-- wp:quote {"style":1} -->
87 <blockquote class="wp-block-quote">
88 <p><?php _e( 'The editor will endeavor to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.', 'gutenberg' ); ?></p>
89 <cite><?php _e( 'Matt Mullenweg, 2017', 'gutenberg' ); ?></cite>
90 </blockquote>
91 <!-- /wp:quote -->
92
93 <!-- wp:paragraph -->
94 <p><?php _e( 'The information corresponding to the source of the quote is a separate text field, similar to captions under images, so the structure of the quote is protected even if you select, modify, or remove the source. It&#8217;s always easy to add it back.', 'gutenberg' ); ?></p>
95 <!-- /wp:paragraph -->
96
97 <!-- wp:paragraph -->
98 <p><?php _e( 'Blocks can be anything you need. For instance, you may want to add a subdued quote as part of the composition of your text, or you may prefer to display a giant stylized one. All of these options are available in the inserter.', 'gutenberg' ); ?></p>
99 <!-- /wp:paragraph -->
100
101 <!-- wp:gallery {"ids":[null,null,null],"columns":2} -->
102 <figure class="wp-block-gallery columns-2 is-cropped">
103 <ul class="blocks-gallery-grid">
104 <li class="blocks-gallery-item"><figure><img src="https://cldup.com/n0g6ME5VKC.jpg" alt="" /></figure></li>
105 <li class="blocks-gallery-item"><figure><img src="https://cldup.com/ZjESfxPI3R.jpg" alt="" /></figure></li>
106 <li class="blocks-gallery-item"><figure><img src="https://cldup.com/EKNF8xD2UM.jpg" alt="" /></figure></li>
107 </ul>
108 </figure>
109 <!-- /wp:gallery -->
110
111 <!-- wp:paragraph -->
112 <p><?php _e( 'You can change the amount of columns in your galleries by dragging a slider in the block inspector in the sidebar.', 'gutenberg' ); ?></p>
113 <!-- /wp:paragraph -->
114
115 <!-- wp:heading {"level":2} -->
116 <h2><?php _e( 'Media Rich', 'gutenberg' ); ?></h2>
117 <!-- /wp:heading -->
118
119 <!-- wp:paragraph -->
120 <p><?php _e( 'If you combine the new <strong>wide</strong> and <strong>full-wide</strong> alignments with galleries, you can create a very media rich layout, very quickly:', 'gutenberg' ); ?></p>
121 <!-- /wp:paragraph -->
122
123 <!-- wp:image {"align":"full"} -->
124 <figure class="wp-block-image alignfull"><img src="https://cldup.com/8lhI-gKnI2.jpg" alt="<?php _e( 'Accessibility is important &mdash; don&#8217;t forget image alt attribute', 'gutenberg' ); ?>" /></figure>
125 <!-- /wp:image -->
126
127 <!-- wp:paragraph -->
128 <p><?php _e( 'Sure, the full-wide image can be pretty big. But sometimes the image is worth it.', 'gutenberg' ); ?></p>
129 <!-- /wp:paragraph -->
130
131 <!-- wp:gallery {"ids":[null,null],"align":"wide"} -->
132 <figure class="wp-block-gallery alignwide columns-2 is-cropped">
133 <ul class="blocks-gallery-grid">
134 <li class="blocks-gallery-item"><figure><img src="https://cldup.com/_rSwtEeDGD.jpg" alt="" /></figure></li>
135 <li class="blocks-gallery-item"><figure><img src="https://cldup.com/L-cC3qX2DN.jpg" alt="" /></figure></li>
136 </ul>
137 </figure>
138 <!-- /wp:gallery -->
139
140 <!-- wp:paragraph -->
141 <p><?php _e( 'The above is a gallery with just two images. It&#8217;s an easier way to create visually appealing layouts, without having to deal with floats. You can also easily convert the gallery back to individual images again, by using the block switcher.', 'gutenberg' ); ?></p>
142 <!-- /wp:paragraph -->
143
144 <!-- wp:paragraph -->
145 <p><?php _e( 'Any block can opt into these alignments. The embed block has them also, and is responsive out of the box:', 'gutenberg' ); ?></p>
146 <!-- /wp:paragraph -->
147
148 <!-- wp:embed {"url":"https://vimeo.com/22439234","type":"video","providerNameSlug":"vimeo","align":"wide","className":"wp-has-aspect-ratio wp-embed-aspect-16-9","responsive":true} -->
149 <figure class="wp-block-embed-vimeo alignwide wp-block-embed is-type-video is-provider-vimeo wp-has-aspect-ratio wp-embed-aspect-16-9"><div class="wp-block-embed__wrapper">
150 https://vimeo.com/22439234
151 </div></figure>
152 <!-- /wp:embed -->
153
154 <!-- wp:paragraph -->
155 <p><?php _e( 'You can build any block you like, static or dynamic, decorative or plain. Here&#8217;s a pullquote block:', 'gutenberg' ); ?></p>
156 <!-- /wp:paragraph -->
157
158 <!-- wp:pullquote -->
159 <figure class="wp-block-pullquote"><blockquote><p><?php _e( 'Code is Poetry', 'gutenberg' ); ?></p><cite><?php _e( 'The WordPress community', 'gutenberg' ); ?></cite></blockquote></figure>
160 <!-- /wp:pullquote -->
161
162 <!-- wp:paragraph {"align":"center"} -->
163 <p class="has-text-align-center">
164 <em>
165 <?php
166 echo sprintf(
167 /* translators: %s: Gutenberg GitHub repository URL */
168 __( 'If you want to learn more about how to build additional blocks, or if you are interested in helping with the project, head over to the <a href="%s">GitHub repository</a>.', 'gutenberg' ),
169 'https://github.com/WordPress/gutenberg'
170 );
171 ?>
172 </em>
173 </p>
174 <!-- /wp:paragraph -->
175
176 <!-- wp:button { "align": "center" } -->
177 <div class="wp-block-button aligncenter"><a class="wp-block-button__link" href="https://github.com/WordPress/gutenberg"><?php _e( 'Help build Gutenberg', 'gutenberg' ); ?></a></div>
178 <!-- /wp:button -->
179
180 <!-- wp:separator -->
181 <hr class="wp-block-separator" />
182 <!-- /wp:separator -->
183
184 <!-- wp:paragraph {"align":"center"} -->
185 <p class="has-text-align-center"><?php _e( 'Thanks for testing Gutenberg!', 'gutenberg' ); ?></p>
186 <!-- /wp:paragraph -->
187
188 <!-- wp:paragraph {"align":"center"} -->
189 <p class="has-text-align-center">👋</p>
190 <!-- /wp:paragraph -->
191