Cleanup: Remoción masiva de restos de WordPress y consolidación de archivos GKACHELE™
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Link styles
|
||||
* https://github.com/WordPress/gutenberg/issues/42319
|
||||
*/
|
||||
a {
|
||||
text-decoration-thickness: 1px !important;
|
||||
text-underline-offset: .1em;
|
||||
}
|
||||
BIN
gk-assets/themes/twentytwentyfive/assets/images/404-image.webp
Normal file
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 19 KiB |
BIN
gk-assets/themes/twentytwentyfive/assets/images/book-image.webp
Normal file
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 93 KiB |
BIN
gk-assets/themes/twentytwentyfive/assets/images/location.webp
Normal file
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
BIN
gk-assets/themes/twentytwentyfive/assets/images/man-in-hat.webp
Normal file
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 35 KiB |
BIN
gk-assets/themes/twentytwentyfive/assets/images/nurse.webp
Normal file
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 218 KiB |
|
After Width: | Height: | Size: 56 KiB |
BIN
gk-assets/themes/twentytwentyfive/assets/images/ruins-image.webp
Normal file
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 21 KiB |
BIN
gk-assets/themes/twentytwentyfive/assets/images/typewriter.webp
Normal file
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 56 KiB |
19
gk-assets/themes/twentytwentyfive/contributing.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
=== Contributing to Twenty Twenty-Five ===
|
||||
|
||||
= Minifying CSS =
|
||||
|
||||
Twenty Twenty-Five has a single stylesheet `style.css` which is enqueued in addition to the global styles coming from core. On a normal production site, when `SCRIPT_DEBUG` is disabled, then the minified version `style.min.css` will be enqueued instead. If you make a change to `style.css`, you'll need to re-minify the `style.min.css` using the built-in npm build tool. As always, it is preferable to use the Site Editor to supply Additional CSS instead of directly editing the theme stylesheet.
|
||||
|
||||
Installation instructions
|
||||
|
||||
1. Using a command line interface, go to the “twentytwentyfive” directory `cd /my-computer/local-wordpress-install/src/wp-content/themes/twentytwentyfive`.
|
||||
|
||||
2. Type `npm install` into the command line, and press the [return] key, to install all Node.js dependencies.
|
||||
|
||||
3. The dependencies may take a few minutes to download but once it completes, you’re done.
|
||||
|
||||
Usage instructions
|
||||
|
||||
1. After making a change to the `style.css` file, run `npm run build` from within the theme directory to regenerate `style.min.css` with your new changes.
|
||||
|
||||
2. You can also “watch” the theme directory for CSS changes and re-minify the CSS anytime a change occurs by running: `npm run watch`.
|
||||
166
gk-assets/themes/twentytwentyfive/functions.php
Normal file
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
/**
|
||||
* Twenty Twenty-Five functions and definitions.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
// Adds theme support for post formats.
|
||||
if ( ! function_exists( 'twentytwentyfive_post_format_setup' ) ) :
|
||||
/**
|
||||
* Adds theme support for post formats.
|
||||
*
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentytwentyfive_post_format_setup() {
|
||||
add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) );
|
||||
}
|
||||
endif;
|
||||
add_action( 'after_setup_theme', 'twentytwentyfive_post_format_setup' );
|
||||
|
||||
// Enqueues editor-style.css in the editors.
|
||||
if ( ! function_exists( 'twentytwentyfive_editor_style' ) ) :
|
||||
/**
|
||||
* Enqueues editor-style.css in the editors.
|
||||
*
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentytwentyfive_editor_style() {
|
||||
add_editor_style( 'assets/css/editor-style.css' );
|
||||
}
|
||||
endif;
|
||||
add_action( 'after_setup_theme', 'twentytwentyfive_editor_style' );
|
||||
|
||||
// Enqueues the theme stylesheet on the front.
|
||||
if ( ! function_exists( 'twentytwentyfive_enqueue_styles' ) ) :
|
||||
/**
|
||||
* Enqueues the theme stylesheet on the front.
|
||||
*
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentytwentyfive_enqueue_styles() {
|
||||
$suffix = SCRIPT_DEBUG ? '' : '.min';
|
||||
$src = 'style' . $suffix . '.css';
|
||||
|
||||
wp_enqueue_style(
|
||||
'twentytwentyfive-style',
|
||||
get_parent_theme_file_uri( $src ),
|
||||
array(),
|
||||
wp_get_theme()->get( 'Version' )
|
||||
);
|
||||
wp_style_add_data(
|
||||
'twentytwentyfive-style',
|
||||
'path',
|
||||
get_parent_theme_file_path( $src )
|
||||
);
|
||||
}
|
||||
endif;
|
||||
add_action( 'wp_enqueue_scripts', 'twentytwentyfive_enqueue_styles' );
|
||||
|
||||
// Registers custom block styles.
|
||||
if ( ! function_exists( 'twentytwentyfive_block_styles' ) ) :
|
||||
/**
|
||||
* Registers custom block styles.
|
||||
*
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentytwentyfive_block_styles() {
|
||||
register_block_style(
|
||||
'core/list',
|
||||
array(
|
||||
'name' => 'checkmark-list',
|
||||
'label' => __( 'Checkmark', 'twentytwentyfive' ),
|
||||
'inline_style' => '
|
||||
ul.is-style-checkmark-list {
|
||||
list-style-type: "\2713";
|
||||
}
|
||||
|
||||
ul.is-style-checkmark-list li {
|
||||
padding-inline-start: 1ch;
|
||||
}',
|
||||
)
|
||||
);
|
||||
}
|
||||
endif;
|
||||
add_action( 'init', 'twentytwentyfive_block_styles' );
|
||||
|
||||
// Registers pattern categories.
|
||||
if ( ! function_exists( 'twentytwentyfive_pattern_categories' ) ) :
|
||||
/**
|
||||
* Registers pattern categories.
|
||||
*
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentytwentyfive_pattern_categories() {
|
||||
|
||||
register_block_pattern_category(
|
||||
'twentytwentyfive_page',
|
||||
array(
|
||||
'label' => __( 'Pages', 'twentytwentyfive' ),
|
||||
'description' => __( 'A collection of full page layouts.', 'twentytwentyfive' ),
|
||||
)
|
||||
);
|
||||
|
||||
register_block_pattern_category(
|
||||
'twentytwentyfive_post-format',
|
||||
array(
|
||||
'label' => __( 'Post formats', 'twentytwentyfive' ),
|
||||
'description' => __( 'A collection of post format patterns.', 'twentytwentyfive' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
endif;
|
||||
add_action( 'init', 'twentytwentyfive_pattern_categories' );
|
||||
|
||||
// Registers block binding sources.
|
||||
if ( ! function_exists( 'twentytwentyfive_register_block_bindings' ) ) :
|
||||
/**
|
||||
* Registers the post format block binding source.
|
||||
*
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentytwentyfive_register_block_bindings() {
|
||||
register_block_bindings_source(
|
||||
'twentytwentyfive/format',
|
||||
array(
|
||||
'label' => _x( 'Post format name', 'Label for the block binding placeholder in the editor', 'twentytwentyfive' ),
|
||||
'get_value_callback' => 'twentytwentyfive_format_binding',
|
||||
)
|
||||
);
|
||||
}
|
||||
endif;
|
||||
add_action( 'init', 'twentytwentyfive_register_block_bindings' );
|
||||
|
||||
// Registers block binding callback function for the post format name.
|
||||
if ( ! function_exists( 'twentytwentyfive_format_binding' ) ) :
|
||||
/**
|
||||
* Callback function for the post format name block binding source.
|
||||
*
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*
|
||||
* @return string|void Post format name, or nothing if the format is 'standard'.
|
||||
*/
|
||||
function twentytwentyfive_format_binding() {
|
||||
$post_format_slug = get_post_format();
|
||||
|
||||
if ( $post_format_slug && 'standard' !== $post_format_slug ) {
|
||||
return get_post_format_string( $post_format_slug );
|
||||
}
|
||||
}
|
||||
endif;
|
||||
1725
gk-assets/themes/twentytwentyfive/package-lock.json
generated
Normal file
32
gk-assets/themes/twentytwentyfive/package.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "twentytwentyfive",
|
||||
"version": "1.4.0",
|
||||
"description": "Default WP Theme",
|
||||
"author": "The WordPress Contributors",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"keywords": [
|
||||
"WordPress",
|
||||
"Theme"
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://core.trac.wordpress.org/"
|
||||
},
|
||||
"homepage": "https://wordpress.org/themes/twentytwentyfive/",
|
||||
"engines": {
|
||||
"node": ">=20.10.0",
|
||||
"npm": ">=10.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@wordpress/browserslist-config": "^6.34.0",
|
||||
"postcss": "^8.5.6",
|
||||
"postcss-cli": "^11.0.1",
|
||||
"cssnano": "^7.1.2"
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @wordpress/browserslist-config"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "postcss style.css --use cssnano -o style.min.css --no-map",
|
||||
"watch": "postcss style.css --use cssnano -o style.min.css --no-map --watch"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<!-- wp:pattern {"slug":"twentytwentyfive/footer-columns"} /-->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- wp:pattern {"slug":"twentytwentyfive/footer-newsletter"} /-->
|
||||
1
gk-assets/themes/twentytwentyfive/parts/footer.html
Normal file
@@ -0,0 +1 @@
|
||||
<!-- wp:pattern {"slug":"twentytwentyfive/footer"} /-->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- wp:pattern {"slug":"twentytwentyfive/header-large-title"} /-->
|
||||
1
gk-assets/themes/twentytwentyfive/parts/header.html
Normal file
@@ -0,0 +1 @@
|
||||
<!-- wp:pattern {"slug":"twentytwentyfive/header"} /-->
|
||||
1
gk-assets/themes/twentytwentyfive/parts/sidebar.html
Normal file
@@ -0,0 +1 @@
|
||||
<!-- wp:pattern {"slug":"twentytwentyfive/hidden-sidebar"} /-->
|
||||
@@ -0,0 +1 @@
|
||||
<!-- wp:pattern {"slug":"twentytwentyfive/vertical-header"} /-->
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Banner with book description
|
||||
* Slug: twentytwentyfive/banner-about-book
|
||||
* Categories: banner
|
||||
* Description: Banner with book description and accompanying image for promotion.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
|
||||
<!-- wp:columns {"verticalAlignment":null,"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|70"}}}} -->
|
||||
<div class="wp-block-columns alignwide">
|
||||
<!-- wp:column {"verticalAlignment":"center","width":""} -->
|
||||
<div class="wp-block-column is-vertically-aligned-center">
|
||||
<!-- wp:heading {"className":"wp-block-heading","fontSize":"xx-large"} -->
|
||||
<h2 class="wp-block-heading has-xx-large-font-size"><?php esc_html_e( 'About the book', 'twentytwentyfive' ); ?></h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph {"fontSize":"medium"} -->
|
||||
<p class="has-medium-font-size"><?php echo esc_html_x( 'This exquisite compilation showcases a diverse array of photographs that capture the essence of different eras and cultures, reflecting the unique styles and perspectives of each artist. Fleckenstein’s evocative imagery, Strand’s groundbreaking modernist approach, and Kōno’s meticulous documentation of Japanese life come together in a harmonious blend that celebrates the art of photography. Each image in “The Stories Book” is accompanied by insightful commentary, providing historical context and revealing the stories behind the photographs. This collection is not only a visual feast but also a tribute to the power of photography to preserve and narrate the multifaceted experiences of humanity.', 'Pattern placeholder text.', 'twentytwentyfive' ); ?></p>
|
||||
<!-- /wp:paragraph -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"verticalAlignment":"center","width":"","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-column is-vertically-aligned-center">
|
||||
<!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/book-image-landing.webp" alt="<?php esc_attr_e( 'Image of a book', 'twentytwentyfive' ); ?>" style="aspect-ratio:1;object-fit:cover"/></figure>
|
||||
<!-- /wp:image -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Cover with big heading
|
||||
* Slug: twentytwentyfive/banner-cover-big-heading
|
||||
* Categories: banner, about, featured
|
||||
* Description: A full-width cover section with a large background image and an oversized heading.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!-- wp:group {"align":"full","className":"is-style-section-3","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull is-style-section-3" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
|
||||
<!-- wp:group {"align":"wide","style":{"spacing":{}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignwide">
|
||||
<!-- wp:image {"sizeSlug":"full","linkDestination":"none","align":"wide"} -->
|
||||
<figure class="wp-block-image alignwide size-full">
|
||||
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/coming-soon-bg-image.webp" alt="<?php esc_attr_e( 'Photo of a field full of flowers, a blue sky and a tree.', 'twentytwentyfive' ); ?>"/>
|
||||
</figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:group {"align":"full","layout":{"type":"default"}} -->
|
||||
<div class="wp-block-group alignfull">
|
||||
<!-- wp:heading {"align":"left","style":{"typography":{"fontSize":"clamp(1rem, 380px, 24vw)","letterSpacing":"-0.02em","lineHeight":"1","fontWeight":"700","fontStyle":"normal"}}} -->
|
||||
<h2 class="wp-block-heading has-text-align-left" style="font-size:clamp(1rem, 380px, 24vw);font-style:normal;font-weight:700;letter-spacing:-0.02em;line-height:1"><?php esc_html_e( 'Stories', 'twentytwentyfive' ); ?></h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Short heading and paragraph and image on the left
|
||||
* Slug: twentytwentyfive/banner-intro-image
|
||||
* Categories: banner, featured
|
||||
* Description: A Intro pattern with Short heading, paragraph and image on the left.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
|
||||
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50","left":"var:preset|spacing|50"}}}} -->
|
||||
<div class="wp-block-columns alignwide">
|
||||
<!-- wp:column {"width":"56%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:56%">
|
||||
<!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"full"} -->
|
||||
<figure class="wp-block-image size-full">
|
||||
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/botany-flowers.webp" alt="<?php echo esc_attr_x( 'Picture of a flower', 'Alt text for intro picture.', 'twentytwentyfive' ); ?>" style="aspect-ratio:1;object-fit:cover"/>
|
||||
</figure>
|
||||
<!-- /wp:image -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"blockGap":"var:preset|spacing|40"}}} -->
|
||||
<div class="wp-block-column is-vertically-aligned-center">
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading"><?php echo esc_html_x( 'New arrivals', 'Heading for banner pattern.', 'twentytwentyfive' ); ?></h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p><?php echo esc_html_x( 'Like flowers that bloom in unexpected places, every story unfolds with beauty and resilience, revealing hidden wonders.', 'Sample description for banner with flower.', 'twentytwentyfive' ); ?></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:buttons -->
|
||||
<div class="wp-block-buttons">
|
||||
<!-- wp:button -->
|
||||
<div class="wp-block-button">
|
||||
<a class="wp-block-button__link wp-element-button"><?php esc_html_e( 'Learn more', 'twentytwentyfive' ); ?></a>
|
||||
</div>
|
||||
<!-- /wp:button -->
|
||||
</div>
|
||||
<!-- /wp:buttons -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
28
gk-assets/themes/twentytwentyfive/patterns/banner-intro.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Intro with left-aligned description
|
||||
* Slug: twentytwentyfive/banner-intro
|
||||
* Categories: banner
|
||||
* Description: A large left-aligned heading with a brand name emphasized in bold.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--80)">
|
||||
<!-- wp:heading {"align":"wide","fontSize":"x-large"} -->
|
||||
<h2 class="wp-block-heading alignwide has-x-large-font-size">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s is the brand name, e.g., 'Fleurs'. */
|
||||
esc_html_x( 'We\'re %s, our mission is to deliver exquisite flower arrangements that not only adorn living spaces but also inspire a deeper appreciation for natural beauty.', 'Pattern placeholder text.', 'twentytwentyfive' ),
|
||||
'<strong>' . esc_html_x( 'Fleurs', 'Example brand name.', 'twentytwentyfive' ) . '</strong>'
|
||||
);
|
||||
?>
|
||||
</h2>
|
||||
<!-- /wp:heading -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
69
gk-assets/themes/twentytwentyfive/patterns/banner-poster.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Poster-like section
|
||||
* Slug: twentytwentyfive/banner-poster
|
||||
* Categories: banner, media
|
||||
* Description: A section that can be used as a banner or a landing page to announce an event.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/poster-image-background.webp","alt":"Picture of a historical building in ruins.","dimRatio":30,"overlayColor":"contrast","isUserOverlayColor":true,"minHeight":100,"minHeightUnit":"vh","align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|accent-1"}}},"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"textColor":"accent-1","layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-cover alignfull has-accent-1-color has-text-color has-link-color" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50);min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-contrast-background-color has-background-dim-30 has-background-dim"></span><img class="wp-block-cover__image-background" alt="<?php esc_attr_e( 'Picture of a historical building in ruins.', 'twentytwentyfive' ); ?>" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/poster-image-background.webp" data-object-fit="cover"/>
|
||||
<div class="wp-block-cover__inner-container">
|
||||
<!-- wp:group {"align":"wide","style":{"dimensions":{"minHeight":"100vh"}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch"}} -->
|
||||
<div class="wp-block-group alignwide" style="min-height:100vh">
|
||||
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|50"}}}} -->
|
||||
<div class="wp-block-columns alignwide">
|
||||
<!-- wp:column {"width":"80%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:80%">
|
||||
<!-- wp:heading {"textAlign":"left","align":"wide","style":{"typography":{"fontSize":"12vw","lineHeight":"0.9","fontStyle":"normal","fontWeight":"300"}}} -->
|
||||
<h2 class="wp-block-heading alignwide has-text-align-left" style="font-size:12vw;font-style:normal;font-weight:300;line-height:0.9">
|
||||
<?php
|
||||
echo wp_kses_post(
|
||||
/* translators: This string contains the word "Stories" in four different languages with the first item in the locale's language. */
|
||||
_x( '“Stories, <span lang="es">historias</span>, <span lang="uk">iсторії</span>, <span lang="el">iστορίες</span>”', 'Placeholder heading in four languages.', 'twentytwentyfive' )
|
||||
);
|
||||
?>
|
||||
</h2>
|
||||
<!-- /wp:heading -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"width":"20%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:20%">
|
||||
<!-- wp:paragraph {"align":"right"} -->
|
||||
<p class="has-text-align-right"><?php echo esc_html_x( 'Aug 08—10 2025', 'Example event date in pattern.', 'twentytwentyfive' ); ?><br><?php esc_html_e( 'Fuego Bar, Mexico City', 'twentytwentyfive' ); ?></p>
|
||||
<!-- /wp:paragraph -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
|
||||
<!-- wp:columns {"verticalAlignment":"bottom","isStackedOnMobile":false,"align":"wide"} -->
|
||||
<div class="wp-block-columns alignwide are-vertically-aligned-bottom is-not-stacked-on-mobile">
|
||||
<!-- wp:column {"verticalAlignment":"bottom","width":"80%"} -->
|
||||
<div class="wp-block-column is-vertically-aligned-bottom" style="flex-basis:80%">
|
||||
<!-- wp:heading {"textAlign":"left","align":"wide","style":{"typography":{"lineHeight":"0.9","fontStyle":"normal","fontWeight":"300"}},"fontSize":"xx-large"} -->
|
||||
<h2 class="wp-block-heading alignwide has-text-align-left has-xx-large-font-size" style="font-style:normal;font-weight:300;line-height:0.9"><?php esc_html_e( 'Let’s hear them.', 'twentytwentyfive' ); ?></h2>
|
||||
<!-- /wp:heading -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"verticalAlignment":"bottom","width":"20%"} -->
|
||||
<div class="wp-block-column is-vertically-aligned-bottom" style="flex-basis:20%">
|
||||
<!-- wp:paragraph {"align":"right"} -->
|
||||
<p class="has-text-align-right"><?php esc_html_e( '#stories', 'twentytwentyfive' ); ?></p>
|
||||
<!-- /wp:paragraph -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /wp:cover -->
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Banner with description and images grid
|
||||
* Slug: twentytwentyfive/banner-description-images-grid
|
||||
* Categories: banner, featured
|
||||
* Description: A banner with a short paragraph, and two images displayed in a grid layout.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0">
|
||||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"blockGap":"var:preset|spacing|50"}},"layout":{"type":"grid","minimumColumnWidth":"26rem"}} -->
|
||||
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
|
||||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch","flexWrap":"nowrap"}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"left"}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:heading {"className":"is-style-text-annotation"} -->
|
||||
<h2 class="wp-block-heading is-style-text-annotation"><?php esc_html_e( 'About Us', 'twentytwentyfive' ); ?></h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph {"className":"is-style-text-subtitle"} -->
|
||||
<p class="is-style-text-subtitle">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s is the brand name, e.g., 'Fleurs'. */
|
||||
esc_html__( '%s is a flower delivery and subscription business. Based in the EU, our mission is not only to deliver stunning flower arrangements across but also foster knowledge and enthusiasm on the beautiful gift of nature: flowers.', 'twentytwentyfive' ),
|
||||
'<strong>' . esc_html_x( 'Fleurs', 'Example brand name.', 'twentytwentyfive' ) . '</strong>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:image {"aspectRatio":"16/9","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/grid-flower-1.webp" alt="<?php esc_attr_e( 'Photography close up of a red flower.', 'twentytwentyfive' ); ?>" style="aspect-ratio:16/9;object-fit:cover"/></figure>
|
||||
<!-- /wp:image -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:image {"aspectRatio":"3/4","scale":"cover","sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/grid-flower-2.webp" alt="<?php esc_attr_e( 'Black and white photography close up of a flower.', 'twentytwentyfive' ); ?>" style="aspect-ratio:3/4;object-fit:cover"/></figure>
|
||||
<!-- /wp:image -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Post format name
|
||||
* Slug: twentytwentyfive/binding-format
|
||||
* Categories: twentytwentyfive_post-format
|
||||
* Description: Prints the name of the post format with the help of the Block Bindings API.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!-- wp:paragraph {"metadata":{"bindings":{"content":{"source":"twentytwentyfive/format"}}},"fontSize":"small"} -->
|
||||
<p class="has-small-font-size"></p>
|
||||
<!-- /wp:paragraph -->
|
||||
53
gk-assets/themes/twentytwentyfive/patterns/comments.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Comments
|
||||
* Slug: twentytwentyfive/comments
|
||||
* Description: Comments area with comments list, pagination, and comment form.
|
||||
* Categories: text
|
||||
* Block Types: core/comments
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Twenty_Five
|
||||
* @since Twenty Twenty-Five 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!-- wp:comments {"className":"wp-block-comments-query-loop","style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}}} -->
|
||||
<div class="wp-block-comments wp-block-comments-query-loop" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)">
|
||||
<!-- wp:heading {"fontSize":"x-large"} -->
|
||||
<h2 class="wp-block-heading has-x-large-font-size"><?php esc_html_e( 'Comments', 'twentytwentyfive' ); ?></h2>
|
||||
<!-- /wp:heading -->
|
||||
<!-- wp:comments-title {"level":3,"fontSize":"large"} /-->
|
||||
<!-- wp:comment-template -->
|
||||
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
|
||||
<div class="wp-block-group" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)">
|
||||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:avatar {"size":50} /-->
|
||||
<!-- wp:group -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:comment-date /-->
|
||||
<!-- wp:comment-author-name /-->
|
||||
<!-- wp:comment-content /-->
|
||||
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:comment-edit-link /-->
|
||||
<!-- wp:comment-reply-link /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:comment-template -->
|
||||
|
||||
<!-- wp:comments-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||
<!-- wp:comments-pagination-previous /-->
|
||||
<!-- wp:comments-pagination-next /-->
|
||||
<!-- /wp:comments-pagination -->
|
||||
|
||||
<!-- wp:post-comments-form /-->
|
||||
</div>
|
||||
<!-- /wp:comments -->
|
||||