Adding new author template plus german translation for it
This commit is contained in:
parent
be124836b0
commit
e1b63123eb
|
@ -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.
|
@ -3,7 +3,7 @@ msgstr ""
|
||||||
"Project-Id-Version: understrap\n"
|
"Project-Id-Version: understrap\n"
|
||||||
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/_s\n"
|
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/_s\n"
|
||||||
"POT-Creation-Date: 2015-09-01 21:23+0200\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"
|
"Last-Translator: holger <office@holgerkoenemann.de>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: German\n"
|
"Language: German\n"
|
||||||
|
@ -43,30 +43,17 @@ msgstr ""
|
||||||
"X-Poedit-SearchPath-20: page-templates\n"
|
"X-Poedit-SearchPath-20: page-templates\n"
|
||||||
"X-Poedit-SearchPath-21: inc"
|
"X-Poedit-SearchPath-21: inc"
|
||||||
|
|
||||||
#. Name of the template
|
#: ../author.php:27
|
||||||
msgid "Empty Page Template"
|
msgid "About:"
|
||||||
msgstr "Leeres Seiten- Template"
|
msgstr "Über:"
|
||||||
|
|
||||||
#: ../inc/template-tags.php:18
|
#: ../author.php:34
|
||||||
#, php-format
|
msgid "Profile"
|
||||||
msgid " Edited %4$s"
|
msgstr "Profil"
|
||||||
msgstr "Bearbeitet: %4$s"
|
|
||||||
|
|
||||||
#. translators: %s: Name of current post
|
#: ../author.php:38
|
||||||
#: ../inc/template-tags.php:72
|
msgid "Posts by"
|
||||||
#, php-format
|
msgstr "Beiträge von"
|
||||||
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."
|
|
||||||
|
|
||||||
#: ../comments.php:28
|
#: ../comments.php:28
|
||||||
#, php-format
|
#, php-format
|
||||||
|
@ -92,6 +79,10 @@ msgstr "Neuere Kommentare →"
|
||||||
msgid "Comments are closed."
|
msgid "Comments are closed."
|
||||||
msgstr "Kommentare sind geschlossen"
|
msgstr "Kommentare sind geschlossen"
|
||||||
|
|
||||||
|
#: ../author.php:32 ../inc/custom-comments.php:16
|
||||||
|
msgid "Website"
|
||||||
|
msgstr "Webseite"
|
||||||
|
|
||||||
#: ../footer.php:24
|
#: ../footer.php:24
|
||||||
msgid "http://wordpress.org/"
|
msgid "http://wordpress.org/"
|
||||||
msgstr "http://wordpress.org/"
|
msgstr "http://wordpress.org/"
|
||||||
|
@ -148,6 +139,10 @@ msgstr "Suche …"
|
||||||
msgid "Full Width Page"
|
msgid "Full Width Page"
|
||||||
msgstr "Volle Breite"
|
msgstr "Volle Breite"
|
||||||
|
|
||||||
|
#. Name of the template
|
||||||
|
msgid "Empty Page Template"
|
||||||
|
msgstr "Leeres Seiten- Template"
|
||||||
|
|
||||||
#: ../inc/widgets.php:10
|
#: ../inc/widgets.php:10
|
||||||
msgid "Sidebar"
|
msgid "Sidebar"
|
||||||
msgstr "Sidebar"
|
msgstr "Sidebar"
|
||||||
|
@ -180,6 +175,11 @@ msgstr "Slider Zeit (in ms)"
|
||||||
msgid "Loop Slider Content"
|
msgid "Loop Slider Content"
|
||||||
msgstr "Slider Inhalt wiederholen?"
|
msgstr "Slider Inhalt wiederholen?"
|
||||||
|
|
||||||
|
#: ../inc/template-tags.php:18
|
||||||
|
#, php-format
|
||||||
|
msgid " Edited %4$s"
|
||||||
|
msgstr "Bearbeitet: %4$s"
|
||||||
|
|
||||||
#: ../inc/template-tags.php:29
|
#: ../inc/template-tags.php:29
|
||||||
#, php-format
|
#, php-format
|
||||||
msgctxt "post date"
|
msgctxt "post date"
|
||||||
|
@ -219,6 +219,12 @@ msgstr "1 Kommentar"
|
||||||
msgid "% Comments"
|
msgid "% Comments"
|
||||||
msgstr "% Kommentare"
|
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
|
#: ../inc/setup.php:48
|
||||||
msgid "Primary Menu"
|
msgid "Primary Menu"
|
||||||
msgstr "Hauptmenü"
|
msgstr "Hauptmenü"
|
||||||
|
@ -235,10 +241,6 @@ msgstr "Name"
|
||||||
msgid "Email"
|
msgid "Email"
|
||||||
msgstr "E-Mail"
|
msgstr "E-Mail"
|
||||||
|
|
||||||
#: ../inc/custom-comments.php:16
|
|
||||||
msgid "Website"
|
|
||||||
msgstr "Webseite"
|
|
||||||
|
|
||||||
#: ../inc/custom-comments.php:25
|
#: ../inc/custom-comments.php:25
|
||||||
msgctxt "noun"
|
msgctxt "noun"
|
||||||
msgid "Comment"
|
msgid "Comment"
|
||||||
|
@ -288,6 +290,16 @@ msgstr "UnderStrap"
|
||||||
msgid "http://understrap.com"
|
msgid "http://understrap.com"
|
||||||
msgstr "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
|
#. Author of the theme
|
||||||
msgid "Holger Koenemann"
|
msgid "Holger Koenemann"
|
||||||
msgstr "Holger Koenemann"
|
msgstr "Holger Koenemann"
|
||||||
|
|
|
@ -5,7 +5,7 @@ msgstr ""
|
||||||
"Project-Id-Version: understrap\n"
|
"Project-Id-Version: understrap\n"
|
||||||
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/_s\n"
|
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/_s\n"
|
||||||
"POT-Creation-Date: 2015-09-01 21:23+0200\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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
@ -69,6 +69,22 @@ msgstr ""
|
||||||
msgid "Comments are closed."
|
msgid "Comments are closed."
|
||||||
msgstr ""
|
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
|
#: ../footer.php:24
|
||||||
msgid "http://wordpress.org/"
|
msgid "http://wordpress.org/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -227,10 +243,6 @@ msgstr ""
|
||||||
msgid "Email"
|
msgid "Email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../inc/custom-comments.php:16
|
|
||||||
msgid "Website"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../inc/custom-comments.php:25
|
#: ../inc/custom-comments.php:25
|
||||||
msgctxt "noun"
|
msgctxt "noun"
|
||||||
msgid "Comment"
|
msgid "Comment"
|
||||||
|
|
Reference in New Issue