Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-3137

paypal icon

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.8
    • 1.5
    • Enrolments
    • 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.

            skodak Petr Skoda
            me Chardelle Busch
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.