Changeset 6022 for trunk/bp-core/bp-core-widgets.php
- Timestamp:
- 05/11/2012 05:38:50 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-widgets.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-widgets.php
r5930 r6022 36 36 37 37 echo $before_widget; 38 38 39 39 $title = $instance['link_title'] ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ) . '">' . $instance['title'] . '</a>' : $instance['title']; 40 40 41 41 echo $before_title 42 42 . $title … … 98 98 function update( $new_instance, $old_instance ) { 99 99 $instance = $old_instance; 100 100 101 101 $instance['title'] = strip_tags( $new_instance['title'] ); 102 102 $instance['max_members'] = strip_tags( $new_instance['max_members'] ); … … 123 123 124 124 <p><label for="bp-core-widget-title"><?php _e('Title:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" style="width: 100%" /></label></p> 125 125 126 126 <p><label for="<?php echo $this->get_field_name('link_title') ?>"><input type="checkbox" name="<?php echo $this->get_field_name('link_title') ?>" value="1" <?php checked( $link_title ) ?> /> <?php _e( 'Link widget title to Members directory', 'buddypress' ) ?></label></p> 127 127
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)