diff --git a/CHANGELOG.md b/CHANGELOG.md index 42020428..1b842299 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,23 @@ # Genesis Sample Theme Changelog +## [2.8.0] - 2019-01-16 +Requires Genesis 2.8.0+. + +* New: Block-based homepage layout. +* New: Auto homepage setup upon theme activation using the new onboarding feature from Genesis 2.8.0. (See `config/onboarding.php`.) +* New: “Blocks” page template for use with the block editor. The template removes the title and breadcrumbs, and forces a full-width layout. +* New: Load configuration with the new `genesis_get_config()` function from Genesis 2.8.0. (See `functions.php` and the `config/` folder.) +* New: Add `has-no-blocks` body class if singular post/page contains no blocks. +* New: Add `first-block-[block-name]` body class. Helps remove top padding when blocks such as the Cover block are first on the page. +* New: Add `first-block-align-[alignment]` body class. Helps adjust styles if the first block is full-width. +* Update: Styling adjustments for buttons, content width, and column blocks. +* Update: Prevent 'admin' user being created during manual XML demo content import. +* Update: Remove editor font sizes shortname from Gutenberg font sizes config. (The shortname is no longer used in WordPress.) +* Tools: Improve `npm run zip` command to create archives that unzip to a 'genesis-sample' folder on Windows. + ## [2.7.1] - 2018-12-20 * Fix: Reinstate normalize.css and update to version 8.0.1. -* Fix: Reinstate Genesis Column Classes in main stylesheet. +* Fix: Reinstate Genesis Column Classes. * Fix: Stop background hover color appearing for mobile menu-highlight button. ## [2.7.0] - 2018-12-12 @@ -63,6 +78,7 @@ * Set localization. * Update XML file. +[2.8.0]: https://github.com/copyblogger/genesis-sample/compare/2.7.1...2.8.0 [2.7.1]: https://github.com/copyblogger/genesis-sample/compare/2.7.0...2.7.1 [2.7.0]: https://github.com/copyblogger/genesis-sample/compare/2.6.0...2.7.0 [2.6.0]: https://github.com/copyblogger/genesis-sample/compare/2.3.0...2.6.0 diff --git a/README.md b/README.md index 7a50e1d7..4a9e3c6d 100644 --- a/README.md +++ b/README.md @@ -47,4 +47,4 @@ You can then type any of these commands: 3. Bump version numbers manually and commit those changes. 4. Type `npm run zip` to create `genesis-sample.zip`. Files marked export-ignore in `.gitattributes` are excluded from the zip. -The `zip` command is an alias for `git archive -o genesis-sample.zip HEAD`. +The `zip` command is an alias for `git archive -o genesis-sample.zip --prefix=genesis-sample/ HEAD`. diff --git a/config/accessibility.php b/config/accessibility.php new file mode 100644 index 00000000..2f04aef5 --- /dev/null +++ b/config/accessibility.php @@ -0,0 +1,19 @@ + 120, + 'width' => 700, + 'flex-height' => true, + 'flex-width' => true, +); diff --git a/config/editor-color-palette.php b/config/editor-color-palette.php new file mode 100644 index 00000000..aafef315 --- /dev/null +++ b/config/editor-color-palette.php @@ -0,0 +1,29 @@ + __( 'Light gray', 'genesis-sample' ), + 'slug' => 'light-gray', + 'color' => '#f5f5f5', + ), + array( + 'name' => __( 'Medium gray', 'genesis-sample' ), + 'slug' => 'medium-gray', + 'color' => '#999', + ), + array( + 'name' => __( 'Dark gray', 'genesis-sample' ), + 'slug' => 'dark-gray', + 'color' => '#333', + ), +); diff --git a/config/editor-font-sizes.php b/config/editor-font-sizes.php new file mode 100644 index 00000000..367b4f8f --- /dev/null +++ b/config/editor-font-sizes.php @@ -0,0 +1,34 @@ + __( 'Small', 'genesis-sample' ), + 'size' => 12, + 'slug' => 'small', + ), + array( + 'name' => __( 'Normal', 'genesis-sample' ), + 'size' => 16, + 'slug' => 'normal', + ), + array( + 'name' => __( 'Large', 'genesis-sample' ), + 'size' => 20, + 'slug' => 'large', + ), + array( + 'name' => __( 'Larger', 'genesis-sample' ), + 'size' => 24, + 'slug' => 'larger', + ), +); diff --git a/config/html5.php b/config/html5.php new file mode 100644 index 00000000..d1db4e8d --- /dev/null +++ b/config/html5.php @@ -0,0 +1,19 @@ + +
+

