Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Commits
ba7fcb4b
Commit
ba7fcb4b
authored
1 year ago
by
Andrzej Misiewicz
Browse files
Options
Downloads
Patches
Plain Diff
feat: add upgrade_to_pro_url property
parent
f8b5de7c
No related branches found
No related tags found
1 merge request
!35
feat: add upgrade_to_pro_url property
Pipeline
#257675
passed with stages
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/AbstractPlugin.php
+14
-0
14 additions, 0 deletions
src/Plugin/AbstractPlugin.php
with
14 additions
and
0 deletions
src/Plugin/AbstractPlugin.php
+
14
−
0
View file @
ba7fcb4b
...
...
@@ -56,6 +56,13 @@ abstract class AbstractPlugin extends SlimPlugin {
*/
protected
$support_url
;
/**
* Upgrade to pro URL.
*
* @var string
*/
protected
$upgrade_to_pro_url
;
/**
* AbstractPlugin constructor.
*
...
...
@@ -216,6 +223,13 @@ abstract class AbstractPlugin extends SlimPlugin {
$links
=
array_merge
(
$plugin_links
,
$links
);
}
if
(
$this
->
upgrade_to_pro_url
)
{
$plugin_links
=
[
'<a href="'
.
$this
->
upgrade_to_pro_url
.
'">'
.
__
(
'Upgrade to PRO'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
];
$links
=
array_merge
(
$plugin_links
,
$links
);
}
return
$links
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment