wpcom.php 663 B

123456789101112131415161718192021
  1. <?
  2. /**
  3. * Adds support for wp.com-specific theme functions.
  4. *
  5. * @global array $themecolors
  6. */
  7. function balasana_wpcom_setup() {
  8. global $themecolors;
  9. // Set theme colors for third party services.
  10. if ( ! isset( $themecolors ) ) {
  11. $themecolors = array(
  12. 'bg' => 'FFFFFF', // $config-global--color-background-default
  13. 'border' => 'D0D0D0', // $config-global--color-border-default
  14. 'text' => '303030', // $config-global--color-foreground-default
  15. 'link' => '19744C', // $config-global--color-primary-default
  16. 'url' => '19744C', // $config-global--color-primary-default
  17. );
  18. }
  19. }
  20. add_action( 'after_setup_theme', 'balasana_wpcom_setup' );