-
Notifications
You must be signed in to change notification settings - Fork 0
/
frontpage.php
108 lines (80 loc) · 2.24 KB
/
frontpage.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php get_header(); ?>
<?php
/*
Template Name: Home
*/
?>
<div class="featured">
<div class="wrap-featured zerogrid">
<div class="slider">
<div class="rslides_container">
<ul class="rslides" id="slider">
<?php
$slideritem = new WP_Query(array(
'post_type' => 'zboomsliders',
'post_per_page' => 2,
));
?>
<?php while($slideritem->have_posts()): $slideritem->the_post(); ?>
<li><?php the_post_thumbnail(); ?> </li>
<?php endwhile;?>
</ul>
</div>
</div>
</div>
</div>
<!--------------Content--------------->
<section id="content">
<div class="wrap-content zerogrid">
<div class="row block01">
<?php
$blocksitem = new WP_Query(array(
'post_type' => 'zboomservices',
'posts_per_page' => 3,
));
?>
<?php while($blocksitem->have_posts()) : $blocksitem->the_post(); ?>
<div class="col-1-3">
<div class="wrap-col box">
<h2><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
<p><?php read_more(50);?>....</p>
<div class="more"><a href="<?php the_permalink();?>">read more</a></div>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="row block02">
<div class="col-2-3">
<div class="wrap-col">
<div class="heading"><h2>Latest Blog</h2></div>
<?php
$post_contentss = new WP_Query(array(
'post_type' =>'post',
));
?>
<?php while($post_contentss->have_posts()) : $post_contentss->the_post(); ?>
<article class="row">
<div class="col-1-3">
<div class="wrap-col">
<?php the_post_thumbnail(); ?>
</div>
</div>
<div class="col-2-3">
<div class="wrap-col">
<h2><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
<div class="info">By <?php the_author(); ?> on <?php the_time('F d, Y');?> with <?php comments_popup_link('No Comment','One Comment','% Comments','adnan','Comment Disable');?></div>
<p><?php read_more(12);?></p>
<a href="<?php the_permalink();?>">[View Post]</a>
</div>
</div>
</article>
<?php endwhile;?>
</div>
</div>
<div class="col-1-3">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>