(60*60*24)) : //get cool feedburner count $feed = get_option('crybook_feed_uri'); $whaturl="http://api.feedburner.com/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']; if(!$fb) : $fb = 0; endif; $id = $xml->feed['id']; update_option("crybook_feed_count", "" .$fb." reader".($fb > 1 ? "s" : "")); update_option('crybook_feed_id', $id.""); //end get cool feedburner count update_option("crybook_feed_lastupdate", $now.""); endif; } function crybook() { if(isset($_POST['submitted']) and $_POST['submitted'] == 'yes') : update_option("crybook_feed_uri", stripslashes($_POST['feed_uri'])); update_option("crybook_aside_cat", stripslashes($_POST['aside_cat'])); update_option("crybook_about_site", stripslashes($_POST['about_site'])); if(isset($_POST['feed_update']) and $_POST['feed_update'] == 'yes') : update_option("crybook_feed_lastupdate", "0"); endif; if(isset($_POST['feed_enable']) and $_POST['feed_enable'] == 'yes') : update_option("crybook_feed_enable", "yes"); else : update_option("crybook_feed_enable", "no"); endif; echo "

Your settings have been saved.

"; endif; $data = array( 'feed' => array( 'uri' => get_option('crybook_feed_uri'), 'id' => get_option('crybook_feed_id'), 'enable' => get_option('crybook_feed_enable') ), 'aside' => get_option('crybook_aside_cat'), 'about' => get_option('crybook_about_site') ); ?>

CryBook Settings

Site About

Display at the upper sidebar of your site

Description:

Feedburner

Key in your Feedburner data

FeedURI: http://feeds.feedburner.com/
Check to enable feed count (text) value="yes" />
FeedID: http://www.feedburner.com/fb/a/emailverifySubmit?feedId=&loc=en_US
Use to allow visitor to subscribe feed using e-mail.
Flush Reader Count: Last update:
Check to reset reader count.

Themetation

thank you for using our WordPress Themes. If you need any support, feel free to post it up in our fourm you can get some wordpress tips at themetation.com.

'sidebar-left', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => 'sidebar-right', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); endif; function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="comment-">

    %s'), get_comment_author_link()) ?>