-
Notifications
You must be signed in to change notification settings - Fork 0
/
twitter.php
35 lines (32 loc) · 1.09 KB
/
twitter.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
<?php
// Template Name: Twitter Full Page
get_header();
?>
<section id="twitter_fullscreen">
<div class="container">
<?php
global $twitter;
$twitterhash = get_option('ef_twitter_widget_twitterhash');
$tweets = array();
if (isset($twitter) && !empty($twitterhash)) {
$url = 'https://api.twitter.com/1.1/search/tweets.json';
$getfield = "?q=$twitterhash&count=7";
$requestMethod = 'GET';
$store = $twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest();
$tweets = json_decode($store);
}
$full_twitter_page = get_posts(array(
'post_type' => 'page',
));
?>
<!-- TWITTER -->
<div id="twitter_div">
<ul id="twitter_update_list">
</ul>
<a class="btn secondary-bkg-color" title="<?php _e('Back', 'tyler'); ?>" href="<?php echo home_url(); ?>"><?php _e('Back', 'tyler'); ?></a>
</div>
</div>
</section>
<?php get_footer(); ?>