| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Title: Sidebar 4 * Slug: ipsum/hidden-sidebar 5 * Inserter: no 6 * Description: The Sidebar template part. It has the categories list and the five latest posts, each a title and how long ago it was published. The sidebar templates place it in a column beside the main content. 7 * 8 * @package Ipsum 9 * @since Ipsum 1.0 10 */ 11 12 ?> 13 <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Sidebar', 'Name of the sidebar group', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"default"}} --> 14 <div class="wp-block-group"><!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Categories', 'Name of the categories group', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"default"}} --> 15 <div class="wp-block-group"><!-- wp:heading {"metadata":{"name":"<?php echo esc_html_x( 'Categories Label', 'Name of the categories heading', 'ipsum' ); ?>"},"style":{"typography":{"letterSpacing":"0rem"}},"fontSize":"small"} --> 16 <h2 class="wp-block-heading has-small-font-size" style="letter-spacing:0rem"><?php esc_html_e( 'Categories', 'ipsum' ); ?></h2> 17 <!-- /wp:heading --> 18 19 <!-- wp:categories {"fontSize":"small"} /--></div> 20 <!-- /wp:group --> 21 22 <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Recent Posts', 'Name of the recent posts group', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"default"}} --> 23 <div class="wp-block-group"><!-- wp:heading {"metadata":{"name":"<?php echo esc_html_x( 'Recent Posts Label', 'Name of the recent posts heading', 'ipsum' ); ?>"},"style":{"typography":{"letterSpacing":"0rem"}},"fontSize":"small"} --> 24 <h2 class="wp-block-heading has-small-font-size" style="letter-spacing:0rem"><?php esc_html_e( 'Recent posts', 'ipsum' ); ?></h2> 25 <!-- /wp:heading --> 26 27 <!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"ignore","inherit":false,"taxQuery":null,"parents":[],"excludeCurrent":null},"layout":{"type":"default"}} --> 28 <div class="wp-block-query"><!-- wp:post-template {"layout":{"type":"default"}} --> 29 <!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Recent Post', 'Name of the group holding one recent post', 'ipsum' ); ?>"},"style":{"spacing":{"blockGap":{"top":"0"},"margin":{"bottom":"var:preset|spacing|40"}}},"layout":{"type":"flex","orientation":"vertical"}} --> 30 <div class="wp-block-group" style="margin-bottom:var(--wp--preset--spacing--40)"><!-- wp:post-title {"level":3,"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"600","letterSpacing":"0rem"}},"fontSize":"small"} /--> 31 32 <!-- wp:post-date {"format":"human-diff","style":{"typography":{"fontStyle":"normal","fontWeight":"400","letterSpacing":"0rem"}}} /--></div> 33 <!-- /wp:group --> 34 <!-- /wp:post-template --></div> 35 <!-- /wp:query --></div> 36 <!-- /wp:group --></div> 37 <!-- /wp:group -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Nov 11 08:20:02 2026 | Cross-referenced by PHPXref |