Skip to content

Commit

Permalink
added upgrade to pro link in plugin lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat1192 committed Nov 23, 2024
1 parent e0fe57c commit b1a54ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions import-facebook-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ public function load_textdomain() {
* @return void
*/
public function ife_setting_doc_links ( $links ) {
$upgrate_to_pro = '';
if( !ife_is_pro() ){
$upgrate_to_pro = sprintf(
'<a href="%s" target="_blank" style="color:#1da867;font-weight: 900;">%s</a>',
esc_url( 'https://xylusthemes.com/plugins/import-facebook-events/' ),
esc_html__( 'Upgrade to Pro', 'import-facebook-events' )
);
}

$ife_setting_doc_link = array(
'ife-event-setting' => sprintf(
'<a href="%s">%s</a>',
Expand All @@ -235,6 +244,7 @@ public function ife_setting_doc_links ( $links ) {
esc_url( 'https://docs.xylusthemes.com/docs/import-facebook-events/' ),
esc_html__( 'Docs', 'import-facebook-events' )
),
'ife-event-pro-link' => $upgrate_to_pro,
);
return array_merge( $links, $ife_setting_doc_link );
}
Expand Down

0 comments on commit b1a54ea

Please sign in to comment.