Plugin Directory

Changeset 532797


Ignore:
Timestamp:
04/18/2012 11:49:37 AM (14 years ago)
Author:
WebDevDesigner
Message:

v1.0

Location:
mini-twitter-feed/tags/1.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mini-twitter-feed/tags/1.0/jquery.minitwitter.css

    r532782 r532797  
    66    border-radius:5px;
    77    max-width:520px;
    8     font:13px/17px "Tahoma",Helvetica,Arial,sans-serif;
     8    font:14px/18px "Tahoma",Helvetica,Arial,sans-serif;
    99    color:#333;
    1010    background-color:#fff;
     
    1818
    1919.tweets a:hover {
     20    color:#0083b3;
    2021    text-decoration:underline;
    2122}
     
    3031    padding:12px 12px;
    3132    font-weight:bold;
    32     font-size:14px;
     33    font-size:16px;
    3334}
    3435
    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;
    3839}
    3940
    40 .tweets .tweets_header a:hover {
    41     text-decoration:underline !important;
     41.tweets_header a:hover {
     42    color:#333;
     43    text-decoration:underline;
    4244}
    4345
    4446.tweets_footer {
    4547    padding:6px 12px;
    46     text-align: center;
    4748}
    4849
     
    6970
    7071.tweets_footer #bird, .mt_footer .image_r {
     72    display:block;
    7173    background:url("http://twimg0-a.akamaihd.net/a/1331143368/t1/img/twitter_web_sprite_icons.png") no-repeat;
    7274}
     
    7476
    7577.tweets_footer #bird{
    76     display:inline-block;
    7778    margin:10px auto;
    7879    background-position: 0 0;
     
    8485    float:right;
    8586    color:#999;
    86     font-size:11px;
     87    font-size:12px;
    8788}
    8889
     
    9899
    99100.mt_header {
    100     padding-bottom:2px;
     101    padding-bottom:4px;
    101102    padding-left:60px;
    102103}
     
    111112    color:#333;
    112113    text-decoration:none;
     114}
     115
     116.mt_header a:hover {
     117    font-weight:bold;
    113118}
    114119
  • mini-twitter-feed/tags/1.0/jquery.minitwitter.js

    r532782 r532797  
    1515            retweet: true,
    1616            refresh: null,
     17            linkColor: null,
    1718            nofollow: true,
    1819            blank: true,
     
    135136            //obj.replyName = (object.in_reply_to_screen_name != 'undefined') ? object.in_reply_to_screen_name : '';
    136137            //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;
    138139
    139140            return obj;
     
    149150                    $(widget).append(tweets[i].avatar+tweets[i].header+tweets[i].textTweet+tweets[i].footer);
    150151                }
     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" );
    151155            });
    152156        };
     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        }
    153165
    154166        return this.each(function(i, widget) {
  • mini-twitter-feed/tags/1.0/mini-twitter-feed.php

    r532796 r532797  
    2929
    3030function 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);
    3232    $options = (($atts['username'])?'username:"'.$atts['username'].'",':'username:"webdevdesigner",');
    3333    $options .= (($atts['limit'])?'limit:'.$atts['limit'].',':'');
    3434    $options .= (($atts['query'])?'query:'.$atts['query'].',':'');
    3535    $options .= (($atts['list'])?'list:'.$atts['list'].',':'');
     36    $options .= (($atts['linkcolor'])?'linkColor:'.$atts['linkcolor'].',':'');
    3637   
    3738    return '<div class="tweets">
     
    8081        $options .= (($instance['query'])?'query:'.$instance['query'].',':'');
    8182        $options .= (($instance['list'])?'list:'.$instance['list'].',':'');
     83        $options .= (($instance['linkcolor'])?'linkColor:'.$instance['linkcolor'].',':'');
    8284        ?>
    8385        <?php echo $before_widget; ?>
  • mini-twitter-feed/tags/1.0/readme.txt

    r532793 r532797  
    1313The 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...
    1414
    15 You can display up to 100 tweets within 7 days (limit set by Twitter's Search API).
     15You 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.
    1616   
    1717It displays tweets from your feed or from the Twitter Search, from a list or from your favorite users. It is very flexible and modular.
     
    2929It 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.
    3030
    31 You can show the tweets of a query [minitwitter query="#awesome"]: it will show the tweets from the query #awesome.
     31you can show the tweets of a query [minitwitter query="#awesome"]: it will show the tweets from the query #awesome.
    3232
    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.
     33You 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...).
    3434
    3535== Frequently Asked Questions ==
     
    4949== Upgrade Notice ==
    5050
    51 = 1.1 =
     51= 1.0 =
    5252
    53 Bug fix with for color of the links, now CSS is used.
    54 Font -2px on all plugin
    55 
Note: See TracChangeset for help on using the changeset viewer.