Commit | Line | Data |
---|---|---|
c6db3376 DT |
1 | <?php |
2 | /** | |
3 | * FSF Member Dashboard | |
4 | * Copyright © 2014 Free Software Foundation, Inc. | |
5 | * | |
6 | * This file is a part of FSF Member Dashboard. | |
7 | * | |
8 | * FSF Member Dashboard is free software; you can copy, modify, and | |
9 | * distribute it under the terms of the GNU Affero General Public | |
10 | * License Version 3, 19 November 2007 and the CiviCRM Licensing | |
11 | * Exception. | |
12 | * | |
13 | * FSF Member Dashboard is distributed in the hope that it will be | |
14 | * useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |
15 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * Affero General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with FSF Member Dashboard. If not, see | |
20 | * <http://www.gnu.org/licenses/>. | |
21 | */ | |
22 | ||
23 | require_once 'CRM/Core/Page.php'; | |
24 | ||
25 | class CRM_Memberdashboard_Page_Info extends CRM_Core_Page { | |
26 | function run() { | |
27 | CRM_Utils_System::setTitle('My Info'); | |
879cb756 DT |
28 | |
29 | $profile_id = civicrm_api3('setting', 'getvalue', array( | |
30 | 'name' => 'memberdashboard_info_profile_id', | |
31 | 'group' => 'Member Dashboard Preferences' | |
32 | )); | |
33 | ||
34 | $resources = CRM_Core_Resources::singleton(); | |
35 | $resources->addScriptFile('org.fsf.memberdashboard', | |
36 | 'assets/js/underscore.js'); | |
37 | $resources->addScriptFile('org.fsf.memberdashboard', | |
38 | 'assets/js/member-info.js'); | |
39 | $resources->addScript("var memberDashboard = { profileId: $profile_id };"); | |
c6db3376 DT |
40 | |
41 | parent::run(); | |
42 | } | |
43 | } |