Commit graph

17 commits

Author SHA1 Message Date
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)