Skip to content

Commit

Permalink
Improve upgrade link
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jul 8, 2024
1 parent 82a440e commit 87efc2c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Modules/About_us.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,24 @@ public function add_submenu_pages() {
add_submenu_page(
$this->about_data['location'],
$this->about_data['upgrade_text'],
$this->about_data['upgrade_text'],
'<span class="tsdk-upg-menu-item">' . $this->about_data['upgrade_text'] . '</span>',
'manage_options',
$this->about_data['upgrade_link'],
'',
101
);
add_action( 'admin_footer', function () {
?>
<style>
.tsdk-upg-menu-item {
color: #009528;
}
.tsdk-upg-menu-item:hover {
color: #008a20;
}
</style>
<?php
} );
}

/**
Expand Down

0 comments on commit 87efc2c

Please sign in to comment.