1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 09:13:38 +01:00

fix avatars

This commit is contained in:
Matthias Kretschmann 2016-03-10 15:05:06 +01:00
parent f70e6edbb8
commit d5bc500aca
3 changed files with 15 additions and 24 deletions

View File

@ -32,6 +32,16 @@
margin-bottom: 35px;
font-weight: 500;
font-size: 16px;
.avatar {
width: 48px;
height: 48px;
border-radius: 50%;
vertical-align: middle;
display: inline-block;
margin-right: (@spacer / 4);
border: 1px solid #CFEEF3;
}
}

View File

@ -1,5 +1,5 @@
<?php
global $post, $post_id;
global $post;
$title = get_the_title();
@ -20,11 +20,12 @@ if (strlen($full_name) <= 0) {
$full_name = 'ascribe';
}
$url = get_the_permalink();
$url = get_the_permalink();
$avatar = get_avatar( get_the_author_meta('ID'), 96 );
?>
<article <?php post_class( '', $post_id ); ?>>
<article <?php post_class( '', $post->ID ); ?>>
<header>
<?php echo get_the_category_list(); ?>
@ -43,7 +44,7 @@ $url = get_the_permalink();
</div>
<div class="entry-meta">
<?php echo get_avatar( get_the_author_meta('email'), 48 ); ?>
<?php echo $avatar; ?>
<span class="author">by <?php echo $full_name; ?></span>
on <date><?php the_time( get_option( 'date_format' ) ); ?></date>
</div>

View File

@ -1,20 +0,0 @@
<?php
/**
* Created by PhpStorm.
* User: sarahetter
* Date: 15-09-25
* Time: 1:10 PM
*/
$controller = new Subtemplate();
$banner = get_field('banner_for_blog_sidebar','option');
$image = '';
if ($banner) {
$image = "<img src='{$banner['url']}' alt='{$banner['alt']}'>";
}
?>
<aside class="blog-sidebar">
<?php echo $image; ?>
<?php echo $controller->blogFeatures("sidebar"); ?>
</aside>