blob: 6fadad4cc0a1602b0eac1c749746e5b5bb92e756 (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
<div class="hidden-medium-up">
<?= Avatar::getAvatar($current_user->user_id)->getImageTag(Avatar::NORMAL) ?>
</div>
<section class="contentbox">
<header>
<h1>
<?= _('Allgemeine Informationen') ?>
</h1>
</header>
<section>
<dl>
<? if ($public_email): ?>
<dt><?= _('E-Mail') ?>:</dt>
<dd>
<a href="mailto:<?= htmlReady($public_email) ?>">
<?= htmlReady($public_email) ?>
</a>
</dd>
<? endif; ?>
<? if ($private_nr) : ?>
<dt><?= _('Telefon (privat)') ?>:</dt>
<dd><?= htmlReady($private_nr) ?></dd>
<? endif ?>
<? if ($private_cell) : ?>
<dt><?= _('Mobiltelefon') ?>:</dt>
<dd><?= htmlReady($private_cell) ?></dd>
<? endif ?>
<? if ($privadr) : ?>
<dt><?= _('Adresse (privat)') ?>:</dt>
<dd><?= htmlReady($privadr) ?></dd>
<? endif ?>
<? if ($homepage) : ?>
<dt><?= _('Homepage') ?>:</dt>
<dd><?= formatLinks($homepage) ?></dd>
<? endif ?>
<? if (count($study_institutes) > 0): ?>
<dt><?= _('Wo ich studiere') ?>:</dt>
<dd>
<ul>
<? foreach ($study_institutes as $inst_result) : ?>
<li>
<a href="<?= $controller->link_for('institute/overview', ['auswahl' => $inst_result->institut_id]) ?>">
<?= htmlReady($inst_result->institute->name) ?>
</a>
</li>
<? endforeach ?>
</ul>
</dd>
<? endif ?>
<? if (count($institutes) > 0) : ?>
<?= $this->render_partial('profile/working_place') ?>
<? endif ?>
<? if ($current_user->user_id === $GLOBALS['user']->id) : ?>
<dt><?= _('Status') ?>:</dt>
<dd><?= htmlReady(ucfirst($current_user['perms'])) ?></dd>
<dt><?= _('Matrikelnummer') ?>:</dt>
<dd><?= htmlReady($current_user['matriculation_number']) ?></dd>
<? endif ?>
<? if (!empty($shortDatafields)) : ?>
<? foreach ($shortDatafields as $name => $entry) : ?>
<dt><?= htmlReady($name) ?>:</dt>
<dd>
<?= $entry['content'] ?>
<span class="minor"><?= $entry['visible'] ?></span>
</dd>
<? endforeach ?>
<? endif ?>
</dl>
</section>
</section>
<?= $news ?? '' ?>
<?= $dates ?? '' ?>
<?= $questionnaires ?? '' ?>
<? if (!empty($ausgabe_inhalt)) : ?>
<? foreach ($ausgabe_inhalt as $key => $inhalt) : ?>
<article class="studip">
<header>
<h1><?= htmlReady($key) ?></h1>
</header>
<section>
<?= formatReady($inhalt) ?>
</section>
</article>
<? endforeach ?>
<? endif ?>
<? if (isset($public_files)) : ?>
<?= $this->render_partial('profile/public_files') ?>
<? endif ?>
<? if ($current_user['perms'] === 'dozent' && !empty($seminare)) : ?>
<?= $this->render_partial('profile/seminare') ?>
<? endif ?>
<? if (!empty($longDatafields)) : ?>
<? foreach ($longDatafields as $name => $entry) : ?>
<article class="studip">
<header>
<h1><?= htmlReady($name . ' ' . $entry['visible']) ?></h1>
</header>
<section>
<?= $entry['content'] ?>
</section>
</article>
<? endforeach ?>
<? endif ?>
<?= $hompage_plugin ?>
<? if (!empty($categories)) : ?>
<? foreach ($categories as $cat) : ?>
<article class="studip">
<header>
<h1><?= htmlReady($cat['head'] . $cat['zusatz']) ?></h1>
</header>
<section>
<?= formatReady($cat['content']) ?>
</section>
</article>
<? endforeach ?>
<? endif; ?>
|