From 3346ef47f6caf64fc43911eebb3a8c19607b71bd Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 30 Oct 2014 16:59:18 -0400 Subject: [PATCH] Add benefits page. * CRM/Memberdashboard/Page/Benefits.php: New file. * templates/CRM/Memberdashboard/Page/Benefits.tpl: New file. * templates/CRM/Memberdashboard/Page/MemberDashboard.tpl: Add link to benefits page. * xml/Menu/memberdashboard.xml: Add route. --- CRM/Memberdashboard/Page/Benefits.php | 13 ++++++++ .../CRM/Memberdashboard/Page/Benefits.tpl | 30 +++++++++++++++++++ .../Memberdashboard/Page/MemberDashboard.tpl | 5 ++++ xml/Menu/memberdashboard.xml | 6 ++++ 4 files changed, 54 insertions(+) create mode 100644 CRM/Memberdashboard/Page/Benefits.php create mode 100644 templates/CRM/Memberdashboard/Page/Benefits.tpl diff --git a/CRM/Memberdashboard/Page/Benefits.php b/CRM/Memberdashboard/Page/Benefits.php new file mode 100644 index 0000000..bd27285 --- /dev/null +++ b/CRM/Memberdashboard/Page/Benefits.php @@ -0,0 +1,13 @@ +assign('contact', $this->contact); + + parent::run(); + } +} diff --git a/templates/CRM/Memberdashboard/Page/Benefits.tpl b/templates/CRM/Memberdashboard/Page/Benefits.tpl new file mode 100644 index 0000000..b7f47b8 --- /dev/null +++ b/templates/CRM/Memberdashboard/Page/Benefits.tpl @@ -0,0 +1,30 @@ +
Jabber/XMPP
+ +Your Jabber/XMPP account is: writeme@member.fsf.org + +
Shop Discount
+ +

+ Enjoy 20% off all merchandise at the + FSF shop + using promotional code ASSOC +

+ +
LibrePlanet
+ +

+ Associate members get gratis admission to LibrePlanet, the FSF's + annual conference. +

+ +
Email Forwarding
+ +

+ TODO +

+ +
Member Forums
+ +

+ TODO +

diff --git a/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl b/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl index 63302b0..28f56d2 100644 --- a/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl +++ b/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl @@ -30,6 +30,11 @@ Go to Info +
  • + + Go to Benefits + +
  • {include file="CRM/Memberdashboard/Page/DashboardElement.tpl" diff --git a/xml/Menu/memberdashboard.xml b/xml/Menu/memberdashboard.xml index c9e9749..7673f52 100644 --- a/xml/Menu/memberdashboard.xml +++ b/xml/Menu/memberdashboard.xml @@ -25,4 +25,10 @@ MemberDashboard access CiviCRM + + civicrm/member-dashboard/benefits + CRM_Memberdashboard_Page_Benefits + Benefits + access CiviCRM + -- 2.25.1