Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Commits
d1c9beef
Commit
d1c9beef
authored
5 years ago
by
potreb
Browse files
Options
Downloads
Patches
Plain Diff
Activation?
parent
455dd537
No related branches found
No related tags found
1 merge request
!22
Support link
Pipeline
#8180
passed with warnings
5 years ago
Stage: tools
Stage: tests
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/Plugin/AbstractPlugin.php
+11
-0
11 additions, 0 deletions
src/Plugin/AbstractPlugin.php
with
15 additions
and
0 deletions
CHANGELOG.md
+
4
−
0
View file @
d1c9beef
## [1.3.3] - 2019-09-24
### Added
-
Support URL
## [1.3.2] - 2019-09-18
## [1.3.2] - 2019-09-18
### Fixed
### Fixed
-
Forgotten classes
-
Forgotten classes
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/AbstractPlugin.php
+
11
−
0
View file @
d1c9beef
...
@@ -30,6 +30,13 @@ abstract class AbstractPlugin implements \WPDesk_Translable {
...
@@ -30,6 +30,13 @@ abstract class AbstractPlugin implements \WPDesk_Translable {
/** @var string */
/** @var string */
protected
$settings_url
;
protected
$settings_url
;
/**
* Support URL.
*
* @var string
*/
protected
$support_url
;
/**
/**
* AbstractPlugin constructor.
* AbstractPlugin constructor.
*
*
...
@@ -130,6 +137,10 @@ abstract class AbstractPlugin implements \WPDesk_Translable {
...
@@ -130,6 +137,10 @@ abstract class AbstractPlugin implements \WPDesk_Translable {
public
function
links_filter
(
$links
)
{
public
function
links_filter
(
$links
)
{
$support_link
=
get_locale
()
===
'pl_PL'
?
'https://www.wpdesk.pl/support/'
:
'https://www.wpdesk.net/support'
;
$support_link
=
get_locale
()
===
'pl_PL'
?
'https://www.wpdesk.pl/support/'
:
'https://www.wpdesk.net/support'
;
if
(
$this
->
support_url
)
{
$support_link
=
$this
->
support_url
;
}
$plugin_links
=
[
$plugin_links
=
[
'<a href="'
.
$support_link
.
'">'
.
__
(
'Support'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
'<a href="'
.
$support_link
.
'">'
.
__
(
'Support'
,
$this
->
get_text_domain
()
)
.
'</a>'
,
];
];
...
...
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