Changeset 2812 for branches/plugin/bbp-includes/bbp-widgets.php
- Timestamp:
- 01/17/2011 06:57:34 PM (15 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-includes/bbp-widgets.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-widgets.php
r2773 r2812 98 98 $instance['title'] = strip_tags( $new_instance['title'] ); 99 99 $instance['parent_forum'] = absint ( $new_instance['parent_forum'] ); 100 100 101 return $instance; 101 102 } … … 112 113 function form( $instance ) { 113 114 $title = !empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; 114 $parent_forum = !empty( $instance['parent_forum'] ) ? esc_attr( $instance['parent_forum'] ) : ''; 115 116 ?> 115 $parent_forum = !empty( $instance['parent_forum'] ) ? esc_attr( $instance['parent_forum'] ) : ''; ?> 117 116 118 117 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p> … … 129 128 <?php 130 129 } 131 132 130 } 133 131 … … 200 198 201 199 <ul> 200 202 201 <?php while ( bbp_topics() ) : bbp_the_topic(); ?> 203 202 … … 231 230 <ul> 232 231 232 <?php foreach ( $topics as $topic_id => $topic_reply_count ) : ?> 233 234 <li><a class="bbp-topic-title" href="<?php bbp_topic_permalink( $topic_id ); ?>" title="<?php bbp_topic_title( $topic_id ); ?>"><?php bbp_topic_title( $topic_id ); ?></a><?php if ( $show_date == 'on' ) _e( ', ' . bbp_get_topic_last_active( $topic_id ) . ' ago' ); ?></li> 235 233 236 <?php 234 235 foreach ( $topics as $topic_id => $topic_reply_count ) :236 237 ?>238 239 <li><a class="bbp-topic-title" href="<?php bbp_topic_permalink( $topic_id ); ?>" title="<?php bbp_topic_title( $topic_id ); ?>"><?php bbp_topic_title( $topic_id ); ?></a><?php if ( $show_date == 'on' ) _e( ', ' . bbp_get_topic_last_active( $topic_id ) . ' ago' ); ?></li>240 241 <?php242 237 243 238 $topic_count++; … … 246 241 break; 247 242 248 endforeach; 249 250 ?> 243 endforeach; ?> 251 244 252 245 </ul> … … 272 265 $instance['show_date'] = strip_tags( $new_instance['show_date'] ); 273 266 $instance['pop_check'] = strip_tags( $new_instance['pop_check'] ); 267 274 268 return $instance; 275 269 } … … 288 282 $max_shown = !empty( $instance['max_shown'] ) ? esc_attr( $instance['max_shown'] ) : ''; 289 283 $show_date = !empty( $instance['show_date'] ) ? esc_attr( $instance['show_date'] ) : ''; 290 $pop_check = !empty( $instance['pop_check'] ) ? esc_attr( $instance['pop_check'] ) : ''; 291 292 ?> 284 $pop_check = !empty( $instance['pop_check'] ) ? esc_attr( $instance['pop_check'] ) : ''; ?> 293 285 294 286 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p> … … 405 397 $instance['max_shown'] = strip_tags( $new_instance['max_shown'] ); 406 398 $instance['show_date'] = strip_tags( $new_instance['show_date'] ); 399 407 400 return $instance; 408 401 } … … 420 413 $title = !empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; 421 414 $max_shown = !empty( $instance['max_shown'] ) ? esc_attr( $instance['max_shown'] ) : ''; 422 $show_date = !empty( $instance['show_date'] ) ? esc_attr( $instance['show_date'] ) : ''; 423 424 ?> 415 $show_date = !empty( $instance['show_date'] ) ? esc_attr( $instance['show_date'] ) : ''; ?> 425 416 426 417 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p> … … 430 421 <?php 431 422 } 432 433 423 } 434 424
Note: See TracChangeset
for help on using the changeset viewer.