This repository has been archived by the owner on Mar 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathauthor.php
34 lines (31 loc) · 1.42 KB
/
author.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php $this->need('header.php'); ?>
<header class="main-header author-head cover" style="background-image: url(<?php $this->options->themeUrl('img'); ?>/<?php $this->author() ?>.jpg)">
<nav class="main-nav overlay clearfix">
<?php if ($this->options->logo): ?>
<a class="blog-logo" href="<?php $this->options->siteUrl(); ?>"><img src="<?php $this->options->logo() ?>)">" alt="Blog Logo" /></a>
<?php endif; ?>
<a class="menu-button icon-menu" href="#">
<span class="word">Menu</span>
</a>
</nav>
</header>
<section class="author-profile inner">
<figure class="author-image">
<div class="img" style="background-image: url(<?php $this->options->themeUrl('img'); ?>/<?php $this->author() ?>.jpg)">
<span class="hidden">
<?php $this->author() ?>'s Picture
</span>
<?php $this->author->gravatar(400); ?>
</div>
</figure>
<script>
var authorimgurl = $('.author-image div img').attr('src');
$(".author-image .img").css({'background-image': "url( " + authorimgurl + ")" });
$('.author-image .img img').remove();
</script>
<h1 class="author-title"><?php $this->author() ?></h1>
</section>
<main class="content" role="main">
<?php $this->need('loop.php'); ?>
</main>
<?php $this->need('footer.php'); ?>