-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Bug Fixes **Header Footer Builder Layout Fix:** We updated the builder to work with the latest version of WordPress 6.4. **Related posts excerpt:** The excerpt from the related post will now correctly show the proper post excerpt. **Infinite scroll:** Properly load custom post-type posts on the archive page. **Infinite scroll post order:** The order is now preserved when loading posts for the infinite scroll. **Improved Gutenberg support:** More default Guttenberg block settings are now supported. **Blog list alignment:** The alignment now behaves correctly when the thumbnail is missing. ### Improvements **Update Google Fonts:** Get the newest Google fonts from the public font library. **E2E testing:** Improved end-to-end testing. **SDK update:** The latest SDK is now available.
- Loading branch information
Showing
31 changed files
with
235 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@neve-wp/components", | ||
"version": "0.0.49", | ||
"version": "0.0.51", | ||
"description": "Neve React Components", | ||
"author": "themeisle <[email protected]>", | ||
"license": "GPL-2.0-or-later", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import { subscribe, select } from '@wordpress/data'; | ||
|
||
/** | ||
* Append New Sub Menu Page. | ||
* | ||
* The page will be added after the parent container of the linkSelector. | ||
* | ||
* @param {string} linkSelector The link selector to determine the position of the added submenu page. | ||
* @param {Object} subMenuData The Sub Menu data to be added. | ||
* @return {HTMLAnchorElement} Custom Layouts menu page. | ||
*/ | ||
function appendNewSubMenuPage(linkSelector, subMenuData) { | ||
// Create and configure a new anchor element | ||
const link = document.createElement('a'); | ||
link.setAttribute('href', subMenuData?.linkSubMenu); | ||
link.textContent = subMenuData?.labelSubMenu; | ||
|
||
const linkToAppendAfter = document.querySelector(linkSelector); | ||
if (!linkToAppendAfter) { | ||
return; | ||
} | ||
|
||
// Append the after the Customizer menu item. | ||
const listNode = linkToAppendAfter.parentNode; | ||
const container = document.createElement('li'); | ||
container.appendChild(link); | ||
listNode.parentNode.insertBefore(container, listNode.nextSibling); | ||
|
||
return link; | ||
} | ||
|
||
/** | ||
* Auto Sub Menu Pages on Admin Dashboard for Pro Modules. | ||
*/ | ||
function autoHideModuleSubMenuPages() { | ||
let clLinkElem = document.querySelector( | ||
'.toplevel_page_neve-welcome a[href*="edit.php?post_type=neve_custom_layouts"]' | ||
); | ||
|
||
subscribe(() => { | ||
/** | ||
* Auto hide Custom Layouts submenu page link based on module status. | ||
*/ | ||
const isModuleEnabled = | ||
select('neve-dashboard').getModuleStatus('custom_layouts'); | ||
|
||
if (isModuleEnabled && !clLinkElem) { | ||
clLinkElem = appendNewSubMenuPage( | ||
'.toplevel_page_neve-welcome .wp-submenu a[href*="customize.php"]', | ||
window?.neveDash?.moduleObserver?.customLayouts | ||
); | ||
} else if (!isModuleEnabled && clLinkElem) { | ||
clLinkElem.parentNode.remove(); | ||
clLinkElem = undefined; | ||
} | ||
}); | ||
} | ||
|
||
function run() { | ||
// Run only on the Neve Pro tab. | ||
if (window.location.hash === '#pro') { | ||
autoHideModuleSubMenuPages(); | ||
} | ||
} | ||
|
||
if (document.readyState !== 'loading') { | ||
run(); | ||
} else { | ||
document.addEventListener('DOMContentLoaded', function () { | ||
run(); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-23.1 KB
(99%)
...rter-sites.spec.ts-snapshots/Starter-sites-check-Check-frontpage-3-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+103 KB
(110%)
...rter-sites.spec.ts-snapshots/Starter-sites-check-Check-frontpage-7-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.