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

paypal icon

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.8
    • Component/s: Enrolments
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                me Chardelle Busch
                Tester:
                Nobody
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  31/Mar/07