-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-test.php
61 lines (37 loc) · 1.31 KB
/
page-test.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
<?php get_header(); ?>
<div class="container">
<div class="row">
<div class="span10 schtuff">
<div class="inner">
<article>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<div class="entry-content white_box">
<?php
if ( function_exists( 'vip_safe_wp_remote_get' ) )
$response = vip_safe_wp_remote_get( 'http://blogs.oreilly.com/makedeal/kits.html' );
else
$response = wp_remote_get( 'http://blogs.oreilly.com/makedeal/kits.html' );
if( is_wp_error( $response ) ) {
echo 'Something went wrong!';
} else {
echo $response['body'];
}
?>
<div class="clear"></div>
<div class="entry-meta">
<?php edit_post_link('Fix me...'); ?>
</div>
</div>
<?php endwhile; ?>
<?php comments_template(); ?>
<?php else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</article>
</div><!--//Inner-->
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>