Skip to content

Commit 3755f6e

Browse files
authored
Merge pull request #179 from studiopress/release/2.8.0
Genesis Sample 2.8.0
2 parents e668355 + 85a70d2 commit 3755f6e

24 files changed

+575
-169
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
# Genesis Sample Theme Changelog
22

3+
## [2.8.0] - 2019-01-16
4+
Requires Genesis 2.8.0+.
5+
6+
* New: Block-based homepage layout.
7+
* New: Auto homepage setup upon theme activation using the new onboarding feature from Genesis 2.8.0. (See `config/onboarding.php`.)
8+
* New: “Blocks” page template for use with the block editor. The template removes the title and breadcrumbs, and forces a full-width layout.
9+
* New: Load configuration with the new `genesis_get_config()` function from Genesis 2.8.0. (See `functions.php` and the `config/` folder.)
10+
* New: Add `has-no-blocks` body class if singular post/page contains no blocks.
11+
* New: Add `first-block-[block-name]` body class. Helps remove top padding when blocks such as the Cover block are first on the page.
12+
* New: Add `first-block-align-[alignment]` body class. Helps adjust styles if the first block is full-width.
13+
* Update: Styling adjustments for buttons, content width, and column blocks.
14+
* Update: Prevent 'admin' user being created during manual XML demo content import.
15+
* Update: Remove editor font sizes shortname from Gutenberg font sizes config. (The shortname is no longer used in WordPress.)
16+
* Tools: Improve `npm run zip` command to create archives that unzip to a 'genesis-sample' folder on Windows.
17+
318
## [2.7.1] - 2018-12-20
419
* Fix: Reinstate normalize.css and update to version 8.0.1.
5-
* Fix: Reinstate Genesis Column Classes in main stylesheet.
20+
* Fix: Reinstate Genesis Column Classes.
621
* Fix: Stop background hover color appearing for mobile menu-highlight button.
722

823
## [2.7.0] - 2018-12-12
@@ -63,6 +78,7 @@
6378
* Set localization.
6479
* Update XML file.
6580

81+
[2.8.0]: https://github.com/copyblogger/genesis-sample/compare/2.7.1...2.8.0
6682
[2.7.1]: https://github.com/copyblogger/genesis-sample/compare/2.7.0...2.7.1
6783
[2.7.0]: https://github.com/copyblogger/genesis-sample/compare/2.6.0...2.7.0
6884
[2.6.0]: https://github.com/copyblogger/genesis-sample/compare/2.3.0...2.6.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ You can then type any of these commands:
4747
3. Bump version numbers manually and commit those changes.
4848
4. Type `npm run zip` to create `genesis-sample.zip`. Files marked export-ignore in `.gitattributes` are excluded from the zip.
4949

50-
The `zip` command is an alias for `git archive -o genesis-sample.zip HEAD`.
50+
The `zip` command is an alias for `git archive -o genesis-sample.zip --prefix=genesis-sample/ HEAD`.

config/accessibility.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Genesis Sample child theme.
4+
*
5+
* @author StudioPress
6+
* @license GPL-2.0-or-later
7+
* @link https://my.studiopress.com/themes/genesis-sample/
8+
*/
9+
10+
/**
11+
* Genesis Accessibility features to support.
12+
*/
13+
return array(
14+
'404-page',
15+
'drop-down-menu',
16+
'headings',
17+
'search-form',
18+
'skip-links',
19+
);

config/custom-logo.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/**
3+
* Genesis Sample child theme.
4+
*
5+
* @author StudioPress
6+
* @license GPL-2.0-or-later
7+
* @link https://my.studiopress.com/themes/genesis-sample/
8+
*/
9+
10+
/**
11+
* Custom Logo configuration.
12+
*/
13+
return array(
14+
'height' => 120,
15+
'width' => 700,
16+
'flex-height' => true,
17+
'flex-width' => true,
18+
);

config/editor-color-palette.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/**
3+
* Genesis Sample child theme.
4+
*
5+
* @author StudioPress
6+
* @license GPL-2.0-or-later
7+
* @link https://my.studiopress.com/themes/genesis-sample/
8+
*/
9+
10+
/**
11+
* Editor color palette config.
12+
*/
13+
return array(
14+
array(
15+
'name' => __( 'Light gray', 'genesis-sample' ),
16+
'slug' => 'light-gray',
17+
'color' => '#f5f5f5',
18+
),
19+
array(
20+
'name' => __( 'Medium gray', 'genesis-sample' ),
21+
'slug' => 'medium-gray',
22+
'color' => '#999',
23+
),
24+
array(
25+
'name' => __( 'Dark gray', 'genesis-sample' ),
26+
'slug' => 'dark-gray',
27+
'color' => '#333',
28+
),
29+
);

