4 * Copyright © 2014 Free Software Foundation, Inc.
6 * This file is a part of FSF Member Dashboard.
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
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.
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/>.
23 require_once 'CRM/Core/Page.php';
25 class CRM_Memberdashboard_Page_Info
extends CRM_Core_Page
{
27 CRM_Utils_System
::setTitle('My Info');
29 $profile_id = civicrm_api3('setting', 'getvalue', array(
30 'name' => 'memberdashboard_info_profile_id',
31 'group' => 'Member Dashboard Preferences'
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 };");