We'll teach you how to build and grow an online business.

+ + + +

All the resources, training, and support you need to run your dream online business!

+ + + + + + +
+ + + +
+

Ready to take your next step?

Grow your audience and build a profitable online business.

+ + +
+ + + +

+ + + +

What people are saying

+ + + +

+ + + +
+
+

Your course helped me to grow my email list from 500 to over 10,000 subscribers—all within 3 months!

Jane

Food Blogger
+
+ + + +
+

I started using your email marketing technique and it helped me to make $5,000 more a month without any extra work!

Rob

Copywriter
+
+ + + +
+

I was skeptical but I found that your system had multiplied my revenue by 40% after just the first quarter!

Susan

Entrepreneur
+
+
+ + + +

+ + + +
+
+
+

Contact us today

+
+ + + +
+ + + + +

+
+
+ + + +

+
+ + + +

+ + + +
+
+
Can I phone or email you?
+

You can reach us on our contact page or by calling us at 1.123.456.7891

+
+ + + +
How long have you been in business?
+

Our team has a combined experience of over 60 years.

+
+ + + +
What is your return policy?
+

We offer a 30-day return policy for all unused items. For more information, please view our terms of service.

+
+
+ + + +
+
Photo by Haley Powers on Unsplash
+
+
+ +CONTENT; + +return $genesis_sample_homepage_content; diff --git a/config/import/images/about.jpg b/config/import/images/about.jpg new file mode 100644 index 00000000..2a0d5a7e Binary files /dev/null and b/config/import/images/about.jpg differ diff --git a/config/import/images/mountain-bw.jpg b/config/import/images/mountain-bw.jpg new file mode 100644 index 00000000..094d1d74 Binary files /dev/null and b/config/import/images/mountain-bw.jpg differ diff --git a/config/menus.php b/config/menus.php new file mode 100644 index 00000000..b53db245 --- /dev/null +++ b/config/menus.php @@ -0,0 +1,16 @@ + __( 'Header Menu', 'genesis-sample' ), + 'secondary' => __( 'Footer Menu', 'genesis-sample' ), +); diff --git a/config/onboarding.php b/config/onboarding.php new file mode 100644 index 00000000..4a75145f --- /dev/null +++ b/config/onboarding.php @@ -0,0 +1,34 @@ + array( + 'plugins' => array( + array( + 'name' => __( 'Atomic Blocks', 'genesis-sample' ), + 'slug' => 'atomic-blocks/atomicblocks.php', + ), + ), + ), + 'content' => array( + 'homepage' => array( + 'post_title' => 'Homepage', + 'post_name' => 'homepage-gutenberg', + 'post_content' => require dirname( __FILE__ ) . '/import/content/homepage.php', + 'post_type' => 'page', + 'post_status' => 'publish', + 'page_template' => 'template-blocks.php', + 'comment_status' => 'closed', + 'ping_status' => 'closed', + ), + ), +); diff --git a/functions.php b/functions.php index 82049b06..0db641a6 100755 --- a/functions.php +++ b/functions.php @@ -16,7 +16,7 @@ // Defines the child theme (do not remove). define( 'CHILD_THEME_NAME', 'Genesis Sample' ); define( 'CHILD_THEME_URL', 'https://www.studiopress.com/' ); -define( 'CHILD_THEME_VERSION', '2.7.1' ); +define( 'CHILD_THEME_VERSION', '2.8.0' ); // Sets up the Theme. require_once get_stylesheet_directory() . '/lib/theme-defaults.php'; @@ -128,53 +128,19 @@ function genesis_sample_responsive_menu_settings() { } // Adds support for HTML5 markup structure. -add_theme_support( - 'html5', - array( - 'caption', - 'comment-form', - 'comment-list', - 'gallery', - 'search-form', - ) -); +add_theme_support( 'html5', genesis_get_config( 'html5' ) ); // Adds support for accessibility. -add_theme_support( - 'genesis-accessibility', - array( - '404-page', - 'drop-down-menu', - 'headings', - 'search-form', - 'skip-links', - ) -); +add_theme_support( 'genesis-accessibility', genesis_get_config( 'accessibility' ) ); // Adds viewport meta tag for mobile browsers. -add_theme_support( - 'genesis-responsive-viewport' -); +add_theme_support( 'genesis-responsive-viewport' ); // Adds custom logo in Customizer > Site Identity. -add_theme_support( - 'custom-logo', - array( - 'height' => 120, - 'width' => 700, - 'flex-height' => true, - 'flex-width' => true, - ) -); +add_theme_support( 'custom-logo', genesis_get_config( 'custom-logo' ) ); // Renames primary and secondary navigation menus. -add_theme_support( - 'genesis-menus', - array( - 'primary' => __( 'Header Menu', 'genesis-sample' ), - 'secondary' => __( 'Footer Menu', 'genesis-sample' ), - ) -); +add_theme_support( 'genesis-menus', genesis_get_config( 'menus' ) ); // Adds image sizes. add_image_size( 'sidebar-featured', 75, 75, true ); @@ -217,7 +183,7 @@ function genesis_sample_remove_metaboxes( $_genesis_admin_settings ) { add_filter( 'genesis_customizer_theme_settings_config', 'genesis_sample_remove_customizer_settings' ); /** - * Removes output of header settings in the Customizer. + * Removes output of header and front page breadcrumb settings in the Customizer. * * @since 2.6.0 * @@ -227,6 +193,7 @@ function genesis_sample_remove_metaboxes( $_genesis_admin_settings ) { function genesis_sample_remove_customizer_settings( $config ) { unset( $config['genesis']['sections']['genesis_header'] ); + unset( $config['genesis']['sections']['genesis_breadcrumbs']['controls']['breadcrumb_front_page'] ); return $config; } diff --git a/languages/genesis-sample.pot b/languages/genesis-sample.pot index dfc9cbaf..3c0214c1 100644 --- a/languages/genesis-sample.pot +++ b/languages/genesis-sample.pot @@ -1,14 +1,14 @@ -# msgid "" msgstr "" -"Project-Id-Version: Genesis Sample 2.7.1\n" +"Project-Id-Version: Genesis Sample 2.8.0\n" "Report-Msgid-Bugs-To: StudioPress \n" -"POT-Creation-Date: 2018-12-18 17:31:43+00:00\n" +"POT-Creation-Date: 2019-01-14 20:41:36+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" "Last-Translator: StudioPress \n" "Language-Team: StudioPress \n" "Language: en\n" @@ -23,90 +23,81 @@ msgstr "" "X-Poedit-Bookmarks: \n" "X-Textdomain-Support: yes\n" -#: functions.php:114 -msgid "Menu" -msgstr "" - -#: functions.php:116 -msgid "Submenu" -msgstr "" - -#: functions.php:174 -msgid "Header Menu" -msgstr "" - -#: functions.php:175 -msgid "Footer Menu" +#: config/editor-color-palette.php:15 +msgid "Light gray" msgstr "" -#: lib/customize.php:36 -msgid "" -"Change the color of post info links, hover color of linked titles, hover " -"color of menu items, and more." +#: config/editor-color-palette.php:20 +msgid "Medium gray" msgstr "" -#: lib/customize.php:37 -msgid "Link Color" +#: config/editor-color-palette.php:25 +msgid "Dark gray" msgstr "" -#: lib/customize.php:57 -msgid "Change the default hovers color for button." +#: config/editor-font-sizes.php:15 +msgid "Small" msgstr "" -#: lib/customize.php:58 -msgid "Accent Color" +#: config/editor-font-sizes.php:20 +msgid "Normal" msgstr "" -#: lib/customize.php:77 -msgid "Logo Width" +#: config/editor-font-sizes.php:25 +msgid "Large" msgstr "" -#: lib/customize.php:78 -msgid "The maximum width of the logo in pixels." +#: config/editor-font-sizes.php:30 +msgid "Larger" msgstr "" -#: lib/gutenberg/init.php:64 -msgid "Small" +#: config/menus.php:14 +msgid "Header Menu" msgstr "" -#: lib/gutenberg/init.php:65 -msgid "S" +#: config/menus.php:15 +msgid "Footer Menu" msgstr "" -#: lib/gutenberg/init.php:70 -msgid "Normal" +#: config/onboarding.php:17 +msgid "Atomic Blocks" msgstr "" -#: lib/gutenberg/init.php:71 -msgid "M" +#: functions.php:114 +msgid "Menu" msgstr "" -#: lib/gutenberg/init.php:76 -msgid "Large" +#: functions.php:116 +msgid "Submenu" msgstr "" -#: lib/gutenberg/init.php:77 -msgid "L" +#: lib/customize.php:36 +msgid "" +"Change the color of post info links, hover color of linked titles, hover " +"color of menu items, and more." msgstr "" -#: lib/gutenberg/init.php:82 -msgid "Larger" +#: lib/customize.php:37 +msgid "Link Color" msgstr "" -#: lib/gutenberg/init.php:83 -msgid "XL" +#: lib/customize.php:57 +msgid "" +"Change the default hover color for button links, the menu button, and " +"submit buttons. This setting does not apply to buttons created with the " +"Buttons block." msgstr "" -#: lib/gutenberg/init.php:95 -msgid "Light gray" +#: lib/customize.php:58 +msgid "Accent Color" msgstr "" -#: lib/gutenberg/init.php:100 -msgid "Medium gray" +#: lib/customize.php:77 +msgid "Logo Width" msgstr "" -#: lib/gutenberg/init.php:105 -msgid "Dark gray" +#: lib/customize.php:78 +msgid "The maximum width of the logo in pixels." msgstr "" #: lib/woocommerce/woocommerce-notice.php:55 @@ -157,4 +148,8 @@ msgstr "" #. Template Name of the plugin/theme msgid "Landing" +msgstr "" + +#. Template Name of the plugin/theme +msgid "Blocks" msgstr "" \ No newline at end of file diff --git a/lib/customize.php b/lib/customize.php index 1b469550..a2cd7e9a 100644 --- a/lib/customize.php +++ b/lib/customize.php @@ -54,7 +54,7 @@ function genesis_sample_customizer_register( $wp_customize ) { $wp_customize, 'genesis_sample_accent_color', array( - 'description' => __( 'Change the default hovers color for button.', 'genesis-sample' ), + 'description' => __( 'Change the default hover color for button links, the menu button, and submit buttons. This setting does not apply to buttons created with the Buttons block.', 'genesis-sample' ), 'label' => __( 'Accent Color', 'genesis-sample' ), 'section' => 'colors', 'settings' => 'genesis_sample_accent_color', diff --git a/lib/gutenberg/front-end.css b/lib/gutenberg/front-end.css index a5ce05fe..6e693c0d 100644 --- a/lib/gutenberg/front-end.css +++ b/lib/gutenberg/front-end.css @@ -29,6 +29,18 @@ margin-right: 0.01em; } +/* Headings +---------------------------------------------------------------------------- */ + +h1.light, +h2.light, +h3.light, +h4.light, +h5.light, +h6.light { + color: #f5f5f5; +} + /* Color Palette ---------------------------------------------------------------------------- */ @@ -124,11 +136,19 @@ width: 100%; } +@media only screen and (max-width: 510px) { + + .wp-block-button.alignright { + float: left; + margin-left: 0; + } + +} + /* Columns ---------------------------------------------------------------------------- */ .entry-content .wp-block-columns { - display: block; margin-bottom: 30px; } @@ -150,7 +170,12 @@ /* Buttons ---------------------------------------------------------------------------- */ -.content .wp-block-button .wp-block-button__link { +.ab-block-cta .ab-button { + font-family: "Source Sans Pro", sans-serif; + font-weight: 600; +} + +.wp-block-button .wp-block-button__link { background-color: #333; border: 0; border-radius: 5px; @@ -165,28 +190,25 @@ width: auto; } -.content .wp-block-button .wp-block-button__link:focus, -.content .wp-block-button .wp-block-button__link:hover { - background-color: #0072e5; - color: #fff; +.wp-block-button.is-style-outline .wp-block-button__link:focus, +.wp-block-button.is-style-outline .wp-block-button__link:hover, +.wp-block-button .wp-block-button__link:focus, +.wp-block-button .wp-block-button__link:hover { + box-shadow: inset 0 0 200px rgba(230, 230, 230, 0.15); } /* Button Variations */ -.content .wp-block-button.is-style-squared .wp-block-button__link { +.wp-block-button.is-style-squared .wp-block-button__link { border-radius: 0; } -.content .wp-block-button.is-style-outline .wp-block-button__link { +.wp-block-button.is-style-outline .wp-block-button__link { background-color: transparent; border: 2px solid currentColor; border-radius: 0; padding: 13px 28px; } -.content .wp-block-button.is-style-outline .wp-block-button__link:focus, -.content .wp-block-button.is-style-outline .wp-block-button__link:hover { - color: #0073e5; -} /* Blockquotes and captions ---------------------------------------------------------------------------- */ @@ -305,6 +327,28 @@ padding: 0 30px; } +/* Atomic Blocks +---------------------------------------------------------------------------- */ + +.ab-block-post-grid h2 a { + text-decoration: none; +} + +@media only screen and (max-width: 510px) { + + .ab-block-container.alignfull::before { + content: " "; + display: table; + } + + .ab-block-container.alignfull::after { + clear: both; + content: " "; + display: table; + } + +} + /* Other Blocks ---------------------------------------------------------------------------- */ @@ -336,27 +380,64 @@ hr.wp-block-separator { padding-left: 0; } +@media only screen and (max-width: 600px) { + + .wp-block-media-text.is-stacked-on-mobile figure { + margin-bottom: 20px; + } + +} + +/* Page Templates +---------------------------------------------------------------------------- */ + +.page-template-template-blocks .site-inner { + padding-top: 0; +} + +.page-template-template-blocks .post-edit-link { + display: block; + text-align: center; +} + /* Media Queries ---------------------------------------------------------------------------- */ -@media only screen and (min-width: 510px) { +@media only screen and (min-width: 600px) { + + .entry .entry-content .wp-block-columns { + flex-wrap: nowrap; + } + + .entry .entry-content .wp-block-columns[class*="has-"] > * { + margin-right: 36px; + margin-left: 0; + } + + .entry .entry-content .wp-block-columns[class*="has-"] > *:last-child { + margin-right: 0; + } + +} + +@media only screen and (min-width: 768px) { - .entry-content .wp-block-columns { - display: flex; + .entry .entry-content .wp-block-columns .wp-block-column > *:first-child { + margin-top: 0; } - .entry-content .wp-block-columns .wp-block-column { - flex: 1; + .entry .entry-content .wp-block-columns .wp-block-column > *:last-child { + margin-bottom: 0; } } -@media only screen and (min-width: 1062px) { +@media only screen and (min-width: 960px) { .full-width-content .entry-content .alignwide { margin-left: -180px; margin-right: -180px; - min-width: 1062px; + max-width: 1062px; } } diff --git a/lib/gutenberg/init.php b/lib/gutenberg/init.php index 7d9702af..59dad85f 100644 --- a/lib/gutenberg/init.php +++ b/lib/gutenberg/init.php @@ -44,6 +44,45 @@ function genesis_sample_block_editor_styles() { } +add_filter( 'body_class', 'genesis_sample_blocks_body_classes' ); +/** + * Adds body classes to help with block styling. + * + * - `has-no-blocks` if content contains no blocks. + * - `first-block-[block-name]` to allow changes based on the first block (such as removing padding above a Cover block). + * - `first-block-align-[alignment]` to allow styling adjustment if the first block is wide or full-width. + * + * @since 2.8.0 + * + * @param array $classes The original classes. + * @return array The modified classes. + */ +function genesis_sample_blocks_body_classes( $classes ) { + + if ( ! is_singular() || ! function_exists( 'has_blocks' ) || ! function_exists( 'parse_blocks') ) { + return $classes; + } + + if ( ! has_blocks() ) { + $classes[] = 'has-no-blocks'; + return $classes; + } + + $post_object = get_post( get_the_ID() ); + $blocks = (array) parse_blocks( $post_object->post_content ); + + if ( isset( $blocks[0]['blockName'] ) ) { + $classes[] = 'first-block-' . str_replace( '/', '-', $blocks[0]['blockName'] ); + } + + if ( isset( $blocks[0]['attrs']['align'] ) ) { + $classes[] = 'first-block-align-' . $blocks[0]['attrs']['align']; + } + + return $classes; + +} + // Add support for editor styles. add_theme_support( 'editor-styles' ); @@ -59,54 +98,13 @@ function genesis_sample_block_editor_styles() { // Adds support for editor font sizes. add_theme_support( 'editor-font-sizes', - array( - array( - 'name' => __( 'Small', 'genesis-sample' ), - 'shortName' => __( 'S', 'genesis-sample' ), - 'size' => 12, - 'slug' => 'small', - ), - array( - 'name' => __( 'Normal', 'genesis-sample' ), - 'shortName' => __( 'M', 'genesis-sample' ), - 'size' => 16, - 'slug' => 'normal', - ), - array( - 'name' => __( 'Large', 'genesis-sample' ), - 'shortName' => __( 'L', 'genesis-sample' ), - 'size' => 20, - 'slug' => 'large', - ), - array( - 'name' => __( 'Larger', 'genesis-sample' ), - 'shortName' => __( 'XL', 'genesis-sample' ), - 'size' => 24, - 'slug' => 'larger', - ), - ) + genesis_get_config( 'editor-font-sizes' ) ); // Adds support for editor color palette. add_theme_support( 'editor-color-palette', - array( - array( - 'name' => __( 'Light gray', 'genesis-sample' ), - 'slug' => 'light-gray', - 'color' => '#f5f5f5', - ), - array( - 'name' => __( 'Medium gray', 'genesis-sample' ), - 'slug' => 'medium-gray', - 'color' => '#999', - ), - array( - 'name' => __( 'Dark gray', 'genesis-sample' ), - 'slug' => 'dark-gray', - 'color' => '#333', - ), - ) + genesis_get_config( 'editor-color-palette' ) ); add_action( 'after_setup_theme', 'genesis_sample_content_width', 0 ); diff --git a/lib/gutenberg/style-editor.css b/lib/gutenberg/style-editor.css index 7760f0f4..36c7b5cb 100755 --- a/lib/gutenberg/style-editor.css +++ b/lib/gutenberg/style-editor.css @@ -79,6 +79,15 @@ h6 { font-size: 16px; } +.wp-block-heading h1.light, +.wp-block-heading h2.light, +.wp-block-heading h3.light, +.wp-block-heading h4.light, +.wp-block-heading h5.light, +.wp-block-heading h6.light { + color: #f5f5f5; +} + .editor-post-title__block .editor-post-title__input { font-family: "Source Sans Pro", sans-serif; font-size: 30px; @@ -336,6 +345,11 @@ hr.wp-block-separator.is-style-dots { /* Buttons ---------------------------------------------------------------------------- */ +.ab-block-cta .ab-button { + font-family: "Source Sans Pro", sans-serif; + font-weight: 600; +} + .wp-block-button .wp-block-button__link { background-color: #333; border: 0; @@ -365,8 +379,10 @@ hr.wp-block-separator.is-style-dots { } .wp-block-button.is-style-outline .wp-block-button__link:focus, -.wp-block-button.is-style-outline .wp-block-button__link:hover { - color: #0073e5; +.wp-block-button.is-style-outline .wp-block-button__link:hover, +.wp-block-button .wp-block-button__link:focus, +.wp-block-button .wp-block-button__link:hover { + box-shadow: inset 0 0 200px rgba(230, 230, 230, 0.15); } /* Galleries diff --git a/lib/output.php b/lib/output.php index e2dab27b..f0143418 100644 --- a/lib/output.php +++ b/lib/output.php @@ -82,9 +82,7 @@ function genesis_sample_css() { @media only screen and (min-width: 960px) { .genesis-nav-menu > .menu-highlight > a:hover, .genesis-nav-menu > .menu-highlight > a:focus, - .genesis-nav-menu > .menu-highlight.current-menu-item > a, - .content .wp-block-button .wp-block-button__link:focus, - .content .wp-block-button .wp-block-button__link:hover { + .genesis-nav-menu > .menu-highlight.current-menu-item > a { background-color: %1$s; color: %2$s; } diff --git a/lib/theme-defaults.php b/lib/theme-defaults.php index c8b593af..8d4cf0b4 100644 --- a/lib/theme-defaults.php +++ b/lib/theme-defaults.php @@ -22,6 +22,7 @@ function genesis_sample_theme_defaults( $defaults ) { $defaults['blog_cat_num'] = 6; + $defaults['breadcrumb_front_page'] = 0; $defaults['content_archive'] = 'full'; $defaults['content_archive_limit'] = 0; $defaults['content_archive_thumbnail'] = 0; @@ -45,6 +46,7 @@ function genesis_sample_theme_setting_defaults() { genesis_update_settings( array( 'blog_cat_num' => 6, + 'breadcrumb_front_page' => 0, 'content_archive' => 'full', 'content_archive_limit' => 0, 'content_archive_thumbnail' => 0, diff --git a/package.json b/package.json index 42954343..469df128 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "autoprefixer": "postcss style.css lib/**/*.css --use autoprefixer --replace --no-map --verbose", "makepot": "node .scripts/makepot.js", "lint:css": "stylelint \"style.css\" \"lib/gutenberg/*.css\" \"lib/woocommerce/*.css\"", - "zip": "git archive -o genesis-sample.zip HEAD" + "zip": "git archive -o genesis-sample.zip --prefix=genesis-sample/ HEAD" }, "browserslist": [ "> 1%", @@ -38,7 +38,7 @@ "description": "The sample child theme for the Genesis Framework.", "author": "StudioPress", "authoruri": "https://www.studiopress.com/", - "version": "2.7.1", + "version": "2.8.0", "tags": "one-column, two-columns, left-sidebar, right-sidebar, accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready", "license": "GPL-2.0-or-later", "licenseuri": "https://www.gnu.org/licenses/gpl-2.0.html", diff --git a/style.css b/style.css index c74d9ed8..31808c88 100755 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Description: This is the sample theme created for the Genesis Framework. Author: StudioPress Author URI: https://www.studiopress.com/ -Version: 2.7.1 +Version: 2.8.0 Tags: accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, left-sidebar, one-column, right-sidebar, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns @@ -420,6 +420,7 @@ input[type="submit"], .button { background-color: #333; border: 0; + border-radius: 5px; color: #fff; cursor: pointer; font-size: 16px; diff --git a/template-blocks.php b/template-blocks.php new file mode 100644 index 00000000..fe89ae0d --- /dev/null +++ b/template-blocks.php @@ -0,0 +1,27 @@ +http://demo.studiopress.com/ https://demo.studiopress.com/genesis-sample - 1 + 1 2