Skip to content

Commit

Permalink
Merge pull request #172 from xylusthemes/added_upgrade_to_pro_link
Browse files Browse the repository at this point in the history
added upgrade to pro link in plugin lists
  • Loading branch information
support-xylusthemes authored Jan 9, 2025
2 parents d687496 + a5e0315 commit a92d5f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions languages/wp-event-aggregator.pot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 Xylus Themes
# Copyright (C) 2025 Xylus Themes
# This file is distributed under the GPL-2.0+.
msgid ""
msgstr ""
Expand All @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-11-30T07:58:27+00:00\n"
"POT-Creation-Date: 2025-01-09T07:01:11+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: wp-event-aggregator\n"
Expand Down Expand Up @@ -85,6 +85,7 @@ msgstr ""
#: includes/class-wp-event-aggregator-admin.php:68
#: templates/admin/admin-sidebar.php:16
#: templates/admin/admin-sidebar.php:19
#: wp-event-aggregator.php:242
msgid "Upgrade to Pro"
msgstr ""

Expand Down
10 changes: 9 additions & 1 deletion wp-event-aggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,15 @@ public function wpea_setting_doc_links ( $links ) {
esc_html__( 'Docs', 'wp-event-aggregator' )
),
);
return array_merge( $links, $wpea_setting_doc_link );
$upgrade_to_pro = array();
if( !wpea_is_pro() ){
$upgrade_to_pro = array( 'wpea-event-pro-link' => sprintf(
'<a href="%s" target="_blank" style="color:#1da867;font-weight: 900;">%s</a>',
esc_url( 'https://xylusthemes.com/plugins/wp-event-aggregator/' ),
esc_html__( 'Upgrade to Pro', 'wp-event-aggregator' )
) ) ;
}
return array_merge( $links, $wpea_setting_doc_link, $upgrade_to_pro );
}

/**
Expand Down

0 comments on commit a92d5f2

Please sign in to comment.