Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
FSI WordPress
FSI WordPress Theme V2
Commits
3750e0a6
Commit
3750e0a6
authored
Sep 25, 2016
by
Michael Ochmann
Browse files
added event post-type
parent
d4515794
Changes
9
Hide whitespace changes
Inline
Side-by-side
classes/PostType/Event.php
0 → 100644
View file @
3750e0a6
<?php
namespace
FSI\PostType
;
use
FSI\Template
;
class
Event
{
public
function
__construct
()
{
add_action
(
"init"
,
[
&
$this
,
"init"
]);
}
public
function
init
()
{
register_post_type
(
"event"
,
[
"labels"
=>
array
(
"name"
=>
"Events"
,
"singular_name"
=>
"Event"
,
"add_new"
=>
"Event hinzufügen"
,
"add_new_item"
=>
"Event hinzufügen"
,
"edit_item"
=>
"Event bearbeiten"
,
"new_item"
=>
"neues Event"
,
"view_item"
=>
"Event ansehen"
,
"featured_image"
=>
"Logo"
,
"set_featured_image"
=>
"Logo festlegen"
,
"remove_featured_image"
=>
"Logo entfernen"
),
"description"
=>
"Events der Fachschaft Informatik"
,
"public"
=>
true
,
"menu_position"
=>
10
,
"show_in_menu"
=>
true
,
"menu_icon"
=>
"dashicons-calendar-alt"
,
"supports"
=>
[
"title"
,
"editor"
,
"thumbnail"
,
"custom-fields"
]
]);
}
public
static
function
get
()
{
$out
=
""
;
$events
=
get_posts
(
array
(
'posts_per_page'
=>
-
1
,
'orderby'
=>
'menu_order'
,
'order'
=>
'DESC'
,
'post_type'
=>
'event'
,
'post_status'
=>
'publish'
,
));
foreach
(
$events
as
$event
)
{
$template
=
new
Template
(
"frontend.event.php"
);
$template
->
setValues
([
"link"
=>
get_the_permalink
(
$event
->
ID
),
"cover"
=>
get_the_post_thumbnail_url
(
$event
->
ID
,
"eventCover"
),
"title"
=>
get_the_title
(
$event
->
ID
)
]);
$out
.
=
$template
->
render
(
false
);
}
return
$out
;
}
}
\ No newline at end of file
classes/PostType/Service.php
View file @
3750e0a6
...
...
@@ -47,7 +47,7 @@ class Service {
}
public
function
saveLink
(
$ID
,
$post
)
{
if
(
$post
->
post_type
!=
"service"
||
Theme
::
isMortalUser
())
if
(
$post
->
post_type
!=
"service"
||
\
FSI\
Theme
::
isMortalUser
())
return
;
file_put_contents
(
FSI_PATH
.
"/ttt"
,
$_POST
[
"serviceURL"
]);
//check_admin_referer("serviceLink");
...
...
classes/PostTypes.php
View file @
3750e0a6
...
...
@@ -5,5 +5,6 @@ namespace FSI;
class
PostTypes
{
public
function
__construct
()
{
new
PostType\Service
();
new
PostType\Event
();
}
}
\ No newline at end of file
classes/Theme.php
View file @
3750e0a6
...
...
@@ -12,8 +12,9 @@ class Theme {
private
$svgSupport
;
public
function
__construct
()
{
spl_autoload_register
(
array
(
$this
,
"autoload"
));
add_action
(
"wp_enqueue_scripts"
,
array
(
$this
,
"scripts"
));
spl_autoload_register
([
&
$this
,
"autoload"
]);
add_action
(
"wp_enqueue_scripts"
,
[
&
$this
,
"scripts"
]);
add_action
(
"after_setup_theme"
,
[
&
$this
,
"setup"
]);
add_theme_support
(
"post-thumbnails"
);
add_theme_support
(
"title-tag"
);
...
...
@@ -30,6 +31,10 @@ class Theme {
require_once
(
FSI_PATH
.
"/classes/
$className
.php"
);
}
public
function
setup
()
{
add_image_size
(
"eventCover"
,
140
,
200
,
true
);
}
/**
* enqueues the front-end scripts and styles.
*/
...
...
css/_fsi.mcss
View file @
3750e0a6
...
...
@@ -35,6 +35,15 @@ fsi-tile.post fsi-title {
font-size: xx-large;
}
article.page {
font-size: large;
line-height: 1.5em;
}
article.page img.eventCover {
float: left;
margin: 0 25px 20px 0;
}
body {
margin: 0;
padding: 0;
...
...
css/fsi.css
View file @
3750e0a6
...
...
@@ -3,4 +3,4 @@
*
* © 2016, Michael Ochmann
* CSS für die Homepage der Fachschaft Informatik an der Hochschule Trier.
*/
@import
"bootstrap.min.css"
;
@font-face
{
font-family
:
"Linux Libertine"
;
src
:
url("../fonts/LinuxLibertine.otf")
;}
article
.post
{
font-size
:
large
;
line-height
:
1.8em
;
padding
:
20px
;
-webkit-column-count
:
2
;
-moz-column-count
:
2
;
column-count
:
2
;
-moz-column-gap
:
35px
;
-webkit-column-gap
:
35px
;
column-gap
:
35px
;
text-align
:
justify
;}
fsi-tile
.post
fsi-title
{
font-size
:
xx-large
;}
body
{
margin
:
0
;
padding
:
0
;
font-size
:
small
;
background
:
#005196
;
font-family
:
"Linux Libertine"
,
Georgia
,
Times
,
serif
;}
footer
{
background
:
#eee
;
background
:
transparent
;
font-family
:
sans-serif
;
color
:
#222
;
box-sizing
:
border-box
;
box-shadow
:
0
2px
12px
rgba
(
0
,
0
,
0
,
0.6
)
inset
;}
footer
h4
{
font-family
:
"Linux Libertine"
,
Georgia
,
Times
,
serif
;
font-size
:
large
;}
footer
.overlay
{
background
:
rgba
(
0
,
0
,
0
,
0.8
);
padding
:
12px
;
padding-top
:
10px
;
box-sizing
:
border-box
;
color
:
#ffffff
;}
footer
.overlay
a
{
color
:
#ccc
;}
footer
p
{
font-size
:
small
;
text-align
:
center
;
color
:
#888
;
margin
:
8%
0
0
0
;}
footer
.social
{
margin-top
:
25px
;}
footer
.social
img
{
width
:
12%
;
margin-right
:
8px
;
transition
:
all
0.2s
ease-in-out
;}
footer
.social
img
:hover
{
transform
:
scale
(
1.1
);}
footer
ul
{
list-style
:
none
;
padding-left
:
8%
;}
footer
ul
li
{
margin
:
8px
0
;}
footer
h4
{
margin-top
:
25px
;}
fsi-calendar
table
{
width
:
100%
;}
fsi-calendar
table
tr
td
{
text-align
:
center
;
border
:
solid
1px#ccc
;
font-family
:
sans-serif
;
position
:
relative
;}
fsi-calendar
table
tr
:first-child
td
{
font-family
:
"Linux Libertine"
;}
fsi-calendar
table
tr
th
{
font-family
:
sans-serif
;
text-align
:
center
;
padding
:
6px
;
border
:
solid
1px#ccc
;}
fsi-calendar
table
a
{
display
:
block
;
padding
:
11px
;
font-size
:
medium
;}
fsi-calendar
table
a
.today
{
box-shadow
:
0
0
12px
rgba
(
0
,
0
,
0
,
0.3
)
inset
;}
fsi-calendar
table
a
.hasEvent
:after
{
content
:
""
;
display
:
block
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
background
:
#005196
;
height
:
4px
;
transition
:
all
0.3s
ease-in-out
;}
fsi-calendar
table
a
.hasEvent
:hover:after
{
width
:
84%
;
left
:
8%
;}
fsi-calendar
table
tr
:first-child
td
{
position
:
relative
;}
fsi-calendar
table
tr
:first-child
fsi-nav
{
display
:
inline-block
;
position
:
absolute
;
top
:
10px
;
cursor
:
pointer
;}
fsi-calendar
table
tr
:first-child
a
:hover
{
background
:
transparent
;}
fsi-calendar
table
tr
:first-child
fsi-nav
:first-child
{
left
:
5%
;}
fsi-calendar
table
tr
:first-child
fsi-nav
:last-child
{
right
:
5%
;}
fsi-calendar
table
a
:hover
{
background
:
#eee
;
text-decoration
:
none
;}
fsi-calendar
.month
{
font-size
:
large
;
padding
:
8px
;
background
:
#eee
;}
fsi-door
{
position
:
fixed
;
top
:
5px
;
left
:
9px
;
transition
:
all
0.2s
ease-in-out
;}
fsi-door
img
{
width
:
25px
;
transition
:
all
0.2s
ease-in-out
;}
fsi-subtitle
:before
{
content
:
"–"
;
display
:
inline
;}
fsi-subtitle
{
color
:
#888
;
padding-left
:
30px
;
display
:
block
;
font-family
:
sans-serif
;
font-size
:
13px
;
margin-bottom
:
12px
;}
fsi-tile
{
background
:
white
;
display
:
block
;
margin
:
8px
;
padding
:
12px
;
min-height
:
100%
;
flex-direction
:
row
;
box-sizing
:
border-box
;
line-height
:
1.8em
;}
fsi-tile
img
{
max-width
:
100%
;
box-sizing
:
border-box
;}
fsi-tile
.news
nav
hr
{
margin
:
8px
0
;}
fsi-tile
.news
nav
h4
{
font-size
:
medium
;}
fsi-title
{
display
:
block
;
color
:
#666
;
padding
:
12px
0
0
12px
;
margin-bottom
:
6px
;
font-size
:
x-large
;}
header
{
top
:
0
;
background
:
white
;
position
:
fixed
;
width
:
100%
;
box-sizing
:
border-box
;
box-shadow
:
0
0
12px
rgba
(
0
,
0
,
0
,
0.6
);
z-index
:
100
;}
header
a
.menuButton
{
display
:
none
;}
header
.headerSmall
:not
(
:hover
)
header-logo
{
width
:
5%
;
margin-left
:
-2.5%
;
padding
:
0.1%
;
content
:
""
;}
header
.headerSmall
:not
(
:hover
)
fsi-door
img
{
width
:
20px
;}
header
.headerSmall
:not
(
:hover
)
fsi-door
{
top
:
4px
;}
header
nav
.second
>*
{
max-height
:
50px
;
transition
:
all
0.2s
ease-in-out
;}
header
nav
.second
{
max-height
:
50px
;
background
:
#eee
;
transition
:
all
0.2s
ease-in-out
;}
header
nav
a
{
display
:
block
;
width
:
100%
;
color
:
#222
;
max-height
:
50px
;
text-align
:
center
;
box-sizing
:
border-box
;
font-size
:
large
;
padding
:
12px
;
transition
:
all
0.2s
ease-in-out
;}
header
nav
a
:after
{
content
:
""
;
display
:
block
;
width
:
0
;
height
:
5px
;
position
:
absolute
;
bottom
:
0
;
left
:
50%
;
background
:
#005196
;
transition
:
width
0.2s
ease-in-out
,
left
0.2s
ease-in-out
;}
header
nav
a
:hover
,
header
nav
a
:focus
{
text-decoration
:
none
;}
header
nav
a
:hover:after
,
header
nav
a
.active
:after
{
width
:
100%
;
left
:
0
;}
header
nav
a
.active
:after
{
background
:
#FF9C00
;}
header-logo
{
display
:
block
;
position
:
fixed
;
top
:
0
;
width
:
12%
;
background
:
white
;
padding
:
0.3%
;
border-radius
:
50%
;
left
:
50%
;
box-sizing
:
border-box
;
margin-left
:
-6%
;
border
:
solid
1px#aaa
;
transition
:
width
0.2s
ease-in
,
margin-left
0.2s
ease-in
;
z-index
:
100
;}
header-logo
img
{
width
:
100%
;}
main
{
background
:
#005196
;
padding
:
105px
0
8px
0
;}
.alert
{
margin
:
8px
;
box-sizing
:
border-box
;}
.cover
{
margin
:
12px
;
display
:
inline-block
;
text-align
:
center
;}
.cover
img
{
transition
:
transform
0.3s
ease-in-out
,
box-shadow
0.3s
ease-in-out
;}
.cover
img
:hover
{
transform
:
scale
(
1.1
);
box-shadow
:
0
0
15px
rgba
(
0
,
0
,
0
,
0.9
);}
.news
{
font-size
:
medium
;}
.news
hr
{
margin
:
10px
0
10px
0
;}
.news
span
{
margin-top
:
-5px
;
color
:
#888
;
display
:
block
;
font-size
:
small
;
padding
:
0
0
0
8px
;}
.news
h4
{
word-break
:
break-all
;}
.serviceIcon
{
width
:
25%
;
display
:
block
;
float
:
left
;
box-sizing
:
border-box
;
margin
:
0
;
font-size
:
medium
;
color
:
#555
;
padding
:
5%
;
text-align
:
center
;
transition
:
all
0.3s
ease-in
;}
.serviceIcon
:hover
{
transform
:
scale
(
1.1
);
text-decoration
:
none
;
color
:
#555
;}
.wrapper
{
background
:
url("../images/footer.jpg")
no-repeat
center
bottom
fixed
#005196
;
background-size
:
contain
;
width
:
100%
;
box-sizing
:
border-box
;}
@media
(
max-width
:
991px
){
body
{
padding
:
0
0
0
0
;}
header
{
position
:
relative
;}
header
.menu
{
position
:
fixed
;
width
:
100%
;
box-sizing
:
border-box
;
overflow-y
:
scroll
;
height
:
0
;
padding-top
:
50px
;
background
:
white
;
transition
:
all
0.3s
ease-in-out
;}
header
nav
a
{
background
:
white
;
margin
:
0
auto
;
border-bottom
:
solid
1px#eee
;
width
:
90%
!important
;}
header
.headerSmall
:not
(
:hover
)
nav
>
a
{
display
:
block
;
width
:
100%
;
color
:
#222
;
max-height
:
50px
;
text-align
:
center
;
box-sizing
:
border-box
;
font-size
:
large
;
padding
:
12px
;
transition
:
all
0.2s
ease-in-out
;}
header
a
.menuButton
{
font-family
:
'Glyphicons Halflings'
;
font-size
:
large
;
color
:
#222
;
display
:
block
;
padding
:
12px
;
background
:
white
;
width
:
100%
;
box-sizing
:
border-box
;
position
:
fixed
;
text-align
:
right
;
box-shadow
:
0
0
6px
rgba
(
0
,
0
,
0
,
0.6
);
top
:
0
;
z-index
:
100
;}
header
a
.menuButton
>
span
{
transition
:
all
0.3s
ease-in-out
;}
header
a
.menuButton.active
>
span
{
transform
:
rotate
(
90deg
);}
header
:after
{
content
:
""
!important
;
display
:
block
;
width
:
30px
;
background
:
url('../images/logo_fachschaft_Informatik_small.svg')
no-repeat
;
background-size
:
cover
;
padding-top
:
30px
;
position
:
fixed
;
top
:
10px
;
left
:
50%
;
margin-left
:
-15px
;
z-index
:
150
;}
header
nav
{
background
:
white
!important
;}
header
fsi-door
,
header
.headerSmall
fsi-door
{
z-index
:
150
!important
;
top
:
9px
!important
;}
header
fsi-door
img
,
header
.headerSmall
fsi-door
img
{
width
:
20px
!important
;}
header-logo
{
display
:
none
;}
main
{
padding
:
40px
0
8px
0
;}
.cover
{
width
:
40%
;}
.serviceIcon
{
width
:
15.5%
;
min-width
:
55px
;
min-height
:
55px
;
padding
:
3%
;
font-size
:
0
;
line-height
:
0
;}
.services
div
{
font-size
:
0
;}
.wrapper
{
background-size
:
cover
;}
footer
h4
{
font-size
:
large
;}
footer
ul
{
padding-left
:
2%
;}
footer
ul
li
{
margin
:
15px
;}
footer
.social
img
{
width
:
6%
;}
.row-eq-height
{
display
:
block
!important
;}}
@media
(
min-width
:
992px
),(
max-width
:
1300px
){
.wrapper
{
background-size
:
cover
;}
header
.headerSmall
:not
(
:hover
)
nav
>
a
{
font-size
:
medium
;
padding
:
8px
!important
;
transition
:
all
0.2s
ease-in-out
;}
header
.headerSmall
:not
(
:hover
)
nav
.second
>
a
,
header
.headerSmall
:not
(
:hover
)
nav
.second
,
header
.headerSmall
:not
(
:hover
)
nav
.second
>*
{
max-height
:
0
!important
;
overflow
:
hidden
;
padding
:
0
;}}
@media
(
min-width
:
992px
){
.row.row-eq-height
.col-md-4
{
width
:
calc
(
100%
/
3-16px
);}
.col-md-4
{
width
:
calc
(
100%
/
3-0px
);}}
@media
(
min-width
:
1440px
){
body
,
header
{
max-width
:
1440px
;
margin
:
0
auto
;}
footer
{
box-shadow
:
none
;}
fsi-door
{
left
:
50%
;
margin-left
:
-711px
;}
header
header-logo
{
width
:
150px
!important
;
margin-left
:
-75px
!important
;}
header
.headerSmall
header-logo
{
width
:
58px
!important
;
margin-left
:
-29px
!important
;}}
.alert
,
.btn
{
border-radius
:
0
;
font-family
:
sans-serif
;}
.alert-warning
,
.btn-warning
{
background
:
#FF9C00
;
border-color
:
#B26D00
;
color
:
#323238
;}
.btn-warning
{
text-shadow
:
1px
1px
0
rgba
(
255
,
255
,
255
,
0.4
);}
.btn-warning
:hover
,
.btn-warning
:active
{
background
:
#B26D00
;
text-shadow
:
1px
1px
0
rgba
(
0
,
0
,
0
,
0.6
);}
.row
{
margin
:
0
;
box-sizing
:
border-box
;
width
:
100%
;}
main
.col-md-4
,
main
.col-md-8
,
main
.col-sm-4
,
main
.col-sm-8
,
main
.col-md-9
,
main
.col-md-1
,
main
.col-md-2
,
main
.col-md-3
,
main
.col-md-5
,
main
.col-md-6
,
main
.col-md-7
,
main
.col-md-10
,
main
.col-md-11
{
padding
:
0
;}
main
.row-eq-height
.col-md-4
,
main
.row-eq-height
.col-md-8
{
padding
:
0
;
margin
:
8px
;
background
:
white
;
;
}
.row-eq-height
fsi-tile
{
margin
:
0
;}
.row-eq-height
{
display
:
flex
;
flex-direction
:
row
;}
.alignnone
{
margin
:
5px
20px
20px
0
;}
.aligncenter
,
div
.aligncenter
{
display
:
block
;
margin
:
5px
auto
5px
auto
;}
.alignright
{
float
:
right
;
margin
:
5px
0
20px
20px
;}
.alignleft
{
float
:
left
;
margin
:
5px
20px
20px
0
;}
a
img
.alignright
{
float
:
right
;
margin
:
5px
0
20px
20px
;}
a
img
.alignnone
{
margin
:
5px
20px
20px
0
;}
a
img
.alignleft
{
float
:
left
;
margin
:
5px
20px
20px
0
;}
a
img
.aligncenter
{
display
:
block
;
margin-left
:
auto
;
margin-right
:
auto
}
.wp-caption
{
background
:
#fff
;
border
:
1px
solid
#f0f0f0
;
max-width
:
96%
;
padding
:
5px
3px
10px
;
text-align
:
center
;}
.wp-caption.alignnone
{
margin
:
5px
20px
20px
0
;}
.wp-caption.alignleft
{
margin
:
5px
20px
20px
0
;}
.wp-caption.alignright
{
margin
:
5px
0
20px
20px
;}
.wp-caption
img
{
border
:
0
none
;
height
:
auto
;
margin
:
0
;
max-width
:
98.5%
;
padding
:
0
;
width
:
auto
;}
.wp-caption
p
.wp-caption-text
{
font-size
:
11px
;
line-height
:
17px
;
margin
:
0
;
padding
:
0
4px
5px
;}
.screen-reader-text
{
clip
:
rect
(
1px
,
1px
,
1px
,
1px
);
position
:
absolute
!important
;
height
:
1px
;
width
:
1px
;
overflow
:
hidden
;}
.screen-reader-text
:focus
{
background-color
:
#f1f1f1
;
border-radius
:
3px
;
box-shadow
:
0
0
2px
2px
rgba
(
0
,
0
,
0
,
0.6
);
clip
:
auto
!important
;
color
:
#21759b
;
display
:
block
;
font-size
:
14px
;
font-size
:
0.875rem
;
font-weight
:
bold
;
height
:
auto
;
left
:
5px
;
line-height
:
normal
;
padding
:
15px
23px
14px
;
text-decoration
:
none
;
top
:
5px
;
width
:
auto
;
z-index
:
100000
;}
\ No newline at end of file
*/
@import
"bootstrap.min.css"
;
@font-face
{
font-family
:
"Linux Libertine"
;
src
:
url("../fonts/LinuxLibertine.otf")
;}
article
.post
{
font-size
:
large
;
line-height
:
1.8em
;
padding
:
20px
;
-webkit-column-count
:
2
;
-moz-column-count
:
2
;
column-count
:
2
;
-moz-column-gap
:
35px
;
-webkit-column-gap
:
35px
;
column-gap
:
35px
;
text-align
:
justify
;}
fsi-tile
.post
fsi-title
{
font-size
:
xx-large
;}
article
.page
{
font-size
:
large
;
line-height
:
1.5em
;}
article
.page
img
.eventCover
{
float
:
left
;
margin
:
0
25px
20px
0
;}
body
{
margin
:
0
;
padding
:
0
;
font-size
:
small
;
background
:
#005196
;
font-family
:
"Linux Libertine"
,
Georgia
,
Times
,
serif
;}
footer
{
background
:
#eee
;
background
:
transparent
;
font-family
:
sans-serif
;
color
:
#222
;
box-sizing
:
border-box
;
box-shadow
:
0
2px
12px
rgba
(
0
,
0
,
0
,
0.6
)
inset
;}
footer
h4
{
font-family
:
"Linux Libertine"
,
Georgia
,
Times
,
serif
;
font-size
:
large
;}
footer
.overlay
{
background
:
rgba
(
0
,
0
,
0
,
0.8
);
padding
:
12px
;
padding-top
:
10px
;
box-sizing
:
border-box
;
color
:
#ffffff
;}
footer
.overlay
a
{
color
:
#ccc
;}
footer
p
{
font-size
:
small
;
text-align
:
center
;
color
:
#888
;
margin
:
8%
0
0
0
;}
footer
.social
{
margin-top
:
25px
;}
footer
.social
img
{
width
:
12%
;
margin-right
:
8px
;
transition
:
all
0.2s
ease-in-out
;}
footer
.social
img
:hover
{
transform
:
scale
(
1.1
);}
footer
ul
{
list-style
:
none
;
padding-left
:
8%
;}
footer
ul
li
{
margin
:
8px
0
;}
footer
h4
{
margin-top
:
25px
;}
fsi-calendar
table
{
width
:
100%
;}
fsi-calendar
table
tr
td
{
text-align
:
center
;
border
:
solid
1px#ccc
;
font-family
:
sans-serif
;
position
:
relative
;}
fsi-calendar
table
tr
:first-child
td
{
font-family
:
"Linux Libertine"
;}
fsi-calendar
table
tr
th
{
font-family
:
sans-serif
;
text-align
:
center
;
padding
:
6px
;
border
:
solid
1px#ccc
;}
fsi-calendar
table
a
{
display
:
block
;
padding
:
11px
;
font-size
:
medium
;}
fsi-calendar
table
a
.today
{
box-shadow
:
0
0
12px
rgba
(
0
,
0
,
0
,
0.3
)
inset
;}
fsi-calendar
table
a
.hasEvent
:after
{
content
:
""
;
display
:
block
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
background
:
#005196
;
height
:
4px
;
transition
:
all
0.3s
ease-in-out
;}
fsi-calendar
table
a
.hasEvent
:hover:after
{
width
:
84%
;
left
:
8%
;}
fsi-calendar
table
tr
:first-child
td
{
position
:
relative
;}
fsi-calendar
table
tr
:first-child
fsi-nav
{
display
:
inline-block
;
position
:
absolute
;
top
:
10px
;
cursor
:
pointer
;}
fsi-calendar
table
tr
:first-child
a
:hover
{
background
:
transparent
;}
fsi-calendar
table
tr
:first-child
fsi-nav
:first-child
{
left
:
5%
;}
fsi-calendar
table
tr
:first-child
fsi-nav
:last-child
{
right
:
5%
;}
fsi-calendar
table
a
:hover
{
background
:
#eee
;
text-decoration
:
none
;}
fsi-calendar
.month
{
font-size
:
large
;
padding
:
8px
;
background
:
#eee
;}
fsi-door
{
position
:
fixed
;
top
:
5px
;
left
:
9px
;
transition
:
all
0.2s
ease-in-out
;}
fsi-door
img
{
width
:
25px
;
transition
:
all
0.2s
ease-in-out
;}
fsi-subtitle
:before
{
content
:
"–"
;
display
:
inline
;}
fsi-subtitle
{
color
:
#888
;
padding-left
:
30px
;
display
:
block
;
font-family
:
sans-serif
;
font-size
:
13px
;
margin-bottom
:
12px
;}
fsi-tile
{
background
:
white
;
display
:
block
;
margin
:
8px
;
padding
:
12px
;
min-height
:
100%
;
flex-direction
:
row
;
box-sizing
:
border-box
;
line-height
:
1.8em
;}
fsi-tile
img
{
max-width
:
100%
;
box-sizing
:
border-box
;}
fsi-tile
.news
nav
hr
{
margin
:
8px
0
;}
fsi-tile
.news
nav
h4
{
font-size
:
medium
;}
fsi-title
{
display
:
block
;
color
:
#666
;
padding
:
12px
0
0
12px
;
margin-bottom
:
6px
;
font-size
:
x-large
;}
header
{
top
:
0
;
background
:
white
;
position
:
fixed
;
width
:
100%
;
box-sizing
:
border-box
;
box-shadow
:
0
0
12px
rgba
(
0
,
0
,
0
,
0.6
);
z-index
:
100
;}
header
a
.menuButton
{
display
:
none
;}
header
.headerSmall
:not
(
:hover
)
header-logo
{
width
:
5%
;
margin-left
:
-2.5%
;
padding
:
0.1%
;
content
:
""
;}
header
.headerSmall
:not
(
:hover
)
fsi-door
img
{
width
:
20px
;}
header
.headerSmall
:not
(
:hover
)
fsi-door
{
top
:
4px
;}
header
nav
.second
>*
{
max-height
:
50px
;
transition
:
all
0.2s
ease-in-out
;}
header
nav
.second
{
max-height
:
50px
;
background
:
#eee
;
transition
:
all
0.2s
ease-in-out
;}
header
nav
a
{
display
:
block
;
width
:
100%
;
color
:
#222
;
max-height
:
50px
;
text-align
:
center
;
box-sizing
:
border-box
;
font-size
:
large
;
padding
:
12px
;
transition
:
all
0.2s
ease-in-out
;}
header
nav
a
:after
{
content
:
""
;
display
:
block
;
width
:
0
;
height
:
5px
;
position
:
absolute
;
bottom
:
0
;
left
:
50%
;
background
:
#005196
;
transition
:
width
0.2s
ease-in-out
,
left
0.2s
ease-in-out
;}
header
nav
a
:hover
,
header
nav
a
:focus
{
text-decoration
:
none
;}
header
nav
a
:hover:after
,
header
nav
a
.active
:after
{
width
:
100%
;
left
:
0
;}
header
nav
a
.active
:after
{
background
:
#FF9C00
;}
header-logo
{
display
:
block
;
position
:
fixed
;
top
:
0
;
width
:
12%
;
background
:
white
;
padding
:
0.3%
;
border-radius
:
50%
;
left
:
50%
;
box-sizing
:
border-box
;
margin-left
:
-6%
;
border
:
solid
1px#aaa
;
transition
:
width
0.2s
ease-in
,
margin-left
0.2s
ease-in
;
z-index
:
100
;}
header-logo
img
{
width
:
100%
;}
main
{
background
:
#005196
;
padding
:
105px
0
8px
0
;}
.alert
{
margin
:
8px
;
box-sizing
:
border-box
;}
.cover
{
margin
:
12px
;
display
:
inline-block
;
text-align
:
center
;}
.cover
img
{
transition
:
transform
0.3s
ease-in-out
,
box-shadow
0.3s
ease-in-out
;}
.cover
img
:hover
{
transform
:
scale
(
1.1
);
box-shadow
:
0
0
15px
rgba
(
0
,
0
,
0
,
0.9
);}
.news
{
font-size
:
medium
;}
.news
hr
{
margin
:
10px
0
10px
0
;}
.news
span
{
margin-top
:
-5px
;
color
:
#888
;
display
:
block
;
font-size
:
small
;
padding
:
0
0
0
8px
;}
.news
h4
{
word-break
:
break-all
;}
.serviceIcon
{
width
:
25%
;
display
:
block
;
float
:
left
;
box-sizing
:
border-box
;
margin
:
0
;
font-size
:
medium
;
color
:
#555
;
padding
:
5%
;
text-align
:
center
;
transition
:
all
0.3s
ease-in
;}
.serviceIcon
:hover
{
transform
:
scale
(
1.1
);
text-decoration
:
none
;
color
:
#555
;}
.wrapper
{
background
:
url("../images/footer.jpg")
no-repeat
center
bottom
fixed
#005196
;
background-size
:
contain
;
width
:
100%
;
box-sizing
:
border-box
;}
@media
(
max-width
:
991px
){
body
{
padding
:
0
0
0
0
;}
header
{
position
:
relative
;}
header
.menu
{
position
:
fixed
;
width
:
100%
;
box-sizing
:
border-box
;
overflow-y
:
scroll
;
height
:
0
;
padding-top
:
50px
;
background
:
white
;
transition
:
all
0.3s
ease-in-out
;}
header
nav
a
{
background
:
white
;
margin
:
0
auto
;
border-bottom
:
solid
1px#eee
;
width
:
90%
!important
;}
header
.headerSmall
:not
(
:hover
)
nav
>
a
{
display
:
block
;
width
:
100%
;
color
:
#222
;
max-height
:
50px
;
text-align
:
center
;
box-sizing
:
border-box
;
font-size
:
large
;
padding
:
12px
;
transition
:
all
0.2s
ease-in-out
;}
header
a
.menuButton
{
font-family
:
'Glyphicons Halflings'
;
font-size
:
large
;
color
:
#222
;
display
:
block
;
padding
:
12px
;
background
:
white
;
width
:
100%
;
box-sizing
:
border-box
;
position
:
fixed
;
text-align
:
right
;
box-shadow
:
0
0
6px
rgba
(
0
,
0
,
0
,
0.6
);
top
:
0
;
z-index
:
100
;}
header
a
.menuButton
>
span
{
transition
:
all
0.3s
ease-in-out
;}
header
a
.menuButton.active
>
span
{
transform
:
rotate
(
90deg
);}
header
:after
{
content
:
""
!important
;
display
:
block
;
width
:
30px
;
background
:
url('../images/logo_fachschaft_Informatik_small.svg')
no-repeat
;
background-size
:
cover
;
padding-top
:
30px
;
position
:
fixed
;
top
:
10px
;
left
:
50%
;
margin-left
:
-15px
;
z-index
:
150
;}
header
nav
{
background
:
white
!important
;}
header
fsi-door
,
header
.headerSmall
fsi-door
{
z-index
:
150
!important
;
top
:
9px
!important
;}
header
fsi-door
img
,
header
.headerSmall
fsi-door
img
{
width
:
20px
!important
;}
header-logo
{
display
:
none
;}
main
{
padding
:
40px
0
8px
0
;}
.cover
{
width
:
40%
;}
.serviceIcon
{
width
:
15.5%
;
min-width
:
55px
;
min-height
:
55px
;
padding
:
3%
;
font-size
:
0
;
line-height
:
0
;}
.services
div
{
font-size
:
0
;}
.wrapper
{
background-size
:
cover
;}
footer
h4
{
font-size
:
large
;}
footer
ul
{
padding-left
:
2%
;}
footer
ul
li
{
margin
:
15px
;}
footer
.social
img
{
width
:
6%
;}
.row-eq-height
{
display
:
block
!important
;}}
@media
(
min-width
:
992px
),(
max-width
:
1300px
){
.wrapper
{
background-size
:
cover
;}
header
.headerSmall
:not
(
:hover
)
nav
>
a
{
font-size
:
medium
;
padding
:
8px
!important
;
transition
:
all
0.2s
ease-in-out
;}
header
.headerSmall
:not
(
:hover
)
nav
.second
>
a
,
header
.headerSmall
:not
(
:hover
)
nav
.second
,
header
.headerSmall
:not
(
:hover
)
nav
.second
>*
{
max-height
:
0
!important
;
overflow
:
hidden
;
padding
:
0
;}}
@media
(
min-width
:
992px
){
.row.row-eq-height
.col-md-4
{
width
:
calc
(
100%
/
3-16px
);}
.col-md-4
{
width
:
calc
(
100%
/
3-0px
);}}
@media
(
min-width
:
1440px
){
body
,
header
{
max-width
:
1440px
;
margin
:
0
auto
;}
footer
{
box-shadow
:
none
;}
fsi-door
{
left
:
50%
;
margin-left
:
-711px
;}
header
header-logo
{
width
:
150px
!important
;
margin-left
:
-75px
!important
;}
header
.headerSmall
header-logo
{
width
:
58px
!important
;
margin-left
:
-29px
!important
;}}
.alert
,
.btn
{
border-radius
:
0
;
font-family
:
sans-serif
;}
.alert-warning
,
.btn-warning
{
background
:
#FF9C00
;
border-color
:
#B26D00
;
color
:
#323238
;}
.btn-warning
{
text-shadow
:
1px
1px
0
rgba
(
255
,
255
,
255
,
0.4
);}
.btn-warning
:hover
,
.btn-warning
:active
{
background
:
#B26D00
;
text-shadow
:
1px
1px
0
rgba
(
0
,
0
,
0
,
0.6
);}
.row
{
margin
:
0
;
box-sizing
:
border-box
;
width
:
100%
;}
main
.col-md-4
,
main
.col-md-8
,
main
.col-sm-4
,
main
.col-sm-8
,
main
.col-md-9
,
main
.col-md-1
,
main
.col-md-2
,
main
.col-md-3
,
main
.col-md-5
,
main
.col-md-6
,
main
.col-md-7
,
main
.col-md-10
,
main
.col-md-11
{
padding
:
0
;}
main
.row-eq-height
.col-md-4
,
main
.row-eq-height
.col-md-8
{
padding
:
0
;
margin
:
8px
;
background
:
white
;
;
}
.row-eq-height
fsi-tile
{
margin
:
0
;}
.row-eq-height
{
display
:
flex
;
flex-direction
:
row
;}
.alignnone
{
margin
:
5px
20px
20px
0
;}
.aligncenter
,
div
.aligncenter
{
display
:
block
;
margin
:
5px
auto
5px
auto
;}
.alignright
{
float
:
right
;
margin
:
5px
0
20px
20px
;}
.alignleft
{
float
:
left
;
margin
:
5px
20px
20px
0
;}
a
img
.alignright
{
float
:
right
;
margin
:
5px
0
20px
20px
;}
a
img
.alignnone
{
margin
:
5px
20px
20px
0
;}
a
img
.alignleft
{
float
:
left
;
margin
:
5px
20px
20px
0
;}
a
img
.aligncenter
{
display
:
block
;
margin-left
:
auto
;
margin-right
:
auto
}
.wp-caption
{
background
:
#fff
;
border
:
1px
solid
#f0f0f0
;
max-width
:
96%
;
padding
:
5px
3px
10px
;
text-align
:
center
;}
.wp-caption.alignnone
{
margin
:
5px
20px
20px
0
;}
.wp-caption.alignleft
{
margin
:
5px
20px
20px
0
;}
.wp-caption.alignright
{
margin
:
5px
0
20px
20px
;}
.wp-caption
img
{
border
:
0
none
;
height
:
auto
;
margin
:
0
;
max-width
:
98.5%
;
padding
:
0
;
width
:
auto
;}
.wp-caption
p
.wp-caption-text
{
font-size
:
11px
;
line-height
:
17px
;
margin
:
0
;
padding
:
0
4px
5px
;}
.screen-reader-text
{
clip
:
rect
(
1px
,
1px
,
1px
,
1px
);
position
:
absolute
!important
;
height
:
1px
;
width
:
1px
;
overflow
:
hidden
;}
.screen-reader-text
:focus
{
background-color
:
#f1f1f1
;
border-radius
:
3px
;
box-shadow
:
0
0
2px
2px
rgba
(
0
,
0
,
0
,
0.6
);
clip
:
auto
!important
;
color
:
#21759b
;
display
:
block
;
font-size
:
14px
;
font-size
:
0.875rem
;
font-weight
:
bold
;
height
:
auto
;
left
:
5px
;
line-height
:
normal
;
padding
:
15px
23px
14px
;
text-decoration
:
none
;
top
:
5px
;
width
:
auto
;
z-index
:
100000
;}
\ No newline at end of file
single-event.php
0 → 100644
View file @
3750e0a6
<?php
get_header
();
?>
<main>
<section
class=
"row"
>
<section
class=
"col-md-9"
>
<?php
if
(
have_posts
())
{
while
(
have_posts
())
{
the_post
();
echo
"
<fsi-tile class=
\"
post
\"
>
<fsi-title><a href=
\"
"
.
get_the_permalink
()
.
"
\"
>"
.
get_the_title
()
.
"</a></fsi-title>
<fsi-subtitle> "
.
get_the_author
()
.
" am "
.
get_the_date
()
.
"</fsi-subtitle>
<article class=
\"
page
\"
>
<img class='eventCover' src='"
.
get_the_post_thumbnail_url
(
$post
->
ID
,
"eventCover"
)
.
"' alt='"
.
get_the_post_thumbnail_caption
()
.
"'>
"
.
get_the_content
()
.
"
</article>
<h3>Tags</h3>
"
.
get_the_tag_list
(
null
,
", "
)
.
"
<div style='clear: both;'></div>
</fsi-tile>
"
;
}
}
?>
</section>
<section
class=
"col-md-3"
>
<fsi-tile>
<?php
get_sidebar
(
'sidebar-1'
);
?>
</fsi-tile>
</section>
</section>
</main>
<?php
get_footer
();
?>
\ No newline at end of file
template.dashboard.php
View file @
3750e0a6
...
...
@@ -34,40 +34,8 @@ get_header();
<fsi-subtitle>
was die Fachschaft so anbietet
</fsi-subtitle>
<div>
<?php
echo
\
FSI\Service
s
::
getServices
();
echo
\
FSI\
PostType\
Service
::
getServices
();
?>
<!--<a href="#" class="serviceIcon">
<img src="images/icons/gitlab.svg"><br>
Gitlab
</a>
<a href="#" class="serviceIcon">
<img src="images/icons/support.svg"><br>
Support
</a>
<a href="#" class="serviceIcon">
<img src="images/icons/wiki.svg"><br>
Wiki
</a>
<a href="#" class="serviceIcon">
<img src="images/icons/irc.svg"><br>
IRC
</a>
<a href="#" class="serviceIcon">
<img src="images/icons/app.svg"><br>
App
</a>
<a href="#" class="serviceIcon">
<img src="images/icons/cloud.svg"><br>
Cloud
</a>
<a href="#" class="serviceIcon">
<img src="images/icons/mpd.svg"><br>
MPD
</a>
<a href="#" class="serviceIcon">
<img src="images/icons/jwidget.svg"><br>
jWidget
</a>-->
<div
style=
"clear: both"
></div>
</div>
<br>
...
...
@@ -112,9 +80,7 @@ get_header();
<fsi-title>
Events
</fsi-title>
<fsi-subtitle>
die angenehme Seite des Studiums
</fsi-subtitle>
<?php
foreach
(
range
(
0
,
8
)
as
$event
)
{
echo
'<a href="#" class="cover"><img src="images/niv.png" alt="NIV" /></a>'
;
}
echo
\
FSI\PostType\Event
::
get
();
?>
</fsi-tile>
</article>
...
...
templates/frontend.event.php
0 → 100644
View file @
3750e0a6
'
<
a
href
=
"
{
{link}
}
"
class
=
"cover"
>
<
img
src
=
"
{
{cover}
}
"
alt
=
"
{
{title}
}
"
/>
</
a
>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment