Commit graph

38 commits

Author SHA1 Message Date
Jason Crist
80e036574b
Blockbase 3 (#6167)
Refactor/blockbase color admin (#6043)
Moved templates from old folder location to new (#6073)
Blockbase: Implement the Button elements API (#6041)
Blockbase: Implement Comment Block and removed CSS (#6080)
Fix/migrate blockbase font self hosted (#6123)
Blockbase children: update comments block (#6153)
Blockbase: Changed the trigger to render social icons (#6079)
Blockbase: move button padding styles from ponyfill to theme.json (#5901)

Co-authored-by: Grant Kinney <hi@grant.mk>
Co-authored-by: Jeremy Yip <jeremy.yip@automattic.com>
Co-authored-by: MaggieCabrera <maggie.cabrera@automattic.com>
Co-authored-by: madhusudhand <madhusudhan.dollu@gmail.com>
2022-07-20 14:54:48 -04:00
Mark Biek
c69c94508f
Fix issue with duplicate title tags in blockbase (#6019)
Adding `title-tag` theme support is redundant in block themes. See
https://github.com/Automattic/themes/issues/5702 for full discussion.
2022-05-23 12:00:34 -04:00
Jason Crist
8d9e78c5fb
Remove the Gutenberg Dependency Check from Blockbase and bump required version to 5.9 (#5823) 2022-04-05 15:41:21 -04:00
Jason Crist
4fd5c6149d
Added Gutenberg check to Blockbase themes (#5735)
* Added Gutenberg check to Blockbase themes

* tucked the  check into the if statement where it belongs

* Lint autofix.

* Update translation text domain

Co-authored-by: Jeff Ong <jonger4@gmail.com>
Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
2022-04-01 11:19:43 +01:00
Laurel
7b5de41f4f
Blockbase: move require social-navigation.php inside a check for WP_Theme_JSON_Resolver_Gutenberg to avoid errors. (#5654) 2022-03-11 08:27:22 +00:00
Ben Dwyer
1483ab4a9f
Remove block style registration (#5368)
* Remove block style registration

* update variations

* Revert seedlet changes
2022-02-02 16:00:30 +00:00
Ben Dwyer
45aecc763d
Blockbase: Remove the fallback for the navigation block (#5419) 2022-02-01 11:36:36 -05:00
Ben Dwyer
c44ebf2bc4
Blockbase: Load Block Patterns for children automatically (#5363)
* Blockbase: Load Block Patterns for children automatically

* Regenerate variations
2022-01-19 09:06:55 +00:00
Jason Crist
b93b709bdd
Remove customizer restoration as it is no longer being removed by Gutenberg. (#5303) 2022-01-13 11:22:44 -05:00
Sarah Norris
70a175747e
Blockbase: replace user key with custom (#5147)
* Replace user key with custom

* Rename user to custom in functions.php

* Added stopgap so that the solution will work with both < and > Gutenberg version 12.1

Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Jason Crist <jcrist@pbking.com>
2021-12-07 17:49:46 +00:00
Jason Crist
8cfaa36188
Paternize 404 Page (#5039)
* Refactor Blockbase 404 page to block pattern instead of PHP page

* Adjustments to get 404 to render in child themes.

* Adjustments to style Skatepark's 404 based on original PHP file.

* corrected 404 page layout styles

* Refactored videomaker 404 to use Blockbase pattern but match original PHP file styling.

* Refactored videomaker 404 to use Blockbase pattern but match original PHP file styling.

* Added 'blank' message to index.php

* formatted PHP comment

* Hide the pattern in the inserter

* Only use the copy in the block

* adding 404 templates

* Removed unused class

* rename the prompt

* added spacer to align with what other child themes are doing

Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Maggie <maggie.cabrera@automattic.com>
2021-11-22 13:21:35 +00:00
Ben Dwyer
8f72219e9d
Blockbase: Add child CSS if it exists (#5047)
* Blockbase: Add child CSS if it exists

* add comment
2021-11-17 19:04:16 +00:00
Jason Crist
0d08de6d60
Adjusted menu CSS to match recent changes in the block (#4822)
* Adjusted menu CSS to match recent changes in the block

* Adjusted mobile menu styling to fit recent changes to navigation block

* Style social nav on mobile only

* Made the same menu changes in Geologist as in Quadrat

* Corrected blockbase classes due to recent changes to navigation block

* Adjusted skatepark's navigation classes

* corrected videomaker classes

* Improved mobile navigation alignment for Seedlet Blocks

* Further addressed Seedlet's mobile stylings.  Better addressed Blockbase mobile submenu spacing.

* Remove the margins on the social links block when in the nav

* Add a block style for 'clean mobile navigation block' and cleaned up base navigation block styles polyfill

* moved social menu location of styled mobile menu

* Renamed block style to improved responsive navigation

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-10-15 08:27:27 +01:00
Ben Dwyer
c23cac3067
Blockbase: Add social navigation to blockbase themes (#4482)
* Blockbase: Add social navigation to blockbase themes

* Add social navigation links to primary navigation

* move to a different file

* add missing file

* suppress warnings for HTML5 elements

* only append social links to a navigation block if the block opts in

* Fix fatal

* Removed requirement to have social parent container be primary menu (or even have content)

* Fix layout for social nav

* Update the structure of the social links when appended to match the way that the navigation block works

Co-authored-by: Jason Crist <jcrist@pbking.com>
2021-10-12 14:58:21 +01:00
Rolf Allard van Hagen
0e97e0fb66
fix WP_Theme_JSON_Resolver_Gutenberg not found (#4769)
Adresses issue https://github.com/Automattic/themes/issues/4768
2021-10-06 11:28:32 +01:00
Ben Dwyer
ab8eb70b1b
Blockbase: Add menu previews (#4717)
* Blockbase: Add menu previews

* Also reload the preview when items are removed
2021-09-28 15:26:21 +01:00
Ben Dwyer
290dcac0a4
Blockbase: Add site logo (#4692)
* removed non-gap margins from heading
* Blockbase: Add site logo
* Blockbase: Reduce the default logo size
* Refactored blockbase headers to include all of Quadrat's header design
* Added tagline to mayland blocks
* resized suggested dimensions per reccomendation

Co-authored-by: Jason Crist <jcrist@pbking.com>
Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com>
2021-09-27 14:31:07 -04:00
Daniel Dudzic
0dae37c01c
Blockbase: Fix padding for the Group block with a background (#4629)
* Blockbase: Fix padding for the Group block with a background. Closes #4617

* Blockbase: Make sure Group spacing uses correct variables

* Add a general rule for has-background padding

* Remove the margin from the last child in a block with background color

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-09-22 11:27:10 +01:00
Jason Crist
6392130233
Add a 'blank' default block template for blockbase themes (#4669) 2021-09-22 11:20:19 +01:00
Rolf Allard van Hagen
474ffbeb3c
Blockbase: Improve blockbase_fonts_url handling (#4489)
This change adresses multiple issues. 
It:
1. prevents the possibility of an "empty" call to fonts.googleapis.com by returning empty instead of `https://fonts.googleapis.com/css2?&display=swap`, see issue #4458
2. prevents a child theme custom Google font to ALWAYS be loaded even if it's is not selected in the user settings
3. prevents duplicate URL parameters when both user body and header fonts are set to the same value with `array_unique`
2021-08-30 15:28:31 -04:00
Maggie
4e133c3d39
Blockbase + co: Universal Social menu (#4467)
* used render_callback to insert social menu from customizer

* return block content early

* change the condition under which we hijack the menu

* Remove extra navigation

* output block markup for the whole menu

* Render the menu at the social location, rather than the one called social

* map the right alignment from the nav block to the social icons block

* move the social nav to skatepark

* Replace any trailing numbers on menu items to better match them to service names

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-08-27 11:48:08 +01:00
Ben Dwyer
9a4a21d211
Blockbase: Update font customization approach (#4389)
* Blockbase: Set the fonts directly in settings not in custom

* fix the reset button

* update child themes

* remove unused variable

* add google font to theme.json default

* inherit font family from body

* Set pullquote to use the heading font in all themes
2021-08-12 12:17:10 +01:00
Ben Dwyer
e5113f1ad6
Blockbase: Load editor styles for blockbase before those of the child theme (#4377)
* Blockbase: Load editor styles for blockbase before those of the child theme

* Remove var_dumps
2021-08-10 10:50:40 +01:00
Jason Crist
f29e7cc08a Moved wpcom concerns to wpcom.php 2021-08-02 11:34:17 -04:00
Matt Wiebe
cbfecf8a57 Restore the Customizer 2021-07-29 14:27:51 -05:00
Matt Wiebe
7747ec4bd4 Revert Blockbase's site editor toggle
Being reverted in favour of a plugin-based solution
See https://github.com/Automattic/wp-calypso/pull/54620
Reverts #4154
2021-07-29 14:27:51 -05:00
Ben Dwyer
ae2d449610
Blockbase: Disable the Site Editor on WPCOM (#4206)
* Blockbase: Disable the Site Editor on WPCOM

* extract to a function

* Also hide the admin bar link to the Site Editor

* fix notice

* remove confusing references to disabling site editor

* move the condition to show the site editor links to the toggle file for simplicity and clarity

* Also hide the site editor from the API menu

* check has_blog_sticker exists before calling it
2021-07-15 12:13:04 +01:00
Jason Crist
7c0b389fbf
Refactor/bb customize (#4212)
* Refactored font/color customization to optimize storing setting logic
* Prevent persisting of color palette if it is the same as default
*  Prevent persisting of font data if it is the same as default
* Add 'reset' option to font customization
* moved customizer tools to folder in /inc
Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-07-14 11:25:05 -04:00
Ben Dwyer
3fae0ff359
Blockbase: Add font customization (#4116)
* Blockbase: Add font customization

* Add a preview for font customizations

* namespace the preview function

* Replace wp_localize_script with wp_add_inline_script
2021-07-07 11:18:07 +01:00
Ben Dwyer
0c061be791
Universal themes: Add a setting to disable the Site Editor (#4154)
* Universal themes: Add a setting to disable the Site Editor

* Check for index.html template before attempting to disable the FSE plugin (in the same way Gutenberg does)

* Only add a widgets menu item when there isn't one already

* Add an index template

Co-authored-by: Jason Crist <jcrist@pbking.com>
2021-07-05 12:39:40 +01:00
Jason Crist
786e29f2ca
Add generated title tag support to BB&Co themes (#4118) 2021-06-29 11:12:16 -07:00
Maggie
9e49d27662
Blockbase: Add support for custom palettes customization (#4098)
* first pass at color palette controls without functionality

* made palettes look like color annotations plugin

* make color selection functional

* get palettes from theme.json

* rename file

* rename colors preview file

* rename files

* more file renaming for clarity

* simplify settings

* rebuilt mayland and seedlet with alternative palettes

* renamed default template, dynamic theme name

* remove space

* Added default Varia/Seedlet palettes to blockbase

* check if the custom palette array is empty

* Only render color palette picker controls if there are alternatives to default.

* Only render color palette picker controls if there are alternatives to default. (fix)

* Removed commented code

* change palettes to an array

* chagne props comment

* removed unnecesary credit

* undo last commit, brought back the credits

* readd the settings file

* rebuild children

Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Jason Crist <jcrist@pbking.com>
2021-06-28 14:39:57 +01:00
Jason Crist
c562229404
Add __unstableLocation to all BB&Co Themes (#4101)
* Add __unstableLocation to all BB&Co Themes

As BB & Co. themes ALL become "Universal Capable" this addition allows
the menues to be modifed (should these themes be used in "Classic Mode")

* Registered menu locations for all BB themes
2021-06-28 10:51:45 +01:00
Jason Crist
e83203dbcc
Try/quadrat semantic color customizations (#4090)
* Refactored blockbase color configuration from 'descriptive' to 'semantic'

* Refactored Quadrat to support Semantic Colors

* WIP experiment to allow Customizer editing of semantic colors in Quadrat

* Update the settings in theme.json not styles

* remove class variable for simplicity

* allow users to set multiple colors

* move merged colors to a class property

* Refactored to simplify and integrate changes to save everything at once

* Refactored and implemented save-all-at-once

* Refactored color customization logic from Quadrat to Blockbase

* Refactored Mayland blocks to support semantic color customizations

* Refactored Seedlet for configurable semantic colors.  Refactored meaning of 'primary' in blockbase.

* Minor color cleanups

* Fixed quadrat background color override

* Change variables to camelCase

* remove slug class property

* rename a few variables and add some comments

* remove the noop.css

* don't assume properties exist

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-06-25 11:22:53 +01:00
Ben Dwyer
88c679cf1e
Revert "Blockbase: initial dotorg upload version" 2021-06-10 16:26:10 +01:00
Jeff Ong
6b1857f27b Add dummy classes and function calls. 2021-05-28 15:00:33 -04:00
Maggie Cabrera
3c94941e6c renamed bcb strings on functions files 2021-05-25 11:37:50 +02:00
Jeff Ong
5040c1cdd6 Rename BCB to blockbase. 2021-05-25 09:47:53 +01:00
Renamed from blank-canvas-blocks/functions.php (Browse further)