bp_email_get_customizer_controls()
Get Customizer controls for emails.
Description
Return
(array)
Source
File: bp-core/bp-core-customizer-email.php
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | function bp_email_get_customizer_controls() { /** * Filter Customizer controls for emails. * * @since BuddyPress 2.5.0 * * @param array $controls Email Customizer controls to add. */ return apply_filters( 'bp_email_get_customizer_controls' , array ( 'bp_mailtpl_logo' => array ( 'class' => 'WP_Customize_Cropped_Image_Control' , 'label' => __( 'Upload Logo' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_header' , 'settings' => 'bp_email_options[logo]' , 'width' => 180, 'height' => 41, ), 'bp_mailtpl_site_title_logo_size' => array ( 'class' => 'BP_Customizer_Control_Range' , 'label' => __( 'Site Title logo size' , 'buddyboss' ), 'description' => __( 'Used when logo is set.' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_header' , 'settings' => 'bp_email_options[site_title_logo_size]' , 'input_attrs' => array ( 'max' => 300, 'min' => 65, 'step' => 1, ), ), 'bp_mailtpl_site_title_text_color' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Site Title color' , 'buddyboss' ), 'description' => __( 'Used when logo is not set.' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_header' , 'settings' => 'bp_email_options[site_title_text_color]' , ), 'bp_mailtpl_site_title_text_size' => array ( 'class' => 'BP_Customizer_Control_Range' , 'label' => __( 'Site Title text size' , 'buddyboss' ), 'description' => __( 'Used when logo is not set.' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_header' , 'settings' => 'bp_email_options[site_title_text_size]' , 'input_attrs' => array ( 'max' => 100, 'min' => 1, 'step' => 1, ), ), 'bp_mailtpl_recipient_text_color' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Recipient Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_header' , 'settings' => 'bp_email_options[recipient_text_color]' , ), 'bp_mailtpl_recipient_text_size' => array ( 'class' => 'BP_Customizer_Control_Range' , 'label' => __( 'Recipient Text Size' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_header' , 'settings' => 'bp_email_options[recipient_text_size]' , 'input_attrs' => array ( 'max' => 100, 'min' => 1, 'step' => 1, ), ), 'bp_mailtpl_email_bg' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Email Background Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[email_bg]' , ), 'bp_mailtpl_body_bg' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Body Background Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[body_bg]' , ), 'bp_mailtpl_body_border_color' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Body Border Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[body_border_color]' , ), 'bp_mailtpl_body_text_color' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Body Primary Text Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[body_text_color]' , ), 'bp_mailtpl_body_secondary_text_color' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Body Secondary Text Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[body_secondary_text_color]' , ), 'bp_mailtpl_body_text_size' => array ( 'class' => 'BP_Customizer_Control_Range' , 'label' => __( 'Body Text Size' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[body_text_size]' , 'input_attrs' => array ( 'max' => 24, 'min' => 8, 'step' => 1, ), ), 'bp_mailtpl_quote_bg' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Quote Background Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[quote_bg]' , ), 'bp_mailtpl_highlight_color' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Links and Buttons Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_body' , 'settings' => 'bp_email_options[highlight_color]' , ), 'bp_mailtpl_footer_text' => array ( 'class' => 'WP_Customize_Control' , 'description' => __( 'Change the email footer content.' , 'buddyboss' ), 'label' => __( 'Footer Text' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_footer' , 'settings' => 'bp_email_options[footer_text]' , 'type' => 'textarea' , ), 'bp_mailtpl_footer_text_color' => array ( 'class' => 'WP_Customize_Color_Control' , 'label' => __( 'Footer Text Color' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_footer' , 'settings' => 'bp_email_options[footer_text_color]' , ), 'bp_mailtpl_footer_text_size' => array ( 'class' => 'BP_Customizer_Control_Range' , 'label' => __( 'Footer Text Size' , 'buddyboss' ), 'section' => 'section_bp_mailtpl_footer' , 'settings' => 'bp_email_options[footer_text_size]' , 'input_attrs' => array ( 'max' => 24, 'min' => 8, 'step' => 1, ), ), ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.5.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.