Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
woocommerce-quick-donation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wordpress
woocommerce-quick-donation
Commits
8cd3b3b2
Commit
8cd3b3b2
authored
Nov 25, 2015
by
Varun Sridharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Issue
parent
17cbd4b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
class-shortcode-handler.php
includes/class-shortcode-handler.php
+5
-4
No files found.
includes/class-shortcode-handler.php
View file @
8cd3b3b2
...
...
@@ -54,9 +54,10 @@ class WooCommerce_Quick_Donation_Shortcode {
public
function
wc_quick_donation_single_handler
(
$settings
){
$settings
=
shortcode_atts
(
array
(
'title'
=>
true
,
'content'
=>
true
,
'title'
=>
'true'
,
'content'
=>
'true'
,
'defined_amount'
=>
false
,
'id'
=>
false
,
),
$settings
);
...
...
@@ -69,11 +70,11 @@ class WooCommerce_Quick_Donation_Shortcode {
$donation_price
=
WC_QD
()
->
f
()
->
generate_price_box
(
$settings
[
'defined_amount'
]);
$donation_price
.=
WC_QD
()
->
f
()
->
generate_donation_selbox
(
false
,
'hidden'
,
$settings
[
'id'
]);
if
(
$settings
[
'title'
]){
if
(
$settings
[
'title'
]
==
'true'
){
$title
=
get_the_title
(
$settings
[
'id'
]);
}
if
(
$settings
[
'content'
]){
if
(
$settings
[
'content'
]
==
'true'
){
$content
=
get_the_excerpt
();
}
...
...
Write
Preview
Markdown
is supported
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