-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathcivimobile.header.php
47 lines (42 loc) · 2.4 KB
/
civimobile.header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
if ( CRM_Utils_Array::value( 'locale', $GLOBALS ) ) {
$civimobile_vars['language'] = $GLOBALS['locale'];
}
else {
$civimobile_vars['language'] = 'en_US';
}
$civimobile_vars['title'] = 'CiviMobile';
$config =& CRM_Core_Config::singleton();
$civimobile_vars['civicrm_resourceURL'] = $config->userFrameworkResourceURL . DIRECTORY_SEPARATOR;
$session =& CRM_Core_Session::singleton();
$civimobile_vars['loggedInContactID'] = $session->get('userID');
// extension include path
$includePath = CRM_Core_Resources::singleton()->getUrl('com.webaccessglobal.module.civimobile') . DIRECTORY_SEPARATOR;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $civimobile_vars['language'] ?>" lang="<?php print $civimobile_vars['language'] ?>" >
<head>
<title><?php print $civimobile_vars['title'];?></title>
<?php //print $civimobile_page_settings['favicon'] ?>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" >
<link rel="stylesheet" href="<?php print $includePath;?>libraries/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.css" />
<script type="text/javascript" src="<?php print $includePath; ?>libraries/jquery.mobile-1.4.5/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="<?php print $includePath; ?>libraries/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script type="text/javascript" src="<?php print $includePath; ?>js/common.js"></script>
<script type="text/javascript">
CRM.url({'back': '<?php print CRM_Utils_System::url('*path*', '*query*', true, null, false);?>', 'front': '<?php print CRM_Utils_System::url('*path*','*query*' , true, null, false);?>'});
</script>
<script type="text/javascript" src="<?php print $includePath; ?>js/events.js"></script>
<link type="text/css" rel="stylesheet" href="<?php print $includePath; ?>css/custom.css"/>
<script type="text/javascript">
// Define globally default profile ids that will be used when creating new
// records.
var defaultProfileIds = {
'ind_profile_id': <?php echo civimobile::getProfileId('Individual'); ?>,
'org_profile_id': <?php echo civimobile::getProfileId('Organization'); ?>,
'house_profile_id': <?php echo civimobile::getProfileId('Household'); ?>,
};
</script>
</head>
<body>