Plugin Directory

Changeset 490582

Timestamp:
01/16/2012 12:26:14 PM (13 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.red {
    2020    background-position: 0px 0;
    2121    }
    2222
    23 .race .red {
     23.red {
    2424    background-position: 0px -12px;
    2525    }
    2626
    27 .orange {
     27.orange {
    2828    background-position: 0px -50px;
    2929    }
    3030
    31 .race .orange {
     31.orange {
    3232    background-position: 0px -62px;
    3333    }
    3434
    35 .yellow {
     35.yellow {
    3636    background-position: 0px -100px;
    3737    }
    3838
    39 .race .yellow {
     39.yellow {
    4040    background-position: 0px -112px;
    4141    }
    4242
    43 .green {
     43.green {
    4444    background-position: 0px -150px;
    4545    }
    4646
    47 .race .green {
     47.green {
    4848    background-position: 0px -162px;
    4949    }
    5050
    51 .teal {
     51.teal {
    5252    background-position: 0px -200px;
    5353    }
    5454
    55 .race .teal {
     55.teal {
    5656    background-position: 0px -212px;
    5757    }
    5858
    59 .lightblue {
     59.lightblue {
    6060    background-position: 0px -250px;
    6161    }
    6262
    63 .race .lightblue {
     63.lightblue {
    6464    background-position: 0px -262px;
    6565    }
    6666
    67 .blue {
     67.blue {
    6868    background-position: 0px -300px;
    6969    }
    7070
    71 .race .blue {
     71.blue {
    7272    background-position: 0px -312px;
    7373    }
    7474
    75 .purple {
     75.purple {
    7676    background-position: 0px -350px;
    7777    }
    7878
    79 .race .purple {
     79.purple {
    8080    background-position: 0px -362px;
    8181    }
    8282
    83 .fuchsia {
     83.fuchsia {
    8484    background-position: 0px -400px;
    8585    }
    8686   
    87 .race .fuchsia {
     87.fuchsia {
    8888    background-position: 0px -415px;
    8989    }
    9090
    91 .strawberry {
     91.strawberry {
    9292    background-position: 0px -450px;
    9393    }
    9494   
    95 .race .strawberry {
     95.strawberry {
    9696    background-position: 0px -465px;
    9797    }
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
    98115
    99116.tdd_pb_bar {
     
    108125}
    109126
    110 .race .tdd_pb_bar_container {
     127.race .tdd_pb_bar_container {
    111128    height:25px;
    112129    }
    113130
    114 .race .tdd_pb_bar_container .numbers {
     131.numbers {
    115132    font-size:15px;
    116133    margin-top:4px;
    117134    }
    118135
    119 .numbers {
     136.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' => 'race',
    5658    ) );
    5759    ?>
     
    101103            echo tdd_pb_get_bars( array(
    102104                'ids' => array( $post->ID ),
    103                 'class' => 'race',
     105                'class' => '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
     7Stable tag: 0.
    88
    99Configure and display any number of percent-complete progress bars.
     
    4646Note that "id" and "ids" are interchangeable
    4747
     48
     49
    4850== Changelog ==
     51
     52
     53
     54
     55
    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' => '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 ) ? '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'] : $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="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.