Adding new author template plus german translation for it

This commit is contained in:
koenemann 2016-07-04 09:16:07 +02:00
parent be124836b0
commit e1b63123eb
4 changed files with 133 additions and 32 deletions

77
author.php Normal file
View File

@ -0,0 +1,77 @@
<?php
/**
* The template for displaying the author pages.
*
* Learn more: https://codex.wordpress.org/Author_Templates
*
* @package understrap
*/
get_header(); ?>
<div class="wrapper" id="author-wrapper">
<div id="content" class="container">
<div class="row">
<div id="primary" class="<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area">
<main id="main" class="site-main" role="main">
<header class="page-header author-header">
<?php
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
?>
<h1><?php esc_html_e( 'About:', 'understrap' ); ?> <?php echo $curauth->nickname; ?></h1>
<?php echo get_avatar($curauth->ID); ?>
<dl>
<dt><?php esc_html_e( 'Website', 'understrap' ); ?></dt>
<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
<dt><?php esc_html_e( 'Profile', 'understrap' ); ?></dt>
<dd><?php echo $curauth->user_description; ?></dd>
</dl>
<h2><?php esc_html_e( 'Posts by', 'understrap' ); ?> <?php echo $curauth->nickname; ?>:</h2>
</header><!-- .page-header -->
<ul>
<!-- The Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>,
<?php the_time('d M Y'); ?> in <?php the_category('&');?>
</li>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
<?php endif; ?>
<!-- End Loop -->
</ul>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end -->
<?php get_footer(); ?>

Binary file not shown.

View File

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: understrap\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/_s\n"
"POT-Creation-Date: 2015-09-01 21:23+0200\n"
"PO-Revision-Date: Tue Jun 28 2016 09:47:07 GMT+0200 (CEST)\n"
"PO-Revision-Date: Mon Jul 04 2016 09:14:23 GMT+0200 (CEST)\n"
"Last-Translator: holger <office@holgerkoenemann.de>\n"
"Language-Team: \n"
"Language: German\n"
@ -43,30 +43,17 @@ msgstr ""
"X-Poedit-SearchPath-20: page-templates\n"
"X-Poedit-SearchPath-21: inc"
#. Name of the template
msgid "Empty Page Template"
msgstr "Leeres Seiten- Template"
#: ../author.php:27
msgid "About:"
msgstr "Über:"
#: ../inc/template-tags.php:18
#, php-format
msgid " Edited %4$s"
msgstr "Bearbeitet: %4$s"
#: ../author.php:34
msgid "Profile"
msgstr "Profil"
#. translators: %s: Name of current post
#: ../inc/template-tags.php:72
#, php-format
msgid "Edit %s"
msgstr "Bearbeite %s"
#. Description of the theme
msgid ""
"Combination of Automattic´s _s theme and Bootstrap 4. Made as a solid "
"starting point for your next theme project and WordPress website. Use it as "
"starter theme or as parent theme. It is up to you."
msgstr ""
"Kombination von Automattic´s _s Starter Theme und Bootstrap 4. Entwickelt "
"als solider Startpunkt für die eigenen Theme Entwicklung. UnderStrap kann "
"als Starter Theme oder als Theme Framework genutzt werden."
#: ../author.php:38
msgid "Posts by"
msgstr "Beiträge von"
#: ../comments.php:28
#, php-format
@ -92,6 +79,10 @@ msgstr "Neuere Kommentare &rarr;"
msgid "Comments are closed."
msgstr "Kommentare sind geschlossen"
#: ../author.php:32 ../inc/custom-comments.php:16
msgid "Website"
msgstr "Webseite"
#: ../footer.php:24
msgid "http://wordpress.org/"
msgstr "http://wordpress.org/"
@ -148,6 +139,10 @@ msgstr "Suche &hellip;"
msgid "Full Width Page"
msgstr "Volle Breite"
#. Name of the template
msgid "Empty Page Template"
msgstr "Leeres Seiten- Template"
#: ../inc/widgets.php:10
msgid "Sidebar"
msgstr "Sidebar"
@ -180,6 +175,11 @@ msgstr "Slider Zeit (in ms)"
msgid "Loop Slider Content"
msgstr "Slider Inhalt wiederholen?"
#: ../inc/template-tags.php:18
#, php-format
msgid " Edited %4$s"
msgstr "Bearbeitet: %4$s"
#: ../inc/template-tags.php:29
#, php-format
msgctxt "post date"
@ -219,6 +219,12 @@ msgstr "1 Kommentar"
msgid "% Comments"
msgstr "% Kommentare"
#. translators: %s: Name of current post
#: ../inc/template-tags.php:72
#, php-format
msgid "Edit %s"
msgstr "Bearbeite %s"
#: ../inc/setup.php:48
msgid "Primary Menu"
msgstr "Hauptmenü"
@ -235,10 +241,6 @@ msgstr "Name"
msgid "Email"
msgstr "E-Mail"
#: ../inc/custom-comments.php:16
msgid "Website"
msgstr "Webseite"
#: ../inc/custom-comments.php:25
msgctxt "noun"
msgid "Comment"
@ -288,6 +290,16 @@ msgstr "UnderStrap"
msgid "http://understrap.com"
msgstr "http://understrap.com"
#. Description of the theme
msgid ""
"Combination of Automattic´s _s theme and Bootstrap 4. Made as a solid "
"starting point for your next theme project and WordPress website. Use it as "
"starter theme or as parent theme. It is up to you."
msgstr ""
"Kombination von Automattic´s _s Starter Theme und Bootstrap 4. Entwickelt "
"als solider Startpunkt für die eigenen Theme Entwicklung. UnderStrap kann "
"als Starter Theme oder als Theme Framework genutzt werden."
#. Author of the theme
msgid "Holger Koenemann"
msgstr "Holger Koenemann"

View File

@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: understrap\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/_s\n"
"POT-Creation-Date: 2015-09-01 21:23+0200\n"
"POT-Revision-Date: Tue Jun 28 2016 09:43:47 GMT+0200 (CEST)\n"
"POT-Revision-Date: Mon Jul 04 2016 09:13:18 GMT+0200 (CEST)\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: \n"
@ -69,6 +69,22 @@ msgstr ""
msgid "Comments are closed."
msgstr ""
#: ../author.php:27
msgid "About:"
msgstr ""
#: ../author.php:32 ../inc/custom-comments.php:16
msgid "Website"
msgstr ""
#: ../author.php:34
msgid "Profile"
msgstr ""
#: ../author.php:38
msgid "Posts by"
msgstr ""
#: ../footer.php:24
msgid "http://wordpress.org/"
msgstr ""
@ -227,10 +243,6 @@ msgstr ""
msgid "Email"
msgstr ""
#: ../inc/custom-comments.php:16
msgid "Website"
msgstr ""
#: ../inc/custom-comments.php:25
msgctxt "noun"
msgid "Comment"