Changeset 532797
- Timestamp:
- 04/18/2012 11:49:37 AM (14 years ago)
- Location:
- mini-twitter-feed/tags/1.0
- Files:
-
- 4 edited
-
jquery.minitwitter.css (modified) (8 diffs)
-
jquery.minitwitter.js (modified) (3 diffs)
-
mini-twitter-feed.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mini-twitter-feed/tags/1.0/jquery.minitwitter.css
r532782 r532797 6 6 border-radius:5px; 7 7 max-width:520px; 8 font:1 3px/17px "Tahoma",Helvetica,Arial,sans-serif;8 font:14px/18px "Tahoma",Helvetica,Arial,sans-serif; 9 9 color:#333; 10 10 background-color:#fff; … … 18 18 19 19 .tweets a:hover { 20 color:#0083b3; 20 21 text-decoration:underline; 21 22 } … … 30 31 padding:12px 12px; 31 32 font-weight:bold; 32 font-size:1 4px;33 font-size:16px; 33 34 } 34 35 35 .tweets .tweets_header a {36 color:#333 !important;37 text-decoration:none !important;36 .tweets_header a { 37 color:#333; 38 text-decoration:none; 38 39 } 39 40 40 .tweets .tweets_header a:hover { 41 text-decoration:underline !important; 41 .tweets_header a:hover { 42 color:#333; 43 text-decoration:underline; 42 44 } 43 45 44 46 .tweets_footer { 45 47 padding:6px 12px; 46 text-align: center;47 48 } 48 49 … … 69 70 70 71 .tweets_footer #bird, .mt_footer .image_r { 72 display:block; 71 73 background:url("http://twimg0-a.akamaihd.net/a/1331143368/t1/img/twitter_web_sprite_icons.png") no-repeat; 72 74 } … … 74 76 75 77 .tweets_footer #bird{ 76 display:inline-block;77 78 margin:10px auto; 78 79 background-position: 0 0; … … 84 85 float:right; 85 86 color:#999; 86 font-size:1 1px;87 font-size:12px; 87 88 } 88 89 … … 98 99 99 100 .mt_header { 100 padding-bottom: 2px;101 padding-bottom:4px; 101 102 padding-left:60px; 102 103 } … … 111 112 color:#333; 112 113 text-decoration:none; 114 } 115 116 .mt_header a:hover { 117 font-weight:bold; 113 118 } 114 119 -
mini-twitter-feed/tags/1.0/jquery.minitwitter.js
r532782 r532797 15 15 retweet: true, 16 16 refresh: null, 17 linkColor: null, 17 18 nofollow: true, 18 19 blank: true, … … 135 136 //obj.replyName = (object.in_reply_to_screen_name != 'undefined') ? object.in_reply_to_screen_name : ''; 136 137 //linkcolors 137 //obj.linkColor = (o.linkColor == null) ? (object.from_user_id || object.user.profile_link_color) : o.linkColor;138 obj.linkColor = (o.linkColor == null) ? (object.from_user_id || object.user.profile_link_color) : o.linkColor; 138 139 139 140 return obj; … … 149 150 $(widget).append(tweets[i].avatar+tweets[i].header+tweets[i].textTweet+tweets[i].footer); 150 151 } 152 $( "."+$(widget).attr('class')+" .mt_text a").css('color', '#'+tweets[0].linkColor); 153 hover ( "."+$(widget).attr('class')+" .mt_header a", tweets[0].linkColor, "333" ); 154 hover ( "."+$(widget).attr('class')+" .mt_footer a", tweets[0].linkColor, "999" ); 151 155 }); 152 156 }; 157 158 function hover ( element, newcolor, initcolor ) { 159 $(element).hover(function(){ 160 $(this).css('color', '#'+newcolor); 161 }, function () { 162 $(this).css('color',"#"+initcolor); 163 }); 164 } 153 165 154 166 return this.each(function(i, widget) { -
mini-twitter-feed/tags/1.0/mini-twitter-feed.php
r532796 r532797 29 29 30 30 function mtf_create_shortcode( $atts, $content=null ) { 31 shortcode_atts(array('id'=>null,'username'=>null, 'list'=>null, 'query' => null, 'limit' => null ), $atts);31 shortcode_atts(array('id'=>null,'username'=>null, 'list'=>null, 'query' => null, 'limit' => null, 'linkcolor'=> null), $atts); 32 32 $options = (($atts['username'])?'username:"'.$atts['username'].'",':'username:"webdevdesigner",'); 33 33 $options .= (($atts['limit'])?'limit:'.$atts['limit'].',':''); 34 34 $options .= (($atts['query'])?'query:'.$atts['query'].',':''); 35 35 $options .= (($atts['list'])?'list:'.$atts['list'].',':''); 36 $options .= (($atts['linkcolor'])?'linkColor:'.$atts['linkcolor'].',':''); 36 37 37 38 return '<div class="tweets"> … … 80 81 $options .= (($instance['query'])?'query:'.$instance['query'].',':''); 81 82 $options .= (($instance['list'])?'list:'.$instance['list'].',':''); 83 $options .= (($instance['linkcolor'])?'linkColor:'.$instance['linkcolor'].',':''); 82 84 ?> 83 85 <?php echo $before_widget; ?> -
mini-twitter-feed/tags/1.0/readme.txt
r532793 r532797 13 13 The plugin "mini Twitter feed" puts Twitter on your Wordpress blog, you can add your tweets or the tweets from the folks you like, lists, queries... 14 14 15 You can display up to 100 tweets within 7 days (limit set by Twitter's Search API). 15 You can display up to 100 tweets within 7 days (limit set by Twitter's Search API). It uses the color of your link profile on Twitter or the color of your website. 16 16 17 17 It displays tweets from your feed or from the Twitter Search, from a list or from your favorite users. It is very flexible and modular. … … 29 29 It is possible to add a list of users to show [minitwitter username="twitter" list="team"]: it will show 5 tweets of the list "team" of the "twitter" user. 30 30 31 You can show the tweets of a query [minitwitter query="#awesome"]: it will show the tweets from the query #awesome.31 you can show the tweets of a query [minitwitter query="#awesome"]: it will show the tweets from the query #awesome. 32 32 33 You can change the color of your links by the color of your website changing `.tweets a { color:#your_color; }` in your ccs file.33 You can add the color of the links on the twitter feed [minitwitter username="webdevdesigner" linkcolor="000000"]. The colors have to be in hexadecimal (000000: black, ffffff: white...). 34 34 35 35 == Frequently Asked Questions == … … 49 49 == Upgrade Notice == 50 50 51 = 1. 1=51 = 1.0 = 52 52 53 Bug fix with for color of the links, now CSS is used.54 Font -2px on all plugin55
Note: See TracChangeset
for help on using the changeset viewer.