Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fscoli-next
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
fscoli-next
Commits
dd137cf5
Verified
Commit
dd137cf5
authored
5 months ago
by
Jakob Moser
Browse files
Options
Downloads
Patches
Plain Diff
Adjust for changed language code
parent
7b38cc4e
No related branches found
Branches containing commit
Tags
v2.5.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
landing.php
+8
-4
8 additions, 4 deletions
landing.php
style.css
+1
-1
1 addition, 1 deletion
style.css
with
9 additions
and
5 deletions
landing.php
+
8
−
4
View file @
dd137cf5
...
...
@@ -9,6 +9,10 @@
*/
get_header
();
function
is_german
()
{
return
str_starts_with
(
get_bloginfo
(
'language'
),
'de'
);
}
?>
<main
class=
"landing"
>
<header>
...
...
@@ -21,7 +25,7 @@ get_header();
<section
class=
"news"
>
<?php
// Formulate a query for all posts that are displayed on the "blog" page
if
(
get_bloginfo
(
'language'
)
===
'de-DE'
)
{
if
(
is_german
()
)
{
$the_query
=
new
WP_Query
(
"pagename=blog"
);
}
else
{
$the_query
=
new
WP_Query
(
"pagename=blog-2"
);
...
...
@@ -57,7 +61,7 @@ get_header();
<div
class=
"more"
>
<a
href=
"
<?php
echo
home_url
()
.
"/blog/"
;
?>
"
>
<?php
if
(
get_bloginfo
(
'language'
)
===
'de-DE'
)
{
if
(
is_german
()
)
{
echo
"Ältere Posts..."
;
}
else
{
echo
"older posts..."
;
...
...
@@ -68,7 +72,7 @@ get_header();
</section>
<section
class=
"varia"
>
<ul
class=
"seamless box-links"
>
<?php
if
(
get_bloginfo
(
'language'
)
===
'de-DE'
)
:
?>
<?php
if
(
is_german
()
)
:
?>
<li>
Technische Angebote der Fachschaft und nützliche Links findet ihr im
<a
href=
"https://fachschaft.cl.uni-heidelberg.de/portal"
>
Portal
</a>
.
</li>
<li>
Zögert nicht, bei Fragen und Problemen mit uns jederzeit
<a
href=
"/kontakt/"
>
Kontakt
</a>
aufzunehmen.
</li>
<li>
Außerdem könnt ihr uns auf
<a
href=
"https://www.instagram.com/fs.coli"
>
Instagram
</a>
folgen, wenn ihr wollt.
</li>
...
...
@@ -80,7 +84,7 @@ get_header();
</ul>
<p>
<?php
if
(
get_bloginfo
(
'language'
)
===
'de-DE'
)
:
?>
<?php
if
(
is_german
()
)
:
?>
Ansonsten könnt ihr uns auch einfach irgendwo auf dem Campus abfangen. Es gibt kein Entkommen!
<?php
else
:
?>
You can also just approach us on campus. There is no escape!
...
...
This diff is collapsed.
Click to expand it.
style.css
+
1
−
1
View file @
dd137cf5
...
...
@@ -7,7 +7,7 @@
* Author: personads :: Maximilian Müller-Eberstein (ursprüngliche Version und Design); Jakob Moser
* Author URI: https://personads.me/
*
* Version: 2.
4
.0
* Version: 2.
5
.0
* Requires PHP: 8.0
*
* License: GNU General Public License v3.0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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