Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fachschaft Website
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marian Luca Schnell
Fachschaft Website
Commits
c641a86d
Unverified
Commit
c641a86d
authored
4 years ago
by
Ben Eltschig
Browse files
Options
Downloads
Patches
Plain Diff
icons jetzt auch in index.php verwendet
parent
d2bb0df3
Branches
Branches containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Script_TaskbarIcons.php
+29
-0
29 additions, 0 deletions
Script_TaskbarIcons.php
Script_Template.php
+2
-35
2 additions, 35 deletions
Script_Template.php
css/index.css
+7
-0
7 additions, 0 deletions
css/index.css
index.php
+1
-55
1 addition, 55 deletions
index.php
with
39 additions
and
90 deletions
Script_TaskbarIcons.php
0 → 100644
+
29
−
0
View file @
c641a86d
<?php
function
generateTaskbarIcon
(
$name
=
''
,
$icon
=
''
,
$link
=
''
)
{
echo
'
<a href="'
.
$link
.
'" >
<div class="item" id="TaskbarIcon_'
.
$name
.
'" title>
'
.
generateImage
(
$name
,
$icon
)
.
'<br>
'
.
$name
.
'
</div>
</a>'
;
}
function
generateImage
(
$name
,
$icon
)
{
if
(
substr_compare
(
$icon
,
".svg"
,
-
4
)
===
0
){
return
file_get_contents
(
$icon
);
}
else
{
return
'<img src="'
.
$icon
.
'" alt="'
.
$name
.
'" >'
;
}
}
generateTaskbarIcon
(
"Fachschaft"
,
"img/muffin.svg"
,
"Fachschaft.php"
);
generateTaskbarIcon
(
"AGNES"
,
"img/zahnrad.svg"
,
"https://agnes.hu-berlin.de/lupo/rds?state=user&type=0"
);
generateTaskbarIcon
(
"Moodle"
,
"img/moodle.svg"
,
"https://moodle.hu-berlin.de"
);
generateTaskbarIcon
(
"Termine & Events"
,
"img/kalender.svg"
,
"Termine.php"
);
generateTaskbarIcon
(
"Erstis"
,
"img/ersti.svg"
,
"index.php#what_is_IMP"
);
generateTaskbarIcon
(
"Studium"
,
"img/studium.svg"
,
"Studium.php"
);
generateTaskbarIcon
(
"Freizeit"
,
"img/freizeit.svg"
,
"Freizeit.php"
);
generateTaskbarIcon
(
"IMPressum"
,
"img/info.svg"
,
"Impressum.php"
);
generateTaskbarIcon
(
"Fragen (QA)"
,
"img/fragen.svg"
,
"QA.php"
);
?>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Script_Template.php
+
2
−
35
View file @
c641a86d
...
...
@@ -14,43 +14,10 @@ function generateHeader($title='')
<link rel="stylesheet" href="css/template.css">
</head>'
;
}
function
generateTaskbarIcon
(
$name
=
''
,
$icon
=
''
,
$link
=
''
)
{
echo
'
<a href="'
.
$link
.
'" >
<div class="item" id="TaskbarIcon_'
.
$name
.
'" title>
'
.
generateImage
(
$name
,
$icon
)
.
'<br>
'
.
$name
.
'
</div>
</a>'
;
}
function
generateImage
(
$name
,
$icon
)
{
if
(
substr_compare
(
$icon
,
".svg"
,
-
4
)
===
0
){
return
file_get_contents
(
$icon
);
}
else
{
return
'<img src="'
.
$icon
.
'" alt="'
.
$name
.
'" >'
;
}
}
function
generateTaskbar
()
{
echo
'
<div class="nav">'
;
generateTaskbarIcon
(
"Fachschaft"
,
"img/muffin.svg"
,
"Fachschaft.php"
);
generateTaskbarIcon
(
"AGNES"
,
"img/zahnrad.svg"
,
"https://agnes.hu-berlin.de/lupo/rds?state=user&type=0"
);
generateTaskbarIcon
(
"Moodle"
,
"img/moodle.svg"
,
"https://moodle.hu-berlin.de"
);
generateTaskbarIcon
(
"Termine & Events"
,
"img/kalender.svg"
,
"Termine.php"
);
generateTaskbarIcon
(
"Erstis"
,
"img/ersti.svg"
,
"index.php#what_is_IMP"
);
generateTaskbarIcon
(
"Studium"
,
"img/studium.svg"
,
"Studium.php"
);
generateTaskbarIcon
(
"Freizeit"
,
"img/freizeit.svg"
,
"Freizeit.php"
);
generateTaskbarIcon
(
"IMPressum"
,
"img/info.svg"
,
"Impressum.php"
);
generateTaskbarIcon
(
"Fragen (QA)"
,
"img/fragen.svg"
,
"QA.php"
);
if
(
isset
(
$_SESSION
[
'ID'
]))
generateTaskbarIcon
(
"Account"
,
"img/User.png"
,
"Account.php"
);
else
generateTaskbarIcon
(
"LogIn"
,
"img/logIn.jpg"
,
"Anmelden.php"
);
echo
'<div class="nav">'
;
include
'Script_TaskbarIcons.php'
;
echo
'</div>'
;
}
function
generateTitle
(
$title
=
''
)
...
...
This diff is collapsed.
Click to expand it.
css/index.css
+
7
−
0
View file @
c641a86d
...
...
@@ -27,6 +27,13 @@ body,html{
position
:
absolute
;
top
:
0
;
}
.header
svg
{
width
:
50px
;
height
:
50px
;
fill
:
transparent
;
stroke
:
black
;
stroke-width
:
5
;
}
.item
{
float
:
left
;
font-size
:
10px
;
...
...
This diff is collapsed.
Click to expand it.
index.php
+
1
−
55
View file @
c641a86d
...
...
@@ -26,61 +26,7 @@ https://agnes.hu-berlin.de/lupo/rds?state=user&type=1&category=auth.login&re=las
</div>
</div>
<div
id=
"header"
class=
"header"
>
<a
href=
"Fachschaft.php"
>
<div
class=
"item"
>
<img
src=
"img/muphin.jpg"
alt=
"MaPhIn"
><br>
Fachschaft
</div>
</a>
<a
href=
"https://agnes.hu-berlin.de/lupo/rds?state=user&type=0"
target=
"_blank"
>
<div
class=
"item"
>
<img
src=
"img/zahnrad.jpg"
alt=
"AGNES"
><br>
AGNES
</div>
</a>
<a
href=
"https://moodle.hu-berlin.de"
target=
"_blank"
>
<div
class=
"item"
>
<img
src=
"img/moodle.png"
alt=
"Moodle"
><br>
Moodle
</div>
</a>
<a
href=
"Termine.php"
>
<div
class=
"item"
>
<img
src=
"img/termin.jpg"
alt=
"Termine"
><br>
Termine
&
Events
</div>
</a>
<a
href=
"index.php#what_is_IMP"
>
<div
class=
"item"
>
<img
src=
"img/ersties.jpg"
alt=
"Termine"
><br>
Ersties
</div>
</a>
<a
href=
"Studium.php"
>
<div
class=
"item"
>
<img
src=
"img/studium.jpg"
alt=
"Studium"
><br>
Studium
</div>
</a>
<a
href=
"Freizeit.php"
>
<div
class=
"item"
>
<img
src=
"img/Freizeit.jpg"
alt=
"Freizeit"
><br>
Freizeit
</div>
</a>
<a
href=
"Impressum.php"
>
<div
class=
"item"
>
<img
src=
"img/Impressum.png"
alt=
"IMPressum"
><br>
IMPressum
</div>
</a>
<a
href=
"QA.php"
>
<div
class=
"item"
>
<img
src=
"img/fragen.jpg"
alt=
"Fragen"
><br>
Fragen (QA)
</div>
</a>
<?php
include
'Script_TaskbarIcons.php'
;
?>
<h3
id=
"fachinitext"
>
Fachschaftsinitiative IMP HU Berlin
<br>
(Informatik,Physik und Mathe)
</h3>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment