Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Author box and default image has been updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
erhankilic committed Sep 11, 2016
1 parent c947575 commit f5212e9
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 100 deletions.
Binary file added assets/img/default.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
143 changes: 67 additions & 76 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Author: <?php echo $curauth->display_name; ?>
<?php echo get_the_author(); ?>
</h1>
<ol class="breadcrumb">
<li><i class="fa fa-dashboard"></i> <?php bloginfo('name'); ?></li>
Expand Down Expand Up @@ -37,7 +37,8 @@ class="fa fa-facebook"></i></a></li>
class="fa fa-twitter"></i></a></li>
<?php endif; ?>
<?php if (get_the_author_meta('dt_googleplus') != '') : ?>
<li><a href="<?php echo get_the_author_meta('dt_google-plus'); ?>" target="_blank"><i
<li><a href="<?php echo get_the_author_meta('dt_google-plus'); ?>"
target="_blank"><i
class="fa fa-google-plus"></i></a></li>
<?php endif; ?>
<?php if (get_the_author_meta('dt_pinterest') != '') : ?>
Expand All @@ -63,102 +64,92 @@ class="fa fa-linkedin"></i></a></li>
</div>
<?php endif; ?>
<div class="col-md-12">
<!-- The time line -->
<ul class="timeline">

<div class="row" id="posts">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- timeline time label -->
<li class="time-label">
<span class="bg-green"><?php the_time('d.m.Y ') ?></span>
</li>
<!-- /.timeline-label -->
<!-- timeline item -->
<li>
<i class="fa fa-newspaper-o bg-blue"></i>

<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> <?php the_time('H:i') ?></span>

<h3 class="timeline-header"><a href="<?php the_permalink() ?>"
alt="<?php the_title(); ?>"
title="<?php the_title(); ?> "><?php the_title(); ?></a>
</h3>

<div class="timeline-body">
<div class="row">
<div class="col-lg-3 col-sm-5">
<div class="caption">
<a href="<?php the_permalink() ?>"
title="<?php the_title(); ?>">
<?php $img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium');
if (has_post_thumbnail()) { ?>

<img src="<?php echo $img[0]; ?>" class="img-responsive"
alt="<?php the_title(); ?>"
title="<?php the_title() ?>"/>

<?php } ?>
</a>
</div>
</div>
<div class="col-lg-9 col-sm-7">
<?php the_excerpt_rss(); ?>
<div style="margin-top: 10px">
<a class="btn btn-primary btn-xs"
href="<?php the_permalink() ?>"
title="<?php the_title(); ?>">Read more</a>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div class="box box-widget">
<div class="box-header with-border">
<div class="user-block">
<span class="username"><a href="<?php the_permalink() ?>"
alt="<?php the_title(); ?>"
title="<?php the_title(); ?> "><?php the_title(); ?></a></span>
<ul class="description list-inline">
<li><i class="fa fa-calendar"></i> <?php the_time('d.m.Y ') ?> |
</li>
<li><i class="fa fa-user"></i> <a
href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"
title="<?php the_author(); ?>"><?php the_author(); ?></a> |
</li>
<li><i class="fa fa-folder-open"></i> <?php the_category(', ') ?> |
</li>
<li>
<i class="fa fa-comments"></i> <?php comments_number('0 comment', '1 comment', '% comments'); ?>
</li>
</ul>
</div>
<!-- /.user-block -->
</div>
<div class="timeline-footer">
<p>
<i class="fa fa-user"></i> <a
href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"
title="<?php the_author(); ?>"><?php the_author(); ?></a> | <i
class="fa fa-folder-open"></i> <?php the_category(', ') ?> | <i
class="fa fa-comments"></i> <?php comments_number('0 comment', '1 comment', '% comments'); ?>
</p>
<!-- /.box-header -->
<div class="box-body">
<div class="caption">
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<?php $img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium');
if (has_post_thumbnail()) : ?>
<img src="<?php echo $img[0]; ?>" class="img-responsive pad"
alt="<?php the_title(); ?>" title="<?php the_title() ?>"/>
<?php endif ?>
</a>
</div>
<a href="<?php the_permalink() ?>"
title="<?php the_title(); ?>"><?php the_excerpt_rss(); ?></a>
</div>
<!-- /.box-body -->
</div>
</li>
<!-- END timeline item -->
<!-- /.box -->
</div>
<?php endwhile; ?>
<?php else : ?>
</ul>
</div>
<div class="error-page">
<h3><i class="fa fa-warning text-yellow"></i> Oops! Articles not found.</h3>

<p>
There is no article.
Meanwhile, you may <a href="<?php bloginfo('url'); ?>">return to home</a> or try using
the search form.
the
search form.
</p>

<form action="<?php bloginfo('url'); ?>" class="search-form">
<div class="input-group">
<input type="text" name="s" class="form-control" placeholder="Search">

