Plugin Directory

Changeset 499505

Timestamp:
02/03/2012 02:23:08 AM (13 years ago)
Author:
taylorde
Message:

Tagging -0.3.2 for release

Location:
tdd-progress-bar/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tdd-progress-bar/trunk/inc/widget.php

    r491108 r499505  
    2424            'title' => 'Progress',
    2525            'ids' => '',
     26
    2627        );
    2728       
     
    3031        $title = $instance['title'];
    3132        $ids = $instance['ids'];
     33
    3234        ?>
    33         <p>Title: <input class="widefat" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p>
     35        <p>Title: <input class="widefat" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p>
    3436
    35         <p>Progress Bar IDs: <input class="widefat" name="<?php echo $this->get_field_name( 'ids' ); ?>" type="text" value="<?php echo esc_attr( $ids ); ?>" /><br><small>Comma separated</small></p>
     37        <p>Progress Bar IDs: <input class="widefat" id="<?php echo $this->get_field_id( 'ids' ); ?>" name="<?php echo $this->get_field_name( 'ids' ); ?>" type="text" value="<?php echo esc_attr( $ids ); ?>" /><br><small>Comma separated</small></p>
     38       
     39        <p>Description:
     40        <textarea class="widefat" id="<?php echo $this->get_field_id( 'desc '); ?>" name="<?php echo $this->get_field_name( 'desc' ); ?>"><?php echo esc_attr($desc); ?></textarea>
    3641
    3742        <?php
     
    4247        $instance['title'] = strip_tags ( $new_instance['title'] );
    4348        $instance['ids'] = strip_tags( $new_instance['ids'] );
     49
    4450        return $instance;
    4551    }
     
    6066
    6167        echo tdd_pb_get_bars( $args );
    62 
     68       
     69        echo ( $instance['desc'] ) ? wpautop($instance['desc']) : '' ;
    6370       
    6471        echo $after_widget;
  • tdd-progress-bar/trunk/readme.txt

    r491737 r499505  
    55Requires at least: 3.2.1
    66Tested up to: 3.3.1
    7 Stable tag: 0.3.1
     7Stable tag: 0.3.
    88
    99Configure and display any number of percent-complete progress bars.
     
    4444
    4545== Changelog ==
     46
     47
     48
     49
     50
     51
     52
     53
    4654
    4755= 0.3.1 =
  • tdd-progress-bar/trunk/tdd-progress-bar.php

    r491737 r499505  
    44Plugin URI: http://github.com/tddewey/tdd-progress
    55Description: Manage and display progress bars
    6 Version: 0.2.1
     6Version: 0..1
    77Author: Taylor D. Dewey
    88Author URI: http://websitesthatdontsuck.com
     
    7272*/
    7373function tdd_pb_load_styles() {
    74     if ( defined('WP_DEBUG') ) {
    75         if ( WP_DEBUG ) {
    76             wp_enqueue_style( 'tdd_pb_style', plugins_url( 'css/default.css', __FILE__ ), '', '.3' );
    77         } else {
    78             wp_enqueue_style( 'tdd_pb_style', plugins_url( 'css/default.min.css', __FILE__ ), '', '.3' );
    79         }
     74    if (WP_DEBUG) {
     75        wp_enqueue_style( 'tdd_pb_style', plugins_url( 'css/default.css', __FILE__ ), '', '.3' );
    8076    } else {
    8177        wp_enqueue_style( 'tdd_pb_style', plugins_url( 'css/default.min.css', __FILE__ ), '', '.3' );
     
    9995function tdd_pb_load_js(){
    10096    wp_enqueue_script( 'jquery' );
    101     wp_enqueue_script( 'tdd_pb_js', plugins_url( 'js/animate.js', __FILE__ ), 'jquery', '.1', true );
     97    if (WP_DEBUG) {
    ��98        wp_enqueue_script( 'tdd_pb_js', plugins_url( 'js/animate.js', __FILE__ ), 'jquery', '.3', true );
     99    } else {
     100        wp_enqueue_script( 'tdd_pb_js', plugins_url( 'js/animate.min.js', __FILE__ ), 'jquery', '.3', true );
     101    }
    102102}
    103103
     
    258258        //if no color, define a default
    259259        $color = (!$color) ? $args['default_color'] : 'td_pb_'.$color;
    260         $return .= '<div title="'.get_the_title() .'" class="tdd_pb_bar_container" style="background-color: #'. $tdd_pb_options["bar_background_color"] .'">';
     260        $return .= '<div title="'.get_the_title() .'">';
    261261        if ($tdd_pb_options['display_percentage']){
    262262            $return .= '<div class="td_pb_numbers" style="color: #'.$tdd_pb_options["percentage_color"].'">'. $percentage .'%</div>';
Note: See TracChangeset for help on using the changeset viewer.