Changeset 6264 for trunk/bp-groups/bp-groups-widgets.php
- Timestamp:
- 08/24/2012 06:10:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-widgets.php
r6262 r6264 29 29 30 30 if ( is_active_widget( false, false, $this->id_base ) && !is_admin() && !is_network_admin() ) { 31 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { 32 wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . 'bp-groups/js/widget-groups.dev.js', array( 'jquery' ), bp_get_version() ); 33 } else { 34 wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . 'bp-groups/js/widget-groups.js', array( 'jquery' ), bp_get_version() ); 35 } 31 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 32 wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . "bp-groups/js/widget-groups{$min}.js", array( 'jquery' ), bp_get_version() ); 36 33 } 37 34 } … … 49 46 50 47 echo $before_widget; 51 48 52 49 $title = $instance['link_title'] ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ) . '">' . $instance['title'] . '</a>' : $instance['title']; 53 50 54 51 echo $before_title 55 52 . $title … … 106 103 function update( $new_instance, $old_instance ) { 107 104 $instance = $old_instance; 108 105 109 106 $instance['title'] = strip_tags( $new_instance['title'] ); 110 107 $instance['max_groups'] = strip_tags( $new_instance['max_groups'] ); … … 131 128 132 129 <p><label for="bp-groups-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> 133 130 134 131 <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 Groups directory', 'buddypress' ) ?></label></p> 135 132
Note: See TracChangeset
for help on using the changeset viewer.