<div class="input-group-btn">
<button type="submit" class="btn btn-warning btn-flat"><i
class="fa fa-search"></i></button>
class="fa fa-search"></i>
</button>
</div>
</div><!-- /.input-group -->
</div>
<!-- /.input-group -->
</form>
</div><!-- /.error-page -->
</div>
<!-- /.error-page -->
<?php endif; ?>
</ul>
<div id="inifiniteLoader"><i class="fa fa-2x fa-refresh fa-spin"></i></div>
</div>
<?php if (get_option('ad_footer') != '') : ?>
<div class="col-md-12 hidden-xs hidden-sm ad">
<?php echo stripslashes(get_option('ad_footer')); ?>
</div>
<?php endif; ?>
<?php if (get_option('ad_footer_mobile') != '') : ?>
<div class="col-md-12 visible-xs visible-sm ad">
<?php echo stripslashes(get_option('ad_footer_mobile')); ?>
</div>
<?php endif; ?>
<div id="inifiniteLoader"><i class="fa fa-2x fa-refresh fa-spin"></i></div>
</div>
<!-- /.row -->
<?php if (get_option('ad_footer') != '') : ?>
<div class="col-md-12 hidden-xs hidden-sm ad">
<?php echo stripslashes(get_option('ad_footer')); ?>
</div>
<?php endif; ?>
<?php if (get_option('ad_footer_mobile') != '') : ?>
<div class="col-md-12 visible-xs visible-sm ad">
<?php echo stripslashes(get_option('ad_footer_mobile')); ?>
</div>
<?php endif; ?>
</div>
<!-- /.row -->

</section>
<!-- /.content -->
Expand Down Expand Up @@ -187,7 +178,7 @@ function loadArticle(pageNumber) {
data: "action=infinite_scroll&page_no=" + pageNumber + '&loop_file=loop&what=author_name&value=<?php echo $curauth->user_nicename; ?>',
success: function (html) {
$('#inifiniteLoader').hide('1000');
$("ul.timeline").append(html);
$("#posts").append(html);
}
});
return false;
Expand Down
4 changes: 0 additions & 4 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/vendor/AdminLTE/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins -->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/vendor/AdminLTE/dist/css/skins/skin-purple.min.css">
<?php if (get_option('github_check') == 'true') : ?>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/octicons/2.0.2/octicons.min.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/assets/github-activity-master/src/github-activity.css">
<?php endif; ?>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<!-- Bootstrap 3.3.5 -->
<script src="<?php bloginfo('template_url'); ?>/vendor/AdminLTE/bootstrap/js/bootstrap.min.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,7 @@ function loadArticle(pageNumber) {
selector: "#feed"
});
</script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/octicons/2.0.2/octicons.min.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/assets/github-activity-master/src/github-activity.css">
<?php endif; ?>
<?php get_footer(); ?>
43 changes: 24 additions & 19 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,30 @@ class="text-sm">
</div>
<!-- /.box-header -->
<div class="box-body">
<?php $img = wp_get_attachment_image_src(get_post_thumbnail_id(), array(1000,1000)); ?>
<div class="box box-widget">
<div class="box-body box-profile">
<?php if (has_post_thumbnail()) : ?>
<img src="<?php echo $img[0]; ?>" class="img-responsive" alt="<?php the_title(); ?>" title="<?php the_title() ?>"/>
<?php else : ?>
<img src="<?php bloginfo('template_url'); ?>/assets/img/default.jpg" class="img-responsive" alt="<?php the_title(); ?>" title="<?php the_title() ?>"/>
<?php endif ?>
<a class="author-link"
href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"
rel="author">
<img class="profile-user-img img-responsive img-circle" src="<?php
$author_bio_avatar_size = apply_filters('twentyfifteen_author_bio_avatar_size', 56);
echo get_avatar_url(get_the_author_meta('user_email'), $author_bio_avatar_size);
?>" alt="User profile picture">

<h3 class="profile-username text-center"><?php echo get_the_author(); ?></h3>

<p class="text-muted text-center"><?php the_author_meta('description'); ?></p>
</a>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
<div class="post-content">
<?php the_content(); ?>
</div>
Expand Down Expand Up @@ -141,26 +165,7 @@ class="img-responsive"
</div>

<div class="col-md-3 side-bar hidden-xs hidden-sm">
<div class="box box-widget">
<div class="box-body box-profile">
<a class="author-link"
href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"
rel="author">
<img class="profile-user-img img-responsive img-circle" src="<?php
$author_bio_avatar_size = apply_filters('twentyfifteen_author_bio_avatar_size', 56);
echo get_avatar_url(get_the_author_meta('user_email'), $author_bio_avatar_size);
?>" alt="User profile picture">

<h3 class="profile-username text-center"><?php echo get_the_author(); ?></h3>

<p class="text-muted text-center"><?php the_author_meta('description'); ?></p>
</a>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
<?php dynamic_sidebar('Side Bar'); ?>

</div>

<?php if (get_option('ad_footer') != '') : ?>
Expand Down
15 changes: 14 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/***** Heder *****/
.fixed .content-wrapper {
padding-top: 10px;
padding-top: 50px;
}
.content-header {
padding: 15px;
Expand Down Expand Up @@ -95,6 +95,19 @@
margin-left: 0;
}

#post .box-body.box-profile>img {
width: 100%;
}
#post .box-body.box-profile>a {
display: block;
margin-top: -50px;
}
#post .box-body.box-profile>a>img {
border: 5px solid #fff;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.15);
padding: 0;
}

#post .post-content .wp-caption {
margin: 5px;
padding: 10px;
Expand Down

0 comments on commit f5212e9

Please sign in to comment.