Changeset 7457 for trunk/bp-core/bp-core-widgets.php
- Timestamp:
- 10/23/2013 12:14:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-widgets.php
r7450 r7457 1 1 <?php 2 2 /** 3 * BuddyPress Widgets3 * BuddyPress Core Component Widgets. 4 4 * 5 5 * @package BuddyPress … … 10 10 if ( !defined( 'ABSPATH' ) ) exit; 11 11 12 /* Register widgets for the core component */ 12 /** 13 * Register bp-core widgets. 14 */ 13 15 function bp_core_register_widgets() { 14 16 add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Login_Widget");') ); … … 20 22 21 23 /** 22 * BuddyPress Login Widget 24 * BuddyPress Login Widget. 23 25 * 24 26 * @since BuddyPress (1.9.0) … … 140 142 } 141 143 142 /*** MEMBERS WIDGET *****************/ 143 144 /** 145 * Members Widget. 146 */ 144 147 class BP_Core_Members_Widget extends WP_Widget { 145 148 149 /** 150 * Constructor method. 151 */ 146 152 function __construct() { 147 153 $widget_ops = array( … … 157 163 } 158 164 165 /** 166 * Display the Members widget. 167 * 168 * @see WP_Widget::widget() for description of parameters. 169 * 170 * @param array $args Widget arguments. 171 * @param array $instance Widget settings, as saved by the user. 172 */ 159 173 function widget( $args, $instance ) { 160 174 … … 227 241 } 228 242 243 /** 244 * Update the Members widget options. 245 * 246 * @param array $new_instance The new instance options. 247 * @param array $old_instance The old instance options. 248 * @return array $instance The parsed options to be saved. 249 */ 229 250 function update( $new_instance, $old_instance ) { 230 251 $instance = $old_instance; … … 238 259 } 239 260 261 /** 262 * Output the Members widget options form. 263 * 264 * @param $instance Settings for this widget. 265 */ 240 266 function form( $instance ) { 241 267 $defaults = array( … … 277 303 class BP_Core_Whos_Online_Widget extends WP_Widget { 278 304 305 /** 306 * Constructor method. 307 */ 279 308 function __construct() { 280 309 $widget_ops = array( … … 285 314 } 286 315 316 /** 317 * Display the Who's Online widget. 318 * 319 * @see WP_Widget::widget() for description of parameters. 320 * 321 * @param array $args Widget arguments. 322 * @param array $instance Widget settings, as saved by the user. 323 */ 287 324 function widget($args, $instance) { 288 325 … … 316 353 } 317 354 355 /** 356 * Update the Who's Online widget options. 357 * 358 * @param array $new_instance The new instance options. 359 * @param array $old_instance The old instance options. 360 * @return array $instance The parsed options to be saved. 361 */ 318 362 function update( $new_instance, $old_instance ) { 319 363 $instance = $old_instance; … … 324 368 } 325 369 370 /** 371 * Output the Who's Online widget options form. 372 * 373 * @param $instance Settings for this widget. 374 */ 326 375 function form( $instance ) { 327 376 $defaults = array( … … 346 395 class BP_Core_Recently_Active_Widget extends WP_Widget { 347 396 397 /** 398 * Constructor method. 399 */ 348 400 function __construct() { 349 401 $widget_ops = array( … … 354 406 } 355 407 408 /** 409 * Display the Recently Active widget. 410 * 411 * @see WP_Widget::widget() for description of parameters. 412 * 413 * @param array $args Widget arguments. 414 * @param array $instance Widget settings, as saved by the user. 415 */ 356 416 function widget( $args, $instance ) { 357 417 … … 385 445 } 386 446 447 /** 448 * Update the Recently Active widget options. 449 * 450 * @param array $new_instance The new instance options. 451 * @param array $old_instance The old instance options. 452 * @return array $instance The parsed options to be saved. 453 */ 387 454 function update( $new_instance, $old_instance ) { 388 455 $instance = $old_instance; … … 393 460 } 394 461 462 /** 463 * Output the Recently Active widget options form. 464 * 465 * @param $instance Settings for this widget. 466 */ 395 467 function form( $instance ) { 396 468 $defaults = array( … … 411 483 } 412 484 413 /** Widget AJAX ******************/ 414 485 /** 486 * AJAX request handler for Members widgets. 487 */ 415 488 function bp_core_ajax_widget_members() { 416 489
Note: See TracChangeset
for help on using the changeset viewer.