/** * jquery.freshline.TwitterReader - jQuery Plugin for displaying Twitter Status * @version: 1.0 (2011/09/04) * @requires jQuery v1.2.2 or later * All Rights Reserved, use only in themepunch Templates or when Plugin bought at CodeCanyon ! **/ (function($){ $.fn.extend({ //pass the options variable to the function twitterReader: function(options) { //Set the default values, use comma to separate the settings, example: var defaults = { user:'themepunch', count:4 } var options = $.extend(defaults, options); var o = options; var url = "../../https@api.twitter.com/1/statuses/user_timeline.json@screen_name="+o.user+"&count="+o.count+"&callback=?"; var holder=$(this); var item_count=1; $.getJSON(url,function(data){ // unique="twitter_reader_list_"+Math.round(new Date().getTime() / 1000; $(holder).append("