wpcom.php 695 B

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