Skip to content

Instantly share code, notes, and snippets.

@oldquest
oldquest / jquery.tweet.js
Created June 19, 2013 09:05
jquery.tweet.js plugin for Pixelthrone themes
// jquery.tweet.js - See http://tweet.seaofclouds.com/ or https://github.com/seaofclouds/tweet for more info
// Copyright (c) 2008-2012 Todd Matthews & Steve Purcell
// Modified by Stan Scates for https://github.com/StanScates/Tweet.js-Mod
// Modified by Pixelthone
(function(b){if(typeof define==="function"&&define.amd){define(["jquery"],b)}else{b(jQuery)}}(function(b){b.fn.tweet=function(x){var a=b.extend({modpath:"/twitter/",username:null,list_id:null,list:null,favorites:false,query:null,avatar_size:null,count:3,fetch:null,page:1,retweets:true,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,refresh_interval:null,twitter_url:"twitter.com",twitter_api_url:"api.twitter.com",twitter_search_url:"search.twitter.com",template:"{avatar}{time}{join}{text}",comparator:function(c,d){return d.tweet_time-c.tweet_time},filter:function(c){return true}},
function pt_framework_button($atts = NULL, $content = NULL )
{
// form - link - big_link - custom
extract( shortcode_atts( array(
'type' => '',
'href' => '',
'icon' => '',
'class' => '',
'target' => ''
), $atts ) );