Changeset 4493
- Timestamp:
- 11/24/2012 05:37:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/widgets.php
r4491 r4493 65 65 */ 66 66 public function widget( $args, $instance ) { 67 extract( $args );68 67 69 68 // Typical WordPress filter … … 75 74 $lostpass = apply_filters( 'bbp_login_widget_lostpass', $instance['lostpass'], $instance, $this->id_base ); 76 75 77 echo $ before_widget;76 echo $args['before_widget']; 78 77 79 78 if ( !empty( $title ) ) 80 echo $ before_title . $title . $after_title;79 echo $args['before_title'] . $title . $args['after_title']; 81 80 82 81 if ( !is_user_logged_in() ) : ?> … … 145 144 <?php endif; 146 145 147 echo $a fter_widget;146 echo $args['after_widget']; 148 147 } 149 148 … … 260 259 if ( bbp_get_views() ) : 261 260 262 extract( $args );263 264 261 // Typical WordPress filter 265 262 $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ); … … 268 265 $title = apply_filters( 'bbp_view_widget_title', $instance['title'], $instance, $this->id_base ); 269 266 270 echo $ before_widget;271 echo $ before_title . $title . $after_title; ?>267 echo $args['before_widget']; 268 echo $args['before_title'] . $title . $args['after_title']; ?> 272 269 273 270 <ul> … … 281 278 </ul> 282 279 283 <?php echo $a fter_widget;280 <?php echo $args['after_widget']; 284 281 285 282 endif; … … 383 380 */ 384 381 public function widget( $args, $instance ) { 385 extract( $args );386 382 387 383 // Typical WordPress filter … … 404 400 if ( $widget_query->have_posts() ) : 405 401 406 echo $ before_widget;407 echo $ before_title . $title . $after_title; ?>402 echo $args['before_widget']; 403 echo $args['before_title'] . $title . $args['after_title']; ?> 408 404 409 405 <ul> … … 417 413 </ul> 418 414 419 <?php echo $a fter_widget;415 <?php echo $args['after_widget']; 420 416 421 417 // Reset the $post global … … 535 531 */ 536 532 public function widget( $args, $instance ) { 537 538 extract( $args );539 533 540 534 // Typical WordPress filter … … 607 601 if ( $widget_query->have_posts() ) : 608 602 609 echo $ before_widget;610 echo $ before_title . $title . $after_title; ?>603 echo $args['before_widget']; 604 echo $args['before_title'] . $title . $args['after_title']; ?> 611 605 612 606 <ul> … … 639 633 </ul> 640 634 641 <?php echo $ after_widget;635 <?php echo $$args['after_widget']; 642 636 643 637 // Reset the $post global … … 760 754 public function widget( $args, $instance ) { 761 755 762 extract( $args );763 764 756 // Typical WordPress filter 765 757 $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ); … … 784 776 if ( $widget_query->have_posts() ) : 785 777 786 echo $ before_widget;787 echo $ before_title . $title . $after_title; ?>778 echo $args['before_widget']; 779 echo $args['before_title'] . $title . $args['after_title']; ?> 788 780 789 781 <ul> … … 833 825 </ul> 834 826 835 <?php echo $a fter_widget;827 <?php echo $args['after_widget']; 836 828 837 829 // Reset the $post global
Note: See TracChangeset
for help on using the changeset viewer.