-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
135 lines (56 loc) · 2.19 KB
/
single.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
<?php/* Hotï - Venezuela Artistic Material Copyright (C) 2013 Marcos Colina Contributors Marcos Colina <[email protected]> Alexander Salas <[email protected]> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */?><?php get_header(); ?>
<?php $shortname = "hoti"; ?>
<section id="single_cont">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 class="single_title"><?php the_title(); ?></h1>
<div class="single_inside_content">
<?php the_content(); ?>
</div><!--//single_inside_content-->
<br /><br />
<?php comments_template(); ?>
<?php endwhile; else: ?>
<h3>Sorry, no posts matched your criteria.</h3>
<?php endif; ?>
</section><!--//single_cont-->
<section class="single_rand_cont">
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => 4,
'orderby' => 'rand'
);
query_posts($args);
$x = 0;
while (have_posts()) : the_post(); ?>
<?php if($x == 3) { ?>
<div class="home_post_box home_post_box_last">
<?php } else { ?>
<div class="home_post_box">
<?php } ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('home-post-box'); ?></a>
<div class="home_post_title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
</div><!--//home_post_box-->
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</section><!--//single_rand_cont-->
<div class="clear"></div>
<?php get_footer(); ?>