From: David Thompson Date: Thu, 2 Oct 2014 14:32:53 +0000 (-0400) Subject: Add info page boilerplate. X-Git-Tag: v0.1~53 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c6db3376429d5c302e52340d96cd6027415a828b;p=org.fsf.memberdashboard.git Add info page boilerplate. * CRM/Memberdashboard/Page/Info.php: New file. * templates/CRM/Memberdashboard/Page/Info.tpl: New file. * templates/CRM/Memberdashboard/Page/MemberDashboard.tpl: Add link. * xml/Menu/memberdashboard.xml (): Add item for info page. --- diff --git a/CRM/Memberdashboard/Page/Info.php b/CRM/Memberdashboard/Page/Info.php new file mode 100644 index 0000000..6c72096 --- /dev/null +++ b/CRM/Memberdashboard/Page/Info.php @@ -0,0 +1,31 @@ +. + */ + +require_once 'CRM/Core/Page.php'; + +class CRM_Memberdashboard_Page_Info extends CRM_Core_Page { + function run() { + CRM_Utils_System::setTitle('My Info'); + + parent::run(); + } +} diff --git a/templates/CRM/Memberdashboard/Page/Info.tpl b/templates/CRM/Memberdashboard/Page/Info.tpl new file mode 100644 index 0000000..b5dde90 --- /dev/null +++ b/templates/CRM/Memberdashboard/Page/Info.tpl @@ -0,0 +1,22 @@ +{* + FSF Member Dashboard + Copyright © 2014 Free Software Foundation, Inc. + + This file is a part of FSF Member Dashboard. + + FSF Member Dashboard is free software: you can redistribute it + and/or modify it under the terms of the GNU Affero General Public + License as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + + FSF Member Dashboard is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with FSF Member Dashboard. If not, see + . +*} + +

Contact info goes here

diff --git a/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl b/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl index 491dfae..63302b0 100644 --- a/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl +++ b/templates/CRM/Memberdashboard/Page/MemberDashboard.tpl @@ -19,7 +19,18 @@ . *} -Go to Communications + {include file="CRM/Memberdashboard/Page/DashboardElement.tpl" element=$dashboardElements.CiviMember } diff --git a/xml/Menu/memberdashboard.xml b/xml/Menu/memberdashboard.xml index e6b3b0b..8792b7c 100644 --- a/xml/Menu/memberdashboard.xml +++ b/xml/Menu/memberdashboard.xml @@ -12,4 +12,10 @@ MemberDashboard access CiviCRM + + civicrm/member-dashboard/info + CRM_Memberdashboard_Page_Info + MemberDashboard + access CiviCRM +