Upload via Git Manager GUI
This commit is contained in:
@@ -8,11 +8,9 @@
|
|||||||
<?php
|
<?php
|
||||||
if ( is_category() ) {
|
if ( is_category() ) {
|
||||||
echo '<div class="archive-type-badge"><i class="fas fa-folder-open"></i> ' . __('Kategorie', 'minecraft-modern-theme') . '</div>';
|
echo '<div class="archive-type-badge"><i class="fas fa-folder-open"></i> ' . __('Kategorie', 'minecraft-modern-theme') . '</div>';
|
||||||
the_archive_title( '<h1 class="archive-title">', '</h1>' );
|
|
||||||
the_archive_description( '<div class="archive-description">', '</div>' );
|
the_archive_description( '<div class="archive-description">', '</div>' );
|
||||||
} elseif ( is_tag() ) {
|
} elseif ( is_tag() ) {
|
||||||
echo '<div class="archive-type-badge"><i class="fas fa-hashtag"></i> ' . __('Tag', 'minecraft-modern-theme') . '</div>';
|
echo '<div class="archive-type-badge"><i class="fas fa-hashtag"></i> ' . __('Tag', 'minecraft-modern-theme') . '</div>';
|
||||||
the_archive_title( '<h1 class="archive-title">', '</h1>' );
|
|
||||||
the_archive_description( '<div class="archive-description">', '</div>' );
|
the_archive_description( '<div class="archive-description">', '</div>' );
|
||||||
} elseif ( is_author() ) {
|
} elseif ( is_author() ) {
|
||||||
$author = get_queried_object();
|
$author = get_queried_object();
|
||||||
@@ -21,7 +19,6 @@
|
|||||||
<div class="archive-author-header">
|
<div class="archive-author-header">
|
||||||
<?php echo get_avatar( $author->ID, 80, '', '', array('class' => 'archive-author-avatar') ); ?>
|
<?php echo get_avatar( $author->ID, 80, '', '', array('class' => 'archive-author-avatar') ); ?>
|
||||||
<div>
|
<div>
|
||||||
<h1 class="archive-title"><?php echo esc_html( $author->display_name ); ?></h1>
|
|
||||||
<?php if ( $author->description ) : ?>
|
<?php if ( $author->description ) : ?>
|
||||||
<p class="archive-description"><?php echo esc_html( $author->description ); ?></p>
|
<p class="archive-description"><?php echo esc_html( $author->description ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@@ -30,9 +27,7 @@
|
|||||||
<?php
|
<?php
|
||||||
} elseif ( is_date() ) {
|
} elseif ( is_date() ) {
|
||||||
echo '<div class="archive-type-badge"><i class="fas fa-calendar"></i> ' . __('Archiv', 'minecraft-modern-theme') . '</div>';
|
echo '<div class="archive-type-badge"><i class="fas fa-calendar"></i> ' . __('Archiv', 'minecraft-modern-theme') . '</div>';
|
||||||
the_archive_title( '<h1 class="archive-title">', '</h1>' );
|
|
||||||
} else {
|
} else {
|
||||||
the_archive_title( '<h1 class="archive-title">', '</h1>' );
|
|
||||||
the_archive_description( '<div class="archive-description">', '</div>' );
|
the_archive_description( '<div class="archive-description">', '</div>' );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user