config/editor-font-sizes.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Genesis Sample child theme.
4+
*
5+
* @author StudioPress
6+
* @license GPL-2.0-or-later
7+
* @link https://my.studiopress.com/themes/genesis-sample/
8+
*/
9+
10+
/**
11+
* Editor font sizes config.
12+
*/
13+
return array(
14+
array(
15+
'name' => __( 'Small', 'genesis-sample' ),
16+
'size' => 12,
17+
'slug' => 'small',
18+
),
19+
array(
20+
'name' => __( 'Normal', 'genesis-sample' ),
21+
'size' => 16,
22+
'slug' => 'normal',
23+
),
24+
array(
25+
'name' => __( 'Large', 'genesis-sample' ),
26+
'size' => 20,
27+
'slug' => 'large',
28+
),
29+
array(
30+
'name' => __( 'Larger', 'genesis-sample' ),
31+
'size' => 24,
32+
'slug' => 'larger',
33+
),
34+
);

config/html5.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/**
3+
* Genesis Sample child theme.
4+
*
5+
* @author StudioPress
6+
* @license GPL-2.0-or-later
7+
* @link https://my.studiopress.com/themes/genesis-sample/
8+
*/
9+
10+
/**
11+
* Elements to output as html5.
12+
*/
13+
return array(
14+
'caption',
15+
'comment-form',
16+
'comment-list',
17+
'gallery',
18+
'search-form',
19+
);

