| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
/* Profile info is of the format: |
|---|
| 6 |
|
|---|
| 7 |
$data['profile:details'][] = array( |
|---|
| 8 |
Description, |
|---|
| 9 |
Short / unique internal name, |
|---|
| 10 |
Type of field, |
|---|
| 11 |
User instructions for entering data |
|---|
| 12 |
) |
|---|
| 13 |
e.g. |
|---|
| 14 |
$data['profile:details'][] = array(__gettext("Interests"),"interests","keywords",__gettext("Separated with commas.")); |
|---|
| 15 |
|
|---|
| 16 |
Additions to this data structure will input/output a corresponding FOAF field |
|---|
| 17 |
|
|---|
| 18 |
$data['foaf:profile'][] = array( |
|---|
| 19 |
Short / unique internal name, |
|---|
| 20 |
Corresponding FOAF schema field |
|---|
| 21 |
"collated" or "individual" - whether multiple data elements (eg interests) |
|---|
| 22 |
should be in separate tags ("individual") or |
|---|
| 23 |
in the same tag separated by commas |
|---|
| 24 |
(collated = default) |
|---|
| 25 |
"resource" or "enclosed" - whether the data is an rdf:resource="" attribute |
|---|
| 26 |
or enclosed within the tag |
|---|
| 27 |
(resource = default) |
|---|
| 28 |
) |
|---|
| 29 |
e.g. |
|---|
| 30 |
$data['foaf:profile'][] = array("interests","foaf:interest"); |
|---|
| 31 |
|
|---|
| 32 |
Also present is $data['vcard:profile:adr'][] for VCard ADR elements within the FOAF file |
|---|
| 33 |
e.g. |
|---|
| 34 |
$data['vcard:profile:adr'][] = array("streetaddress","vCard:Street","collated"); |
|---|
| 35 |
*/ |
|---|
| 36 |
|
|---|
| 37 |
$data['profile:details'][] = array(__gettext("Who am I?"),"biography","longtext",__gettext("A short introduction for you.")); |
|---|
| 38 |
$data['foaf:profile'][] = array("biography","bio:olb","collated","enclosed"); |
|---|
| 39 |
|
|---|
| 40 |
$data['profile:details'][] = array(__gettext("Brief description"),"minibio","text",__gettext("For use in your sidebar profile.")); |
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
$data['profile:details'][] = array(__gettext("Street address"),"streetaddress","text"); |
|---|
| 44 |
$data['vcard:profile:adr'][] = array("streetaddress","vCard:Street","collated","enclosed"); |
|---|
| 45 |
|
|---|
| 46 |
$data['profile:details'][] = array(__gettext("Town"),"town","keywords"); |
|---|
| 47 |
$data['vcard:profile:adr'][] = array("town","vCard:Locality","collated","enclosed"); |
|---|
| 48 |
|
|---|
| 49 |
$data['profile:details'][] = array(__gettext("State / Region"),"state","keywords"); |
|---|
| 50 |
$data['vcard:profile:adr'][] = array("state","vCard:Region","collated","enclosed"); |
|---|
| 51 |
|
|---|
| 52 |
$data['profile:details'][] = array(__gettext("Postal code"),"postcode","text"); |
|---|
| 53 |
$data['vcard:profile:adr'][] = array("postcode","vCard:Pcode","collated","enclosed"); |
|---|
| 54 |
|
|---|
| 55 |
$data['profile:details'][] = array(__gettext("Country"),"country","keywords"); |
|---|
| 56 |
$data['vcard:profile:adr'][] = array("country","vCard:Country","collated","enclosed"); |
|---|
| 57 |
|
|---|
| 58 |
$data['profile:details'][] = array(__gettext("Email address"),"emailaddress","email"); |
|---|
| 59 |
|
|---|
| 60 |
$data['profile:details'][] = array(__gettext("Work telephone"),"workphone","text"); |
|---|
| 61 |
$data['foaf:profile'][] = array("workphone","foaf:phone","individual","resource"); |
|---|
| 62 |
|
|---|
| 63 |
$data['profile:details'][] = array(__gettext("Home telephone"),"homephone","text"); |
|---|
| 64 |
$data['foaf:profile'][] = array("homephone","foaf:phone","individual","resource"); |
|---|
| 65 |
|
|---|
| 66 |
$data['profile:details'][] = array(__gettext("Mobile telephone"),"mobphone","text"); |
|---|
| 67 |
$data['foaf:profile'][] = array("mobphone","foaf:phone","individual","resource"); |
|---|
| 68 |
|
|---|
| 69 |
$data['profile:details'][] = array(__gettext("Official website address"),"workweb","web",__gettext("The URL to your official website, if you have one.")); |
|---|
| 70 |
$data['foaf:profile'][] = array("workweb","foaf:workplaceHomepage","individual","resource"); |
|---|
| 71 |
|
|---|
| 72 |
$data['profile:details'][] = array(__gettext("Personal website address"),"personalweb","web",__gettext("The URL to your personal website, if you have one.")); |
|---|
| 73 |
$data['foaf:profile'][] = array("personalweb","foaf:homepage","individual","resource"); |
|---|
| 74 |
|
|---|
| 75 |
$data['profile:details'][] = array(__gettext("ICQ number"),"icq","icq"); |
|---|
| 76 |
$data['foaf:profile'][] = array("icq","foaf:icqChatID","individual","enclosed"); |
|---|
| 77 |
|
|---|
| 78 |
$data['profile:details'][] = array(__gettext("MSN chat"),"msn","msn"); |
|---|
| 79 |
$data['foaf:profile'][] = array("msn","foaf:msnChatID","individual","enclosed"); |
|---|
| 80 |
|
|---|
| 81 |
$data['profile:details'][] = array(__gettext("AIM screenname"),"aim","aim"); |
|---|
| 82 |
$data['foaf:profile'][] = array("aim","foaf:aimChatID","individual","enclosed"); |
|---|
| 83 |
|
|---|
| 84 |
$data['profile:details'][] = array(__gettext("Skype username"),"skype","skype"); |
|---|
| 85 |
|
|---|
| 86 |
$data['profile:details'][] = array(__gettext("Jabber username"),"jabber","text"); |
|---|
| 87 |
$data['foaf:profile'][] = array("jabber","foaf:jabberChatID","individual","enclosed"); |
|---|
| 88 |
|
|---|
| 89 |
$data['profile:details'][] = array(__gettext("Interests"),"interests","keywords",__gettext("Separated with commas.")); |
|---|
| 90 |
$data['foaf:profile'][] = array("interests","foaf:interest","individual","resource"); |
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 |
$data['profile:details'][] = array(__gettext("Likes"),"likes","keywords",__gettext("Separated with commas.")); |
|---|
| 94 |
$data['profile:details'][] = array(__gettext("Dislikes"),"dislikes","keywords",__gettext("Separated with commas.")); |
|---|
| 95 |
$data['profile:details'][] = array(__gettext("Occupation"),"occupation","text"); |
|---|
| 96 |
$data['profile:details'][] = array(__gettext("Industry"),"industry","keywords"); |
|---|
| 97 |
|
|---|
| 98 |
$data['profile:details'][] = array(__gettext("Company / Institution"),"organisation","text"); |
|---|
| 99 |
$data['foaf:profile'][] = array("organisation","foaf:organization","collated","enclosed"); |
|---|
| 100 |
|
|---|
| 101 |
$data['profile:details'][] = array(__gettext("Job Title"),"jobtitle","text"); |
|---|
| 102 |
$data['profile:details'][] = array(__gettext("Job Description"),"jobdescription","text"); |
|---|
| 103 |
$data['profile:details'][] = array(__gettext("I would like to ..."),"goals","keywords",__gettext("Separated with commas.")); |
|---|
| 104 |
$data['profile:details'][] = array(__gettext("Career Goals"),"careergoals","longtext",__gettext("Freeform: let colleagues and potential employers know what you'd like to get out of your career.")); |
|---|
| 105 |
$data['profile:details'][] = array(__gettext("Level of Education"),"educationlevel","text"); |
|---|
| 106 |
$data['profile:details'][] = array(__gettext("High School"),"highschool","text"); |
|---|
| 107 |
$data['profile:details'][] = array(__gettext("University / College"),"university","text"); |
|---|
| 108 |
$data['profile:details'][] = array(__gettext("Degree"),"universitydegree","text"); |
|---|
| 109 |
$data['profile:details'][] = array(__gettext("Main Skills"),"skills","keywords",__gettext("Separated with commas.")); |
|---|
| 110 |
|
|---|
| 111 |
?> |
|---|