-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (43 loc) · 2.08 KB
/
index.php
File metadata and controls
55 lines (43 loc) · 2.08 KB
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
<?php get_header(); ?>
<!-- INDEX TOP -->
<div class="container-fluid" id="indexTop">
<div id="taidoido" class="hidden-xs hidden-sm"><img src="<?php bloginfo('template_directory');?>/images/logo.png" alt="Tai Doido"></div>
<div class="container hidden-md hidden-lg">
<div id="taidoidossm" class="hidden-md hidden-lg"><img src="<?php bloginfo('template_directory');?>/images/logosm.png" alt="Tai Doido"></div>
</div>
</div>
<!-- NEWS FEED -->
<div class="container">
<div class="row">
<ul id="listEvents">
<h1>Próximos Eventos</h1>
<?php $recent = new WP_Query("cat=2&showposts=8"); while($recent->have_posts()) : $recent->the_post();?>
<a href="<?php echo get_permalink(); ?>" target="_self">
<li class="col-xs-6 col-lg-3">
<?php $image_id = get_post_thumbnail_id(); ?>
<?php $image_attributes = wp_get_attachment_image_src( $image_id, 'full'); ?>
<img alt="" src="<?php echo $image_attributes[0]; ?>" width="100%" height="100%" class="singleImage">
<h2><?php the_title();?></h2>
</li>
</a>
<?php endwhile; ?>
</ul>
</div></div>
<!-- MAIN FEED -->
<div class="container">
<div class="row">
<ul id="mainFeed">
<?php $recent = new WP_Query("cat=3&showposts=8"); while($recent->have_posts()) : $recent->the_post();?>
<a href="<?php echo get_permalink(); ?>" target="_self">
<li>
<?php $image_id = get_post_thumbnail_id(); ?>
<?php $image_attributes = wp_get_attachment_image_src( $image_id, 'full'); ?>
<img alt="" src="<?php echo $image_attributes[0]; ?>" width="100%" class="singleImage">
<h2><?php the_title();?></h2>
</li>
</a>
<?php endwhile; ?>
</ul>
</div>
</div>
<?php get_footer(); ?>