Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f653cfac
authored
2011-03-10 20:56:24 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated payhistory page
1 parent
3427f5d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
com/UserManager/views/edit_user_payhistory.php
com/UserManager/views/edit_user_payhistory.php
View file @
f653cfa
...
...
@@ -131,8 +131,43 @@ use WP_User;
$row_class
=
(
$i
%
2
)
?
"odd"
:
""
;
if
(
$item
[
'post_id'
]
>
0
)
{
$post
=
get_post
(
$item
[
'post_id'
]);
$description
=
$post
->
post_title
;
$post
=
get_post
(
$item
[
'post_id'
]);
if
(
$post
->
post_type
==
"events"
)
{
$event_term_slugs
=
array
();
$terms
=
get_the_terms
(
$item
[
'post_id'
],
'event_type'
);
if
(
!
empty
(
$terms
))
{
foreach
(
$terms
as
$types
)
{
$event_term_slugs
[
$types
->
slug
]
=
$types
->
name
;
}
}
}
if
(
isset
(
$event_term_slugs
[
'webinar'
])
)
{
$description
=
$post
->
post_title
.
" | "
.
date
(
"M d, Y"
,
get_post_meta
(
$item
[
'post_id'
],
'event_date'
,
true
));
}
else
{
$description
=
$post
->
post_title
.
" | "
.
get_post_meta
(
$item
[
'post_id'
],
'location'
,
true
);
}
if
(
count
(
$item
[
'discounts'
])
>
0
)
{
$item
[
'discount_amount'
]
=
""
;
$discount_text
=
"<br /><span>"
;
for
(
$i
=
0
;
$i
<
count
(
$item
[
'discounts'
]);
$i
++
)
{
if
(
$i
>
0
)
{
$discount_text
.=
"<br />"
;
}
$discount_text
.=
"- $"
.
$item
[
'discounts'
][
$i
][
'discount'
]
.
" OFF <em>"
.
$item
[
'discounts'
][
$i
][
'discount_label'
]
.
"</em>"
;
$item
[
'discount_amount'
]
+=
$item
[
'discounts'
][
$i
][
'discount'
];
}
$discount_text
.=
"</span>"
;
$description
=
"<strong>"
.
$description
.
"</strong>"
.
$discount_text
;
}
}
else
{
$description
=
$item
[
'description'
];
}
...
...
Please
register
or
sign in
to post a comment