config/import/content/homepage.php

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?php
2+
/**
3+
* Genesis Sample.
4+
*
5+
* Homepage content optionally installed after theme activation.
6+
*
7+
* @package Genesis Sample
8+
* @author StudioPress
9+
* @license GPL-2.0-or-later
10+
* @link https://www.studiopress.com/
11+
*/
12+
13+
$genesis_homepage_header_image_url = CHILD_URL . '/config/import/images/mountain-bw.jpg';
14+
15+
// Photo by Haley Powers on Unsplash: https://unsplash.com/photos/rjhvXX7JBPc
16+
$genesis_homepage_faq_image_url = CHILD_URL . '/config/import/images/about.jpg';
17+
18+
$genesis_sample_homepage_content = <<<CONTENT
19+
<!-- wp:media-text {"align":"full","mediaId":1477,"mediaType":"image","isStackedOnMobile":true} -->
20+
<div class="wp-block-media-text alignfull is-stacked-on-mobile"><figure class="wp-block-media-text__media"><img src="$genesis_homepage_header_image_url" alt="" class="wp-image-1477"/></figure><div class="wp-block-media-text__content"><!-- wp:heading {"level":1} -->
21+
<h1>We'll teach you how to build and grow an online business.</h1>
22+
<!-- /wp:heading -->
23+
24+
<!-- wp:paragraph -->
25+
<p>All the resources, training, and support you need to run your dream online business! </p>
26+
<!-- /wp:paragraph -->
27+
28+
<!-- wp:button {"textColor":"light-gray","className":"is-style-default"} -->
29+
<div class="wp-block-button is-style-default"><a class="wp-block-button__link has-text-color has-light-gray-color" href="#">Learn More<br></a></div>
30+
<!-- /wp:button -->
31+
32+
</div></div>
33+
<!-- /wp:media-text -->
34+
35+
<!-- wp:atomic-blocks/ab-container {"containerPaddingTop":4.5,"containerWidth":"full","containerBackgroundColor":"#333"} -->
36+
<div style="background-color:#333;padding-left:0%;padding-right:0%;padding-bottom:0%;padding-top:4.5%;margin-top:0%;margin-bottom:0%" class="wp-block-atomic-blocks-ab-container alignfull ab-block-container"><div class="ab-container-inside"><div class="ab-container-content" style="max-width:1600px"><!-- wp:atomic-blocks/ab-cta {"buttonText":"Get Started Today","buttonBackgroundColor":"#0072e5","ctaBackgroundColor":"#333333","ctaTextColor":"#f5f5f5"} -->
37+
<div style="background-color:#333333;text-align:center" class="wp-block-atomic-blocks-ab-cta ab-block-cta"><div class="ab-cta-content"><h2 class="ab-cta-title ab-font-size-32" style="color:#f5f5f5">Ready to take your next step?</h2><div class="ab-cta-text ab-font-size-32" style="color:#f5f5f5"><p>Grow your audience and build a profitable online business.</p></div></div><div class="ab-cta-button"><a href="#" target="_self" class="ab-button ab-button-shape-rounded ab-button-size-medium" style="color:#ffffff;background-color:#0072e5">Get Started Today</a></div></div>
38+
<!-- /wp:atomic-blocks/ab-cta -->
39+
40+
</div></div></div>
41+
<!-- /wp:atomic-blocks/ab-container -->
42+
43+
<!-- wp:atomic-blocks/ab-spacer {"spacerHeight":60} -->
44+
<div style="color:#ddd" class="wp-block-atomic-blocks-ab-spacer ab-block-spacer ab-divider-solid ab-divider-size-1"><hr style="height:60px"/></div>
45+
<!-- /wp:atomic-blocks/ab-spacer -->
46+
47+
<!-- wp:heading {"align":"center"} -->
48+
<h2 style="text-align:center">What people are saying</h2>
49+
<!-- /wp:heading -->
50+
51+
<!-- wp:atomic-blocks/ab-spacer {"spacerHeight":25} -->
52+
<div style="color:#ddd" class="wp-block-atomic-blocks-ab-spacer ab-block-spacer ab-divider-solid ab-divider-size-1"><hr style="height:25px"/></div>
53+
<!-- /wp:atomic-blocks/ab-spacer -->
54+
55+
<!-- wp:columns {"columns":3,"align":"wide"} -->
56+
<div class="wp-block-columns alignwide has-3-columns"><!-- wp:column -->
57+
<div class="wp-block-column"><!-- wp:atomic-blocks/ab-testimonial -->
58+
<div style="background-color:#f2f2f2;color:#32373c" class="wp-block-atomic-blocks-ab-testimonial left-aligned ab-font-size-18 ab-block-testimonial"><div class="ab-testimonial-text"><p>Your course helped me to grow my email list from 500 to over 10,000 subscribers—all within 3 months! </p></div><div class="ab-testimonial-info"><h2 class="ab-testimonial-name" style="color:#32373c">Jane</h2><small class="ab-testimonial-title" style="color:#32373c">Food Blogger</small></div></div>
59+
<!-- /wp:atomic-blocks/ab-testimonial --></div>
60+
<!-- /wp:column -->
61+
62+
<!-- wp:column -->
63+
<div class="wp-block-column"><!-- wp:atomic-blocks/ab-testimonial -->
64+
<div style="background-color:#f2f2f2;color:#32373c" class="wp-block-atomic-blocks-ab-testimonial left-aligned ab-font-size-18 ab-block-testimonial"><div class="ab-testimonial-text"><p>I started using your email marketing technique and it helped me to make $5,000 more a month without any extra work! </p></div><div class="ab-testimonial-info"><h2 class="ab-testimonial-name" style="color:#32373c">Rob</h2><small class="ab-testimonial-title" style="color:#32373c">Copywriter</small></div></div>
65+
<!-- /wp:atomic-blocks/ab-testimonial --></div>
66+
<!-- /wp:column -->
67+
68+
<!-- wp:column -->
69+
<div class="wp-block-column"><!-- wp:atomic-blocks/ab-testimonial -->
70+
<div style="background-color:#f2f2f2;color:#32373c" class="wp-block-atomic-blocks-ab-testimonial left-aligned ab-font-size-18 ab-block-testimonial"><div class="ab-testimonial-text"><p>I was skeptical but I found that your system had multiplied my revenue by 40% after just the first quarter! </p></div><div class="ab-testimonial-info"><h2 class="ab-testimonial-name" style="color:#32373c">Susan</h2><small class="ab-testimonial-title" style="color:#32373c">Entrepreneur</small></div></div>
71+
<!-- /wp:atomic-blocks/ab-testimonial --></div>
72+
<!-- /wp:column --></div>
73+
<!-- /wp:columns -->
74+
75+
<!-- wp:atomic-blocks/ab-spacer -->
76+
<div style="color:#ddd" class="wp-block-atomic-blocks-ab-spacer ab-block-spacer ab-divider-solid ab-divider-size-1"><hr style="height:30px"/></div>
77+
<!-- /wp:atomic-blocks/ab-spacer -->
78+
79+
<!-- wp:atomic-blocks/ab-container {"containerPaddingTop":12,"containerPaddingRight":5,"containerPaddingBottom":2.5,"containerPaddingLeft":5,"containerMarginTop":6,"containerMarginBottom":5,"containerWidth":"full","containerMaxWidth":1062,"containerBackgroundColor":"#333"} -->
80+
<div style="background-color:#333;padding-left:5%;padding-right:5%;padding-bottom:2.5%;padding-top:12%;margin-top:6%;margin-bottom:5%" class="wp-block-atomic-blocks-ab-container alignfull ab-block-container"><div class="ab-container-inside"><div class="ab-container-content" style="max-width:1062px"><!-- wp:columns -->
81+
<div class="wp-block-columns has-2-columns"><!-- wp:column -->
82+
<div class="wp-block-column"><!-- wp:paragraph {"align":"left","textColor":"light-gray","customFontSize":40} -->
83+
<p style="font-size:40px;text-align:left" class="has-text-color has-light-gray-color">Contact us today</p>
84+
<!-- /wp:paragraph --></div>
85+
<!-- /wp:column -->
86+
87+
<!-- wp:column -->
88+
<div class="wp-block-column"><!-- wp:button {"align":"right","className":"is-style-outline"} -->
89+
<div class="wp-block-button alignright is-style-outline"><a class="wp-block-button__link" href="/contact">Get in touch</a></div>
90+
<!-- /wp:button -->
91+
92+
<!-- wp:paragraph -->
93+
<p></p>
94+
<!-- /wp:paragraph --></div>
95+
<!-- /wp:column --></div>
96+
<!-- /wp:columns -->
97+
98+
<!-- wp:paragraph -->
99+
<p></p>
100+
<!-- /wp:paragraph --></div></div></div>
101+
<!-- /wp:atomic-blocks/ab-container -->
102+
103+
<!-- wp:atomic-blocks/ab-spacer {"spacerHeight":60} -->
104+
<div style="color:#ddd" class="wp-block-atomic-blocks-ab-spacer ab-block-spacer ab-divider-solid ab-divider-size-1"><hr style="height:60px"/></div>
105+
<!-- /wp:atomic-blocks/ab-spacer -->
106+
107+
<!-- wp:columns {"align":"wide"} -->
108+
<div class="wp-block-columns alignwide has-2-columns"><!-- wp:column -->
109+
<div class="wp-block-column"><!-- wp:atomic-blocks/ab-accordion {"accordionOpen":true} -->
110+
<div class="wp-block-atomic-blocks-ab-accordion ab-block-accordion ab-font-size-18"><details open><summary class="ab-accordion-title">Can I phone or email you?</summary><div class="ab-accordion-text"><!-- wp:paragraph -->
111+
<p>You can reach us on our <a href="/contact">contact page</a> or by calling us at 1.123.456.7891</p>
112+
<!-- /wp:paragraph --></div></details></div>
113+
<!-- /wp:atomic-blocks/ab-accordion -->
114+
115+
<!-- wp:atomic-blocks/ab-accordion -->
116+
<div class="wp-block-atomic-blocks-ab-accordion ab-block-accordion ab-font-size-18"><details><summary class="ab-accordion-title">How long have you been in business?</summary><div class="ab-accordion-text"><!-- wp:paragraph -->
117+
<p>Our team has a combined experience of over 60 years.</p>
118+
<!-- /wp:paragraph --></div></details></div>
119+
<!-- /wp:atomic-blocks/ab-accordion -->
120+
121+
<!-- wp:atomic-blocks/ab-accordion -->
122+
<div class="wp-block-atomic-blocks-ab-accordion ab-block-accordion ab-font-size-18"><details><summary class="ab-accordion-title">What is your return policy?</summary><div class="ab-accordion-text"><!-- wp:paragraph -->
123+
<p>We offer a 30-day return policy for all unused items. For more information, please view our terms of service.</p>
124+
<!-- /wp:paragraph --></div></details></div>
125+
<!-- /wp:atomic-blocks/ab-accordion --></div>
126+
<!-- /wp:column -->
127+
128+
<!-- wp:column -->
129+
<div class="wp-block-column"><!-- wp:image {"id":308} -->
130+
<figure class="wp-block-image"><img src="$genesis_homepage_faq_image_url" alt="" class="wp-image-308"/><figcaption>Photo by&nbsp;<a href="https://unsplash.com/photos/rjhvXX7JBPc">Haley Powers</a>&nbsp;on&nbsp;<a href="https://unsplash.com/">Unsplash</a></figcaption></figure>
131+
<!-- /wp:image --></div>
132+
<!-- /wp:column --></div>
133+
<!-- /wp:columns -->
134+
CONTENT;
135+
136+
return $genesis_sample_homepage_content;

config/import/images/about.jpg

436 KB
Loading

config/import/images/mountain-bw.jpg

149 KB
Loading

0 commit comments

Comments
 (0)