Skip to content

Commit f371c15

Browse files
committed
Remove dashes, make text visible with upsell, update links
1 parent 40024d3 commit f371c15

File tree

9 files changed

+139
-98
lines changed

9 files changed

+139
-98
lines changed

includes/Cloudflare/CloudflareFeaturesManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function update_htaccess_header( $image_settings, $fonts_enabled ) {
7777
$polish_hash = $polish_enabled ? substr( sha1( 'polish' ), 0, 8 ) : '';
7878
$fonts_hash = $fonts_enabled_flag ? substr( sha1( 'fonts' ), 0, 8 ) : '';
7979

80-
$header_value = "{$mirage_hash}-{$polish_hash}-{$fonts_hash}";
80+
$header_value = "{$mirage_hash}{$polish_hash}{$fonts_hash}";
8181
$rules = array();
8282

8383
if ( $mirage_enabled || $polish_enabled || $fonts_enabled_flag ) {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Module to manage performance settings in newfold plugins",
44
"license": "GPL-2.0-or-later",
55
"private": true,
6-
"version": "3.2.0",
6+
"version": "3.2.1",
77
"contributors": [
88
"Abdulrahman Al Ani (https://alani.dev/)",
99
"Evan Mullins (https://evanmullins.com)",

src/sections/FontOptimization/getFontOptimizationText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getFontOptimizationText = () => ( {
1919
'wp-module-performance'
2020
),
2121
fontOptimizationUpsellLink: __(
22-
'https://www.bluehost.com',
22+
'https://www.bluehost.com/hosting/shared',
2323
'wp-module-performance'
2424
),
2525
fontOptimizationLoading: __(

src/sections/FontOptimization/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ const FontOptimization = () => {
118118
/>
119119
) : (
120120
<FeatureUpsell
121+
className={ 'nfd-font-optimization-upsell' }
121122
cardText={ fontOptimizationUpsellText }
122123
cardLink={ fontOptimizationUpsellLink }
123124
>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.newfold-font-optimization .nfd-button--upsell {
2+
position: absolute;
3+
top: 0;
4+
}

src/sections/ImageOptimization/getImageOptimizationText.js

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -108,30 +108,29 @@ const getImageOptimizationText = () => ( {
108108
'wp-module-performance'
109109
),
110110
imageOptimizationPolishLabel: __(
111-
'Optimize Images via Cloudflare',
112-
'wp-module-performance'
113-
),
114-
imageOptimizationPolishDescription: __(
115-
"Enables Cloudflare's image compression to reduce load times and bandwidth usage.",
116-
'wp-module-performance'
117-
),
118-
imageOptimizationMirageLabel: __(
119-
'Improve Image Loading on Slow Connections',
120-
'wp-module-performance'
121-
),
122-
imageOptimizationMirageDescription: __(
123-
"Cloudflare Mirage accelerates image loading for mobile and slow networks.",
124-
'wp-module-performance'
125-
),
126-
imageOptimizationUpsellText: __(
127-
'Get advanced image optimization features with Cloudflare Polish & Mirage.',
128-
'wp-module-performance'
129-
),
130-
imageOptimizationUpsellLink: __(
131-
'https://www.bluehost.com',
132-
'wp-module-performance'
133-
),
134-
111+
'Optimize Images via Cloudflare',
112+
'wp-module-performance'
113+
),
114+
imageOptimizationPolishDescription: __(
115+
"Enables Cloudflare's image compression to reduce load times and bandwidth usage.",
116+
'wp-module-performance'
117+
),
118+
imageOptimizationMirageLabel: __(
119+
'Improve Image Loading on Slow Connections',
120+
'wp-module-performance'
121+
),
122+
imageOptimizationMirageDescription: __(
123+
'Cloudflare Mirage accelerates image loading for mobile and slow networks.',
124+
'wp-module-performance'
125+
),
126+
imageOptimizationUpsellText: __(
127+
'Get advanced image optimization features with Cloudflare Polish & Mirage.',
128+
'wp-module-performance'
129+
),
130+
imageOptimizationUpsellLink: __(
131+
'https://www.bluehost.com/hosting/shared',
132+
'wp-module-performance'
133+
),
135134
} );
136135

137136
export default getImageOptimizationText;

src/sections/JetpackBoost/stylesheet.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
right: 0;
4040
position: absolute;
4141
display: flex;
42-
flex-direction: row;
43-
justify-content: center;
44-
padding: 10px;
42+
flex-direction: row;
43+
justify-content: center;
44+
padding: 10px;
4545
z-index: 11;
4646
}
4747

@@ -137,9 +137,9 @@
137137
}
138138

139139
.nfd-performance-jetpack-boost-single-option-container {
140-
margin-bottom: 20px;
140+
margin-bottom: 20px;
141141
}
142142

143143
.margin20 {
144144
margin: 20px 0;
145-
}
145+
}

0 commit comments

Comments
 (0)