]> git.mxchange.org Git - friendica.git/blob - view/de/profile_advanced.php
Merge branch 'master' of git://github.com/friendika/friendika
[friendica.git] / view / de / profile_advanced.php
1 <?php
2
3 $o .= '';
4
5 $o .= <<< EOT
6
7 <h2>Profile</h2>
8
9
10 EOT;
11
12 if($a->profile['name']) {
13 $o .= <<< EOT
14 <div id="advanced-profile-name-wrapper" >
15 <div id="advanced-profile-name-text">Full Name:</div>
16 <div id="advanced-profile-name">{$a->profile['name']}</div>
17 </div>
18 <div id="advanced-profile-name-end"></div>
19 EOT;
20 }
21
22 if($a->profile['gender']) {
23 $o .= <<< EOT
24 <div id="advanced-profile-gender-wrapper" >
25 <div id="advanced-profile-gender-text">Gender:</div>
26 <div id="advanced-profile-gender">{$a->profile['gender']}</div>
27 </div>
28 <div id="advanced-profile-gender-end"></div>
29 EOT;
30 }
31
32 if(($a->profile['dob']) && ($a->profile['dob'] != '0000-00-00')) {
33 $o .= <<< EOT
34 <div id="advanced-profile-dob-wrapper" >
35 <div id="advanced-profile-dob-text">Birthday:</div>
36 EOT;
37
38 // If no year, add an arbitrary one so just we can parse the month and day.
39
40 $o .= '<div id="advanced-profile-dob">' 
41         . ((intval($a->profile['dob'])) 
42                 ? day_translate(datetime_convert('UTC',date_default_timezone_get(),$a->profile['dob'],'j F, Y'))
43                 : day_translate(datetime_convert('UTC',date_default_timezone_get(),'2001-' . substr($a->profile['dob'],6),'j F'))) 
44         . "</div>\r\n</div>";
45
46 $o .= '<div id="advanced-profile-dob-end"></div>';
47
48 }
49
50 if($age = age($a->profile['dob'],$a->profile['timezone'],'')) {
51 $o .= <<< EOT
52 <div id="advanced-profile-age-wrapper" >
53 <div id="advanced-profile-age-text">Age:</div>
54 <div id="advanced-profile-age">$age</div>
55 </div>
56 <div id="advanced-profile-age-end"></div>
57 EOT;
58 }
59
60 if($a->profile['marital']) {
61 $o .= <<< EOT
62 <div id="advanced-profile-marital-wrapper" >
63 <div id="advanced-profile-marital-text"><span class="heart">&hearts;</span> Status:</div>
64 <div id="advanced-profile-marital">{$a->profile['marital']}</div>
65 EOT;
66
67 if($a->profile['with'])
68         $o .= "<div id=\"advanced-profile-with\">({$a->profile['with']})</div>";
69 $o .= <<< EOT
70 </div>
71 <div id="advanced-profile-marital-end"></div>
72 EOT;
73 }
74
75 if($a->profile['sexual']) {
76 $o .= <<< EOT
77 <div id="advanced-profile-sexual-wrapper" >
78 <div id="advanced-profile-sexual-text">Sexual Preference:</div>
79 <div id="advanced-profile-sexual">{$a->profile['sexual']}</div>
80 </div>
81 <div id="advanced-profile-sexual-end"></div>
82 EOT;
83 }
84
85 if($a->profile['homepage']) {
86         $homepage = linkify($a->profile['homepage']);
87 $o .= <<< EOT
88 <div id="advanced-profile-homepage-wrapper" >
89 <div id="advanced-profile-homepage-text">Homepage:</div>
90 <div id="advanced-profile-homepage">$homepage</div>
91 </div>
92 <div id="advanced-profile-homepage-end"></div>
93 EOT;
94 }
95
96 if($a->profile['politic']) {
97 $o .= <<< EOT
98 <div id="advanced-profile-politic-wrapper" >
99 <div id="advanced-profile-politic-text">Political Views:</div>
100 <div id="advanced-profile-politic">{$a->profile['politic']}</div>
101 </div>
102 <div id="advanced-profile-politic-end"></div>
103 EOT;
104 }
105
106 if($a->profile['religion']) {
107 $o .= <<< EOT
108 <div id="advanced-profile-religion-wrapper" >
109 <div id="advanced-profile-religion-text">Religion:</div>
110 <div id="advanced-profile-religion">{$a->profile['religion']}</div>
111 </div>
112 <div id="advanced-profile-religion-end"></div>
113 EOT;
114 }
115
116 if($txt = bbcode($a->profile['about'])) {
117 $o .= <<< EOT
118 <div id="advanced-profile-about-wrapper" >
119 <div id="advanced-profile-about-text">About:</div>
120 <br />
121 <div id="advanced-profile-about">$txt</div>
122 </div>
123 <div id="advanced-profile-about-end"></div>
124 EOT;
125 }
126
127 if($txt = bbcode($a->profile['interest'])) {
128 $o .= <<< EOT
129 <div id="advanced-profile-interest-wrapper" >
130 <div id="advanced-profile-interest-text">Hobbies/Interests:</div>
131 <br />
132 <div id="advanced-profile-interest">$txt</div>
133 </div>
134 <div id="advanced-profile-interest-end"></div>
135 EOT;
136 }
137
138 if($txt = bbcode($a->profile['contact'])) {
139 $o .= <<< EOT
140 <div id="advanced-profile-contact-wrapper" >
141 <div id="advanced-profile-contact-text">Contact information and Social Networks:</div>
142 <br />
143 <div id="advanced-profile-contact">$txt</div>
144 </div>
145 <div id="advanced-profile-contact-end"></div>
146 EOT;
147 }
148
149 if($txt = bbcode($a->profile['music'])) {
150 $o .= <<< EOT
151 <div id="advanced-profile-music-wrapper" >
152 <div id="advanced-profile-music-text">Musical interests:</div>
153 <br />
154 <div id="advanced-profile-music">$txt</div>
155 </div>
156 <div id="advanced-profile-music-end"></div>
157 EOT;
158 }
159
160 if($txt = bbcode($a->profile['book'])) {
161 $o .= <<< EOT
162 <div id="advanced-profile-book-wrapper" >
163 <div id="advanced-profile-book-text">Books, literature:</div>
164 <br />
165 <div id="advanced-profile-book">$txt</div>
166 </div>
167 <div id="advanced-profile-book-end"></div>
168 EOT;
169 }
170
171 if($txt = bbcode($a->profile['tv'])) {
172 $o .= <<< EOT
173 <div id="advanced-profile-tv-wrapper" >
174 <div id="advanced-profile-tv-text">Television:</div>
175 <br />
176 <div id="advanced-profile-tv">$txt</div>
177 </div>
178 <div id="advanced-profile-tv-end"></div>
179 EOT;
180 }
181
182 if($txt = bbcode($a->profile['film'])) {
183 $o .= <<< EOT
184 <div id="advanced-profile-film-wrapper" >
185 <div id="advanced-profile-film-text">Film/dance/culture/entertainment:</div>
186 <br />
187 <div id="advanced-profile-film">$txt</div>
188 </div>
189 <div id="advanced-profile-film-end"></div>
190 EOT;
191 }
192
193 if($txt = bbcode($a->profile['romance'])) {
194 $o .= <<< EOT
195 <div id="advanced-profile-romance-wrapper" >
196 <div id="advanced-profile-romance-text">Love/romance:</div>
197 <br />
198 <div id="advanced-profile-romance">$txt</div>
199 </div>
200 <div id="advanced-profile-romance-end"></div>
201 EOT;
202 }
203
204 if($txt = bbcode($a->profile['work'])) {
205 $o .= <<< EOT
206 <div id="advanced-profile-work-wrapper" >
207 <div id="advanced-profile-work-text">Work/employment:</div>
208 <br />
209 <div id="advanced-profile-work">$txt</div>
210 </div>
211 <div id="advanced-profile-work-end"></div>
212 EOT;
213 }
214
215 if($txt = bbcode($a->profile['education'])) {
216 $o .= <<< EOT
217 <div id="advanced-profile-education-wrapper" >
218 <div id="advanced-profile-education-text">School/education:</div>
219 <br />
220 <div id="advanced-profile-education">$txt</div>
221 </div>
222 <div id="advanced-profile-education-end"></div>
223 EOT;
224 }
225
226