Skip to content

Commit

Permalink
Theme rename: Farmhouse to Greenseed (#8099)
Browse files Browse the repository at this point in the history
* renamed theme

* replace screenshot

* added main tag

* license format
  • Loading branch information
MaggieCabrera committed Sep 11, 2024
1 parent 2f35d14 commit 4c14a2f
Show file tree
Hide file tree
Showing 43 changed files with 72 additions and 70 deletions.
Binary file removed farmhouse/screenshot.png
Binary file not shown.
1 change: 0 additions & 1 deletion farmhouse/templates/home.html

This file was deleted.

28 changes: 14 additions & 14 deletions farmhouse/functions.php → greenseed/functions.php
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
<?php
/**
* Farmhouse functions and definitions
* Greenseed functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Farmhouse
* @since Farmhouse 1.0
* @package Greenseed
* @since Greenseed 1.0
*/


if ( ! function_exists( 'farmhouse_support' ) ) :
if ( ! function_exists( 'greenseed_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Farmhouse 1.0
* @since Greenseed 1.0
*
* @return void
*/
function farmhouse_support() {
function greenseed_support() {

// Enqueue editor styles.
add_editor_style( 'style.css' );

// Make theme available for translation.
load_theme_textdomain( 'farmhouse' );
load_theme_textdomain( 'greenseed' );
}

endif;

add_action( 'after_setup_theme', 'farmhouse_support' );
add_action( 'after_setup_theme', 'greenseed_support' );

if ( ! function_exists( 'farmhouse_styles' ) ) :
if ( ! function_exists( 'greenseed_styles' ) ) :

/**
* Enqueue styles.
*
* @since Farmhouse 1.0
* @since Greenseed 1.0
*
* @return void
*/
function farmhouse_styles() {
function greenseed_styles() {

// Register theme stylesheet.
wp_register_style(
'farmhouse-style',
'greenseed-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'farmhouse-style' );
wp_enqueue_style( 'greenseed-style' );

}

endif;

add_action( 'wp_enqueue_scripts', 'farmhouse_styles' );
add_action( 'wp_enqueue_scripts', 'greenseed_styles' );
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between","verticalAlignment":"bottom"}} -->
<div class="wp-block-group alignfull" style="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)"><!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size">Inveresk Village Rd 15<br>Musselburgh, Scotland<br><a href="#">@farmhousemkt</a></p>
<p class="has-text-align-left has-small-font-size">Inveresk Village Rd 15<br>Musselburgh, Scotland<br><a href="#">@greenseedmkt</a></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"right","fontSize":"small"} -->
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions farmhouse/patterns/404.php → greenseed/patterns/404.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
/**
* Title: A 404 page
* Slug: farmhouse/404
* Slug: greenseed/404
* Inserter: no
*/

?>

<!-- wp:heading {"textAlign":"center","level":1,"fontSize":"x-large"} -->
<h1 class="has-text-align-center has-x-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'farmhouse' ); ?></h1>
<h1 class="has-text-align-center has-x-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'greenseed' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'farmhouse' ); ?></p>
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'greenseed' ); ?></p>
<!-- /wp:paragraph -->
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Comments
* slug: farmhouse/comments
* slug: greenseed/comments
* inserter: no
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Default footer
* Slug: farmhouse/footer
* Slug: greenseed/footer
* Categories: footer
* Block Types: core/template-part/footer
*/
Expand All @@ -19,9 +19,9 @@
<p class="has-text-align-center">
<?php
/* Translators: WordPress link. */
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'farmhouse' ) ) . '" rel="nofollow">WordPress</a>';
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'greenseed' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
esc_html__( 'Designed with %1$s', 'farmhouse' ),
esc_html__( 'Designed with %1$s', 'greenseed' ),
$wordpress_link
);
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
?>
<!-- wp:group {"lock":{"move":false,"remove":false},"metadata":{"name":"Overlayed Header and Footer (Home)"},"style":{"position":{"type":"sticky","top":"0px"},"spacing":{"padding":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:0;padding-bottom:0"><!-- wp:group {"align":"full","style":{"dimensions":{"minHeight":"100vh"},"spacing":{"padding":{"bottom":"var:preset|spacing|60"}}},"className":"overlay","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch"}} -->
<div class="wp-block-group alignfull overlay" style="min-height:100vh;padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:template-part {"slug":"header","theme":"farmhouse","area":"header"} /-->
<div class="wp-block-group alignfull overlay" style="min-height:100vh;padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:template-part {"slug":"header","theme":"greenseed","area":"header"} /-->
<!-- wp:spacer {"height":"0px","style":{"layout":{"flexSize":"100px","selfStretch":"fixed"}}} -->
<div style="height:0px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:template-part {"slug":"footer","theme":"farmhouse","area":"footer"} /--></div>
<!-- wp:template-part {"slug":"footer","theme":"greenseed","area":"footer"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:group {"metadata":{"name":"Homepage Content"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
Expand All @@ -21,7 +21,7 @@
<!-- /wp:column -->
<!-- wp:column {"width":"60%"} -->
<div class="wp-block-column" style="flex-basis:60%"><!-- wp:image {"id":67,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/farmhouse-image-5-1024x683.jpg" alt="" class="wp-image-67"/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/greenseed-image-5-1024x683.jpg" alt="" class="wp-image-67"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"10%"} -->
Expand All @@ -37,7 +37,7 @@
<!-- /wp:column -->
<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:image {"id":69,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/farmhouse-image-2-2-1024x694.jpg" alt="" class="wp-image-69"/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/greenseed-image-2-2-1024x694.jpg" alt="" class="wp-image-69"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"40%"} -->
Expand All @@ -53,7 +53,7 @@
<!-- /wp:column -->
<!-- wp:column {"width":"40%"} -->
<div class="wp-block-column" style="flex-basis:40%"><!-- wp:image {"id":70,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/farmhouse-image-3-2-732x1024.jpg" alt="" class="wp-image-70"/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/greenseed-image-3-2-732x1024.jpg" alt="" class="wp-image-70"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
Expand All @@ -63,7 +63,7 @@
<!-- wp:columns {"isStackedOnMobile":false} -->
<div class="wp-block-columns is-not-stacked-on-mobile"><!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:image {"id":71,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/farmhouse-image-1-2-1024x694.jpg" alt="" class="wp-image-71"/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/greenseed-image-1-2-1024x694.jpg" alt="" class="wp-image-71"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"33.33%"} -->
Expand All @@ -79,7 +79,7 @@
<!-- /wp:column -->
<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:image {"id":72,"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/farmhouse-image-4-1024x694.jpg" alt="" class="wp-image-72"/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo get_stylesheet_directory_uri() ?>/assets/images/greenseed-image-4-1024x694.jpg" alt="" class="wp-image-72"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"46%"} -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* Title: Hidden No Results Content
* Slug: farmhouse/hidden-no-results-content
* Slug: greenseed/hidden-no-results-content
* Inserter: no
*/
?>
<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'farmhouse' ); ?></p>
<p><?php echo esc_html_x( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'greenseed' ); ?></p>
<!-- /wp:paragraph -->
20 changes: 10 additions & 10 deletions farmhouse/patterns/home.php → greenseed/patterns/home.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
/**
* Title: home
* Slug: farmhouse/home
* Slug: greenseed/home
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:group {"lock":{"move":false,"remove":false},"metadata":{"name":"Overlayed Header and Footer (Home)"},"style":{"position":{"type":"sticky","top":"0px"},"spacing":{"padding":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:0;padding-bottom:0"><!-- wp:group {"align":"full","style":{"dimensions":{"minHeight":"100vh"},"spacing":{"padding":{"bottom":"var:preset|spacing|60"}}},"className":"overlay","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch"}} -->
<div class="wp-block-group" style="padding-top:0;padding-bottom:0"><!-- wp:group {"align":"full","className":"overlay","style":{"dimensions":{"minHeight":"100vh"},"spacing":{"padding":{"bottom":"var:preset|spacing|60"}}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch"}} -->
<div class="wp-block-group alignfull overlay" style="min-height:100vh;padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:template-part {"slug":"header","area":"header"} /-->

<!-- wp:spacer {"height":"0px","style":{"layout":{"flexSize":"100px","selfStretch":"fixed"}}} -->
Expand All @@ -18,15 +18,15 @@
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"metadata":{"name":"Homepage Content"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:columns {"isStackedOnMobile":false,"style":{"spacing":{"padding":{"top":"0"},"margin":{"top":"0"}}}} -->
<!-- wp:group {"tagName":"main","metadata":{"name":"Homepage Content"},"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
<main class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:columns {"isStackedOnMobile":false,"style":{"spacing":{"padding":{"top":"0"},"margin":{"top":"0"}}}} -->
<div class="wp-block-columns is-not-stacked-on-mobile" style="margin-top:0;padding-top:0"><!-- wp:column {"width":"30%","style":{"spacing":{"padding":{"top":"0","bottom":"0"}}}} -->
<div class="wp-block-column" style="padding-top:0;padding-bottom:0;flex-basis:30%"></div>
<!-- /wp:column -->

<!-- wp:column {"width":"60%"} -->
<div class="wp-block-column" style="flex-basis:60%"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/farmhouse-image-5-1024x683.jpg" alt="" class=""/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/greenseed-image-5-1024x683.jpg" alt="" class=""/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->

Expand All @@ -46,7 +46,7 @@

<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/farmhouse-image-2-2-1024x694.jpg" alt="" class=""/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/greenseed-image-2-2-1024x694.jpg" alt="" class=""/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->

Expand All @@ -66,7 +66,7 @@

<!-- wp:column {"width":"40%"} -->
<div class="wp-block-column" style="flex-basis:40%"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/farmhouse-image-3-2-732x1024.jpg" alt="" class=""/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/greenseed-image-3-2-732x1024.jpg" alt="" class=""/></figure>
<!-- /wp:image --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
Expand All @@ -78,7 +78,7 @@
<!-- wp:columns {"isStackedOnMobile":false} -->
<div class="wp-block-columns is-not-stacked-on-mobile"><!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/farmhouse-image-1-2-1024x694.jpg" alt="" class=""/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/greenseed-image-1-2-1024x694.jpg" alt="" class=""/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->

Expand All @@ -98,7 +98,7 @@

<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/farmhouse-image-4-1024x694.jpg" alt="" class=""/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/greenseed-image-4-1024x694.jpg" alt="" class=""/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->

Expand All @@ -125,5 +125,5 @@
<!-- wp:column {"verticalAlignment":"center","width":"40%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:40%"></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:columns --></main>
<!-- /wp:group -->
File renamed without changes.
24 changes: 13 additions & 11 deletions farmhouse/readme.txt → greenseed/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=== Farmhouse ===
=== Greenseed ===
Contributors: Automattic
Requires at least: 6.0
Tested up to: 6.0
Expand All @@ -8,12 +8,12 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html

== Description ==

Farmhouse is a sleek, simple theme tailored for small businesses aiming to make a lasting professional impression. With a dynamic and bold default homepage layout characterized by its sticky header and footer elements, Farmhouse exudes a sense of modernity and sophistication. Its versatile typography further enhances its adaptability, catering to a diverse range of business domains with finesse. Whether you're delving into retail, hospitality, or beyond, "Farmhouse" stands ready to elevate your online presence with its seamless blend of style and functionality.
Greenseed is a sleek, simple theme tailored for small businesses aiming to make a lasting professional impression. With a dynamic and bold default homepage layout characterized by its sticky header and footer elements, Greenseed exudes a sense of modernity and sophistication. Its versatile typography further enhances its adaptability, catering to a diverse range of business domains with finesse. Whether you're delving into retail, hospitality, or beyond, "Greenseed" stands ready to elevate your online presence with its seamless blend of style and functionality.

== Changelog ==

= 0.0.30 =
* Farmhouse: Update header alignment (#7575)
* Greenseed: Update header alignment (#7575)

= 0.0.29 =
* Remove auto-loading-homepage tag. (#7300)
Expand All @@ -28,19 +28,19 @@ Farmhouse is a sleek, simple theme tailored for small businesses aiming to make
* Remove table CSS from block canvas theme as it has been addressed in Gutenberg (#6954)

= 0.0.24 =
* Farmhouse: Add no results content to search template (#6860)
* Greenseed: Add no results content to search template (#6860)

= 0.0.23 =
* Remove font-smoothing CSS (#6816)

= 0.0.22 =
* Add home.html template to Farmhouse (#6784)
* Add home.html template to Greenseed (#6784)

= 0.0.21 =
* Farmhouse: Add self-closing tag to comments pattern in page template (#6764)
* Greenseed: Add self-closing tag to comments pattern in page template (#6764)

= 0.0.20 =
* Farmhouse: small updates (#6705)
* Greenseed: small updates (#6705)

= 0.0.19 =
* Make theme available for translation as much as possible (#6484)
Expand All @@ -53,8 +53,8 @@ Farmhouse is a sleek, simple theme tailored for small businesses aiming to make

== Copyright ==

Farmhouse WordPress Theme, (C) 2022 Automattic
Farmhouse is distributed under the terms of the GNU GPL.
Greenseed WordPress Theme, (C) 2022 Automattic
Greenseed 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
Expand All @@ -78,5 +78,7 @@ License: CC0
License URL: https://creativecommons.org/publicdomain/zero/1.0/
Source: https://www.rawpixel.com/image/448663/free-photo-image-agriculture-eating-farm

DM Sans from Google Fonts, Open Font License (https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
https://fonts.google.com/specimen/DM+Sans
DM Sans from Google Fonts
License: Open Font License
License URL: https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
Source: https://fonts.google.com/specimen/DM+Sans
Binary file added greenseed/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4c14a2f

Please sign in to comment.