Add info page boilerplate.
authorDavid Thompson <davet@gnu.org>
Thu, 2 Oct 2014 14:32:53 +0000 (10:32 -0400)
committerDavid Thompson <davet@gnu.org>
Thu, 2 Oct 2014 14:32:53 +0000 (10:32 -0400)
* 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 (<menu>): Add item for info page.

CRM/Memberdashboard/Page/Info.php [new file with mode: 0644]
templates/CRM/Memberdashboard/Page/Info.tpl [new file with mode: 0644]
templates/CRM/Memberdashboard/Page/MemberDashboard.tpl
xml/Menu/memberdashboard.xml

diff --git a/CRM/Memberdashboard/Page/Info.php b/CRM/Memberdashboard/Page/Info.php
new file mode 100644 (file)
index 0000000..6c72096
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+/**
+ * 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 copy, modify, and
+ * distribute it under the terms of the GNU Affero General Public
+ * License Version 3, 19 November 2007 and the CiviCRM Licensing
+ * Exception.
+ *
+ * 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
+ * Affero 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
+ * <http://www.gnu.org/licenses/>.
+ */
+
+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 (file)
index 0000000..b5dde90
--- /dev/null
@@ -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
+  <http://www.gnu.org/licenses/>.
+*}
+
+<h3>Contact info goes here</h3>
index 491dfaea65e0917935d1c70702c4dc93535d36ea..63302b06890667370748866905cb07cbba771ace 100644 (file)
   <http://www.gnu.org/licenses/>.
 *}
 
-<a href="{crmURL p='civicrm/member-dashboard/communications'}">Go to Communications</a>
+<ul>
+  <li>
+    <a href="{crmURL p='civicrm/member-dashboard/communications'}">
+      Go to Communications
+    </a>
+  </li>
+  <li>
+    <a href="{crmURL p='civicrm/member-dashboard/info'}">
+      Go to Info
+    </a>
+  </li>
+</ul>
 
 {include file="CRM/Memberdashboard/Page/DashboardElement.tpl"
          element=$dashboardElements.CiviMember }
index e6b3b0b8070dd65617696a29b372ce97ef6bb6fe..8792b7c342c16e60296a0ab893aa26f917758422 100644 (file)
     <title>MemberDashboard</title>
     <access_arguments>access CiviCRM</access_arguments>
   </item>
+  <item>
+    <path>civicrm/member-dashboard/info</path>
+    <page_callback>CRM_Memberdashboard_Page_Info</page_callback>
+    <title>MemberDashboard</title>
+    <access_arguments>access CiviCRM</access_arguments>
+  </item>
 </menu>