Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Donations
Commits
e5a9deb7
Commit
e5a9deb7
authored
Feb 03, 2021
by
Michael Iseard
Browse files
Clean up
parent
a3109a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Front/Front.php
View file @
e5a9deb7
...
...
@@ -294,7 +294,7 @@ class Front {
$campaigns
=
new
Campaigns
();
if
(
!
empty
(
$atts
[
'campaign_id'
]
)
)
{
$campaign
=
$campaigns
->
get_campaign
(
$atts
[
'campaign_id'
]
);
$campaign
[
'
campaign_
total'
]
=
$campaigns
::
get_campaign_total
(
$atts
[
'campaign_id'
]);
$campaign
[
'total'
]
=
$campaigns
::
get_campaign_total
(
$atts
[
'campaign_id'
]);
}
// Bail if no campaign found
...
...
@@ -303,7 +303,7 @@ class Front {
}
// Add campaign config to atts
$atts
=
wp_parse_args
(
$campaign
,
$atts
)
;
$atts
[
'campaign'
]
=
$campaign
;
// Generate markup.
$button
=
new
KudosButton
(
$atts
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment