bp_email_get_customizer_controls

Get Customizer controls for emails.

Description

(array) bp_email_get_customizer_controls(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bp_email_get_customizer_controls' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-customizer-email.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_email_get_customizer_controls(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-customizer-email.php  
  1. function bp_email_get_customizer_controls() { 
  2.  
  3. /** 
  4. * Filter Customizer controls for emails. 
  5. * @since 2.5.0 
  6. * @param array $controls Email Customizer controls to add. 
  7. */ 
  8. 'bp_mailtpl_email_bg' => array( 
  9. 'class' => 'WP_Customize_Color_Control',  
  10. 'label' => __( 'Email background color', buddypress ),  
  11. 'section' => 'section_bp_mailtpl_header',  
  12. 'settings' => 'bp_email_options[email_bg]',  
  13. ),  
  14.  
  15. 'bp_mailtpl_header_bg' => array( 
  16. 'class' => 'WP_Customize_Color_Control',  
  17. 'label' => __( 'Header background color', buddypress ),  
  18. 'section' => 'section_bp_mailtpl_header',  
  19. 'settings' => 'bp_email_options[header_bg]',  
  20. ),  
  21.  
  22. 'bp_mailtpl_highlight_color' => array( 
  23. 'class' => 'WP_Customize_Color_Control',  
  24. 'description' => __( 'Applied to links and other decorative areas.', buddypress ),  
  25. 'label' => __( 'Highlight color', buddypress ),  
  26. 'section' => 'section_bp_mailtpl_header',  
  27. 'settings' => 'bp_email_options[highlight_color]',  
  28. ),  
  29.  
  30. 'bp_mailtpl_header_text_color' => array( 
  31. 'class' => 'WP_Customize_Color_Control',  
  32. 'label' => __( 'Text color', buddypress ),  
  33. 'section' => 'section_bp_mailtpl_header',  
  34. 'settings' => 'bp_email_options[header_text_color]',  
  35. ),  
  36.  
  37. 'bp_mailtpl_header_text_size' => array( 
  38. 'class' => 'BP_Customizer_Control_Range',  
  39. 'label' => __( 'Text size', buddypress ),  
  40. 'section' => 'section_bp_mailtpl_header',  
  41. 'settings' => 'bp_email_options[header_text_size]',  
  42.  
  43. 'input_attrs' => array( 
  44. 'max' => 100,  
  45. 'min' => 1,  
  46. 'step' => 1,  
  47. ),  
  48. ),  
  49.  
  50.  
  51. 'bp_mailtpl_body_bg' => array( 
  52. 'class' => 'WP_Customize_Color_Control',  
  53. 'label' => __( 'Background color', buddypress ),  
  54. 'section' => 'section_bp_mailtpl_body',  
  55. 'settings' => 'bp_email_options[body_bg]',  
  56. ),  
  57.  
  58.  
  59. 'bp_mailtpl_body_text_color' => array( 
  60. 'class' => 'WP_Customize_Color_Control',  
  61. 'label' => __( 'Text color', buddypress ),  
  62. 'section' => 'section_bp_mailtpl_body',  
  63. 'settings' => 'bp_email_options[body_text_color]',  
  64. ),  
  65.  
  66. 'bp_mailtpl_body_text_size' => array( 
  67. 'class' => 'BP_Customizer_Control_Range',  
  68. 'label' => __( 'Text size', buddypress ),  
  69. 'section' => 'section_bp_mailtpl_body',  
  70. 'settings' => 'bp_email_options[body_text_size]',  
  71.  
  72. 'input_attrs' => array( 
  73. 'max' => 24,  
  74. 'min' => 8,  
  75. 'step' => 1,  
  76. ),  
  77. ),  
  78.  
  79.  
  80. 'bp_mailtpl_footer_text' => array( 
  81. 'class' => 'WP_Customize_Control',  
  82. 'description' => __('Change the email footer here', buddypress ),  
  83. 'label' => __( 'Footer text', buddypress ),  
  84. 'section' => 'section_bp_mailtpl_footer',  
  85. 'settings' => 'bp_email_options[footer_text]',  
  86. 'type' => 'textarea',  
  87. ),  
  88.  
  89. 'bp_mailtpl_footer_bg' => array( 
  90. 'class' => 'WP_Customize_Color_Control',  
  91. 'label' => __( 'Background color', buddypress ),  
  92. 'section' => 'section_bp_mailtpl_footer',  
  93. 'settings' => 'bp_email_options[footer_bg]',  
  94. ),  
  95.  
  96. 'bp_mailtpl_footer_text_color' => array( 
  97. 'class' => 'WP_Customize_Color_Control',  
  98. 'label' => __( 'Text color', buddypress ),  
  99. 'section' => 'section_bp_mailtpl_footer',  
  100. 'settings' => 'bp_email_options[footer_text_color]',  
  101. ),  
  102.  
  103. 'bp_mailtpl_footer_text_size' => array( 
  104. 'class' => 'BP_Customizer_Control_Range',  
  105. 'label' => __( 'Text size', buddypress ),  
  106. 'section' => 'section_bp_mailtpl_footer',  
  107. 'settings' => 'bp_email_options[footer_text_size]',  
  108.  
  109. 'input_attrs' => array( 
  110. 'max' => 24,  
  111. 'min' => 8,  
  112. 'step' => 1,  
  113. ),  
  114. ),  
  115. ) );