Changeset 7433 for trunk/bp-core/bp-core-admin.php
- Timestamp:
- 10/16/2013 01:36:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-admin.php
r7427 r7433 2 2 3 3 /** 4 * Main BuddyPress Admin Class 4 * Main BuddyPress Admin Class. 5 5 * 6 6 * @package BuddyPress … … 13 13 if ( !class_exists( 'BP_Admin' ) ) : 14 14 /** 15 * Load s BuddyPress plugin admin area15 * Load BuddyPress plugin admin area. 16 16 * 17 17 * @package BuddyPress 18 18 * @subpackage CoreAdministration 19 * @since BuddyPress (1.6) 19 * 20 * @since BuddyPress (1.6.0) 20 21 */ 21 22 class BP_Admin { … … 24 25 25 26 /** 26 * @var string Path to the BuddyPress admin directory 27 * Path to the BuddyPress admin directory. 28 * 29 * @var string $admin_dir 27 30 */ 28 31 public $admin_dir = ''; … … 31 34 32 35 /** 33 * @var string URL to the BuddyPress admin directory 36 * URL to the BuddyPress admin directory. 37 * 38 * @var string $admin_url 34 39 */ 35 40 public $admin_url = ''; 36 41 37 42 /** 38 * @var string URL to the BuddyPress images directory 43 * URL to the BuddyPress images directory. 44 * 45 * @var string $images_url 39 46 */ 40 47 public $images_url = ''; 41 48 42 49 /** 43 * @var string URL to the BuddyPress admin CSS directory 50 * URL to the BuddyPress admin CSS directory. 51 * 52 * @var string $css_url 44 53 */ 45 54 public $css_url = ''; 46 55 47 56 /** 48 * @var string URL to the BuddyPress admin JS directory 57 * URL to the BuddyPress admin JS directory. 58 * 59 * @var string 49 60 */ 50 61 public $js_url = ''; … … 53 64 54 65 /** 55 * The main BuddyPress admin loader 56 * 57 * @since BuddyPress (1.6 )58 * 59 * @uses BP_Admin::setup_globals() Setup the globals needed 60 * @uses BP_Admin::includes() Include the required files 61 * @uses BP_Admin::setup_actions() Setup the hooks and actions 66 * The main BuddyPress admin loader. 67 * 68 * @since BuddyPress (1.6.0) 69 * 70 * @uses BP_Admin::setup_globals() Setup the globals needed. 71 * @uses BP_Admin::includes() Include the required files. 72 * @uses BP_Admin::setup_actions() Setup the hooks and actions. 62 73 */ 63 74 public function __construct() { … … 68 79 69 80 /** 70 * Admin globals 71 * 72 * @since BuddyPress (1.6) 81 * Set admin-related globals. 82 * 73 83 * @access private 84 * @since BuddyPress (1.6.0) 74 85 */ 75 86 private function setup_globals() { … … 88 99 89 100 /** 90 * Include required files 91 * 92 * @since BuddyPress (1.6 )101 * Include required files. 102 * 103 * @since BuddyPress (1.6.0) 93 104 * @access private 94 105 */ … … 102 113 103 114 /** 104 * Setup the admin hooks, actions and filters 105 * 106 * @since BuddyPress (1.6) 115 * Set up the admin hooks, actions, and filters. 116 * 107 117 * @access private 108 * 109 * @uses add_action() To add various actions 110 * @uses add_filter() To add various filters 118 * @since BuddyPress (1.6.0) 119 * 120 * @uses add_action() To add various actions. 121 * @uses add_filter() To add various filters. 111 122 */ 112 123 private function setup_actions() { … … 139 150 140 151 /** 141 * Add the navigational menu elements 152 * Add the navigational menu elements. 142 153 * 143 154 * @since BuddyPress (1.6) 144 155 * 145 * @uses add_management_page() To add the Recount page in Tools section 156 * @uses add_management_page() To add the Recount page in Tools section. 146 157 * @uses add_options_page() To add the Forums settings page in Settings 147 * section158 * section. 148 159 */ 149 160 public function admin_menus() { … … 227 238 228 239 /** 229 * Register the settings 230 * 231 * @since BuddyPress (1.6 )232 * 233 * @uses add_settings_section() To add our own settings section 234 * @uses add_settings_field() To add various settings fields 235 * @uses register_setting() To register various settings 240 * Register the settings. 241 * 242 * @since BuddyPress (1.6.0) 243 * 244 * @uses add_settings_section() To add our own settings section. 245 * @uses add_settings_field() To add various settings fields. 246 * @uses register_setting() To register various settings. 236 247 */ 237 248 public function register_admin_settings() { … … 316 327 317 328 /** 318 * Add Settings link to plugins area 319 * 320 * @since BuddyPress (1.6 )321 * 322 * @param array $links Links array in which we would prepend our link 323 * @param string $file Current plugin basename 324 * @return array Processed links 329 * Add Settings link to plugins area. 330 * 331 * @since BuddyPress (1.6.0) 332 * 333 * @param array $links Links array in which we would prepend our link. 334 * @param string $file Current plugin basename. 335 * @return array Processed links. 325 336 */ 326 337 public function modify_plugin_action_links( $links, $file ) { … … 338 349 339 350 /** 340 * Add some general styling to the admin area 341 * 342 * @since BuddyPress (1.6 )351 * Add some general styling to the admin area. 352 * 353 * @since BuddyPress (1.6.0) 343 354 */ 344 355 public function admin_head() { … … 354 365 355 366 /** 356 * Add some general styling to the admin area 357 * 358 * @since BuddyPress (1.6 )367 * Add some general styling to the admin area. 368 * 369 * @since BuddyPress (1.6.0) 359 370 */ 360 371 public function enqueue_scripts() { … … 370 381 371 382 /** 372 * Output the about screen 373 * 374 * @since BuddyPress (1.7 )383 * Output the about screen. 384 * 385 * @since BuddyPress (1.7.0) 375 386 */ 376 387 public function about_screen() { … … 481 492 482 493 /** 483 * Output the credits screen 484 * 485 * Hardcoding this in here is pretty janky. It's fine for 2.2, but we'll494 * Output the credits screen. 495 * 496 * Hardcoding this in here is pretty janky. It's fine for now, but we'll 486 497 * want to leverage api.wordpress.org eventually. 487 498 * 488 * @since BuddyPress (1.7 )499 * @since BuddyPress (1.7.0) 489 500 */ 490 501 public function credits_screen() { … … 613 624 614 625 /** 615 * Setup BuddyPress Admin 626 * Setup BuddyPress Admin. 616 627 * 617 * @since BuddyPress (1.6 )628 * @since BuddyPress (1.6.0) 618 629 * 619 630 * @uses BP_Admin
Note: See TracChangeset
for help on using the changeset viewer.