-
Notifications
You must be signed in to change notification settings - Fork 0
/
category-books.php
executable file
·57 lines (50 loc) · 1.97 KB
/
category-books.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
<?php get_header(); ?>
<div class="page-wrapper">
<div class="mast-spl">
<h1 class="text-center">MyCopie<sup>™</sup> Notebooks</h1>
</div>
<?php include 'head.php'; ?>
<div class="container white-bg">
<div class="padding15 marginTop">
<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">All Designs</a></li>
<li role="presentation"><a href="#profile" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile">Ruled</a></li>
<li role="presentation"><a href="#dropdown1" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile">Unruled</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledBy="home-tab">
<div class="col-md-12">
<br><br>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="col-md-4 col-sm-4 col-lg-2">
<?php the_content(); ?>
<?php
$product_link = get_post_meta($post->ID,'_mcp_link',true);
?>
<br/>
<center><a href="<?php echo $product_link; ?>" class="btn btn-success txt-center" target="_blank" <?php echo ($product_link!='')?'':'style="visibility:hidden"'; ?>><i class="fa fa-shopping-cart" ></i> Buy Now</a></center>
<br/>
</div>
<?php endwhile; ?>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="profile" aria-labelledBy="profile-tab">
<?php include 'books-avail.php'; ?>
</div>
<div role="tabpanel" class="tab-pane fade" id="dropdown1" aria-labelledBy="dropdown1-tab">
<?php include 'books-unruled.php'; ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
<script>
$('#myTab a').click(function (e) {
e.preventDefault()
$(this).tab('show')
});
</script>
</body>