From: David Thompson Date: Thu, 30 Oct 2014 20:59:18 +0000 (-0400) Subject: Add benefits page. X-Git-Tag: v0.1~38 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3346ef47f6caf64fc43911eebb3a8c19607b71bd;p=org.fsf.memberdashboard.git 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. --- 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 +