Try updating Livre theme name to Livro (#5298)
* Change name to livro. * Update name to livro. * Update screenshot
This commit is contained in:
parent
53134927b1
commit
3a85e6507b
39 changed files with 94 additions and 94 deletions
|
@ -1 +0,0 @@
|
|||
<!-- wp:pattern {"slug":"livre/footer-default"} /-->
|
Binary file not shown.
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 289 KiB |
Before Width: | Height: | Size: 314 KiB After Width: | Height: | Size: 314 KiB |
|
@ -1,25 +1,25 @@
|
|||
<?php
|
||||
/**
|
||||
* Livre functions and definitions
|
||||
* Livro functions and definitions
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Livre
|
||||
* @since Livre 1.0
|
||||
* @subpackage Livro
|
||||
* @since Livro 1.0
|
||||
*/
|
||||
|
||||
|
||||
if ( ! function_exists( 'livre_support' ) ) :
|
||||
if ( ! function_exists( 'livro_support' ) ) :
|
||||
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function livre_support() {
|
||||
function livro_support() {
|
||||
|
||||
// Add support for block styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
@ -31,71 +31,71 @@ if ( ! function_exists( 'livre_support' ) ) :
|
|||
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'livre_support' );
|
||||
add_action( 'after_setup_theme', 'livro_support' );
|
||||
|
||||
if ( ! function_exists( 'livre_styles' ) ) :
|
||||
if ( ! function_exists( 'livro_styles' ) ) :
|
||||
|
||||
/**
|
||||
* Enqueue styles.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function livre_styles() {
|
||||
function livro_styles() {
|
||||
|
||||
// Register theme stylesheet.
|
||||
wp_register_style(
|
||||
'livre-style',
|
||||
'livro-style',
|
||||
get_template_directory_uri() . '/style.css',
|
||||
array(),
|
||||
wp_get_theme()->get( 'Version' )
|
||||
);
|
||||
|
||||
// Add styles inline.
|
||||
wp_add_inline_style( 'livre-style', livre_get_font_face_styles() );
|
||||
wp_add_inline_style( 'livro-style', livro_get_font_face_styles() );
|
||||
|
||||
// Enqueue theme stylesheet.
|
||||
wp_enqueue_style( 'livre-style' );
|
||||
wp_enqueue_style( 'livro-style' );
|
||||
|
||||
}
|
||||
|
||||
endif;
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'livre_styles' );
|
||||
add_action( 'wp_enqueue_scripts', 'livro_styles' );
|
||||
|
||||
if ( ! function_exists( 'livre_editor_styles' ) ) :
|
||||
if ( ! function_exists( 'livro_editor_styles' ) ) :
|
||||
|
||||
/**
|
||||
* Enqueue editor styles.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function livre_editor_styles() {
|
||||
function livro_editor_styles() {
|
||||
|
||||
// Add styles inline.
|
||||
wp_add_inline_style( 'wp-block-library', livre_get_font_face_styles() );
|
||||
wp_add_inline_style( 'wp-block-library', livro_get_font_face_styles() );
|
||||
|
||||
}
|
||||
|
||||
endif;
|
||||
|
||||
add_action( 'admin_init', 'livre_editor_styles' );
|
||||
add_action( 'admin_init', 'livro_editor_styles' );
|
||||
|
||||
|
||||
if ( ! function_exists( 'livre_get_font_face_styles' ) ) :
|
||||
if ( ! function_exists( 'livro_get_font_face_styles' ) ) :
|
||||
|
||||
/**
|
||||
* Get font face styles.
|
||||
* Called by functions livre_styles() and livre_editor_styles() above.
|
||||
* Called by functions livro_styles() and livro_editor_styles() above.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function livre_get_font_face_styles() {
|
||||
function livro_get_font_face_styles() {
|
||||
|
||||
return "
|
||||
@font-face{
|
||||
|
@ -121,7 +121,7 @@ if ( ! function_exists( 'livre_get_font_face_styles' ) ) :
|
|||
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'livre_preload_webfonts' ) ) :
|
||||
if ( ! function_exists( 'livro_preload_webfonts' ) ) :
|
||||
|
||||
/**
|
||||
* Preloads the main web font to improve performance.
|
||||
|
@ -131,11 +131,11 @@ if ( ! function_exists( 'livre_preload_webfonts' ) ) :
|
|||
* and therefore preloading it would in most cases regress performance when that font would otherwise not be loaded
|
||||
* at all.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function livre_preload_webfonts() {
|
||||
function livro_preload_webfonts() {
|
||||
?>
|
||||
<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/assets/fonts/Newsreader.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="<?php echo esc_url( get_theme_file_uri( 'assets/fonts/assets/fonts/Newsreader-italic.woff2' ) ); ?>" as="font" type="font/woff2" crossorigin>
|
||||
|
@ -144,7 +144,7 @@ if ( ! function_exists( 'livre_preload_webfonts' ) ) :
|
|||
|
||||
endif;
|
||||
|
||||
add_action( 'wp_head', 'livre_preload_webfonts' );
|
||||
add_action( 'wp_head', 'livro_preload_webfonts' );
|
||||
|
||||
// Add block patterns
|
||||
require get_template_directory() . '/inc/block-patterns.php';
|
|
@ -1,28 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Livre: Block Patterns
|
||||
* Livro: Block Patterns
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Registers block patterns and categories.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function livre_register_block_patterns() {
|
||||
function livro_register_block_patterns() {
|
||||
$block_pattern_categories = array(
|
||||
'footer' => array( 'label' => __( 'Footers', 'livre' ) ),
|
||||
'header' => array( 'label' => __( 'Headers', 'livre' ) ),
|
||||
'pages' => array( 'label' => __( 'Pages', 'livre' ) ),
|
||||
'footer' => array( 'label' => __( 'Footers', 'livro' ) ),
|
||||
'header' => array( 'label' => __( 'Headers', 'livro' ) ),
|
||||
'pages' => array( 'label' => __( 'Pages', 'livro' ) ),
|
||||
);
|
||||
|
||||
/**
|
||||
* Filters the theme block pattern categories.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @param array[] $block_pattern_categories {
|
||||
* An associative array of block pattern categories, keyed by category name.
|
||||
|
@ -34,7 +34,7 @@ function livre_register_block_patterns() {
|
|||
* }
|
||||
* }
|
||||
*/
|
||||
$block_pattern_categories = apply_filters( 'livre_block_pattern_categories', $block_pattern_categories );
|
||||
$block_pattern_categories = apply_filters( 'livro_block_pattern_categories', $block_pattern_categories );
|
||||
|
||||
foreach ( $block_pattern_categories as $name => $properties ) {
|
||||
if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( $name ) ) {
|
||||
|
@ -63,19 +63,19 @@ function livre_register_block_patterns() {
|
|||
/**
|
||||
* Filters the theme block patterns.
|
||||
*
|
||||
* @since Livre 1.0
|
||||
* @since Livro 1.0
|
||||
*
|
||||
* @param array $block_patterns List of block patterns by name.
|
||||
*/
|
||||
$block_patterns = apply_filters( 'livre_block_patterns', $block_patterns );
|
||||
$block_patterns = apply_filters( 'livro_block_patterns', $block_patterns );
|
||||
|
||||
foreach ( $block_patterns as $block_pattern ) {
|
||||
$pattern_file = get_theme_file_path( '/inc/patterns/' . $block_pattern . '.php' );
|
||||
|
||||
register_block_pattern(
|
||||
'livre/' . $block_pattern,
|
||||
'livro/' . $block_pattern,
|
||||
require $pattern_file
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'init', 'livre_register_block_patterns', 9 );
|
||||
add_action( 'init', 'livro_register_block_patterns', 9 );
|
|
@ -3,7 +3,7 @@
|
|||
* Centered footer block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Centered footer', 'livre' ),
|
||||
'title' => __( 'Centered footer', 'livro' ),
|
||||
'categories' => array( 'footer' ),
|
||||
'blockTypes' => array( 'core/template-part/footer' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->
|
||||
|
@ -12,8 +12,8 @@ return array(
|
|||
<p class="has-text-align-center has-small-font-size">' .
|
||||
sprintf(
|
||||
/* Translators: WordPress link. */
|
||||
esc_html__( 'Proudly powered by %s', 'livre' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livre' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
esc_html__( 'Proudly powered by %s', 'livro' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livro' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:group -->',
|
|
@ -3,7 +3,7 @@
|
|||
* Default footer block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Default footer', 'livre' ),
|
||||
'title' => __( 'Default footer', 'livro' ),
|
||||
'categories' => array( 'footer' ),
|
||||
'blockTypes' => array( 'core/template-part/footer' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->
|
||||
|
@ -12,8 +12,8 @@ return array(
|
|||
<p class="has-small-font-size">' .
|
||||
sprintf(
|
||||
/* Translators: WordPress link. */
|
||||
esc_html__( 'Proudly powered by %s', 'livre' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livre' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
esc_html__( 'Proudly powered by %s', 'livro' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livro' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:group -->',
|
|
@ -3,7 +3,7 @@
|
|||
* Footer with left navigation block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Footer with left navigation', 'livre' ),
|
||||
'title' => __( 'Footer with left navigation', 'livro' ),
|
||||
'categories' => array( 'footer' ),
|
||||
'blockTypes' => array( 'core/template-part/footer' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||
|
@ -16,8 +16,8 @@ return array(
|
|||
<p class="has-text-align-right has-small-font-size">' .
|
||||
sprintf(
|
||||
/* Translators: WordPress link. */
|
||||
esc_html__( 'Proudly powered by %s', 'livre' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livre' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
esc_html__( 'Proudly powered by %s', 'livro' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livro' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:group -->',
|
|
@ -3,7 +3,7 @@
|
|||
* Footer with right navigation block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Footer with right navigation', 'livre' ),
|
||||
'title' => __( 'Footer with right navigation', 'livro' ),
|
||||
'categories' => array( 'footer' ),
|
||||
'blockTypes' => array( 'core/template-part/footer' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||
|
@ -11,8 +11,8 @@ return array(
|
|||
<p class="has-text-align-left has-small-font-size">' .
|
||||
sprintf(
|
||||
/* Translators: WordPress link. */
|
||||
esc_html__( 'Proudly powered by %s', 'livre' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livre' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
esc_html__( 'Proudly powered by %s', 'livro' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livro' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
* Right-aligned footer block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Right-aligned footer', 'livre' ),
|
||||
'title' => __( 'Right-aligned footer', 'livro' ),
|
||||
'categories' => array( 'footer' ),
|
||||
'blockTypes' => array( 'core/template-part/footer' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--large, 8rem)","bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}}} -->
|
||||
|
@ -12,8 +12,8 @@ return array(
|
|||
<p class="has-text-align-right has-small-font-size">' .
|
||||
sprintf(
|
||||
/* Translators: WordPress link. */
|
||||
esc_html__( 'Proudly powered by %s', 'livre' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livre' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
esc_html__( 'Proudly powered by %s', 'livro' ),
|
||||
'<a href="' . esc_url( __( 'https://wordpress.org', 'livro' ) ) . '" rel="nofollow">WordPress</a>'
|
||||
) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:group -->',
|
|
@ -3,7 +3,7 @@
|
|||
* Centered header block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Centered header', 'livre' ),
|
||||
'title' => __( 'Centered header', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--medium, clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap))))"}}}} -->
|
|
@ -3,7 +3,7 @@
|
|||
* Default header block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Default header', 'livre' ),
|
||||
'title' => __( 'Default header', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"left"}} -->
|
|
@ -3,7 +3,7 @@
|
|||
* Header with site logo and title on left and button on right block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Header with site logo and title on left and button on right', 'livre' ),
|
||||
'title' => __( 'Header with site logo and title on left and button on right', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
@ -3,7 +3,7 @@
|
|||
* Header with site logo on left and button on right block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Header with site logo on left and button on right', 'livre' ),
|
||||
'title' => __( 'Header with site logo on left and button on right', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
@ -3,7 +3,7 @@
|
|||
* Header with site title on left and navigation on right block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Header with site title on left and navigation on right', 'livre' ),
|
||||
'title' => __( 'Header with site title on left and navigation on right', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
@ -3,7 +3,7 @@
|
|||
* Header with site title on left and button on right block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Header with site title on left and button on right', 'livre' ),
|
||||
'title' => __( 'Header with site title on left and button on right', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
@ -3,7 +3,7 @@
|
|||
* Right-aligned header block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Right-aligned header', 'livre' ),
|
||||
'title' => __( 'Right-aligned header', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"right"}} -->
|
|
@ -3,7 +3,7 @@
|
|||
* Header with site title, tagline, and social link block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Header with site title, tagline, and social link', 'livre' ),
|
||||
'title' => __( 'Header with site title, tagline, and social link', 'livro' ),
|
||||
'categories' => array( 'header' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 10rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
@ -3,31 +3,31 @@
|
|||
* About page block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'About page', 'livre' ),
|
||||
'title' => __( 'About page', 'livro' ),
|
||||
'categories' => array( 'pages' ),
|
||||
'content' => '<!-- wp:group {"align":"wide"} -->
|
||||
<div class="wp-block-group alignwide"><!-- wp:heading {"level":1} -->
|
||||
<h1>' . esc_html__( 'About', 'livre' ) . '</h1>
|
||||
<h1>' . esc_html__( 'About', 'livro' ) . '</h1>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:columns {"verticalAlignment":null} -->
|
||||
<div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Felicia Gonalez', 'livre' ) . '</h2>
|
||||
<h2>' . esc_html__( 'Felicia Gonalez', 'livro' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph {"fontSize":"small"} -->
|
||||
<p class="has-small-font-size">' . esc_html__( 'The studio was filled with the rich odour of roses, and when the light summer wind stirred amidst the trees of the garden, there came through the open door the heavy scent of the lilac, or the more delicate perfume of the pink-flowering thorn.', 'livre' ) . '</p>
|
||||
<p class="has-small-font-size">' . esc_html__( 'The studio was filled with the rich odour of roses, and when the light summer wind stirred amidst the trees of the garden, there came through the open door the heavy scent of the lilac, or the more delicate perfume of the pink-flowering thorn.', 'livro' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"width":"33.33%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Ebony James', 'livre' ) . '</h2>
|
||||
<h2>' . esc_html__( 'Ebony James', 'livro' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph {"fontSize":"small"} -->
|
||||
<p class="has-small-font-size">' . esc_html__( 'In the centre of the room, clamped to an upright easel, stood the full-length portrait of a young man of extraordinary personal beauty, and in front of it, some little distance away, was sitting the artist himself, Basil Hallward.', 'livre' ) . '</p>
|
||||
<p class="has-small-font-size">' . esc_html__( 'In the centre of the room, clamped to an upright easel, stood the full-length portrait of a young man of extraordinary personal beauty, and in front of it, some little distance away, was sitting the artist himself, Basil Hallward.', 'livro' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
|
@ -47,7 +47,7 @@ return array(
|
|||
|
||||
<!-- wp:column {"width":"66.66%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:image {"id":59,"sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/writing.jpg" alt="' . esc_attr__( 'Vintage photograph of a woman writing a letter.', 'livre' ) . '"/></figure>
|
||||
<figure class="wp-block-image size-full"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/writing.jpg" alt="' . esc_attr__( 'Vintage photograph of a woman writing a letter.', 'livro' ) . '"/></figure>
|
||||
<!-- /wp:image --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->
|
||||
|
@ -63,11 +63,11 @@ return array(
|
|||
|
||||
<!-- wp:column {"width":"33.33%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Matthew Porter', 'livre' ) . '</h2>
|
||||
<h2>' . esc_html__( 'Matthew Porter', 'livro' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph {"fontSize":"small"} -->
|
||||
<p class="has-small-font-size">' . esc_html__( 'In the centre of the room, clamped to an upright easel, stood the full-length portrait of a young man of extraordinary personal beauty, and in front of it, some little distance away, was sitting the artist himself, Basil Hallward.', 'livre' ) . '</p>
|
||||
<p class="has-small-font-size">' . esc_html__( 'In the centre of the room, clamped to an upright easel, stood the full-length portrait of a young man of extraordinary personal beauty, and in front of it, some little distance away, was sitting the artist himself, Basil Hallward.', 'livro' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
|
@ -87,11 +87,11 @@ return array(
|
|||
|
||||
<!-- wp:column {"width":"33.33%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Vic Desmond', 'livre' ) . '</h2>
|
||||
<h2>' . esc_html__( 'Vic Desmond', 'livro' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph {"fontSize":"small"} -->
|
||||
<p class="has-small-font-size">' . esc_html__( 'The studio was filled with the rich odour of roses, and when the light summer wind stirred amidst the trees of the garden, there came through the open door the heavy scent of the lilac, or the more delicate perfume of the pink-flowering thorn.', 'livre' ) . '</p>
|
||||
<p class="has-small-font-size">' . esc_html__( 'The studio was filled with the rich odour of roses, and when the light summer wind stirred amidst the trees of the garden, there came through the open door the heavy scent of the lilac, or the more delicate perfume of the pink-flowering thorn.', 'livro' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns --></div>
|
|
@ -3,22 +3,22 @@
|
|||
* Contact page block pattern
|
||||
*/
|
||||
return array(
|
||||
'title' => __( 'Contact page', 'livre' ),
|
||||
'title' => __( 'Contact page', 'livro' ),
|
||||
'categories' => array( 'pages' ),
|
||||
'content' => '<!-- wp:group {"align":"wide"} -->
|
||||
<div class="wp-block-group alignwide"><!-- wp:heading {"level":1} -->
|
||||
<h1>' . esc_html__( 'Contact', 'livre' ) . '</h1>
|
||||
<h1>' . esc_html__( 'Contact', 'livro' ) . '</h1>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:columns {"verticalAlignment":null} -->
|
||||
<div class="wp-block-columns"><!-- wp:column {"width":""} -->
|
||||
<div class="wp-block-column"><!-- wp:paragraph {"fontSize":"small"} -->
|
||||
<p class="has-small-font-size">' . esc_html__( 'The studio was filled with the rich odour of roses, and when the light summer wind stirred amidst the trees of the garden.', 'livre' ) . '</p>
|
||||
<p class="has-small-font-size">' . esc_html__( 'The studio was filled with the rich odour of roses, and when the light summer wind stirred amidst the trees of the garden.', 'livro' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:buttons -->
|
||||
<div class="wp-block-buttons"><!-- wp:button {"style":{"spacing":{"padding":{"top":"1em","right":"1em","bottom":"1em","left":"1em"}}},"fontSize":"x-small"} -->
|
||||
<div class="wp-block-button has-custom-font-size has-x-small-font-size"><a class="wp-block-button__link" style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em">' . esc_html__( 'Get in Touch', 'livre' ) . '</a></div>
|
||||
<div class="wp-block-button has-custom-font-size has-x-small-font-size"><a class="wp-block-button__link" style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em">' . esc_html__( 'Get in Touch', 'livro' ) . '</a></div>
|
||||
<!-- /wp:button --></div>
|
||||
<!-- /wp:buttons -->
|
||||
|
||||
|
@ -29,13 +29,13 @@ return array(
|
|||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:image {"id":56,"sizeSlug":"large","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/chair.jpg" alt="' . esc_attr__( 'A vintage photograph of an elegant living room.', 'livre' ) . '"/></figure>
|
||||
<figure class="wp-block-image size-large"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/chair.jpg" alt="' . esc_attr__( 'A vintage photograph of an elegant living room.', 'livro' ) . '"/></figure>
|
||||
<!-- /wp:image --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"verticalAlignment":"bottom","width":""} -->
|
||||
<div class="wp-block-column is-vertically-aligned-bottom"><!-- wp:paragraph {"align":"right","fontSize":"small"} -->
|
||||
<p class="has-text-align-right has-small-font-size"><em>' . esc_html__( 'Follow us:', 'livre' ) . '</em></p>
|
||||
<p class="has-text-align-right has-small-font-size"><em>' . esc_html__( 'Follow us:', 'livro' ) . '</em></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"secondary","iconColorValue":"var(--wp--preset--color--secondary)","className":"is-style-logos-only","layout":{"type":"flex","justifyContent":"right"}} -->
|
1
livro/parts/footer.html
Normal file
1
livro/parts/footer.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!-- wp:pattern {"slug":"livro/footer-default"} /-->
|
|
@ -1,4 +1,4 @@
|
|||
=== Livre ===
|
||||
=== Livro ===
|
||||
Contributors: automattic
|
||||
Requires at least: 5.8
|
||||
Tested up to: 5.9
|
||||
|
@ -9,7 +9,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|||
|
||||
== Description ==
|
||||
|
||||
Livre is a simple theme designed to evoke the calm feeling you get when you settle in with a classic book.
|
||||
Livro is a simple theme designed to evoke the calm feeling you get when you settle in with a classic book.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
|
@ -18,8 +18,8 @@ Livre is a simple theme designed to evoke the calm feeling you get when you sett
|
|||
|
||||
== Copyright ==
|
||||
|
||||
Livre WordPress Theme, (C) 2022 Automattic, Inc.
|
||||
Livre is distributed under the terms of the GNU GPL.
|
||||
Livro WordPress Theme, (C) 2022 Automattic, Inc.
|
||||
Livro is distributed under the terms of the GNU GPL.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -31,7 +31,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
Livre is derived from Twenty Twenty-Two, (C) 2021-2022 WordPress.org.
|
||||
Livro is derived from Twenty Twenty-Two, (C) 2021-2022 WordPress.org.
|
||||
|
||||
This theme bundles the following third-party resources:
|
||||
|
BIN
livro/screenshot.jpg
Normal file
BIN
livro/screenshot.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
|
@ -1,20 +1,20 @@
|
|||
/*
|
||||
Theme Name: Livre
|
||||
Theme URI: https://github.com/Automattic/themes/tree/trunk/livre
|
||||
Theme Name: Livro
|
||||
Theme URI: https://github.com/Automattic/themes/tree/trunk/livro
|
||||
Author: Automattic
|
||||
Author URI: https://automattic.com/
|
||||
Description: Livre is a simple theme designed to evoke the calm feeling you get when you settle in with a classic book.
|
||||
Description: Livro is a simple theme designed to evoke the calm feeling you get when you settle in with a classic book.
|
||||
Requires at least: 5.8
|
||||
Tested up to: 5.9
|
||||
Requires PHP: 5.6
|
||||
Version: 1.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: livre
|
||||
Text Domain: livro
|
||||
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments
|
||||
|
||||
Livre WordPress Theme, (C) 2022 Automattic, Inc.
|
||||
Livre is distributed under the terms of the GNU GPL.
|
||||
Livro WordPress Theme, (C) 2022 Automattic, Inc.
|
||||
Livro is distributed under the terms of the GNU GPL.
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -93,7 +93,7 @@ a:active {
|
|||
* Alignment styles.
|
||||
* These rules are temporary, and should not be relied on or
|
||||
* modified too heavily by themes or plugins that build on
|
||||
* Livre. These are meant to be a precursor to
|
||||
* Livro. These are meant to be a precursor to
|
||||
* a global solution provided by the Block Editor.
|
||||
*
|
||||
* Relevant issues:
|
|
@ -3,7 +3,7 @@
|
|||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:pattern {"slug":"livre/hidden-404"} /-->
|
||||
<!-- wp:pattern {"slug":"livro/hidden-404"} /-->
|
||||
</div>
|
||||
<!-- /wp:group --></main>
|
||||
<!-- /wp:group -->
|
Loading…
Reference in a new issue