Display CiviMember and CiviContribute dashboard elements.
authorDavid Thompson <davet@gnu.org>
Wed, 1 Oct 2014 14:14:31 +0000 (10:14 -0400)
committerDavid Thompson <davet@gnu.org>
Wed, 1 Oct 2014 14:14:31 +0000 (10:14 -0400)
commit2fabfc160c76fd639806e369000bd8c1a0e1da85
treeb0c06a6bf1d0b0270812edfb1b25d00aa4f87c3e
parentc0c13cfa0fddacef891a8150717e8507db6e06b2
Display CiviMember and CiviContribute dashboard elements.

* CRM/Memberdashboard/Page/MemberDashboard.php (__construct): Assign the
  result of 'loadContact'.
  (loadContact): Return the contact rather than assigning it to a
  variable.
  (buildDashboard): Return an array with CiviMember and CiviContribute
  dashboard elements.
  (pageTitle): New method.
  (run): Use 'pageTitle' method.  Assign dashboard elements for rendering.
* templates/CRM/Memberdashboard/Page/DashboardElement.tpl: New file.
* templates/CRM/Memberdashboard/Page/MemberDashboard.tpl: Render
  CiviMember and CiviContribute elements.
CRM/Memberdashboard/Page/MemberDashboard.php
templates/CRM/Memberdashboard/Page/DashboardElement.tpl [new file with mode: 0644]
templates/CRM/Memberdashboard/Page/MemberDashboard.tpl