-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-library.php
executable file
·71 lines (52 loc) · 3.36 KB
/
archive-library.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php get_header(); ?>
<!-- Left Sec -->
<section id="left-sec" class="col-md-9 col-sm-8">
<!-- Books -->
<section id="books-sec">
<header>
<h4 class="dotted"><span><?php echo "بایگانی کتابخانه"; ?></span></h4>
</header>
<div class="container-fluid">
<div class="row"><div class="row">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="col-md-4" id="book-<?php the_ID(); ?>">
<article class="books">
<header>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php echo ST (get_the_title()); ?></a></h2>
</header>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail(array(240, 240), array('class' => 'book-img img-thumbnail img-responsive'));
} else { echo '<img class="book-img img-thumbnail img-responsive" src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/default-thumb.png">'; } ?>
</a>
<ul>
<li><i class="fa fa-calendar"></i>
<span>
<?php
if( get_the_modified_date() != get_the_date() ){
get_the_modified_date('j / m / Y');
} else {
the_time('j / m / Y');
}
?>
</span>
</li>
<?php if( function_exists('the_views') ) { ?>
<li><i class="fa fa-eye"></i><span><?php the_views(); ?></span></li>
<?php } ?>
</ul>
<a class="book-link signTopUp" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<i class="fa fa-download"></i>
<?php echo 'مــشــخــصــات / دانــلــود'; ?>
</a>
</article>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div></div>
</div>
</section>
<!-- /Books -->
<?php professor_posts_nav(); ?>
</section>
<!-- /Left Sec -->
<?php get_footer(); ?>