Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ License: GNU GPL, Version 3, https://www.gnu.org/licenses/gpl-3.0.html
Unless otherwise specified, all the theme files, scripts and images including the screenshot image are licensed under [GNU GPL] (http://www.gnu.org/licenses/gpl-3.0.txt), version 3 or later.

== Changelog ==
= TBD =
* Add - Review link section on customizer.

= Version 1.4.3 - 2021-08-17 =
* Enhancement - Added CSS font-display property and swap value for better performance.

Expand Down
27 changes: 27 additions & 0 deletions inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,20 @@ function flash_customize_register( $wp_customize ) {
)
)
);

$wp_customize->add_section(
new FLASH_Upsell_Section(
$wp_customize,
'flash_review_section',
array(
'title' => esc_html__( 'Leave a Review on .org', 'flash' ),
'url' => 'https://wordpress.org/support/theme/flash/reviews/?filter=5/#new-post',
'capability' => 'edit_theme_options',
'priority' => 200,
)
)
);

/*
* Custom Scripts
*/
Expand Down Expand Up @@ -938,6 +952,19 @@ function flash_customizer_custom_scripts() {
li#accordion-section-flash_upsell_section h3.accordion-section-title:after {
color: #fff !important;
}

li#accordion-section-flash_review_section h3.accordion-section-title {
background-color: #30AFB8 !important;
color: #fff !important;
padding: 0;
}

li#accordion-section-flash_review_section h3.accordion-section-title a {
color: #fff;
display: block;
text-decoration: none;
padding: 12px 15px 15px;
}
</style>

<script>
Expand Down