-
New Feature
-
Resolution: Fixed
-
Trivial
-
1.5
-
None
-
All
-
MOODLE_15_STABLE
-
MOODLE_18_STABLE
Hi Martin,
I posted the code to add a paypal icon for the category page and the front page listings of courses in another bug a while back, so let me know if you want this code again. Actually, I'm getting very tired of all the little icons, and I think I'll get rid of all of them on those pages except for the info icon. Partly because I'm stymied as to what to put there if a course has both a cost and a key. But also because in 1.5 I'm going for a more streamlined look and have even deleted all the icons from the blocks too.
Anyway, at the least, please add this code at about line 45 or so to course info.php. It brings up the PayPal icon, the requirespayment string, the currency and the course cost and looks very nice.
if ($course->cost) {
$strrequirespayment = get_string(requirespayment);
echo <p><font size=\1\><img align=\middle\ alt=
height=\23\ width=\37\ border=\0\ src=\$CFG->pixpath/i/paypal.gif\ /></a>?$strrequirespayment: $CFG->enrol_currency $CFG->enrol_cost</font></p>;
I've attached the gif again here. Oh, and by the way, somewhere along the way you duplicated the requirespayment string, so you also have a paymentrequired string. Not sure if you meant to do that, but just thought I would mention it if you ever spend an exciting day cleaning up code.
- blocks
-
MDL-7534 PayPal plugin cleanup META
-
- Closed
-