-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·121 lines (48 loc) · 1.94 KB
/
index.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
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php get_header(); ?>
<div id="slideshow_cont">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/slide-prev.png" class="slide_prev" />
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/slide-next.png" class="slide_next" />
<div id="slideshow">
<?php
$slider_arr = array();
$x = 0;
$args = array(
//'category_name' => 'blog',
'post_type' => 'post',
'meta_key' => 'ex_show_in_slideshow',
'meta_value' => 'Yes',
'posts_per_page' => 30
);
query_posts($args);
while (have_posts()) : the_post(); ?>
<?php if($x == 0) { ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('slide-image',array('class' => 'first_img')); ?></a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('slide-image',array('class' => 'slide image')); ?></a>
<?php } ?>
<?php array_push($slider_arr,get_the_ID()); ?>
<?php $x++; ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div><!--//slideshow-->
</div><!--//slideshow_cont-->
<?php
$category_ID = get_category_id('blog');
$args = array(
'post_type' => 'post',
'posts_per_page' => 30,
'post__not_in' => $slider_arr,
'cat' => '-' . $category_ID,
'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1)
);
query_posts($args);
while (have_posts()) : the_post(); ?>
<div class="home_post_box" onclick="window.location='<?php the_permalink(); ?>'; return false;">
<?php the_post_thumbnail('home-post-image'); ?>
<div class="home_post_box_hover">
<p>¡Escuchar!</p>
</div><!--//home_post_box_hover-->
</div><!--//home_post_box-->
<?php endwhile; ?>
<div class="clear"></div>
<?php get_footer(); ?>