Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/11/2012 05:38:50 PM (14 years ago)
Author:
boonebgorges
Message:

Pinking shears in Core component

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-widgets.php

    r5930 r6022  
    3636
    3737                echo $before_widget;
    38                
     38
    3939                $title = $instance['link_title'] ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ) . '">' . $instance['title'] . '</a>' : $instance['title'];
    40                
     40
    4141                echo $before_title
    4242                   . $title
     
    9898        function update( $new_instance, $old_instance ) {
    9999                $instance = $old_instance;
    100                
     100
    101101                $instance['title']          = strip_tags( $new_instance['title'] );
    102102                $instance['max_members']    = strip_tags( $new_instance['max_members'] );
     
    123123
    124124                <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
    126126                <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>
    127127
Note: See TracChangeset for help on using the changeset viewer.