Changeset 499505
- Timestamp:
- 02/03/2012 02:23:08 AM (13 years ago)
- Location:
- tdd-progress-bar/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tdd-progress-bar/trunk/inc/widget.php
r491108 r499505 24 24 'title' => 'Progress', 25 25 'ids' => '', 26 26 27 ); 27 28 … … 30 31 $title = $instance['title']; 31 32 $ids = $instance['ids']; 33 32 34 ?> 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> 34 36 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> 36 41 37 42 <?php … … 42 47 $instance['title'] = strip_tags ( $new_instance['title'] ); 43 48 $instance['ids'] = strip_tags( $new_instance['ids'] ); 49 44 50 return $instance; 45 51 } … … 60 66 61 67 echo tdd_pb_get_bars( $args ); 62 68 69 echo ( $instance['desc'] ) ? wpautop($instance['desc']) : '' ; 63 70 64 71 echo $after_widget; -
tdd-progress-bar/trunk/readme.txt
r491737 r499505 5 5 Requires at least: 3.2.1 6 6 Tested up to: 3.3.1 7 Stable tag: 0.3. 17 Stable tag: 0.3. 8 8 9 9 Configure and display any number of percent-complete progress bars. … … 44 44 45 45 == Changelog == 46 47 48 49 50 51 52 53 46 54 47 55 = 0.3.1 = -
tdd-progress-bar/trunk/tdd-progress-bar.php
r491737 r499505 4 4 Plugin URI: http://github.com/tddewey/tdd-progress 5 5 Description: Manage and display progress bars 6 Version: 0. 2.16 Version: 0..1 7 7 Author: Taylor D. Dewey 8 8 Author URI: http://websitesthatdontsuck.com … … 72 72 */ 73 73 function 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' ); 80 76 } else { 81 77 wp_enqueue_style( 'tdd_pb_style', plugins_url( 'css/default.min.css', __FILE__ ), '', '.3' ); … … 99 95 function tdd_pb_load_js(){ 100 96 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 } 102 102 } 103 103 … … 258 258 //if no color, define a default 259 259 $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() .'">'; 261 261 if ($tdd_pb_options['display_percentage']){ 262 262 $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.