WordPress.org

Plugin Directory

Changeset 490582


Ignore:
Timestamp:
01/16/12 12:26:14 (2 years ago)
Author:
taylorde
Message:

banner image and 0.3 release

Location:
tdd-progress-bar
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • tdd-progress-bar/trunk/css/default.css

    r466654 r490582  
    1717} 
    1818 
    19 .red { 
     19.tdd_pb_red { 
    2020    background-position: 0px 0; 
    2121    } 
    2222 
    23 .race .red { 
     23.tdd_pb_race .tdd_pb_red { 
    2424    background-position: 0px -12px; 
    2525    } 
    2626 
    27 .orange { 
     27.tdd_pb_orange { 
    2828    background-position: 0px -50px; 
    2929    } 
    3030 
    31 .race .orange { 
     31.td_pb_race .td_pb_orange { 
    3232    background-position: 0px -62px; 
    3333    } 
    3434 
    35 .yellow { 
     35.td_pb_yellow { 
    3636    background-position: 0px -100px; 
    3737    } 
    3838 
    39 .race .yellow { 
     39.td_pb_race .td_pb_yellow { 
    4040    background-position: 0px -112px; 
    4141    } 
    4242 
    43 .green { 
     43.td_pb_green { 
    4444    background-position: 0px -150px; 
    4545    } 
    4646 
    47 .race .green { 
     47.td_pb_race .td_pb_green { 
    4848    background-position: 0px -162px; 
    4949    } 
    5050 
    51 .teal { 
     51.td_pb_teal { 
    5252    background-position: 0px -200px; 
    5353    } 
    5454 
    55 .race .teal { 
     55.td_pb_race .td_pb_teal { 
    5656    background-position: 0px -212px; 
    5757    } 
    5858 
    59 .lightblue { 
     59.td_pb_lightblue { 
    6060    background-position: 0px -250px; 
    6161    } 
    6262 
    63 .race .lightblue { 
     63.td_pb_race .td_pb_lightblue { 
    6464    background-position: 0px -262px; 
    6565    } 
    6666 
    67 .blue { 
     67.td_pb_blue { 
    6868    background-position: 0px -300px; 
    6969    } 
    7070 
    71 .race .blue { 
     71.td_pb_race .td_pb_blue { 
    7272    background-position: 0px -312px; 
    7373    } 
    7474 
    75 .purple { 
     75.td_pb_purple { 
    7676    background-position: 0px -350px; 
    7777    } 
    7878 
    79 .race .purple { 
     79.td_pb_race .td_pb_purple { 
    8080    background-position: 0px -362px; 
    8181    } 
    8282 
    83 .fuchsia { 
     83.td_pb_fuchsia { 
    8484    background-position: 0px -400px; 
    8585    } 
    8686     
    87 .race .fuchsia { 
     87.td_pb_race .td_pb_fuchsia { 
    8888    background-position: 0px -415px; 
    8989    } 
    9090 
    91 .strawberry { 
     91.td_pb_strawberry { 
    9292    background-position: 0px -450px; 
    9393    } 
    9494     
    95 .race .strawberry { 
     95.td_pb_race .td_pb_strawberry { 
    9696    background-position: 0px -465px; 
    9797    } 
     98 
     99.td_pb_black { 
     100    background-position: 0px -500px; 
     101    } 
     102 
     103.td_pb_race .td_pb_black { 
     104    background-position: 0px -515px; 
     105    } 
     106 
     107.td_pb_silver { 
     108    background-position: 0px -550px; 
     109    } 
     110 
     111.td_pb_race .td_pb_silver { 
     112    background-position: 0px -565px; 
     113    } 
     114 
    98115 
    99116.tdd_pb_bar { 
     
    108125} 
    109126 
    110 .race .tdd_pb_bar_container { 
     127.td_pb_race .tdd_pb_bar_container { 
    111128    height:25px; 
    112129    } 
    113130 
    114 .race .tdd_pb_bar_container .numbers { 
     131.td_pb_race .tdd_pb_bar_container .td_pb_numbers { 
    115132    font-size:15px; 
    116133    margin-top:4px; 
    117134    } 
    118135 
    119 .numbers { 
     136.td_pb_numbers { 
    120137    text-shadow:-1px -1px 1px #000; 
    121138    font-size:30px; 
  • tdd-progress-bar/trunk/inc/admin.php

    r466661 r490582  
    1414    'yellow' => __( 'Yellow', 'tdd_pb' ), 
    1515    'orange' => __( 'Orange', 'tdd_pb' ), 
    16     'red'   => __( 'Red', 'tdd_pb' ) 
     16    'red'   => __( 'Red', 'tdd_pb' ), 
     17    'black' => __( 'Black', 'tdd_pb' ), 
     18    'silver' => __( 'Silver', 'tdd_pb' ), 
    1719    ); 
    1820 
     
    5355    <?php echo tdd_pb_get_bars( array( 
    5456        'ids' => array( get_the_ID() ), 
    55         'class' => 'race', 
     57        'class' => 'tdd_pb_race', 
    5658    ) ); 
    5759    ?> 
     
    101103            echo tdd_pb_get_bars( array(  
    102104                'ids' => array( $post->ID ), 
    103                 'class' => 'race', 
     105                'class' => 'td_pb_race', 
    104106            ) ); 
    105107 
  • tdd-progress-bar/trunk/readme.txt

    r468265 r490582  
    44Tags: progress, shortcode 
    55Requires at least: 3.2.1 
    6 Tested up to: 3.3 
    7 Stable tag: 0.2.1 
     6Tested up to: 3.3.1 
     7Stable tag: 0.3.0 
    88 
    99Configure and display any number of percent-complete progress bars. 
     
    4646Note that "id" and "ids" are interchangeable 
    4747 
     48Or use the widget which accepts a comma separated list of Ids to display. 
     49 
    4850== Changelog == 
     51 
     52= 0.3 = 
     53* New Colors! Added Black and Silver to the mix. 
     54* Updates the CSS classes to all be prefixed by tdd_pb. This may break any custom CSS you were using, but it eliminates conflicts with other themes and plugins. 
     55* Adds basic widget functionality making it much easier to add progress bars into widgetized areas. 
    4956 
    5057= 0.2.1 = 
  • tdd-progress-bar/trunk/tdd-progress-bar.php

    r468262 r490582  
    145145*/ 
    146146include plugin_dir_path( __FILE__ ). 'inc/admin.php'; 
    147      
     147 
     148/* 
     149* Widget Class 
     150*/ 
     151include plugin_dir_path( __FILE__ ). 'inc/widget.php'; 
     152 
    148153/* 
    149154* Shortcode 
     
    158163* Also any of the above formats using shortcode [tdd_pb] 
    159164*/ 
    160  
    161  
    162165function tdd_pb_shortcode( $args ){ 
    163166 
     
    203206        'width' => 'auto', 
    204207        'class' => '', 
    205         'default_color' => 'red', 
     208        'default_color' => 'td_pb_red', 
    206209        ); 
    207210 
     
    217220 
    218221    //count if this is a race (more than one progress bar being displayed. The race format can also be forced by passing "race" in the $class argument) 
    219     $race = ( count( $idsarr ) > 1 ) ? 'race' : ''; 
     222    $race = ( count( $idsarr ) > 1 ) ? 'td_pb_race' : ''; 
    220223 
    221224    //Set up our global container 
     
    247250        $color = strip_tags( get_post_meta( get_the_ID(), '_tdd_pb_color', true ) ); 
    248251        //if no color, define a default 
    249         $color = (!$color) ? $args['default_color'] : $color; 
     252        $color = (!$color) ? $args['default_color'] : 'td_pb_'.$color; 
    250253        $return .= '<div title="'.get_the_title() .'" class="tdd_pb_bar_container" style="background-color: #'. $tdd_pb_options["bar_background_color"] .'">'; 
    251254        if ($tdd_pb_options['display_percentage']){ 
    252             $return .= '<div class="numbers" style="color: #'.$tdd_pb_options["percentage_color"].'">'. $percentage .'%</div>'; 
     255            $return .= '<div class="td_pb_numbers" style="color: #'.$tdd_pb_options["percentage_color"].'">'. $percentage .'%</div>'; 
    253256        } 
    254257        $return .= '<div class="tdd_pb_bar '. $color .'" style="width:'. $percentage .'%"></div></div>'; 
Note: See TracChangeset for help on using the changeset viewer.