Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $feed = get_option('rk_gfeds');
- if( $feed == 'disable' ):
- //get cool feedburner count
- $whaturl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=" . $feed;
- //Initialize the Curl session
- $ch = curl_init();
- //Set curl to return the data instead of printing it to the browser.
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- //Set the URL
- curl_setopt($ch, CURLOPT_URL, $whaturl);
- //Execute the fetch
- $data = curl_exec($ch);
- //Close the connection
- curl_close($ch);
- $xml = new SimpleXMLElement($data);
- $fb = $xml->feed->entry['circulation'];
- //end get cool feedburner count
- ?>
- <div id="rss-link">
- <div class="rss-info">
- <span class="subscribers"><?php echo $fb; ?> Subscribers</span>
- <span class="updates">Get Updates By <a href="http://feeds2.feedburner.com/<?php echo $feed; ?>">RSS</a> Or <a onclick="window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $feed; ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" target="popupwindow" href="http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $feed; ?>">Email</a></span>
- </div><!-- RSSINFO END -->
- </div><!-- RSSLINK END -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement