Commit graph

80 commits

Author SHA1 Message Date
Jason Crist
f47fbf09d9
Moved color customizations from custom to theme (#5629) 2022-03-09 13:42:28 +00:00
Ben Dwyer
dc1dfe53d2
Blockbase: Fix social icons (#5592) 2022-03-02 09:38:19 +00:00
Matias Benedetto
fa22ef5c1f
avoid linter warnings about yoda conditions (#5538) 2022-02-16 11:24:13 -03:00
Matias Benedetto
3b0ae93dde
Blockbase: Use the Global Styles rest API in the customizer (#5492)
* Blockbase: Use the Global Styles rest API in the customizer

* Color and Fonts customizer: changing implementation

* Color and Fonts customizer: changing implementation

* unlinting

* unlinting

* Customizer:  handling when settings or styles are not arrays

* Revert "Skatepark: dynamic duotone support (#4740)"

This reverts commit f1a3133076.

* Blockbase: Use the Global Styles rest API in the customizer

* Color and Fonts customizer: changing implementation

* unlinting

* unlinting

* Customizer:  handling when settings or styles are not arrays

* Revert "Skatepark: dynamic duotone support (#4740)"

This reverts commit f1a3133076.

* remove unused function

* move settings to the theme key

* revert skatepark changes

* revert skatepark changes

* Renaming variables

* Reverting dded23b133

* re-adding delete_transient

* Remonving condition to unset fonts when default is selected

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2022-02-15 17:15:50 -03:00
Jeff Ong
c75d4ef9c0
Try fixing the husky actions. (#5493)
* Test commit.

* Test.

* Test.

* test.

* test

* Update package.json.

* Update package-lock.json.

* Remove incorrect formatting.

* Test a syntax error.

* Test a style error.

* Remove weird undefined.

* test

* test

* test commit

* Update phpcodesniffer-composer-installer

* Update phpcompatibility-wp

* test

* fix composer

* test

* test

* Update composer lock

* test

* test.

* Fix linters error?

* test

* test

* reset

* test

* test

Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
2022-02-15 11:28:42 +00:00
Maggie
4fb324e186
Skatepark: refactor CSS into block markup (#5473)
* refactored paragraph with quote pattern

* Image with caption pattern

* testimonial pattern

* Author block refactored

* removed navigation CSS that wasn't doing anything

* post comments CSS removed

* search block

* removed post meta css

* refactor index and links css

* scrapped more css

* removed partials

* removed unused includes

* removed headings styles refactoring pattern
2022-02-11 10:07:14 +01:00
Jason Crist
7045feb98a
Fixed import to include __DIR__ instead of assuming relative path (#5449) 2022-02-02 17:10:48 -05:00
Jason Crist
cd163451cf
remove the default color check during color customizations save (#5446) 2022-02-02 16:15:44 -05: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
Maggie
7871f79b21
Skatepark: updated font sizes (#5416)
* changed font sizes

* moved normal back to custom

* changed font size on patterns and templates

* fix block markup

* correct font size for search
2022-02-01 12:03:06 +00:00
Ben Dwyer
5066bda49d
Blockbase: Fix social navigation warning (#5389) 2022-01-27 09:58:40 +00:00
Ben Dwyer
e8c5551153
Videomaker: Consolidate footer patterns in Videomaker (#5374) 2022-01-21 12:57:34 +00:00
Ben Dwyer
a12962e011
Update Blank Canvas Blocks footer (#5346) 2022-01-17 12:49:12 -05:00
Jason Crist
ad9d522178
Reverting the mess caused renaming template folders (#5317) 2022-01-13 15:38:55 -05:00
Jason Crist
eea5498372
Refix/5105 script refactor template folders (#5312)
* Re-moved everything to the correct location, fixing the incorrect nested location from previous execution
2022-01-13 12:05:31 -05:00
Maggie
ff859ba69a
Blockbase: refactor footers to patterns (#5245) 2022-01-13 11:27:18 -05:00
Maggie
7e736f185b
Blockbase: converted headers to patterns (#5238)
* converted headers to patterns
* Import headers as both Template Parts AND Block Patterns

Co-authored-by: Jason Crist <jcrist@pbking.com>
2022-01-13 11:24:01 -05:00
Ben Dwyer
04906a315b
Revert "Change the way we fetch users CPT to use the Gutenberg function directly" (#5307)
This reverts commit 75ba42af5b.
2022-01-13 11:27:53 +00:00
Ben Dwyer
5e96cecd30
Revert "Revert Fix Customizer Font Editing causing Site Editor WSOD" (#5295)
* Revert "Revert "Fix Customizer Font Editing causing Site Editor WSOD (#5262)" (#5284)"

This reverts commit d75e26f10e.

* Cast object to  array
2022-01-12 09:02:31 +00:00
Ben Dwyer
d75e26f10e
Revert "Fix Customizer Font Editing causing Site Editor WSOD (#5262)" (#5284)
This reverts commit 9e7036e6c3.
2022-01-10 09:50:57 +01:00
Jason Crist
9e7036e6c3
Fix Customizer Font Editing causing Site Editor WSOD (#5262)
* Clear fontFamilies data to ensure what is posted is always correct.  Refactored unset_property_if_it_exists() as it wasn't removing the fontFamilies Array as expected

* Change the way we fetch users CPT to use the Gutenberg function directly

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2022-01-07 09:27:37 +00:00
Ben Dwyer
e3762b3329
Blockbase: Update customizer PHP library to work with latest version of Gutenberg (#5251)
* Fix customizer

* add string
2021-12-23 11:53:08 +00:00
Ben Dwyer
18c6bcb1f8
Fallback to the old function name in case users are still on the old version of Gutenberg (#5250) 2021-12-23 01:32:09 +00:00
Ben Dwyer
665a08d8f5
Blockbase: Rename Gutenberg functions (#5248) 2021-12-22 23:20:37 +00:00
Ben Dwyer
f546817e73
Skatepark: simplify nav (#5190)
* Skatepark: simplify nav

* Add a block gap between the logo and other branding

* align the mobile menu to the botton

* Simplify skatepark's header to just use the Blockbase one

* refactor the social navigation code to make it eassier to pinpoint errors

* Skatepark: simplify nav

* Add a block gap between the logo and other branding

* align the mobile menu to the botton

* Simplify skatepark's header to just use the Blockbase one

* Remove header css

* update skatepark to have a wide header
2021-12-20 09:05:38 +00:00
Ben Dwyer
61851034de
Blockbase: Force DOMXPath to use utf-8 encoding (#5193) 2021-12-14 16:24:50 +00:00
Jason Crist
db081d9814
Geologist Variations + Variation Creation Script (#5179)
* WIP variations script

* add some initial code to copy theme variants

* Add more variations

* Fix blue and slate variations

* Remove commas breaking theme.json

* Refactored script to exclude unnecessary elements, copy additional resources and merge theme.json data

* Added npm script target to variations build.  Added readme files to variation destination.

* Removed unused 'foreground' palette color from geologist variations.  Mapped 'secondary' palette color to 'secondary' custom color in base Geologist theme.

* Removed unused 'foreground' palette color from geologist variations.  Mapped 'secondary' palette color to 'secondary' custom color in base Geologist theme.

* Made the variations script smart

* Made site title adjustments per design request

* Update the header to use the standard blockbase header

* Refactored the usage of default header out of a change to template part and instead introduced the concept of 'mods' that will change templates to suit

* Removed header modifications to Geologist variations

* Added Google font URL information to geologist-blue

* Add IBM Plex Mono to our list of cusotmization fonts

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-12-13 16:53:44 +00:00
Jason Crist
1b61f3c876
Try/consolidate headers (#5145)
* consolidate header styles designed for child themes into Blockbase which child themes can use as header/footer options.
* Refactor header spacing mechanism to use a spacer in a template part
* Refactor header layouts to allow for full-width background colors.
* Tweak navigation styles leveraged by headers to align with design intentions
* Various other header and navigation tweaks.
* Affects all Blockbase children

Co-authored-by: Maggie <maggie.cabrera@automattic.com>
Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-12-09 10:22:50 -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
Ben Dwyer
0535e61ee2
Blockbase Fonts: Only unset properties that are set (#5149) 2021-12-06 16:47:40 +00:00
Ben Dwyer
02c2556875
Blockbase: Simplify the approach to font customization (#4980)
* Blockbase: Simplify our approach to font customization

* remove commented code

* Handle fonts that are customized the old way

* add comments

* update all child themes to use the new font customization settings

* Add a comment about this being a breaking change

* Add a notice when a user has an old version of blockbase
2021-11-24 11:38:08 +00:00
Matias Benedetto
6051e0f592
Adding static keyword to avoid error in PHP 8 (#5082)
Declaring class properties or methods as static makes them accessible without needing an instantiation of the class.
2021-11-24 11:35:22 +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
d160d45d37
Make it possible to configure the color of the social icons (#4984)
* Make it possible to configure the color of the social icons

* Update the name of the custom variable
2021-11-18 10:30:56 +00:00
Jason Crist
e463147f1d
Fixed null-ref error when previewing colors for any theme but Skatepark (#5014) 2021-11-12 08:44:51 -05:00
Ben Dwyer
6af64054ee
Blockbase: Fix warning when we try to set properties on arrays (#4972) 2021-11-03 16:06:06 +00:00
Maggie
f1a3133076
Skatepark: dynamic duotone support (#4740)
* added duotone support for blocks, removed it from the patterns markup

* Add duotone to site logo too

* If the user changes colors via the customizer also update the default Duotone filter

* created a new filter for the custom duotone

Co-authored-by: Sarah Norris <sarah@sekai.co.uk>

* delete new transient

* fix customizer preview and invert darker palettes

* check luminescence on php to see if we need to invert before saving

* Refactoring the code to make it easier to understand

* Remove closure

* refactor for readability

* merge user filter with theme ones

* Whitespace

* Check the array keys exist properly

* remove var_dumps

* check for the correct values when we define the custom filter

* minified colord file

* updated changelog and credited the colord library

* minified version of colord.js

* removed filter from logo

* Removed duplicated comment

Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Sarah Norris <sarah@sekai.co.uk>
2021-10-29 08:31:41 +01:00
Ben Dwyer
f11bd52520
Blockbase: Fix fatal error with social navigation (#4895) 2021-10-26 15:47:07 +01:00
Ben Dwyer
25bf57cbec
Blockbase: Add a mixin for post meta (#4897) 2021-10-25 10:57:46 +01:00
Maggie
a025027975
Blockbase: make post meta icons optional (#4891)
* move blockbase post meta icons to block styles

* refactored geologist, removed unneeded css coming from Quadrat

* added meta icons to russell

* seedlet, zoologist refactored like geologist

* refactored Quadrat

* more unnecesary css

* applied to Mayland

* removed CSS from videomaker

* built mayland

* refactored Skatepark

* correct icon and size for Skatepark
2021-10-21 16:30:06 +02: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
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
bc246fe5b6
Blockbase: Don't reset the settings array if it doesn't exist (#4713) 2021-09-28 15:26:10 +01:00
Rolf Allard van Hagen
98e800c43f
Drop "fontsToLoadFromGoogle" for child themes (#4633)
* Drop "fontsToLoadFromGoogle" for child themes

Drop "fontsToLoadFromGoogle" in favor of  the common "google" parameter. Child themes can simply set a "google" key/value for any Google fonts they need, just as the Blockbase does everywhere else.

I see no need (anymore) to have this separate custom section in the child theme json. Or am I missing something?

It just needs to be communicated and coordinated with child theme devs that still use "fontsToLoadFromGoogle"...

This also fixes #4460 and #4621

* Remove fontsToLoadFromGoogle from theme.json

Co-authored-by: Ben Dwyer <ben@scruffian.com>
2021-09-28 15:25:59 +01:00
Daniel Dudzic
c963ed2033
An attempt to fix the theme check sanitization errors in Blockbase (#4601)
* Blockbase: Fix sanitization theme check errors

* Blockbase: Fix another sanitization theme check error
2021-09-16 22:02:04 +01:00
Ben Dwyer
280f2f8608
Blockbase: Remove wpcom hook (#4563)
* Blockbase: Remove wpcom hook

* Removed the two unused wpcom files

Co-authored-by: Jason Crist <jcrist@pbking.com>
2021-09-16 22:01:39 +01:00
Maggie
a8485fb5a9 Blockbase + Quadrat: remap quadrat colors, refactor selection to tertiary (#4570)
* remap quadrat colors, refactor selection to tertiary

* Refactored color customizations to exclusively use THEME provided values as the basis for colors to configure rather than optionally using USER provided values.

* Changed blockbase's tertiary color to match blank-canvas
* Changed seedlet-blocks tertiary color to match seedlet's

* Eliminated any text selection styling for Blockbase and children (with the exception of Skatepark)

Co-authored-by: Jason Crist <jcrist@pbking.com>
2021-09-13 17:21:42 -04:00
Ben Dwyer
9079668233
Blockbase: Remove wpcom CSS (#4564) 2021-09-10 09:07:37 +01:00
Ben Dwyer
d8948a3a9e
Revert "Blockbase: Remove wpcom specific CSS file (#4548)" (#4549)
This reverts commit 463aafcee7.
2021-09-08 13:50:59 +01:00