Skip to content

Commit

Permalink
release: fixes
Browse files Browse the repository at this point in the history
- Added a new starter site
- Fixed PHP warning in template_parts.php
- Fixed compatibility issue with the TranslatePress plugin
- Fixed the plugin install issue on a multisite installation
- Fixed lightbox issue with alignment control
- Added support for a new custom layout magic tag current_single_content [PRO]
- Added support for Messenger social media sharing [PRO]
  • Loading branch information
vytisbulkevicius authored Oct 29, 2024
2 parents eea31d9 + 461fd8c commit 3047736
Show file tree
Hide file tree
Showing 78 changed files with 1,150 additions and 1,411 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
TextControl,
ToggleControl,
TextareaControl,
ExternalLink,
} from '@wordpress/components';
import IconSelector from './IconSelector';
import { getIcons, ColorControl } from '@neve-wp/components';
Expand Down Expand Up @@ -67,13 +68,27 @@ const RepeaterItemContent = ({

switch (currentField.type) {
case 'text':
if (
'fb_page_id' === key &&
'messenger' !== value[index]?.social_network
) {
return;
}
return (
<TextControl
label={currentField.label}
value={value[index][key] || currentField.default}
onChange={(newData) => changeContent(key, newData)}
key={key + index}
/>
<>
<TextControl
label={currentField.label}
value={value[index][key] || currentField.default}
onChange={(newData) => changeContent(key, newData)}
key={key + index}
help={currentField.help_text || ''}
/>
{currentField?.help_link && (
<ExternalLink href={currentField?.help_link?.link}>
{currentField?.help_link?.text}
</ExternalLink>
)}
</>
);
case 'textarea':
return (
Expand Down
Binary file added assets/img/starter-content/0_0-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/0_0-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/0_0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/0_1-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/0_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/0_2-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/starter-content/client-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/img/starter-content/logo-agency.png
Binary file not shown.
Binary file added assets/img/starter-content/logo.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 removed assets/img/starter-content/neve-hero-2.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/starter-content/neve-marketing-icon-1.png
Diff not rendered.
Binary file removed assets/img/starter-content/neve-marketing-icon-2.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/img/starter-content/neve-marketing-icon-5.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file added assets/img/starter-content/neve-play1.png
Binary file added assets/img/starter-content/nv-1.jpg
Binary file added assets/img/starter-content/nv-3.jpg
Binary file removed assets/img/starter-content/person-hero-2.png
Diff not rendered.
Binary file added assets/img/starter-content/signature-1.png
Binary file added assets/img/starter-content/signature-2.png
1 change: 0 additions & 1 deletion assets/scss/components/main/_gutenberg.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,3 @@ blockquote {
margin-right: calc(50% - 35vw);
}
}

2 changes: 1 addition & 1 deletion bin/envs/woo-sample/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ curl -O https://raw.githubusercontent.com/WPTT/theme-unit-test/master/themeunitt
wp --allow-root import ./themeunittestdata.wordpress.xml --authors=skip --skip=image_resize

#Setup content for woo
curl -O https://raw.githubusercontent.com/woocommerce/woocommerce/master/sample-data/sample_products.xml
curl -O https://raw.githubusercontent.com/woocommerce/woocommerce/trunk/plugins/woocommerce/sample-data/sample_products.xml
wp --allow-root import ./sample_products.xml --authors=skip --skip=image_resize
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": "https://github.com/Codeinwp/neve"
},
"require": {
"codeinwp/themeisle-sdk": "^3.2",
"codeinwp/themeisle-sdk": "^3.3",
"wptt/webfont-loader": "dev-master"
},
"repositories": [
Expand Down
17 changes: 9 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ test.describe('Custom Global Color Control', () => {
await clearWelcome(page);

await page.locator('.block-editor-rich-text__editable').first().click();
await page.locator('.block-editor-block-inspector__tab-item').last().click();
// use Background color control to open the color picker, available since WP 6.1
await page.getByRole('button', { name: 'Background' }).click();
await page.getByRole('option', { name: 'Color: Custom 1' }).click();
Expand Down
29 changes: 27 additions & 2 deletions globals/google-fonts.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Updated on 12/08/24
* Updated on 28/10/24
*
* @package neve
*/
Expand Down Expand Up @@ -91,6 +91,7 @@
'Antic Didone' => array( '400',),
'Antic Slab' => array( '400',),
'Anton' => array( '400',),
'Anton SC' => array( '400',),
'Antonio' => array( '100', '200', '300', '400', '500', '600', '700',),
'Anuphan' => array( '100', '200', '300', '400', '500', '600', '700',),
'Anybody' => array( '100', '200', '300', '400', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
Expand All @@ -111,6 +112,7 @@
'Arizonia' => array( '400',),
'Armata' => array( '400',),
'Arsenal' => array( '400', '700', '400italic', '700italic',),
'Arsenal SC' => array( '400', '700', '400italic', '700italic',),
'Artifika' => array( '400',),
'Arvo' => array( '400', '700', '400italic', '700italic',),
'Arya' => array( '400', '700',),
Expand Down Expand Up @@ -180,13 +182,15 @@
'Barrio' => array( '400',),
'Basic' => array( '400',),
'Baskervville' => array( '400', '400italic',),
'Baskervville SC' => array( '400',),
'Battambang' => array( '100', '300', '400', '700', '900',),
'Baumans' => array( '400',),
'Bayon' => array( '400',),
'Be Vietnam' => array(),
'Be Vietnam Pro' => array( '100', '200', '300', '400', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
'Beau Rivage' => array( '400',),
'Bebas Neue' => array( '400',),
'Beiruti' => array( '200', '300', '400', '500', '600', '700', '800', '900',),
'Belanosima' => array( '400', '600', '700',),
'Belgrano' => array( '400',),
'Bellefair' => array( '400',),
Expand Down Expand Up @@ -225,8 +229,10 @@
'Blaka Ink' => array( '400',),
'Blinker' => array( '100', '200', '300', '400', '600', '700', '800', '900',),
'Bodoni Moda' => array( '400', '500', '600', '700', '800', '900', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
'Bodoni Moda SC' => array( '400', '500', '600', '700', '800', '900', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
'Bokor' => array( '400',),
'Bona Nova' => array( '400', '700', '400italic',),
'Bona Nova SC' => array( '400', '700', '400italic',),
'Bonbon' => array( '400',),
'Bonheur Royale' => array( '400',),
'Boogaloo' => array( '400',),
Expand All @@ -250,6 +256,7 @@
'Bungee Outline' => array( '400',),
'Bungee Shade' => array( '400',),
'Bungee Spice' => array( '400',),
'Bungee Tint' => array( '400',),
'Butcherman' => array( '400',),
'Butterfly Kids' => array( '400',),
'Cabin' => array( '400', '500', '600', '700', '400italic', '500italic', '600italic', '700italic',),
Expand Down Expand Up @@ -408,6 +415,9 @@
'Eater' => array( '400',),
'Economica' => array( '400', '700', '400italic', '700italic',),
'Eczar' => array( '400', '500', '600', '700', '800',),
'Edu AU VIC WA NT Dots' => array( '400', '500', '600', '700',),
'Edu AU VIC WA NT Guides' => array( '400', '500', '600', '700',),
'Edu AU VIC WA NT Hand' => array( '400', '500', '600', '700',),
'Edu NSW ACT Foundation' => array( '400', '500', '600', '700',),
'Edu QLD Beginner' => array( '400', '500', '600', '700',),
'Edu SA Beginner' => array( '400', '500', '600', '700',),
Expand Down Expand Up @@ -490,9 +500,11 @@
'Fruktur' => array( '400', '400italic',),
'Fugaz One' => array( '400',),
'Fuggles' => array( '400',),
'Fustat' => array( '200', '300', '400', '500', '600', '700', '800',),
'Fuzzy Bubbles' => array( '400', '700',),
'GFS Didot' => array( '400',),
'GFS Neohellenic' => array( '400', '700', '400italic', '700italic',),
'Ga Maamli' => array( '400',),
'Gabarito' => array( '400', '500', '600', '700', '800', '900',),
'Gabriela' => array( '400',),
'Gaegu' => array( '300', '400', '700',),
Expand Down Expand Up @@ -630,7 +642,7 @@
'Inspiration' => array( '400',),
'Instrument Sans' => array( '400', '500', '600', '700', '400italic', '500italic', '600italic', '700italic',),
'Instrument Serif' => array( '400', '400italic',),
'Inter' => array( '100', '200', '300', '400', '500', '600', '700', '800', '900',),
'Inter' => array( '100', '200', '300', '400', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
'Inter Tight' => array( '100', '200', '300', '400', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
'Irish Grover' => array( '400',),
'Island Moments' => array( '400',),
Expand All @@ -643,6 +655,7 @@
'Jacquard 24' => array( '400',),
'Jacquard 24 Charted' => array( '400',),
'Jacquarda Bastarda 9' => array( '400',),
'Jacquarda Bastarda 9 Charted' => array( '400',),
'Jacques Francois' => array( '400',),
'Jacques Francois Shadow' => array( '400',),
'Jaini' => array( '400',),
Expand Down Expand Up @@ -685,6 +698,7 @@
'Kaisei Tokumin' => array( '400', '500', '700', '800',),
'Kalam' => array( '300', '400', '700',),
'Kalnia' => array( '100', '200', '300', '400', '500', '600', '700',),
'Kalnia Glaze' => array( '100', '200', '300', '400', '500', '600', '700',),
'Kameron' => array( '400', '500', '600', '700',),
'Kanit' => array( '100', '200', '300', '400', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
'Kantumruy' => array(),
Expand Down Expand Up @@ -842,6 +856,7 @@
'Marvel' => array( '400', '700', '400italic', '700italic',),
'Mate' => array( '400', '400italic',),
'Mate SC' => array( '400',),
'Matemasie' => array( '400',),
'Material Icons' => array( '400',),
'Material Icons Outlined' => array( '400',),
'Material Icons Round' => array( '400',),
Expand Down Expand Up @@ -870,6 +885,7 @@
'Metrophobic' => array( '400',),
'Michroma' => array( '400',),
'Micro 5' => array( '400',),
'Micro 5 Charted' => array( '400',),
'Milonga' => array( '400',),
'Miltonian' => array( '400',),
'Miltonian Tattoo' => array( '400',),
Expand All @@ -884,6 +900,7 @@
'Mochiy Pop P One' => array( '400',),
'Modak' => array( '400',),
'Modern Antiqua' => array( '400',),
'Moderustic' => array( '300', '400', '500', '600', '700', '800',),
'Mogra' => array( '400',),
'Mohave' => array( '300', '400', '500', '600', '700', '300italic', '400italic', '500italic', '600italic', '700italic',),
'Moirai One' => array( '400',),
Expand Down Expand Up @@ -938,6 +955,7 @@
'Nerko One' => array( '400',),
'Neucha' => array( '400',),
'Neuton' => array( '200', '300', '400', '700', '800', '400italic',),
'New Amsterdam' => array( '400',),
'New Rocker' => array( '400',),
'New Tegomin' => array( '400',),
'News Cycle' => array( '400', '700',),
Expand Down Expand Up @@ -1161,6 +1179,7 @@
'Noto Serif Vithkuqi' => array( '400', '500', '600', '700',),
'Noto Serif Yezidi' => array( '400', '500', '600', '700',),
'Noto Traditional Nushu' => array( '300', '400', '500', '600', '700',),
'Noto Znamenny Musical Notation' => array( '400',),
'Nova Cut' => array( '400',),
'Nova Flat' => array( '400',),
'Nova Mono' => array( '400',),
Expand Down Expand Up @@ -1246,6 +1265,7 @@
'Pirata One' => array( '400',),
'Pixelify Sans' => array( '400', '500', '600', '700',),
'Plaster' => array( '400',),
'Platypi' => array( '300', '400', '500', '600', '700', '800', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic',),
'Play' => array( '400', '700',),
'Playball' => array( '400',),
'Playfair' => array( '300', '400', '500', '600', '700', '800', '900', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
Expand Down Expand Up @@ -1449,6 +1469,7 @@
'Rye' => array( '400',),
'STIX Two Math' => array(),
'STIX Two Text' => array( '400', '500', '600', '700', '400italic', '500italic', '600italic', '700italic',),
'SUSE' => array( '100', '200', '300', '400', '500', '600', '700', '800',),
'Sacramento' => array( '400',),
'Sahitya' => array( '400', '700',),
'Sail' => array( '400',),
Expand All @@ -1460,6 +1481,7 @@
'Salsa' => array( '400',),
'Sanchez' => array( '400', '400italic',),
'Sancreek' => array( '400',),
'Sankofa Display' => array( '400',),
'Sansita' => array( '400', '700', '800', '900', '400italic', '700italic', '800italic', '900italic',),
'Sansita Swashed' => array( '300', '400', '500', '600', '700', '800', '900',),
'Sarabun' => array( '100', '200', '300', '400', '500', '600', '700', '800', '100italic', '200italic', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic',),
Expand Down Expand Up @@ -1616,6 +1638,7 @@
'Tilt Warp' => array( '400',),
'Timmana' => array( '400',),
'Tinos' => array( '400', '700', '400italic', '700italic',),
'Tiny5' => array( '400',),
'Tiro Bangla' => array( '400', '400italic',),
'Tiro Devanagari Hindi' => array( '400', '400italic',),
'Tiro Devanagari Marathi' => array( '400', '400italic',),
Expand Down Expand Up @@ -1691,6 +1714,7 @@
'Whisper' => array( '400',),
'WindSong' => array( '400', '500',),
'Wire One' => array( '400',),
'Wittgenstein' => array( '400', '500', '600', '700', '800', '900', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
'Wix Madefor Display' => array( '400', '500', '600', '700', '800',),
'Wix Madefor Text' => array( '400', '500', '600', '700', '800', '400italic', '500italic', '600italic', '700italic', '800italic',),
'Work Sans' => array( '100', '200', '300', '400', '500', '600', '700', '800', '900', '100italic', '200italic', '300italic', '400italic', '500italic', '600italic', '700italic', '800italic', '900italic',),
Expand Down Expand Up @@ -1724,6 +1748,7 @@
'ZCOOL KuaiLe' => array( '400',),
'ZCOOL QingKe HuangYou' => array( '400',),
'ZCOOL XiaoWei' => array( '400',),
'Zain' => array( '200', '300', '400', '700', '800', '900',),
'Zen Antique' => array( '400',),
'Zen Antique Soft' => array( '400',),
'Zen Dots' => array( '400',),
Expand Down
13 changes: 13 additions & 0 deletions header-footer-grid/Core/Magic_Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ public function current_single_excerpt() {
return is_singular() ? get_the_excerpt() : '';
}

/**
* Single Post Content.
*
* @return string
*/
public function current_single_content() {
return is_singular() ? get_the_content() : '';
}

/**
* Single Post meta.
*
Expand Down Expand Up @@ -590,6 +599,10 @@ private function setup_config() {
'label' => __( 'Current Single Excerpt', 'neve' ),
'type' => 'string',
],
'current_single_content' => [
'label' => __( 'Current Single Content', 'neve' ),
'type' => 'string',
],
'current_single_url' => [
'label' => __( 'Current Single URL', 'neve' ),
'type' => 'url',
Expand Down
4 changes: 2 additions & 2 deletions header-footer-grid/templates/components/component-logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@

$aria_label = trim( get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' ) );
if ( $is_not_link ) {
$start_tag = '<span class="brand" title=" ' . get_bloginfo( 'name' ) . '" aria-label="' . esc_attr( $aria_label ) . '">';
$start_tag = '<span class="brand" title="&larr; ' . get_bloginfo( 'name' ) . '" aria-label="' . esc_attr( $aria_label ) . '">';
$end_tag = '</span>';
} else {
$start_tag = '<a class="brand" href="' . esc_url( home_url( '/' ) ) . '" title=" ' . get_bloginfo( 'name' ) . '"
$start_tag = '<a class="brand" href="' . esc_url( home_url( '/' ) ) . '" title="&larr; ' . get_bloginfo( 'name' ) . '"
aria-label="' . esc_attr( $aria_label ) . '" rel="home">';
$end_tag = '</a>';
}
Expand Down
Loading

0 comments on commit 3047736

Please sign in to comment.