Skip to content
Snippets Groups Projects
Commit 2dba6189 authored by Jakob Moser's avatar Jakob Moser
Browse files

Use LF as line ending as per PSR-12

parent bb063c4c
No related branches found
No related tags found
1 merge request!2Resolve "Rewrite theme"
<?php
/**
* Template for the error 404 (Not Found) page.
*
* WordPress identifies this file by its name (which MUST be 404.php)
* and displays it whenever an HTTP 404 is sent.
*
* @see https://codex.wordpress.org/Creating_an_Error_404_Page
*/
get_header();
?>
<main>
<article>
<header>
<h1>Fehler: 404</h1>
</header>
<div class="content jumbo">
<div class="icon">?!</div>
<div class="message">Die angefragte Seite existiert leider nicht.</div>
</div>
<footer></footer>
</article>
</main>
<?php get_footer(); ?>
<?php
/**
* Template for the error 404 (Not Found) page.
*
* WordPress identifies this file by its name (which MUST be 404.php)
* and displays it whenever an HTTP 404 is sent.
*
* @see https://codex.wordpress.org/Creating_an_Error_404_Page
*/
get_header();
?>
<main>
<article>
<header>
<h1>Fehler: 404</h1>
</header>
<div class="content jumbo">
<div class="icon">?!</div>
<div class="message">Die angefragte Seite existiert leider nicht.</div>
</div>
<footer></footer>
</article>
</main>
<?php get_footer(); ?>
<?php
/**
* Template for the footer.
*
* WordPress identifies this file by its name (which MUST be footer.php).
* It is included in the other templates by using get_footer();
*
* @see https://codex.wordpress.org/Theme_Development#Basic_Templates
*/
?>
<footer>
<a href="<?php echo home_url()."/legal/#impressum"; ?>">Impressum</a> | <a href="<?php echo home_url()."/legal/#rechtliches"; ?>">Rechtliches</a> | <a href="<?php echo home_url()."/legal/#datenschutz"; ?>">Datenschutz</a>
<span class="copyright">&copy; Fachschaft Computerlinguistik, Heidelberg</span>
</footer>
<?php wp_footer(); ?>
</body>
</html>
<?php
/**
* Template for the footer.
*
* WordPress identifies this file by its name (which MUST be footer.php).
* It is included in the other templates by using get_footer();
*
* @see https://codex.wordpress.org/Theme_Development#Basic_Templates
*/
?>
<footer>
<a href="<?php echo home_url()."/legal/#impressum"; ?>">Impressum</a> | <a href="<?php echo home_url()."/legal/#rechtliches"; ?>">Rechtliches</a> | <a href="<?php echo home_url()."/legal/#datenschutz"; ?>">Datenschutz</a>
<span class="copyright">&copy; Fachschaft Computerlinguistik, Heidelberg</span>
</footer>
<?php wp_footer(); ?>
</body>
</html>
<?php
/*
Theme: Fachschaft Computerlinguistik
Header Template File
*/
get_header();
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title>
<?php
if(is_home()) {
echo 'Blog | ';
} elseif(is_search()) {
echo 'Suchergebnisse | ';
} elseif(!is_front_page()) {
// get_the_title does not escape the returned values
// (see https://developer.wordpress.org/reference/functions/get_the_title/#comment-1653)
// So, to be on the safe side, we escape it here.
echo esc_html(get_the_title($post->ID)).' | ';
}
bloginfo('name');
?>
</title>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri();?>" />
<link rel="shortcut icon" href="<?php echo get_template_directory_uri();?>/img/favicon.png" />
<link rel="alternate" type="application/rss+xml" title="fscoli blog" href="<?php bloginfo('rss2_url'); ?>" />
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="copyright" content="Fachschaft Computerlinguistik" />
<meta name="description" content="<?php bloginfo('description');?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php wp_head(); ?>
</head>
<body class="<?php echo is_admin_bar_showing() ? 'has-admin-bar' : '';?>">
<header>
<a class="logo" href="<?php echo home_url();?>"></a>
<a class="nav-toggle" href="#nav">Menü</a>
<nav id="nav">
<?php wp_nav_menu(array('container'=>'false')); ?>
</nav>
</header>
<?php
/*
Theme: Fachschaft Computerlinguistik
Header Template File
*/
get_header();
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title>
<?php
if(is_home()) {
echo 'Blog | ';
} elseif(is_search()) {
echo 'Suchergebnisse | ';
} elseif(!is_front_page()) {
// get_the_title does not escape the returned values
// (see https://developer.wordpress.org/reference/functions/get_the_title/#comment-1653)
// So, to be on the safe side, we escape it here.
echo esc_html(get_the_title($post->ID)).' | ';
}
bloginfo('name');
?>
</title>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri();?>" />
<link rel="shortcut icon" href="<?php echo get_template_directory_uri();?>/img/favicon.png" />
<link rel="alternate" type="application/rss+xml" title="fscoli blog" href="<?php bloginfo('rss2_url'); ?>" />
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="copyright" content="Fachschaft Computerlinguistik" />
<meta name="description" content="<?php bloginfo('description');?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php wp_head(); ?>
</head>
<body class="<?php echo is_admin_bar_showing() ? 'has-admin-bar' : '';?>">
<header>
<a class="logo" href="<?php echo home_url();?>"></a>
<a class="nav-toggle" href="#nav">Menü</a>
<nav id="nav">
<?php wp_nav_menu(array('container'=>'false')); ?>
</nav>
</header>
<?php
/**
* Template for the index page.
*
* WordPress identifies this file by its name (which MUST be index.php)
* and displays it whenever it has to display lists of posts. Furthermore,
* this page is used as the ultimate fallback page when there is no
* other template available.
*
* @see https://codex.wordpress.org/Theme_Development#Index_.28index.php.29
*/
get_header();
?>
<aside class="levitating list-meta">
<h1>
<?php
if ( is_category() ) {
single_cat_title();
} elseif ( is_archive() ) {
single_month_title(' ');
} else {
echo "Blog";
}
?>
</h1>
<br>
<h2>Kategorien</h2>
<br>
<ul class="categories seamless box-links">
<?php wp_list_categories(array('title_li'=>'')); ?>
</ul>
<br>
<br>
<h2>Archiv</h2>
<br>
<select onchange="document.location.href=this.options[this.selectedIndex].value;">
<option>nach Monat</option>
<?php wp_get_archives(array('format'=>'option')); ?>
</select>
<br>
<br>
<a href="<?php bloginfo('rss2_url'); ?>" class="rss">
zum RSS-Feed
</a>
</aside>
<main class="list">
<?php while ( have_posts() ) : the_post(); ?>
<article>
<header
<?php if ( has_post_thumbnail($post->ID) ) : ?>
style="background-image:url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>');"
<?php endif; ?>
>
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
</header>
<div class="content">
<?php the_excerpt(); ?>
</div>
<footer>
<time><?php the_date(); ?></time>
</footer>
</article>
<?php endwhile; ?>
<div class="pagination">
<div class="older-posts"><?php next_posts_link( '« Ältere Posts' ); ?></div>
<div class="newer-posts"><?php previous_posts_link( 'Neuere Posts »' ); ?></div>
</div>
</main>
<?php get_footer(); ?>
<?php
/**
* Template for the index page.
*
* WordPress identifies this file by its name (which MUST be index.php)
* and displays it whenever it has to display lists of posts. Furthermore,
* this page is used as the ultimate fallback page when there is no
* other template available.
*
* @see https://codex.wordpress.org/Theme_Development#Index_.28index.php.29
*/
get_header();
?>
<aside class="levitating list-meta">
<h1>
<?php
if ( is_category() ) {
single_cat_title();
} elseif ( is_archive() ) {
single_month_title(' ');
} else {
echo "Blog";
}
?>
</h1>
<br>
<h2>Kategorien</h2>
<br>
<ul class="categories seamless box-links">
<?php wp_list_categories(array('title_li'=>'')); ?>
</ul>
<br>
<br>
<h2>Archiv</h2>
<br>
<select onchange="document.location.href=this.options[this.selectedIndex].value;">
<option>nach Monat</option>
<?php wp_get_archives(array('format'=>'option')); ?>
</select>
<br>
<br>
<a href="<?php bloginfo('rss2_url'); ?>" class="rss">
zum RSS-Feed
</a>
</aside>
<main class="list">
<?php while ( have_posts() ) : the_post(); ?>
<article>
<header
<?php if ( has_post_thumbnail($post->ID) ) : ?>
style="background-image:url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>');"
<?php endif; ?>
>
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
</header>
<div class="content">
<?php the_excerpt(); ?>
</div>
<footer>
<time><?php the_date(); ?></time>
</footer>
</article>
<?php endwhile; ?>
<div class="pagination">
<div class="older-posts"><?php next_posts_link( '« Ältere Posts' ); ?></div>
<div class="newer-posts"><?php previous_posts_link( 'Neuere Posts »' ); ?></div>
</div>
</main>
<?php get_footer(); ?>
<?php
/**
* Template for pages.
*
* WordPress identifies this file by its name (which MUST be page.php).
*
* Pages make up the scaffolding of the website and can usually be reached via
* different menu entries. They are expected to be always correct (or else somehow archived),
* and the author and publication date is normally irrelevant (if anything, the date of the last edit
* might be relevant).
*
* This means we neither display an author nor a date here.
*
* @see https://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
*/
get_header();
?>
<main>
<article>
<header
<?php
echo ' style="background-image:url(\'';
if ( has_post_thumbnail($post->ID) ) {
echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
} else {
echo get_header_image();
}
echo '\');"';?> >
<h1><?php echo get_the_title($post->ID); ?></h1>
</header>
<div class="content">
<?php
if ( !post_password_required() ) {
echo apply_filters('the_content', $post->post_content);
} else {
echo get_the_password_form();
}
?>
</div>
<footer></footer>
</article>
</main>
<?php get_footer(); ?>
<?php
/**
* Template for pages.
*
* WordPress identifies this file by its name (which MUST be page.php).
*
* Pages make up the scaffolding of the website and can usually be reached via
* different menu entries. They are expected to be always correct (or else somehow archived),
* and the author and publication date is normally irrelevant (if anything, the date of the last edit
* might be relevant).
*
* This means we neither display an author nor a date here.
*
* @see https://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
*/
get_header();
?>
<main>
<article>
<header
<?php
echo ' style="background-image:url(\'';
if ( has_post_thumbnail($post->ID) ) {
echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
} else {
echo get_header_image();
}
echo '\');"';?> >
<h1><?php echo get_the_title($post->ID); ?></h1>
</header>
<div class="content">
<?php
if ( !post_password_required() ) {
echo apply_filters('the_content', $post->post_content);
} else {
echo get_the_password_form();
}
?>
</div>
<footer></footer>
</article>
</main>
<?php get_footer(); ?>
<?php
/**
* Template for single posts.
*
* WordPress identifies this file by its name (which MUST be single.php)
* and displays it whenever a single post is displayed.
*
* Single posts display an author and a post date and are general used
* for news articles (so a chronologically ordered list of posts makes sense,
* you would call that a "blog").
*
* @see https://codex.wordpress.org/Theme_Development#Single_Post_.28single.php.29
*/
get_header();
?>
<main>
<article>
<header
<?php
echo ' style="background-image:url(\'';
if ( has_post_thumbnail($post->ID) ) {
echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
} else {
echo get_header_image();
}
echo '\');"';?> >
<h1><?php echo get_the_title($post->ID); ?></h1>
</header>
<div class="content">
<?php
if ( !post_password_required() ) {
echo apply_filters('the_content', $post->post_content);
} else {
echo get_the_password_form();
}
?>
</div>
<footer>
<div class="post-meta-author"><?php echo get_the_author_meta('display_name', $post->post_author);?></div>
<time><?php echo get_the_date();?></time>
</footer>
</article>
</main>
<?php get_footer(); ?>
<?php
/**
* Template for single posts.
*
* WordPress identifies this file by its name (which MUST be single.php)
* and displays it whenever a single post is displayed.
*
* Single posts display an author and a post date and are general used
* for news articles (so a chronologically ordered list of posts makes sense,
* you would call that a "blog").
*
* @see https://codex.wordpress.org/Theme_Development#Single_Post_.28single.php.29
*/
get_header();
?>
<main>
<article>
<header
<?php
echo ' style="background-image:url(\'';
if ( has_post_thumbnail($post->ID) ) {
echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
} else {
echo get_header_image();
}
echo '\');"';?> >
<h1><?php echo get_the_title($post->ID); ?></h1>
</header>
<div class="content">
<?php
if ( !post_password_required() ) {
echo apply_filters('the_content', $post->post_content);
} else {
echo get_the_password_form();
}
?>
</div>
<footer>
<div class="post-meta-author"><?php echo get_the_author_meta('display_name', $post->post_author);?></div>
<time><?php echo get_the_date();?></time>
</footer>
</article>
</main>
<?php get_footer(); ?>
......@@ -7,7 +7,7 @@
* Author: personads :: Maximilian Müller-Eberstein (ursprüngliche Version und Design); Jakob Moser (Code-Rewrite)
* Author URI: https://personads.me/
*
* Version: 1.00-snapshot-46
* Version: 1.00-snapshot-47
*
* License: GNU General Public License v3.0
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment