-
Notifications
You must be signed in to change notification settings - Fork 0
/
book_details.php
executable file
·86 lines (77 loc) · 3.28 KB
/
book_details.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/*
Template Name: taxonomies
*/
?>
<?php get_header();?>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"/>
<div id="single_cont" class="taxonomies_page">
<div class="single_left">
<h1 class="single_title"><?php the_title(); ?></h1>
<div class="single_inside_content">
<div class="site-tax-stats">
<h3 style="margin-right: 8px"><i class="fa fa-bar-chart"></i> احصائيات الموقع</h3>
<div class="stat-box">
<li class="writer">
<a href="#author"><i style="font-size: 48px;" class="fa fa-user"></i></a>
<p><?php echo wp_count_terms( 'writer' ); ?>
<span>كاتب</span></p>
</li>
<li class="book" >
<a href="/" target="_blank"><i style="font-size: 46px;" class="fa fa-book"></i></a>
<p><?php $post_count = wp_count_posts(); echo $post_count->publish; ?>
<span>كتاب</span></p>
</li>
<li class="tag">
<a href="#tags"><i style="font-size: 45px;" class="fa fa-tags fa-flip-horizontal"></i></a>
<p><?php echo wp_count_terms( 'post_tag' ); ?>
<span>وسم</span></p>
</li>
<li class="license" >
<a href="#license"><i style="font-size: 46px;" class="fa fa-certificate fa-flip-horizontal"></i></a>
<p><?php echo wp_count_terms( 'license' ); ?>
<span>رخص قانونية</span></p>
</li>
<li class="first_last_year" >
<a href="#release"><i style="font-size: 41px;" class="fa fa-calendar"></i></a>
<p><span>ما بين</span></br>2016-2006</p>
</li>
<li class="most_year" >
<a href="/release/2013/" target="_blank"><i style="font-size: 46px;" class="fa fa-star"></i></a>
<p>2013 <span>الأكثر إصداراً</span></p>
</li>
</div>
</div>
<div class="taxonomies">
<?php if (get_theme_mod('librebooks_taxonomies_to_show')) {
$taxonomies = get_theme_mod('librebooks_taxonomies_to_show');
foreach ($taxonomies as $taxonomy) {
$taxonomy = get_taxonomy($taxonomy);
?>
<h2 id="<?php echo $taxonomy->name; ?>"><?php echo $taxonomy->labels->name; ?>:</h2>
<?php
$taxonomy = $taxonomy->name;
$term_args=array(
'hide_empty' => false,
'orderby' => 'name',
'order' => 'ASC'
);
$tax_terms = get_terms($taxonomy,$term_args);
if (is_array($tax_terms)) {
?>
<ul class="tags blue">
<?php
foreach ($tax_terms as $tax_term) {
echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "عرض كتب المؤلف %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name . '<span>' . $tax_term->count . '</span></a></li>';
}
?>
</ul> <?php
}
}
} ?>
</div><!--//taxonomies-->
</div><!--//single_inside_content-->
</div><!--//single_left-->
<div class="clear"></div>
</div><!--//single_cont-->
<?php get_footer(); ?>